View Full Version : "Refresh to" code for admin/options.php and others
GoTTi
05-05-2003, 10:00 PM
Ok, after looking threw all of the files, I kinda wondered why when inside the AdminCP that when you update a vBulletin Option, the page doesnt refresh back into the options page, but every other option on the left bar always refreshes back after you update...so I found the code in the files and here it is.
Boofo
05-06-2003, 09:29 AM
Thank you. This makes more sense than the old way. Just curious. What is the 1 for in the code you added?
grog6
05-06-2003, 09:48 AM
@ Boofo : The 1 is the redirection time ;)
It will redirect you 1 second after, you can choose an other number such as 5 for exemple, and so you'll see
Thanks for updating the options.
during 5 seconds before being redirected
Boofo
05-06-2003, 10:03 AM
Today at 05:48 AM grog6 said this in Post #3 (https://vborg.vbsupport.ru/showthread.php?postid=392131#post392131)
@ Boofo : The 1 is the redirection time ;)
It will redirect you 1 second after, you can choose an other number such as 5 for exemple, and so you'll see
Thanks for updating the options.
during 5 seconds before being redirected
Do I need to change that to 0 or just take it out?
grog6
05-06-2003, 10:10 AM
@ Boofo : What for ?
Boofo
05-06-2003, 10:37 AM
Because it already takes it forever to redirect back to the page or to open it up in the first place. If I can shave any more time off of it, I'd like to.
Jacko
05-06-2003, 12:52 PM
wont 0 cancel the refresh????
and its probably your server or DB thats slow?! or connection?
Boofo
05-06-2003, 01:02 PM
0 should just make the refresh not take 1 second is all. Everything else on my site is fast. It is just whenever I go to the vb options, it takes a long time to load (ok, 5 seconds...but that is a long time when everything else runs so fast. ;))
grog6
05-06-2003, 01:02 PM
0 doesn't cancel the refresh, it just will show you the
Thanks for updating the options. during a really short moment before to be redirected ;)
If you want to remove the redirection, just remove the cpredirect() ;)
Boofo
05-06-2003, 01:03 PM
Today at 09:02 AM grog6 said this in Post #9 (https://vborg.vbsupport.ru/showthread.php?postid=392201#post392201)
0 doesn't cancel the refresh, it just will show you the
Thanks for updating the options. during a really short moment before to be redirected ;)
If you want to remove the redirection, just remove the cpredirect() ;)
I want the redirection back to the vb options. I just don't want any extra time added to it. ;)
Just change it to 0 to have no time.
filburt1
05-06-2003, 03:32 PM
Read the submission rules; you must submit all hacks as attachments. Please attach this to your first post or the hack risks deletion.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.