The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
How to create your own vBulletin-powered page! (uses vB templates)
Want to create your very own vBulletin powered page which includes the header, footer, and the user permissions system as well? Well now you can Want to know how it will look? Take a look at the attached screenshot below! Now includes the Who's Online modification! Also, instructions included on how to create your own pages that are integrated with current vBulletin files! I'm going to give you a generic page but you can easily modify the contents of the page by changing the template So here we go Instructions: Create a new file, whatever you want to call it (let's say test.php). Open up test.php and add the following (replace TEST with whatever template you want to show): PHP Code:
Now create the template, called TEST with the following content: HTML Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> <title>$vboptions[bbtitle]</title> $headinclude </head> <body> $header $navbar <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat">Title</td> </tr> <tr> <td class="alt1">Text</td> </tr> </table> $footer </body> </html> Now check it out by going to test.php Who's Online Modification Now if you want to show who is browsing this new page of yours, just open up includes/functions_online.php and find: PHP Code:
PHP Code:
Then find: PHP Code:
PHP Code:
---------------------------------- Also if you want to create your own pages 'within' current vBulletin files, do the following: Open the file you want, and then right before the final ?> in the source code, add the following: PHP Code:
edit by Lynne: If running 3.8.4 or above, see this post to take care of the PHP 5.3.0-related problems - https://vborg.vbsupport.ru/showpost....postcount=1171 |
#272
|
|||
|
|||
Quote:
Photopost is intergrate with Vbulletin but not the Reviewpost :ermm: So any clue |
#273
|
||||
|
||||
I'm running a vB integrated reviewpost at my site. Check it out. http://www.modernengineuity.com/rev/
|
#274
|
||||
|
||||
Has anyone successfully setup this hack so it works in a different folder? Such has public_html\foldername?
I made a few posts about this awhile back (p18) and none of the suggestions help. |
#275
|
||||
|
||||
It's working fine for me with 3.0.3. I have a few directories set up outside vb.
http://www.modernengineuity.com/specs/ http://www.modernengineuity.com/prod/cobra.mod? http://www.modernengineuity.com/ebay.php http://www.modernengineuity.com/calc/ |
#276
|
|||
|
|||
i've got it working so far but need help with some extras, say i want someone with 500 or more posts to have access to the page how do i retrieve that info? is it possible to retrieve the username as a variable as well? cos i need these info for a form, thanks in advance!
|
#277
|
||||
|
||||
PHP Code:
For username, it is just $bbuserinfo[username]. $bbuserinfo[fieldname] displays the field value of the member browsing the page. (so you can use tons of others as well). |
#278
|
|||
|
|||
right, thanks! got it working!
|
#279
|
|||
|
|||
Works great. Thanks.
|
#280
|
|||
|
|||
Is it possible to create my pages in Dreamweaver, and put this vbulletin code around it so I get the header and footer + verfication thing working.??
I want to create a web site onto my Vbulletin forum. I dont want to be copying and pasting HTML into the vbulletin template system everytime I need to update the pages. |
#281
|
||||
|
||||
Quote:
|
#282
|
|||
|
|||
Yeah I understand the way it works because I've got around 10 pages already, Its just im creating loads more pages now which non Vb experts need 2 update . Never mind, will think of something. Thanks
|
#283
|
||||
|
||||
Anyone know how to modify the templates so that they work with this hack? Namely, the breadcumb and footer.
I am running into a problem right now because my forum is installed on /forums/ but I want to have these pages located in / instead. Since vB doesn't output full path, my URL for those two templates are http://domain.com/page.php, which gives noting but fugly 404's. I've tried <if condition="THIS_SCRIPT == 'lega'">forum/</if> but that doesn't work at all as nothing comes up! Is there any thing that I'm missing on? Does anyone know how to fix it? |
#284
|
||||
|
||||
As far as the (footer) links using the right path. It's been discussed plenty in this thread. A few posts up in post 271 nad again here in post 125.
To solve the navbar issues, I created a new navbar for the non-vb pages and hardcoded the breadcrumb links. |
#285
|
||||
|
||||
Dude, you are the man! All said and done at my site www.bahamascope.net, will finish update now
|
#286
|
|||
|
|||
Hi,
Could anyone email (or post) some code to display the current active users on the forum on a NON-VB page? Such as: There are current xx users online - x registered - x guests ..etc? I don't think it'd be too hard but obviously it's too hard for me! Thanks a lot if anyone can help, Matt |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|