Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Cerb's Custom Query Strings hack! (Looks awesome!) Details »»
Cerb's Custom Query Strings hack! (Looks awesome!)
Version: 1.00, by Cerb Cerb is offline
Developer Last Online: Jan 2008 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 08-23-2004 Last Update: Never Installs: 3
 
No support by the author.

Alright, this is really useless but it looks really cool.

First I'll explain what a query string is.

Well a query string is "additional page information" for instance index.php?page=forums&sid=1

Well the query string here is page=forums&sid=1

What this hack allows you to do is to replace this " = " and " &"


Instead of having (using the same example) index.php?page=forums&sid=1, you could have index.php?page:forums,sid:1

Yes, this IS useless, however it looks really cool and professional.

This is pretty long to install. You've got to open all your vB files and change every link, replacing ' = ' with $qs['eq'] and ' & ' with $qs['and']

For instance, replace:

Code:
"online.php?$session[sessionurl]sort=$sortfield&order=$sortorder&pp=$perpage"
with

Code:
"online.php?$session[sessionurl]sort".$qs['eq']."$sortfield".$qs['and']."order".$qs['eq']."$sortorder".$qs['and']."pp".$qs['eq']."$perpage"

Anyways, you understand. This is quite long. I think I'm going to eventually write a small application in C++ to do it for you. Anyways, if you have the time to do it, hope you'll enjoy your custom URL's :-D

Note that you can also use this on ANY php page, not only vB.


Then add this at the top of your global.php file, right after the <?php
PHP Code:
    $qs['eq'] = "="// Change me
    
$qs['and'] = "&amp;";  // Change me

        
$queryAND explode($qs['and'],$_SERVER["QUERY_STRING"]);

        for(
$i=0;$i<sizeof($queryAND);$i++)
        {
            
$queryEQ explode($qs['eq'],$queryAND[$i]);
            
$_GET$queryEQ[0] ] = $queryEQ[1];
        } 

EDIT: Fixed a mistake ^_^

Show Your Support

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

Comments
  #12  
Old 08-25-2004, 11:16 PM
DrkFusion's Avatar
DrkFusion DrkFusion is offline
 
Join Date: Nov 2001
Posts: 1,926
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You know when you look at it, it does look more professional. Like all those news websites makes me tingle inside.

You get an install even though I didn't install it Good hack!
Reply With Quote
  #13  
Old 08-26-2004, 12:22 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The question is... why?
Reply With Quote
  #14  
Old 08-26-2004, 03:49 AM
Cerb Cerb is offline
 
Join Date: Jul 2004
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The answer is... for the hell of it!

It looks more professional and well, I like that :-)
Reply With Quote
  #15  
Old 08-26-2004, 05:13 AM
KW802's Avatar
KW802 KW802 is offline
 
Join Date: Jul 2003
Location: A galaxy far, far away...
Posts: 1,450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me is still scratching his head over this one.
Reply With Quote
  #16  
Old 08-26-2004, 05:31 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cerb
The answer is... for the hell of it!

It looks more professional and well, I like that :-)
You're better off making the "query strings" as you put it more search-engine friendly.
Reply With Quote
  #17  
Old 08-26-2004, 03:46 PM
Tim Wheatley's Avatar
Tim Wheatley Tim Wheatley is offline
 
Join Date: Nov 2001
Location: England
Posts: 489
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Erwin
You're better off making the "query strings" as you put it more search-engine friendly.
Do the original links still work? Otherwise I expect a lot of 404's...
Reply With Quote
  #18  
Old 08-26-2004, 08:06 PM
Cerb Cerb is offline
 
Join Date: Jul 2004
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope heh
Reply With Quote
  #19  
Old 08-26-2004, 10:44 PM
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This deffenitely deserves most interesting hack of the month.
Reply With Quote
  #20  
Old 08-27-2004, 04:04 PM
roundhost roundhost is offline
 
Join Date: Jul 2004
Location: UK
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is brilliant! I love it! Fantastic!

You are a star!

Just what i always wanted!!!

/me wacks himself with a nylon tube and wraps surgical tape around his cracked skull!

Ah, err, WTF!!!???
Reply With Quote
Reply


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 11:35 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
  • Page Generation 0.04522 seconds
  • Memory Usage 2,299KB
  • Queries Executed 24 (?)
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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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