Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
Unknown Location Details »»
Unknown Location
Version: 1.0.2, by nfn nfn is offline
Developer Last Online: May 2012 Show Printable Version Email this Page

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:

/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!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 02-03-2008, 03:47 PM
nfn nfn is offline
 
Join Date: Feb 2007
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Brent, that's because I remove all query strings from the file. I can define an option for this.
Reply With Quote
  #13  
Old 02-03-2008, 03:53 PM
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Location: France
Posts: 1,513
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice, great
Reply With Quote
  #14  
Old 02-03-2008, 05:37 PM
MrNase MrNase is offline
 
Join Date: May 2003
Location: Germany
Posts: 670
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #15  
Old 02-03-2008, 09:44 PM
nfn nfn is offline
 
Join Date: Feb 2007
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

Added a 3rd optional parameter where we can define a query string:
/index.php?page=downloads will be set as -> /index.phpownloadsage=downloads

@Brent: I hope this solve your problem!
Reply With Quote
  #16  
Old 02-04-2008, 08:28 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, I think inferno has done this with his external modification, but this will be useful if I dont end up getting that. thanks.
Reply With Quote
  #17  
Old 02-06-2008, 06:28 PM
testebr testebr is offline
 
Join Date: Jan 2004
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have this:

domai.com/irc_stats/index.php (custom vbulletin page the code bellow);

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('threadmanage', 'posting', 'postbit');

// 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 custom page is in default board folder

define('patch_crazy', (($getcwd getcwd()) ? $getcwd '.'));

chdir("/home/myuser/mydomain.com/forum");
require_once(
'./global.php');
chdir(patch_crazy);

...
.....
........
And in plugin I use this:

Code:
irc_stats/index.php:IRC STATS
But, still showing 'main board page'. How to fix it?

I have other page mydomain.com/forum/map.php

and in plugin:

Code:
/forum/map.php:The Map page
Work fine.
Reply With Quote
  #18  
Old 02-06-2008, 10:16 PM
nfn nfn is offline
 
Join Date: Feb 2007
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

Try /irc_stats/index.php:IRC STATS.
If that doesn't work, what is the path that you see in your Members Profile:

Reply With Quote
  #19  
Old 02-08-2008, 03:37 AM
testebr testebr is offline
 
Join Date: Jan 2004
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Entrys:

Quote:
/irc_stats/index.php:IRC STATS
irc_stats/index.php:IRC STATS
Result:

Quote:
Viewing Index my_board_title_here
The title with link to board index (/forum/index.php).

My board: domain.com/forum/index.php
My irc_stats: domain.com/irc_stats/index.php
Reply With Quote
  #20  
Old 02-08-2008, 07:34 AM
nfn nfn is offline
 
Join Date: Feb 2007
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #21  
Old 02-08-2008, 08:40 AM
jerrygad jerrygad is offline
 
Join Date: Sep 2006
Location: In Front Of My PC!
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is what i am looking for. Thank you for sharing.
Reply With Quote
Reply

Thread Tools

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. The time now is 03:03 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
  • Page Generation 0.07388 seconds
  • Memory Usage 2,304KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete