![]() |
WOL variable in VBPowered Pages
Will this work if added to the template of a vbpowered page?
Basically, I want the who's online block added on pages I create. Thank you --------------- Added [DATE]1239210886[/DATE] at [TIME]1239210886[/TIME] --------------- @ Lynne I found your article, I am using Gary Kings vbpowered pages. I have about 70 working pages but when I add the code changes into the index.php everything goes haywire. I don't get the "Add this" to the "Start and End" I put the "Start" code right under this: // ### LOGGED IN USERS ################################################# and I put the "End" code right before this: // ### MAX LOGGEDIN USERS ################################ When I load the page, I get an error at line 540 message |
You need to copy the code from your index.php file from where I say Start to where I say End. You add all that code to your page.
|
We should have a subforum for people to share additions they made for their vb powered pages. I think it would be really useful for everyone to share ideas that we've been able to get to work.
|
Ah, ok. Made the change.
Here's what I get on my page. Nothing shows up with me on the page. ************************************************** ********** Currently Active Users: ( members and guests) Most users ever online was , at . |
Did you start with the template and page code from the original article I linked to? My article is just stuff to ADD to the other page/template. You need to have a working page first before you add the stuff in my article.
|
Quote:
|
Why don't you post the code here. Use the php and html code tags when posting your php/template code.
|
Here's the template
PHP Code:
I can't post the page code. The AJAX just spins then times out when it tries to post |
Well, the template looks fine. The only thing I can think of for the php is that you are evaling your own template before the code to create the activeusers is evaled. So, make sure that isn't so.
|
Quote:
I can tell you, I put this chunk of code at the end of my .php page after "Start main script" // ### LOGGED IN USERS ################################################# code start and end here |
You cannot put that chunk of code at the end of the php file. If you read the article, it says "Paste these lines into the main part of your page." If you look at Gary's article, this means before the template is evaled here:
PHP Code:
PHP Code:
|
Hmm wierd. I responded to this earlier but it didn't show up?
Anyhow, thanks Lynne! It worked and all is well. As always I appreciate your expertise!:) |
All times are GMT. The time now is 11:08 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|