![]() |
Cerb's Custom Query Strings hack! (Looks awesome!)
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" 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:
EDIT: Fixed a mistake ^_^ |
funny :) cool...
I'll install.. hope 2 housrs will be enought ;) thx for the mastering |
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 ;) |
Do you have a demo? I just want to see how it could look like ;)
|
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 :-) |
Hotm! Hotm!
Who's with me? :rolleyes: |
Well it's just like 5 lines of code haha.
I was on fire when I wrote that though :-| |
cerb, so my request is not in none of your interest? :rolleyes: :disappointed:
|
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 |
nice thread, welcome to the Borg Cerb :)
|
All times are GMT. The time now is 12:32 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|