Emmy2
09-19-2004, 04:43 PM
I would like the Who's Online page to show WHICH of the FAQs pages a user is on. The current setup just lumps all the FAQs pages together.
Here's the current code I pulled from the online.php
near the top...
case 'faq':
$userinfo[where] = "Viewing <a href='misc.php?s=$session[sessionhash]&action=faq'>FAQ</a>";
break;
further down if defines the misc pages, the faqs action being in the middle there....
case 'misc.php':
if ($token1 == 'action=showsmilies' || $token1 == 'action=getsmilies') {
$userinfo[activity] = 'showsmilies';
} else if ($token1 == 'action=showavatars') {
$userinfo[activity] = 'showavatars';
} else if ($token1 == 'action=bbcode') {
$userinfo[activity] = 'bbcode';
} else if ($token1 == 'action=faq') {
$userinfo[activity] = 'faq';
} else if ($token1 == 'action=whoposted') {
$userinfo[activity] = 'whoposted';
$blowup = explode('=', $token2);
$threadid = intval($blowup[1]);
$threadids .= ",$threadid";
$userinfo[threadid] = $threadid;
} else {
$userinfo[activity] = 'index'; // where are they?
}
break;
I have added some of my own custom FAQs pages and that is why I would like to know what pages people are on. Is there some way to do this? I understand about modifying the online.php file if someone can just help me along in going about it. I tried creating a faq6 case (for my FAQs page 6) like this....
} else if ($token1 == 'action=faq&page=6') {
$userinfo[activity] = 'faq6';
with the appropriate case defined up top, but it didn't work. Anything else I can try?
I'm on vb2.3.4. Thanks for any suggestions.
Here's the current code I pulled from the online.php
near the top...
case 'faq':
$userinfo[where] = "Viewing <a href='misc.php?s=$session[sessionhash]&action=faq'>FAQ</a>";
break;
further down if defines the misc pages, the faqs action being in the middle there....
case 'misc.php':
if ($token1 == 'action=showsmilies' || $token1 == 'action=getsmilies') {
$userinfo[activity] = 'showsmilies';
} else if ($token1 == 'action=showavatars') {
$userinfo[activity] = 'showavatars';
} else if ($token1 == 'action=bbcode') {
$userinfo[activity] = 'bbcode';
} else if ($token1 == 'action=faq') {
$userinfo[activity] = 'faq';
} else if ($token1 == 'action=whoposted') {
$userinfo[activity] = 'whoposted';
$blowup = explode('=', $token2);
$threadid = intval($blowup[1]);
$threadids .= ",$threadid";
$userinfo[threadid] = $threadid;
} else {
$userinfo[activity] = 'index'; // where are they?
}
break;
I have added some of my own custom FAQs pages and that is why I would like to know what pages people are on. Is there some way to do this? I understand about modifying the online.php file if someone can just help me along in going about it. I tried creating a faq6 case (for my FAQs page 6) like this....
} else if ($token1 == 'action=faq&page=6') {
$userinfo[activity] = 'faq6';
with the appropriate case defined up top, but it didn't work. Anything else I can try?
I'm on vb2.3.4. Thanks for any suggestions.