![]() |
|
#1
|
||||
|
||||
|
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:
PHP Code:
PHP Code:
PHP Code:
|
|
#2
|
||||
|
||||
|
Mmm helpfull for me
now i can modify vBXirc to do the same
|
|
#3
|
|||
|
|||
|
Quote:
Big thanx Brian !!!
|
|
#4
|
|||
|
|||
|
Nice addon, it works a treat
|
|
#5
|
||||
|
||||
|
hmm...i replace adv_index.php with index.php and the forum index is now index2.php. When a user is in FORUM INDEX (index2.php) i get this :
Unknown Location /ro-hattrick/vb/index2.php Do you know ho can i modify this to write Forum Index ? P.S. Sorry for posting here...but i don't want to create another thread. |
|
#6
|
|||
|
|||
|
works thanks!
|
|
#7
|
|||
|
|||
|
I'm having some difficulty getting this to work. It's not breaking anything, so no major worries, but users are still showing up as "Unknown Location".
Does it make a difference that my vBa homepage is called "news.php"? For those who changed this to cover over pages, too (I have a links hack and vBXIRC installed), would you be so kind as to show me how you did it? I don't understand the phrasing system well enough to be able to tweak it. Thanks! |
|
#8
|
|||
|
|||
|
I never got it to work it just shows "unknown location" in bold. I do have my vBA page named as home.php which may be a problem but I'm not 100% sure it could be.
|
|
#9
|
|||
|
|||
|
Yeah, I'm still having that problem. It's not a major issue, though - I know what the displayed URL means.
|
|
#10
|
|||
|
|||
|
Is Not working for me
I have adv_index as forum home page, and users there show the correct location in Who's Online. But user listing all the forums (index.php) are still showed as "Unknown Location" can you give a hand ? |
|
#11
|
|||
|
|||
|
Works great. Installed w/o difficulty on my vB 3.0.0 board.
Thanks!
|
|
#12
|
||||
|
||||
|
Thanks for this.
|
|
#13
|
||||
|
||||
|
Hi Brian,
I set this PHP Code:
PHP Code:
Can you give me a hint please? |
|
#14
|
|||
|
|||
|
Quote:
PHP Code:
http://www.bowlie.com/ - vBadvanced http://www.bowlie.com/forum/ - vBulletin The word "forum" that I search for is the directory name for the forum, by checking whether it exists in the users location (as per session db table) I can differentiate between the vbadvanced homepage and the forum index. Note that this would also solve my other problem of how to recognise other pages such as the hosting page: http://www.bowlie.com/hosting/ As I could just put a new switch within the 'false' block in the 'if' statement to check for the existence of other folder names. Might be useful to someone
|
|
#15
|
||||
|
||||
|
ThanX!
Works 100% cLord
|
|
#16
|
||||
|
||||
|
Well...
It worked for a couple of minutes and then all of a sudden it stopped and I have the same problem as the other people in this thread! ![]() Please help, cLord |
|
#17
|
||||
|
||||
|
I always get this, no matter what I do:
Unknown Location /forum/adv_index.php? At the moment I am using this code: case 'adv_index': $userinfo['action'] = 'Viewing Portal'; $userinfo['where'] = "<a href=\"$vboptions[homeurl]?adv_index.php\">CFN Portal Page</a>"; break; Can someone please tell me how I can get rid of this and exchange this that 'Portal Page' is displayed? |
|
#18
|
|||
|
|||
|
Hello,
I believe I located what everyones problem is,however,I could be mistaken. Initially when I first installed this,I too had temporary and occasional success with it reading everything correctly,but I was also receiving the "unknown" as well. Today,I reinstalled this. This time however,I did something different. I open my "includes/functions_online.PHP file with word pad,and made the necessary changes using cut and paste. (I am lazy!) I DID NOT UPLOAD IT YET! I then REOPENED it and looked for the code again. Well the cut and paste did not line up with the existing code and added a space under the line as well. I manually aligned everything so it matched the existing code,and removed the space after the "cron" change. I then installed it. I haven't received the unknown location error since. This may be the same problem everyone else is having. Take a look! If i knew how to write the PHP in those blocks like all the advanced PHP writers do,I would have added some examples. Hope this description helps everyone!
__________________
Herp Center | Reptile Forums |
|
#19
|
||||
|
||||
|
Hi buro9,
To display other folders (like the ''hosting" one you did) on the who is online page, I modified this code PHP Code:
PHP Code:
case 'ABCD': $userinfo['action'] = $vbphrase['ABCD']; under the $userinfo['activity'] switch (and added the necessary phrase of course). But I still couldn't get it work. It still shows me the 'home' page when somebody is in the ABCD. Where am I wrong? |
|
#20
|
|||
|
|||
|
I'm getting the following as well:
Unknown Location /forum/forum_index.php? I've tried tweaking it but I don't know php at all. Kinda lost on this one, heheh. |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|