The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Removing the online user page
Hello, I want to remove the "Online Members" to a different place then Forumhome. I found the below article https://vborg.vbsupport.ru/showthread.php?t=229194 and tried to modify it.
PHP Code:
|
#2
|
||||
|
||||
Whos Online already has a page of its own as well as showing on forum home..Link to it is in your quick links drop down.
|
#3
|
|||
|
|||
Quote:
https://vborg.vbsupport.ru/showthread.php?t=187388 the above hack is for vb3..I'm searching the same for vb4.. |
#4
|
||||
|
||||
Post the php code you used. The template code looks fine.
|
#5
|
|||
|
|||
Hi Lynee, I've just embedded the below part after <div class="blockrow"> to the original code..it opens the new page but does not show the online users on the new page..
PHP Code:
Original Code: PHP Code:
|
#6
|
||||
|
||||
I see the template code and it looks fine. I want to see what you added in the php page. Actually, more specifically, I want to see if you registered all the variables for use in your template, so I want to see the template render code.
|
#7
|
|||
|
|||
Quote:
https://vborg.vbsupport.ru/showthread.php?t=229194 it says there is no need to create a php file or a plugin..I create a template called "custom_online" and put the above php in it..then I check "/misc.php?do=page&template=online" page it shows the page but it does not show the current active users.. I'd appreciate if you explain how I'd register the variables or what I should do..if you have time and can check, I can also give you admin pass etc.. |
#8
|
||||
|
||||
That is the article to create your own page. You need to add code to the page though. You can't just add variables to a page without defining them. See this - Adding Currently Active Users to your own vB page
|
#9
|
|||
|
|||
Hello Lynne, I followed the steps in your article..I've uploaded the picture of the result page and the modified php code here..it doesn't show the number of people who're online..
http://img372.yukle.tc/images/15091.JPG this is the php file PHP Code:
this is the custom template PHP Code:
|
#10
|
||||
|
||||
You don't need to include global.php twice.
You need to register all the variables you want to use in the template. ie: for the number of users, include this with the other similar lines: $templater->register('activemembers', $activemembers); You need to have that line to register every variable you want to include in the template. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|