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
  #2  
Old 08-24-2004, 08:43 PM
streamzone streamzone is offline
 
Join Date: Nov 2001
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

funny cool...
I'll install.. hope 2 housrs will be enought
thx for the mastering
Reply With Quote
  #3  
Old 08-24-2004, 08:45 PM
pjdaley pjdaley is offline
 
Join Date: Feb 2004
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

your a very interesting character Cerb. did you know that? lol

try to do some a bit more useful such as:

https://vborg.vbsupport.ru/showthread.php?t=68461


Reply With Quote
  #4  
Old 08-24-2004, 09:05 PM
MrNase MrNase is offline
 
Join Date: May 2003
Location: Germany
Posts: 670
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you have a demo? I just want to see how it could look like
Reply With Quote
  #5  
Old 08-24-2004, 09:16 PM
Cerb Cerb is offline
 
Join Date: Jul 2004
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well MrNase, here's a text demo:

(Link wont work, dont click it)

http://www.bnfreak.com/portal.php?pa...d:20,session:1

You can change the ' = ' and ' & ' from your query strings, this looks very original :-)



pjdaley, I'm (probably tonight) going to release a language hack pretty much like ( I think ) uBB does.

For instance, I've had a Final Fantasy forum which I wanted to be in both french and english.

Well there was this thing you could set in your profile so you could view either french forums only, english forums only, or both :-)
Reply With Quote
  #6  
Old 08-24-2004, 10:17 PM
dndog dndog is offline
 
Join Date: Apr 2004
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hotm! Hotm!

Who's with me?
Reply With Quote
  #7  
Old 08-24-2004, 10:25 PM
Cerb Cerb is offline
 
Join Date: Jul 2004
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well it's just like 5 lines of code haha.

I was on fire when I wrote that though :-|
Reply With Quote
  #8  
Old 08-24-2004, 11:52 PM
pjdaley pjdaley is offline
 
Join Date: Feb 2004
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cerb, so my request is not in none of your interest? :disappointed:
Reply With Quote
  #9  
Old 08-25-2004, 12:16 AM
Cerb Cerb is offline
 
Join Date: Jul 2004
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To tell you the truth, I couldn't do it.

I am not familiar with vB at all.

I've released two hacks until now and they're plain PHP, they don't link to vB in any case.

So you might want to ask another programmer... I'm sorry
Reply With Quote
  #10  
Old 08-25-2004, 12:58 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice thread, welcome to the Borg Cerb
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:45 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.08368 seconds
  • Memory Usage 2,298KB
  • Queries Executed 23 (?)
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
  • (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