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:
<?php
// ####################### SET PHP ENVIRONMENT ########################### error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS ####################### define('NO_REGISTER_GLOBALS', 1); define('THIS_SCRIPT', 'test'); // change this depending on your filename
// ################### PRE-CACHE TEMPLATES AND DATA ###################### // get special phrase groups $phrasegroups = array(
);
// get special data templates from the datastore $specialtemplates = array(
);
// pre-cache templates used by all actions $globaltemplates = array( 'TEST', );
// pre-cache templates used by specific actions $actiontemplates = array(
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:
Replace 'xxx' with whatever you want ?do= in the query string to be (for example, replace 'xxx' with 'showprofile' so then someone would type in example.php?do=showprofile to view this template.) Then of course, change TEMPLATE_XXX to your template name, it's that simple!
I am having trouble with the Who's Online Modification. I got the page to work.
It says all you have to do is just open up includes/functions_online.php and find:
PHP Code:
case 'bugs.php':
$userinfo['activity'] = 'bugs';
break;
So i go to my ftp, drag the file functions_online.php to my desktop and edit it with dreameaver. I use dreamweaver to try and find the code above and it can't be found? Can someone let me know the actuall code i need to find so that i can make this work please! By the way i am using vBulletin 3.7.2 if this helps.
I am having trouble with the Who's Online Modification. I got the page to work.
It says all you have to do is just open up includes/functions_online.php and find:
PHP Code:
case 'bugs.php': $userinfo['activity'] = 'bugs'; break;
So i go to my ftp, drag the file functions_online.php to my desktop and edit it with dreameaver. I use dreamweaver to try and find the code above and it can't be found? Can someone let me know the actuall code i need to find so that i can make this work please! By the way i am using vBulletin 3.7.2 if this helps.
no, pls no fileedit!
it works also without
where'sthe post with the fileedit?
1. create a plugin at hook online_location_process
PHP Code:
if ($filename == 'myfile.php') { $userinfo['activity'] = 'myhack'; }
2. create a plugin at hook online_location_unknown
Okay, I think I understand the whole page and template thing and got it to work on my site. My problem, however, is that I have some 2000 pages on my site and what I'm hearing is that I am going to have to create a template for each of them if I want them all restricted to registered members. Is this correct? And can vBulletin handle that many templates? Or is there an easier way to do this. Any help appreciated.
Okay, I think I understand the whole page and template thing and got it to work on my site. My problem, however, is that I have some 2000 pages on my site and what I'm hearing is that I am going to have to create a template for each of them if I want them all restricted to registered members. Is this correct?