![]() |
I am attempting to get $activeusers to work within a Javascript popup. If I can get this to work, I will later add some other items but I am needing some help.
The calls are this. ------------------------------------------------------------------- In the header: <script language='javascript'> <!-- function SC_openWin() { var membersonline=window.open('/community/membersonline. php','MembersOnline','width=600,height=300,top=200 ,left=200,menu=no,toolbar=no,d irectories=no,status=no, scrollbars=no,,dependent=no'); } // --> </script> --------------------------------------------------------------------- and <a href="javascript:SC_openWin()"> in the body. When you click on whatever you set the link for in the body it opens membersonline.php which I wrote to look like this.... <? require( "global.php" ); eval("dooutput(\"".gettemplate('membersonline')."\ ");"); ?> I then have a template (membersonline) with the $activeusers in it. I am trying to have the Current Members Online in a popup instead of displayed on the forumhome page. I am successfull at getting a link to pull open the membersonline template in the db but the $activeusers don't show up. I included my membersonline template to the list of templates in the index.php. I thought that might help but....Ugh. Nope. Anyhow, I'm sure there would be a few things I'm missing. Any Ideas as to what I could do to get this to work is appreciated. Thanks. |
Just having $activeusers in a template doesn't mean it will actually show something.
You need to put the code for it first. This is taken from index.php: Code:
$activeusers = ""; |
Oh... I was missing a couple lines.... :D
WORKS SUPER!!!! Thank You. ;) |
Well I guess it helps to e-mail me *cough* ;)
|
:D
|
All times are GMT. The time now is 09:35 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:
|