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 |
#562
|
|||
|
|||
Can anyone tell me how I can add "Last Activity" information of a user to a custom page, what hook do I have to include?
I am customizing the showgroups.php to redesign the staff list...and I want to include "last activity" but I can't seem to get it to work Shouldn't it be a simple line of code? |
#563
|
|||
|
|||
I was wondering if there was something I could add to force the page to be viewed in a certain style when people view it?
|
#564
|
|||
|
|||
Would this hack work for a cubecart installation? I'm trying to integrate a cubecart shop with my vbulletin site.
Can I call another page from within a vbulletin template? |
#565
|
|||
|
|||
Hello Gary, is this possible:
I want a template in the admin cp >templates to to show as LINKS but some other templates should hide (collapsed) under it just like the SHOWTHREAD template has. This would make the template list less cluttered. How can this be done please? |
#566
|
|||
|
|||
thats made with the name i
the 1.ellement needsthe name myhack than the collapsed: myhack_1 myhack_2 |
#567
|
|||
|
|||
I've been looking for a way (outside of the forums) to display RSS feeds. Would this be a method to do that?
Thanks. |
#568
|
||||
|
||||
I have to say this is the best, easiest, fastest, most efficient (and every other-est) way to create extra pages with the VB styles! It was so easy to set up and I found that it was just as easy as the rest of the board to customize. All of my styles worked right from the start and guests can view pages without any problems!
Here is a link to my site. The links 'Written Works', 'Art Gallery', Project Surreal Manga', and 'Anime Convention Gallery' are the custom pages. I know there's not much on them (the Anime Gallery is the only one with content), but I even found a way to display different stuff in the side columns (using the side column hack) and the VB_AREA function. It's a simple code that you can add to the php pages you have to upload. Where is says in the php file: define('THIS_SCRIPT', 'yourscript'); Below that add: define('VB_AREA', 'test'); where 'test' is the area you want it to be named. keep it simple. I used simple words like art and manga. then when you make the links in your side columns, you can have separate links for your forums, then separate links for the custom pages: <if condition="VB_AREA == test"> Links for your test page </if> <if condition="VB_AREA == VBA_PORTAL"> Separate links if you have VBAdvance portal </if> <if condition="VB_AREA == Forum"> regular links for the forum. </if> And this will work in the navbar too! I haven't found a place where the VB_AREA function doesn't work. I thought it would just be something cool to add so that for all the work you go through to make the custom pages, you can have custom links too! |
#569
|
|||
|
|||
After calling global.php, all the query string variables are emptied, and I'm guessing they are checked and then placed in another variable.
What variable are they moved to? |
#570
|
|||
|
|||
In the beginning example, I see $navbits[$parent] = 'Test Page'; but the var $parent is not set. What is this used for?
|
#571
|
|||
|
|||
FWT:
$navbits is for the breadcrumb in the navbar template. It will set the text that is displayed at the end of the breadcrumb |
#572
|
|||
|
|||
I have been looking for something like this for awhile. THANKS!!!
Only having one problem with this mod. Don't know if this has been brought up yet though. Why can you not use VB Code in the mod. I am making a links page and the url=www.link.com/url with brackets of coarse is not working. I know some of you are having problems making this work at all. And I have found a small mistake in the upload of this to my forum on my part. If you make the text document in wordpad make sure that you use TEXT DOCUMENT not RICH TEXT DOCUMENT. |
#573
|
|||
|
|||
spectacular - just what i've been lookin' for
Thank you to everyone who posted this tutorial. |
#574
|
||||
|
||||
Quote:
I have the template in place, and the web page showing. I just want to prevent guests from seeing this page (I'd rather that they saw the standard "you must be a member... blah, blah, no privileges..." vb type message) I don't know if the quoted advice can help me, or where I should be changing stuff. Does anyone know what code should I add/change? Also do I change/add this in the template or in the php file? Thanks in advance |
#575
|
|||
|
|||
Works great.
Is there any way of adding an Attachment feature like the threads can have? |
#576
|
|||
|
|||
you would have to make a own class/dm abstracted from the attachment dm
|
#577
|
|||
|
|||
this all works great for me with one exception..
i use this to make a mini-site that only certain usergroups can access and all that works fine, my problem is in having a little navigation menu for the pages within this minisite. basically as it was i had to have all the links on every page so adding a new one was becoming annoying, and im trying to get it so that the navmenu is a separate page/template, but cant get the nav template/page to display and have no idea why. anyone help please? |
#578
|
|||
|
|||
Quote:
PHP Code:
|
#579
|
||||
|
||||
worked great thanks
|
#580
|
|||
|
|||
say i want to create a page called stats as a vbulletin custom template.
my forums are located at mysite.com/forums, which means my stats page would be mysite.com/forums/stats.php could i get it into the root directory so i could have the stats page at mysite.com/stats.php? |
#581
|
|||
|
|||
applied this on 3.6.8 (that's the latest version right? i forget sometimes)
worked BEAUTIFLY! thanks a lot. just have one teeny question. my page shows up as "uknown page" in the "whos online" page when someone is visiting it. anyway to change that or give it a proper title so vbulletin displays it? prolly some title i'm missing somewhere. thanks in advance. |
#582
|
|||
|
|||
works great
|
#583
|
||||
|
||||
This is just what I needed! Thanks much
|
#584
|
|||
|
|||
Quote:
|
#585
|
|||
|
|||
how stupid of me. this whole time, i thought the "who's online mod" was to make the box show in the new page. i didn't realize it was correct the "unknown page" thing. lol
thanks. if it was renamed "who's online fix" i think that would help. lol |
#586
|
|||
|
|||
love it thank you!
Ive had a look through this thread, but couldn't find what I'm after. Can someone please tell me what I need to do to get the 'whos online' and 'statistics' showing at the bottom of the page ? Id also like to get this part to show on the page when they are not logged in/not registered? Quote:
|
#587
|
||||
|
||||
How Can I delete a template I made i dont use that page anymore and for the life of me i cant find out how to delete it in the AdminCP/Stylemanager
|
#588
|
|||
|
|||
Just revert the template, if it is a custom template then the template will be deleted.
|
#589
|
||||
|
||||
thank you
great hack and i modify to Staff its great i creat that page for our Staff but i wish i can set permissions but its ok thanx again Regards attached SS. |
#590
|
||||
|
||||
Thank you, Gary.
I've used the Who's Online Modification to adjuste on of my modifications where it said Unknok Location. |
#591
|
|||
|
|||
How can I get this to work in directories. I have tried to create a page in www.mydomain.com/directory/page/index.php
I changed test to index but it doesn't work because it says it can't find global.php I know its because it is in a directory but how do I fix it? |
#592
|
|||
|
|||
global.php has been designed to be included from scripts in the same directory. You can change the directory to forum root, require global.php, and then change back to /directory/page and continue processing but I would not recommend it.
|
#593
|
|||
|
|||
Would this be able to work at all on a Wordpress blog?
|
#594
|
|||
|
|||
Quote:
THANKS!! |
#595
|
|||
|
|||
You should use the is_member_of() function to do this properly.
PHP Code:
|
#596
|
||||
|
||||
Does anyone know if the output of a page created in this way could be cached? And the cached version displayed to the end user?
Perhaps with the cached page being updated via a cron job every ten minutes? That would be SO cool! |
#597
|
|||
|
|||
est ce que sa marche avec 3.8
|
#598
|
|||
|
|||
i have a php script that i am having trouble with. it is not written for vbulletin, but i would like to include it in my vb's template. this script has about 3-4 php files. i create a php file from which i run my script. i only include once the index.php of my script, which runs other php files from inside of it.
my problem is the following: when i run the script, everything is fine, the template is there etc. when i enter the details the script asks for, and i hit submit, the new window that opens does not have the vb template. i've tried everything, no luck. the window that opens when i hit submit has no action (etc. xxx.php?=something.) its just xxx.php. the funny thing is that if i have an error in my form, the template stays as it is even though a new window opens. the problem only occurs when i hit submit. please help that's the action code from the script: <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> |
#599
|
|||
|
|||
Very nice tutorial
|
#600
|
|||
|
|||
Hi,
Where do i put the HTML one? |
#601
|
|||
|
|||
In a new Template in your AdminCP ( -> Styles & Templates -> Style Manager -> Edit Templates)
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|