View Single Post
  #310  
Old 12 Jan 2004, 15:13
NTLDR's Avatar
NTLDR NTLDR is offline
 
Join Date: Apr 2002
Real name: Lee Botley, BSc (Hons)
Dynamic Extra Pages

How To Add Extra (Non-Dynamic) Pages With vBindex 3.0.0 RC3 or above.

This feature that allows you to easily add your own PHP to the extra pages (not custom blocks at present).

Lets say you wanted a top ten posters page:

Add a template called vbindex_extra_top10 with the folloing HTML:


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

This is the main HTML for the content area on the page. Now create a template called vbindex_extra_php_top10 this will contain the raw PHP code, just as if it was a PHP file. (NOTE: Upon saving this template you WILL get an error, ignore it and press continue. RC4 will contain instructions to prevent this). Add the following code to it:


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

Note that you need to echo the content out.

Then visit vbindex.php?section=top10 and you should see a list of the top 10 posters on your forum. Take alook at our demo here: http://www.coreforums.net/index.core?section=top10
__________________
Lee Botley, BSc (Hons) - vBulletin.org Moderator
http://www.thesistersthree.com/lee/sigs/signature.ts3
The Sisters Three Charmed Discussion Forums

WinterDir .:. vBindex v2.1 for vB2 .:. vBindex v3.0.0 RC5 for vB3
Reply With Quote