Version: 1.0.2, by nfn
Developer Last Online: May 2012
Category: Mini Mods -
Version: 3.7.5
Rating:
Released: 02-01-2008
Last Update: 02-25-2008
Installs: 227
Uses Plugins
Translations
No support by the author.
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:
vBulletin 3.6.8
vBulletin 3.7.0 Beta 4
Changes:
[v1.0.2] fix a minor bug and support for multiple queries.
[v1.0.1] added a 3rd optional parameter to identify the page with a query string.
[v1.0.0] first release.
Installation & Upgrade Instructions:
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:
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!
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
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?
No stats mod, this is a custom page made by me. But you can test with this example:
/irc_stats/index.php
PHP Code:
<?php
// ######################## SET PHP ENVIRONMENT ########################### error_reporting(E_ALL & ~E_NOTICE);
// ##################### DEFINE IMPORTANT CONSTANTS ####################### define('THIS_SCRIPT', 'irc_stats');
// #################### PRE-CACHE TEMPLATES AND DATA ###################### // get special phrase groups $phrasegroups = array( );
// get special data templates from the datastore $specialtemplates = array( );
// pre-cache templates used by all actions $globaltemplates = array( 'irc_stats', );
// pre-cache templates used by specific actions $actiontemplates = array();
// ########################## REQUIRE BACK-END ############################ //require_once('./global.php'); // only if use in same board folder
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:
First I created this new plugin at hook online_location_preprocess:
PHP Code:
if ($loc == '/irc_stats/') { $filename = 'irc_stats.php'; }
Now, the hook online_location_unknown will be called with success because the $filename irc_stats.php is not in default list of filenames like you can see in file includes/functions_online.php.
And in options of your plugin I used this entry:
Code:
/irc_stats/:title
Maybe you can add some solution in your plugin like my idea.