| |||||||
This is a discussion on Create your own vBulletin-Powered page within the vBulletin section, part of the Internet Forum Softwares category; Want to create your very own vBulletin powered page which includes the header, footer, and the user permissions system as ...
![]() |
|
| | LinkBack (1) | Thread Tools | Display Modes |
#1
| ||||
| ||||
|
Want to create your very own vBulletin powered page which includes the header, footer, and the user permissions system as well? A live example of this complete process can be seen if you view our Privacy Statement and Advertise page. 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 <br /><div style="z-index:3" class="smallfont" align="center">SEO by <a rel="nofollow" href="http://www.vbseo.com/1394/">vBSEO</a> 3.2.0</div><br /><div style="z-index:3" class="smallfont" align="center">SEO by <a rel="nofollow" href="http://www.vbseo.com/1394/">vBSEO</a> 3.2.0</div></body> </html> HTML Code: <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> Adding Custom Online Locations If you want Who's Online to reflect your new custom page when someone is browsing it (rather than Unknown Location), do the following steps: 1. Open AdminCP. 2. Plugin System -> Add New Plugin 3. Fill in the following: Code: Product: vBulletin
Hook Location: online_location_process
Title: My Custom Location (Part1)
Plugin PHP Code: if ($filename == 'test.php')
{
$userinfo['activity'] = 'test';
}
Plugin is Active: Yes
5. Plugin System -> Add New Plugin 6. Fill in the following: Code: Product: vBulletin
Hook Location: online_location_unknown
Title: My Custom Location (Part2)
Plugin PHP Code: if ($userinfo['activity'] == 'test')
{
$userinfo['action'] = 'Viewing Test Page'; // you might wanna use a $vbphrase here...
$userinfo['where'] = '<a href="./test.php' . $vbulletin->session->vars['sessionurl'] . '">This is My Test Page</a>'; // you might wanna use a $vbphrase here...
$handled = true;
}
Plugin is Active: Yes
8. Note that $userinfo['where'] is optional. It can be controlled with a usergroup permission "can view detailed location". You are done! ---------------------------------- 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:
__________________ Would you like to Link To Us | Support TECH6 by going Premium Know more about me at Vinayaks.com | Follow TECH6 at Twitter |
|
#2
| ||||
| ||||
|
Do you know if this is leagle without a licsence?
__________________ My iPhone is better than yours........... I Am Back! |
|
#3
| ||||
| ||||
| i did not understood what you mean !!
__________________ Would you like to Link To Us | Support TECH6 by going Premium Know more about me at Vinayaks.com | Follow TECH6 at Twitter |
|
#4
| ||||
| ||||
|
Nevermind. I looked it up. To All: THIS IS LEGAL!!!
__________________ My iPhone is better than yours........... I Am Back! |
|
#5
| ||||
| ||||
|
Dear Admin sir I Create a Test.php page which you mention sample code In 1st thread http://chennaigsm.org/forums/test.php can you tell pls How to Create a Test templete pls |
|
#6
| ||||
| ||||
|
Your page has some problem still. Its giving me an error of unable to add cookies. Read the instructions carefully and redo it.
__________________ Would you like to Link To Us | Support TECH6 by going Premium Know more about me at Vinayaks.com | Follow TECH6 at Twitter |
|
#7
| ||||
| ||||
|
good tutorial and nice and easy to understand!
|
|
#8
| ||||
| ||||
|
Still I cant Sir to Create a Templete Called Test Tell me pleae Last edited by Chennairam; 11-03-2009 at 12:22 AM. |
|
#9
| ||||
| ||||
|
I have no idea how to explain better than that. Its easy enough and explained in the best possible way already. At what step you're having problem.
__________________ Would you like to Link To Us | Support TECH6 by going Premium Know more about me at Vinayaks.com | Follow TECH6 at Twitter |
|
#10
| ||||
| ||||
|
This Step i Dont have Any idea To create Sir other Steps plugin AndOther steps i done I having To Create Test Templete Sir Be sure to change 'TEST' to the actual template name, and change 'test' to the filename. Also, change 'Test Page' to whatever you want to show in the navbar, such as 'Viewing Member Profile' (just an example). Now create the template, called TEST with the following content: 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
<br /><div style="z-index:3" class="smallfont" align="center">SEO by <a rel="nofollow" href="http://www.vbseo.com/1394/">vBSEO</a> 3.2.0</div><br /><div style="z-index:3" class="smallfont" align="center">SEO by <a rel="nofollow" href="http://www.vbseo.com/1394/">vBSEO</a> 3.2.0</div></body>
</html>
|
|
#11
| ||||
| ||||
|
i made a new templete also Now getting error When i Login In Who.is This error on Top :- Code: Parse error: syntax error, unexpected T_STRING in /home/chennaig/public_html/forums/includes/functions_online.php(2135) : eval()'d code on line 5 Parse error: syntax error, unexpected T_STRING in /home/chennaig/public_html/forums/includes/functions_online.php(1167) : eval()'d code on line 21 |
|
#12
| ||||
| ||||
Dude, I think you really need to hire somebody to get these things done. Its hard to understand you most of the time.
__________________ Would you like to Link To Us | Support TECH6 by going Premium Know more about me at Vinayaks.com | Follow TECH6 at Twitter |
|
#13
| ||||
| ||||
| Wrong Type When i Checking whois online Getting That Error sorry For bad english |
|
#14
| ||||
| ||||
|
Finally i did Thx To Tech6 for This post here for example :- www.chennaigsm.org/forums/downloads.php |
|
#15
| ||||
| ||||
|
hi i tried, like wat u said in 1st post in my testing forum its work fine but in my running forum am getting database error here is the link pls help me........ Getting database error in this link: http://www.srimeenakshimobiles.com/forums/test.php works fine: http://www.srimeenakshimobiles.net/forums/test.php |
![]() |
| Bookmarks |
| Tags |
| templates, vbulletin |
| Thread Tools | |
| Display Modes | |
| |
LinkBacks (?)
LinkBack to this Thread: http://tech6.com/f51/create-your-own-vbulletin-powered-page-t133/ | ||||
| Posted By | For | Type | Date | |
| vBPlusMe - About vBulletin Solutions Blog Archive Custom Templates - The Right Way | This thread | Refback | 30-03-2009 10:00 AM | |