vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v1.x (Archive - Closed for Posting) > Add-On Modules & Modifications

 
 
Thread Tools Display Modes
  #21  
Old 05-24-2004, 10:21 AM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,938
Default Re: Add Your Homepage to Your "Who's Online" Locations

works for me, thanks!
  #22  
Old 05-25-2004, 09:50 PM
vonedaddy vonedaddy is offline
Junior Member
 
Join Date: Apr 2004
Posts: 21
Default Re: Add Your Homepage to Your "Who's Online" Locations

Worked GREAT for me thanks!
  #23  
Old 06-11-2004, 04:10 AM
Merjawy Merjawy is offline
Member
 
Join Date: Apr 2004
Posts: 80
Talking Re: Add Your Homepage to Your "Who's Online" Locations

I was about to ask, thnx to search.. this worked fine for me

thanks Brian
  #24  
Old 06-12-2004, 06:10 PM
Merjawy Merjawy is offline
Member
 
Join Date: Apr 2004
Posts: 80
Default Re: Add Your Homepage to Your "Who's Online" Locations

now I have a little problem I haven't really looked into it..

on forum, using /index.php or not

now if a user is on w$w.domian.com/forum/index.php it shows him/her on the forum
but if he/she on w$w.domain.com/forum it will show him/her on homepage instead

the homepage part w$w.domain.com or w$w.domain.com/index.php showing fine

PS.ignore the w$w part

Last edited by Merjawy; 06-12-2004 at 06:16 PM.
  #25  
Old 06-17-2004, 01:07 PM
himerus himerus is offline
Junior Member
 
Join Date: Jun 2004
Location: Steamboat Springs, CO
Posts: 18
Default Re: Add Your Homepage to Your "Who's Online" Locations

I've tried the same, and haven't got it to work...

PHP Code:
case 'home':
            
$userinfo['action'] = "Viewing Homepage";
            
$userinfo['where'] = "<a href=\"home.php?$session[sessionurl]\">$vboptions[hometitle]</a>";
            break;
        case 
'article':
            
$userinfo['action'] = "Viewing Articles Database";
            
$userinfo['where'] = "<a href=\"article.php?$session[sessionurl]\">Articles</a>";
            break; 
I'm trying to add both the homepage, and articles page, but both show up as Unknown Location.... ?????
  #26  
Old 06-30-2004, 11:44 AM
Ashley Ashley is offline
Junior Member
 
Join Date: Feb 2004
Posts: 28
Default Re: Add Your Homepage to Your "Who's Online" Locations

I can't get it to work for me...

This is my home page url, do I need to change something to make that code work?
http://www.simply-baby.net/forum/vba...p?page=welcome
  #27  
Old 09-04-2004, 09:28 PM
BubbleHead BubbleHead is offline
HOTRODBiker.com
 
Join Date: Feb 2004
Location: Bastrop, TX
Posts: 21
Default Re: Add Your Homepage to Your "Who's Online" Locations

I got it to work for me right off the bat, but if I click the link it takes me back to my homepage and adds a "?"... i.e. http://www.hotrodbiker.com/?

Any idea as to how to lose the question mark?
  #28  
Old 09-09-2004, 04:11 PM
iguanairs iguanairs is offline
Senior Member
 
Join Date: Mar 2004
Location: MA
Posts: 116
Default Re: Add Your Homepage to Your "Who's Online" Locations

I just got it to work with my new upload by making a simple change to one line.

case 'home':
$userinfo['action'] = 'Viewing Homepage';
$userinfo['where'] = "<a href=\index.php?$session[sessionurl]\">$vboptions[hometitle]</a>";
break;
__________________
Herp Center | Reptile Forums
  #29  
Old 10-01-2004, 11:14 AM
cartman's Avatar
cartman cartman is offline
lil bastard
 
Join Date: Sep 2004
Posts: 16
Thumbs up Re: Add Your Homepage to Your "Who's Online" Locations

worked a treat - nice mod
__________________
Now with 15% less fat!
  #30  
Old 10-01-2004, 03:44 PM
Frankenberrie's Avatar
Frankenberrie Frankenberrie is offline
Senior Member
 
Join Date: Mar 2004
Location: USA
Posts: 135
Default Re: Add Your Homepage to Your "Who's Online" Locations

I tired all suggestions and still get this:

Unknown Location
/comcentral/index.php
  #31  
Old 10-08-2004, 01:30 AM
MorrisMcD MorrisMcD is offline
Member
 
Join Date: Jul 2004
Posts: 43
Default Re: Add Your Homepage to Your "Who's Online" Locations

-Bump-

Me too
  #32  
Old 10-21-2004, 01:32 AM
indie indie is offline
Senior Member
 
Join Date: Aug 2004
Posts: 169
Default Re: Add Your Homepage to Your "Who's Online" Locations

So what is the correct code?
thanks
  #33  
Old 10-21-2004, 02:26 AM
indie indie is offline
Senior Member
 
Join Date: Aug 2004
Posts: 169
Default Re: Add Your Homepage to Your "Who's Online" Locations

