Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Google Analytics Code Plugin Details »
Google Analytics Code Plugin
Mod Version: 1.00, by DomainArchitect (Member) DomainArchitect is offline
Developer Last Online: May 2008 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.7.x Rating: (0 vote - 0 average) Installs: 12
Released: 02 May 2008 Last Update: Never Downloads: 4
Not Supported Uses Plugins Template Edits Re-usable Code  

This is my first plugin mod so its beta.

Purpose:
The purpose of this is to make it easy to add or remove your Google Analytics code or similar footer code in your vBulletin 'footer' template. This is helpful when you need to revert your footer template and want to add back your google analytics or similar footer code with ease, or quickly update the extra footer code without having to enter your admin control panel ('ACP').

Steps:
I broke the steps down into 3 easy parts.

Part 1
* - Create a folder titled custom_plugins in your forum folder;
* - In this folder, create a file titled index.html and add some text, like 'Blank' or a period '.' for example;
* - Create a file titled footercode.html and paste your Google Analytics code in it;
* - Login to your vBulletin ACP

Part 2
* - Go into your 'Style Manager' under the 'Styles & Templates' menu;
* - Click the 'Go' button next to your top-level style
* - Scroll down and double-click on the 'footer' template;
* - Scroll to the bottom of the selected 'footer' template and enter '$footercode' as the last piece of code;
* - Repeat Part 2 for all styles whose 'footer' templates have been modified or whose 'footer' template is not inherited by the top-level 'footer' template modified above(most people will only have one top-level 'footer' template inherited by all subsidiary styles);

Part 3
* - Create a new plugin by looking for 'Add New Plugin' under the 'Plugins & Products' menu;
* - Select 'vBulletin' for the Product;
* - Select 'global_start' for the Hook Location;
* - Enter a title. I used 'Footer Code';
* - Insert the following code in the PHP field:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

***Be sure to update the above code with the actual path to the footercode.html file you created above***


Feel free to comment or critique. Support will be provided on vBulletin Domain Architects

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Miscellaneous Hacks Google Analytics Registration Goal Plugin Jacqueline vBulletin 3.6 Add-ons 26 04 Oct 2010 09:11
Google Analytics Registration Goal Plugin Jacqueline vBulletin 3.5 Add-ons 111 30 Sep 2010 01:11

Comments
  #2  
Old 02 May 2008, 10:16
gwerzal's Avatar
gwerzal gwerzal is offline
 
Join Date: Oct 2007
If i hadn't just installed vbseo i would defo be installing this for ease of use.
Reply With Quote
  #3  
Old 02 May 2008, 10:52
Barakat's Avatar
Barakat Barakat is offline
 
Join Date: Nov 2004
Real name: Barakat
i belive i saw a similar hack her somewhere ....

anyway thanks for shareing
__________________
مسلمـ من أمة محمد ...
Reply With Quote
  #4  
Old 02 May 2008, 10:58
projectego's Avatar
projectego projectego is offline
 
Join Date: Feb 2006
Location: UK
Real name: Steve
/me clicks install
__________________
Reply With Quote
  #5  
Old 02 May 2008, 12:50
Big Boss's Avatar
Big Boss Big Boss is offline
 
Join Date: Jan 2008
Real name: Josh
Nice release, although this comes with vBSEO already for those who are running the product.
__________________
Metal Gear Forums - Discussion on the popular series of computer and console stealth-based games.

My Mods: Coming Soon | My Tutorials: Coming Soon
Reply With Quote
  #6  
Old 02 May 2008, 15:40
COBRAws's Avatar
COBRAws COBRAws is offline
 
Join Date: Oct 2002
Real name: Jack
Originally Posted by Big Boss View Post
Nice release, although this comes with vBSEO already for those who are running the product.
Not everyone has vBSEO
__________________
cobraws
Reply With Quote
  #7  
Old 02 May 2008, 19:11
DomainArchitect DomainArchitect is offline
 
Join Date: May 2008
Thank you guys. I run vBSEO on one site but I wanted a plugin for my new vB sites that I am too cheap to pay for vBSEO on. This is a free and easy mod so I thought I would share it.
Reply With Quote
  #8  
Old 03 May 2008, 00:49
Big Boss's Avatar
Big Boss Big Boss is offline
 
Join Date: Jan 2008
Real name: Josh
Originally Posted by COBRAws View Post
Not everyone has vBSEO
I was just trying to say that it comes with vBSEO already for those who haven't noticed yet.
__________________
Metal Gear Forums - Discussion on the popular series of computer and console stealth-based games.

My Mods: Coming Soon | My Tutorials: Coming Soon
Reply With Quote
  #9  
Old 03 May 2008, 00:52
Jasem's Avatar
Jasem Jasem is offline
 
Join Date: Feb 2006
Location: www.menokia.com
Thank you
__________________
games
Forum Nokia
Reply With Quote
  #10  
Old 14 May 2008, 12:22
KURTZ KURTZ is offline
 
Join Date: Nov 2006
Real name: Christian
i don't understand one thing, the $footercode must be placed after this (in the footer template)?


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

also i put this code in the php field:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

but it doesn't run ...

Last edited by KURTZ; 14 May 2008 at 12:36.
Reply With Quote
  #11  
Old 15 May 2008, 17:08
siliconfinance siliconfinance is offline
 
Join Date: Mar 2007
Originally Posted by KURTZ View Post
i don't understand one thing, the $footercode must be placed after this (in the footer template)?


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

also i put this code in the php field:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

but it doesn't run ...
The only thing that goes in the footer template is:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The php field is located on the add new plugin page.

Does that make sense?
Reply With Quote
  #12  
Old 02 Jan 2009, 20:24
River_rush River_rush is offline
 
Join Date: Mar 2004
Real name: Chas
thanks installed and working
__________________
EscortRSCosworth.com
Reply With Quote
  #13  
Old 02 Jan 2009, 20:33
steven s's Avatar
steven s steven s is offline
 
Join Date: Aug 2004
Doesn't the ad_footer templates accomplish this except not requiring an external file?
And you still need to edit the footer template after reverting.
__________________
...steven
www.318ti.org
forum.nccbmwcca.org
Reply With Quote
  #14  
Old 02 Jan 2009, 21:08
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Real name: Dean Clatworthy
Originally Posted by 1996 328ti View Post
Doesn't the ad_footer templates accomplish this except not requiring an external file?
And you still need to edit the footer template after reverting.
Yep, but at the time of this mod, that hook wasn't available
__________________
Dean Clatworthy - Web Developer/Designer
Reply With Quote
  #15  
Old 02 Jan 2009, 21:18
steven s's Avatar
steven s steven s is offline
 
Join Date: Aug 2004
Originally Posted by Dean C View Post
Yep, but at the time of this mod, that hook wasn't available
Thanks. But it was included in 3.7, wasn't it?
__________________
...steven
www.318ti.org
forum.nccbmwcca.org
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 16:36.

Layout Options | Width: Wide Color: