![]() |
Question about [HOW TO - vB4] Create your own vBulletin page
Quote:
Can i use this code for adding a none Vbulletin page on 4.0? case 'href="www.test.com' Something like that? Thanks |
Follow the hook_location "online_location_process" and find out what the switch is doing. It's looking at the location your user is at. And, that location is grabbed from the location field in the session table. If your users location is in there, then you can use it. If your user is somewhere where the location isn't entered into the session table, they you can't use it.
|
Quote:
Where would i search "online_location_process" or "hook_location" in the adminCP Would it be the "Plugin System"? Thanks |
Doesn't your text editor search files? I just plug in a word and ask it to do a search in my uploads directory. I couldn't code if I couldn't go look up hook locations (how else do you find what variables are available for use?). This particular hook is in the functions_online.php file.
|
Quote:
and you can search Within the files in your FTP? Edit wow it does lol Thanks i didnt even know it could do this Thank you ! |
I use BBEdit, but it's for Macs.
|
All right hours trying (thought i could do it without asking your help again but here i am)
This is what i have done and where i am also stuck I made this php script PHP Code:
I than added Code:
<iframe src="http://www.myanimeisland.com/extra_online_users.php" scrolling="no" allowtransparency="true" frameborder="0" width="0" height="0"></iframe> Than added these two in the plugin manager online_location_proces PHP Code:
PHP Code:
Unknown Location /extra_online_users.php I just cant seem to get it to say "Viewing MAI-Wallpapers" and point to the URL Anyone any ideas? Thanks alot:D |
I don't think putting it in an iframe is going to work with this. Have you tried going to the page and then checking your location in the session table to see what it says? Like I said above, the location is in there and so you need to make sure it is correct in there or you can't use it.
|
Quote:
Yea ive been to the page and it says Unknown Location /extra_online_users.php in the whos-online You say iframe might not work how would you add it if you was doing this? Thanks Lynne your the best :up: |
Try changing these lines to not have the .php:
PHP Code:
|
1 Attachment(s)
Quote:
I tryed without the .php same problem tho here is a screeny of the "whos online" Attachment 117244 Thanks |
Have you looked to see exactly what is in the session table at all? and those plugins are active?
|
Quote:
Quote:
|
I mean, have you actually looked at the session table in the database and seen what is in there - you need to see what information is in there. Also, is your custom page in the same directory as the vbulletin files? This won't work if it isn't.
|
Quote:
As for the database no i stay away from them they scare me :/ if this means i have to mess with SQL i guess ill have to forget the idea I saw you tut and the other guys "whos online idea" and tryed to get it to work on 4.0 Thanks |
Wait a sec... why did you make this line like this:
PHP Code:
It's supposed to just be: PHP Code:
|
Quote:
An i trying without == 'extra_online_users Same results |
So exactly what is your code in those two plugins right now?
|
Quote:
Product= vBulletin Hook Location = online_location_process Title = online_location_process PHP Code:
Product= vBulletin Hook Location = online_location_unknown Title = online_location_unknown PHP Code:
This is the two codes from the plugins Thanks |
Whoops.... when I told you to change that one line and remove the .php from it, I meant the other one, not both. Sorry about that. For the first plugin, you need to have that in the case line:
PHP Code:
|
Quote:
Anyways, Good news it now shows Viewing MAI-Wallpapers MAI-Wallpapers But the Url still showing /extra_online_users.php? Soo close hehe |
Well ive tryed and tryed i still cant get the Link to work
Anyone got any more ideas? Thanks |
Anyone know anymore why the last bit wont work >? so close to give up :D
Thanks |
Bump :(
|
If you want, you can PM me your XML and your template. I'll see what i can do.
|
Quote:
Where is no XML mate or template or i dont understand what you mean :confused: p.s lmfao at your avy i remmber this dude from some time ago me and a made made a youtube account after he deleted his one :) so he is never lost |
Download your plugin for the WOL as an xml...that's what i meant.
|
Quote:
There is my two plugins mate :up: |
Try this for second one?
PHP Code:
|
Quote:
Parse error: syntax error, unexpected ')' in /home/myanimeisland/public_html/includes/functions_online.php(1201) : eval()'d code on line 59 Parse error: syntax error, unexpected ')' in /home/myanimeisland/public_html/includes/functions_online.php(1201) : eval()'d code on line 59 Parse error: syntax error, unexpected ')' in /home/myanimeisland/public_html/includes/functions_online.php(1201) : eval()'d code on line 59 Parse error: syntax error, unexpected ')' in /home/myanimeisland/public_html/includes/functions_online.php(1201) : eval()'d code on line 59 Parse error: syntax error, unexpected ')' in /home/myanimeisland/public_html/includes/functions_online.php(1201) : eval()'d code on line 59 etc |
Okay here's the online_location_process
PHP Code:
PHP Code:
Replace your old code. |
Quote:
It shows right But the URL points to http://www.myanimeisland.com/extra_whos_online.php? |
Sorry
use this PHP Code:
PHP Code:
|
Quote:
http://www.myanimeisland.com/extra_online_users.php not the page there viewing and aye its changed all my over links to "Unknown Location" |
I'm sorry i would help more but yet i don't have admincp access and would mess with the code more but i have other things to do.
Delete the plugin's that you just made. Also your page is blank. |
Quote:
all i am trying to do is get my None Vbulletin pages to show in the Whosonline in vbulletin when a user is on them maybe making that extra_online_users.php was a bad idea (there is nothing on it should be blank) Thanks anyway :up: |
What is the URL to your wallpaper page
|
Quote:
But here is one more i also need to show http://www.myanimeisland.com/ miku <3 |
Right now, I'm trying to figure out if it can detect something else rather than file since you are using WP page URLs right?
|
Quote:
|
All times are GMT. The time now is 05:36 AM. |
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:
|