OK i tried this code.
It works but i think something need to be changed for me.

I called my default index page "forum.php", and I named my portal "index.php" ...and now, when members are viewing the porta, it says they are viewing the "Index", when it should say "Homepage".

It only says they are viewing the homepage if the index.php is not in the url. only the domain name.

What can i change??

Thanks
  #34  
Old 10-21-2004, 02:33 AM
indie indie is offline
Senior Member
 
Join Date: Aug 2004
Posts: 169
Default Re: Add Your Homepage to Your "Who's Online" Locations

Brian's code works...
try this!!!!!!!!!

The problem that's causing it is your links, not the code in this hack...

the links you created to your homepage portal, ie: yourdomain.com/index.php or whatever
CHANGE to the <a href="$vboptions[homeurl]"> code in your header etc...

worked for me!

Last edited by indie; 10-21-2004 at 03:39 AM.
  #35  
Old 10-22-2004, 11:17 PM
MorrisMcD MorrisMcD is offline
Member
 
Join Date: Jul 2004
Posts: 43
Default Re: Add Your Homepage to Your "Who's Online" Locations

Quote:
Originally Posted by indie
Brian's code works...
try this!!!!!!!!!

The problem that's causing it is your links, not the code in this hack...

the links you created to your homepage portal, ie: yourdomain.com/index.php or whatever
CHANGE to the <a href="$vboptions[homeurl]"> code in your header etc...

worked for me!
I know I am a dumbass for asking this, but can you explain what you just said.. I think you are saying change it in the admincp where forum home is designated maybe? But I am not sure.. Can you explain what you mean???

Thanks
  #36  
Old 10-28-2004, 05:32 AM
indie indie is offline
Senior Member
 
Join Date: Aug 2004
Posts: 169
Default Re: Add Your Homepage to Your "Who's Online" Locations

No, just change it in the header where you link to the homepage..... in your logo, and in the text link. Then, you are set.
  #37  
Old 11-20-2004, 08:24 AM
onetwothree onetwothree is offline
Junior Member
 
Join Date: Nov 2004
Posts: 1
Default Re: Add Your Homepage to Your "Who's Online" Locations

Let say my forum is at www.mysite.com/forum and I added a new page www.mysite.com/forum/subdir/newpage.php. When a user is on newpage.php, the Who's Online would always shows that he is "Viewing Index". How would I make it so that Who's Online would show that he is "Viewing New Page"?

I tried the above mods but it only works if newpage.php is in the forum directory, not a subdirectory.

Any help is greately appreciated and thanks in advance!
  #38  
Old 11-21-2004, 09:45 AM
MorrisMcD MorrisMcD is offline
Member
 
Join Date: Jul 2004
Posts: 43
Default Re: Add Your Homepage to Your "Who's Online" Locations

The wierdest thing happened.. Mine wasnt working after trying all the above.. So I gave up... Yesterday I noticed it IS working now? I may have restarted my server sometime since then.. Maybe restarting a service will get it to work????
  #39  
Old 12-17-2004, 07:16 AM
JohnBee's Avatar
JohnBee JohnBee is offline
Sitemaster
 
Join Date: Oct 2004
Posts: 177
Default Re: Add Your Homepage to Your "Who's Online" Locations

I have created a newspage as well using vBA.

so:
http://www.mysite/www/index.php?page=newspage

is my path how could I add this to my who's online also?
I would like people to see when users are viewing other
vBA generated pages if that is possible.

Thanks in advance
  #40  
Old 05-19-2005, 05:50 PM
dsboyce8624 dsboyce8624 is offline
Member
 
Join Date: May 2005
Posts: 54
Default Re: Add Your Homepage to Your "Who's Online" Locations

Quote:
Originally Posted by Brian
This simple mod will allow you to add your homepage to the "Who's Online" locations on your forum.

First, open your includes/functions_online.php file and look for:
PHP Code:
        case 'index':
            
$userinfo['action'] = $vbphrase['viewing_index'];
            
$userinfo['where'] = "<a href=\"$vboptions[forumhome].php?$session[sessionurl]\">$vboptions[bbtitle]</a>";
            break; 
Right below that Add:
PHP Code:
        case 'home':
            
$userinfo['action'] = 'Viewing Homepage';
            
$userinfo['where'] = "<a href=\"$vboptions[homeurl]?$session[sessionurl]\">$vboptions[hometitle]</a>";
            break; 
Next, look for:
PHP Code:
    case 'cron.php'// this shouldn't occur but just to be sane 
Replace that with:
PHP Code:
    case 'cron.php'// this shouldn't occur but just to be sane
        
$userinfo['activity'] = 'home';
        break; 
Upload your includes/functions_online.php file and you're done.
Okay, can sombody help me use this with different file names. I'm happy to edit whatever else I need to, just show me how.

All of my files are in the root. Forum home is /index.php and vBa home is cmps_index.php

Thanks,

Dennis
__________________
Dennis Boyce
Damn That Sucks! Administrator
Damn That Sucks!
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:19 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.