![]() |
Unknown Location
Description:
This modification will let you define a name for your external files replacing the Unknown Location message, usually in Who's Online & Members Profile pages. Tested With:
Upload the product & configure the settings for the product Unknown Location. Notes: The location of your files are relative to you web root. With multiple queries, using the standalone file simultaneously, you must ensure that the standalone file comes first: /file.php:My File /file.php?do=hello:My Hello:do=hello /file.php?do=hello&do=goodbye:My Goodbye:do=goodbye The change is made in the "online_location_unknown" hook. If your page doesn't call this hook, nothing will be changed. To know wich hooks are called, run your board with debug mode on. How to Use: File Name:Page Name:Optional Parameter for Query String /portal.php:Portal /forum/misc.php:Misc Page /forum/misc.php?do=hello:Hello:do=hello (using 3rd parameter for misc.php?do=hello) /forum/misc.php?do=thanks&do=something:Thanks:do=thanks (using 3rd parameter for misc.php?do=thanks) Please Mark as Installed! |
Thanks for this.
Regards Jason :) |
nice mod clicks install
|
Perfect THANKS !
|
cool...installed
|
Very nice, i know there were quite some people looking for such a hack.
Good job ! |
Awesome hack. *nominates*
|
Excellent. I remember seeing this before but this is so much better.
|
Great idea for a hack! :D
|
For some reason this isn't working for me.
Code:
/index.php?page=downloads:Downloads |
Brent, that's because I remove all query strings from the file. I can define an option for this.
|
Very nice, great :)
|
Please add a setting for that query strings. Thanks! :)
Maybe two textareas, one where the query string is removed and one where the query string remains. |
Hi,
Added a 3rd optional parameter where we can define a query string: /index.php?page=downloads will be set as -> /index.php:Downloads:page=downloads @Brent: I hope this solve your problem! |
Thanks, I think inferno has done this with his external modification, but this will be useful if I dont end up getting that. thanks.
|
I have this:
domai.com/irc_stats/index.php (custom vbulletin page the code bellow); PHP Code:
Code:
irc_stats/index.php:IRC STATS I have other page mydomain.com/forum/map.php and in plugin: Code:
/forum/map.php:The Map page |
Hi,
Try /irc_stats/index.php:IRC STATS. If that doesn't work, what is the path that you see in your Members Profile: https://vborg.vbsupport.ru/attachmen...8&d=1201980529 |
Entrys:
Quote:
Quote:
My board: domain.com/forum/index.php My irc_stats: domain.com/irc_stats/index.php |
Hi,
If domain.com/forum/index.php is you default index for you board, the title will not be changed. Where can I get the stats mod you are using to test myself? |
This is what i am looking for. Thank you for sharing.
|
Quote:
/irc_stats/index.php PHP Code:
template 'irc_stats' HTML Code:
$stylevar[htmldoctype] |
Hi,
I've tested your page and the problem is since (somehow) it gets the default board name, and this mod is executed inside the online_location_unknown, this hook is never called. This is not a problem of this modification. The problem might be with the path's of your file: Code:
define('patch_crazy', (($getcwd = getcwd()) ? $getcwd : '.')); Code:
require_once('./global.php'); and it works! i have two external files similar to your's in the same place as vB files and these are working. |
Yeah, I know, but I need to place this file in main domain.
If not is possible, ok no problem. Thank you, very useful mod. |
@testebr: You're Welcome!
|
Hello again nfn,
My problem was solved :) The solution is simple. First I created this new plugin at hook online_location_preprocess: PHP Code:
And in options of your plugin I used this entry: Code:
/irc_stats/:title Bye |
When I use this:
/forums/info.php:Site Map:do=sitemap It shows the link like it should but when you click on the link, it only clicks to /forums/info.php without the do=sitemap. |
/index.php?act=Arcade&do=newscore:Saving New Score
doesn't work. |
Quote:
|
Quote:
In the XML file: Find: Code:
$userinfo['action'] = $vbphrase[ul_viewing]. ' <a href="' .$ul_file[0]. '" title="' .$ul_file[1]. '">' .$ul_file[1]. '</a>'; Code:
$userinfo['action'] = $vbphrase[ul_viewing]. ' <a href="' .$ul_file[0].'?'.$ul_file[2]. '" title="' .$ul_file[1]. '">' .$ul_file[1]. '</a>'; |
Hi,
The fix you provide will do it ONLY if you have one query. I just updated the modification with a minor fix and support for multiple queries. Note that now you will need to place the full page (file & query) in the first parameter as explained in the first post. |
You're welcome.
|
You need to add the code I gave you back in the link. The link is only showing the file name and not the do=anything.
|
Got this working for all but 1 link:
Tried: ../photos/showphoto.php/:Gallery But still shows as unknownm location. |
add your forums directory to tha beginning of it:
/forums/photos/showphoto.php:Gallery |
Why would I add forums to the front when the photos directory is in the root folder (mouse over provided link)?
I got this to work for PhotPost that also resides in the root folder but that uses a query string. |
Well, you didn't say it wasn't in the forums directory, now, did you?
Try adding a slash as the end of the link. |
Hi,
In the Who's Online what is the path for Unknown Location? |
Nope this did not work either...
../photos/showphoto.php/:Gallery |
Did you try:
/photos/showphoto.php:Gallery or ./photos/showphoto.php:Gallery |
Just went back and tried those iterations and nope.
This works: ../photos/showgallery.php?:Gallery ../classifieds/contact.php?:Classifieds ../links/showlink.php?:Links ../links/browselinks.php?:Links This wont: ../classifieds/showproduct.php:Classifieds ../photos/showphoto.php:Gallery ./classifieds/showproduct.php:Classifieds ./photos/showphoto.php:Gallery /classifieds/showproduct.php:Classifieds /photos/showphoto.php:Gallery The difference is the ones that do not work are URLs (as shown on WOL) /classifieds/showproduct.php/product/3/cat/all /photos/showphoto.php/photo/69/cat/500/ppuser/2 Hope this helps. |
All times are GMT. The time now is 05:52 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:
|