vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Remove ALL Redirects, No Bugs, All Browsers (https://vborg.vbsupport.ru/showthread.php?t=53762)

TheComputerGuy 06-11-2003 06:58 PM

good job, I like it alot!

Parker Clack 06-12-2003 03:29 AM

Nomb:

It is working like a charm.

Now if someone could just ocme up with a new search function so the search function doesn't drag down the site.

Thanks for the wonderful hack.

Parker

Erwin 06-12-2003 03:35 AM

Quote:

Today at 02:29 PM Parker Clack said this in Post #42
Now if someone could just ocme up with a new search function so the search function doesn't drag down the site.

Check out the hack in the Beta Hacks forum that uses native MySQL search to do vB searches, saving you lots of server load, as well as removing the need for searchindex. :)

bloodcult 06-14-2003 02:24 PM

i have the same problem as dslteam...
i installed on 2.3.0 and the popupnotification is not working...

i will try to reproduce the error... but i think... the redirection has nothing to do with javascript vom popup?

bloodcult 06-14-2003 03:20 PM

sorry 4 post... comment out, comment in and it works?!

jamoss 06-15-2003 02:15 AM

Got it! Thanks.

For the PM redirects, edit private.php

Find this line:

Quote:

eval("standardredirect(\"".gettemplate("redirect_p mthanks")."\",\"private.php?s=$session[sessionhash]\");");
Comment it out and put this one after it:

Quote:

HEADER("LOCATION: private.php?s=$session[sessionhash]");

Erwin 06-15-2003 04:24 AM

You don't need to edit the private.php to get rid of the redirects - the functions code will fix it.

Also, the PM popup is NOT affected by this hack. It has been working on my private forums for over a year, and PM popup works without problems.

Opie 08-04-2003 04:43 AM

anyone see what this guy posted here:

https://vborg.vbsupport.ru/showthrea...468#post394468

faster and easier edit. Works great on 2.3.0, read my post under his too.

PurpleCow 08-04-2003 05:12 AM

Besides This benefit :

Quote:

it really does seem to increase speed on the boards, or at least give that impression.
What other benefit this hack offers when installed ??

I'd be interested to know more before installing it.

Thank you

Nomb 08-04-2003 05:29 AM

Quote:

Yesterday at 11:43 PM Opie said this in Post #48
anyone see what this guy posted here:

https://vborg.vbsupport.ru/showthrea...468#post394468

faster and easier edit. Works great on 2.3.0, read my post under his too.

That's exactly what this hack is. Except there's an extra portion so you are redirected to your own post after making a reply.

Although, after thinking about this I need to write my own little goto function similar to goto=newpost so that it takes you to the last post made by yourself. Because on busy boards things get tricky and you end up in different places if others have made replies while you were typing yours.

No time now, maybe erwin has done this, and maybe vB 3 does this as well, dunno, and haven?t looked.

Opie 08-04-2003 07:50 AM

Oh cool. I thought I downloaded this hack before for some reason.

drumsy 08-13-2003 12:10 AM

How do I make this 2.3.2 compliant?

Floris 08-13-2003 05:42 PM

This hack doesn't work on 2.3.2 - it does post the threads and new replies, but it doesn't redirect. It gives a invalid thread id or forumid error. It is the header part in functions.php that is wrong. (maybe $ url changed)

silvershad0w 08-15-2003 05:37 AM

When I upgraded to 2.3.2, I was surprised to find this didn't work any more. I decided than rather mess with a hack, I would try this. I like the output, it is slightly slower, but faster than w/ redirects. Plus is is super easy, even for a non-coder like me :)

Changed standardredirect template:
Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><title>$pagetitle</title>
<meta http-equiv="Refresh" content="0 ; URL=$url">
$headinclude
</head>
<body>
<!--  <br><br>

<table width="100%" border="0" cellspacing="0" cellpadding="0" height="95%" align="center">
<tr align="center" valign="middle">
        <td>
        <table border="0" cellspacing="1" cellpadding="10" bgcolor="#0A293E" width="70%">
        <tr>
                <td bgcolor="#0E3652" align="center">
                <p> <normalfont><b>$errormessage</b> <br><br> </normalfont>
               
                <smallfont> <a href="$url">Click here if you do not want to wait any longer<br>
                (or if your browser does not automatically forward you)</a> </smallfont> </p></td>
        </tr>
        </table>
        </td>
</tr>
</table> -->

</body>
</html>


Alien 08-16-2003 10:50 PM

I hope this is updated, otherwise I'll just use the others I suppose. :)

Definatly had to uninstall it after 2.3.2 upgrade.

Floris 08-18-2003 12:55 PM

mist, firefly and I had a short look at it and they came up with:

Quote:

header ("Location: $bburl/".str_replace("&amp;","&",$url));
This worked, but unfortn. when someone is trying to login, they are redirected to a page with the forum//forum/index.php?s=sessionhashhere which ofcourse, results in a 404.

Some other 404 errors were reported too, so - this isn't bullet proof.

Maybe someone understands how to make a nice little fix :)

Dean C 08-18-2003 01:02 PM

PHP Code:

if($bbuserinfo['userid'] != 0)
{
       
header ("Location: $bburl/".str_replace("&","&",$url));


?

Floris 08-18-2003 01:06 PM

lets try

Dean C 08-18-2003 01:11 PM

Try this:

PHP Code:

if($bbuserinfo['userid'] != 0

       
header ("Location: ".str_replace("&","&",$url)); 



Floris 08-18-2003 01:21 PM

thaz a no go :)

Dean C 08-18-2003 01:22 PM

Actually try this:

PHP Code:

if($bbuserinfo['userid'] != 0

       
header ("Location: $bburl/".str_replace("&","&",$url)); 
} else {
if (
preg_match("/^.*\/member\.php$/"$_SERVER['PHP_SELF']))
{
       
header ("Location: /".str_replace("&","&",$url));
}



DeadGaze 08-20-2003 04:29 AM

very nice and will come in handy indeed

Alien 08-27-2003 06:17 AM

Did the above work? I'd like to re-add this to my site since the 2.3.2 upgrade. :)

N FUL FX 09-01-2003 12:55 PM

Ditto.

father max 09-01-2003 06:26 PM

beautiful...thank you!

: )

drumsy 09-09-2003 04:58 PM

Does anyone know what to do to make this 2.3.2 compatible?

N FUL FX 09-09-2003 08:21 PM

Yes please!!! Seems like no one is responding anymore. I need it to work for 2.3.2 as well.

gsk8 09-12-2003 01:56 PM

Bump-i-ty Bump. I'm waiting too :)

legendarysk8er 09-16-2003 06:43 PM

Yes, I need it for 2.3.2....

Nitesh 09-19-2003 11:02 AM

Any luck on getting this to work on 2.3.2?

Nomb 09-26-2003 07:06 PM

For version 2.3.2:

Using the instructions in the original hack replace this:

PHP Code:

header ("Location: $url"); 

with this

PHP Code:

header ("Location: ".str_replace("&amp;","&",$url)); 


PAINTBALLM 10-07-2003 09:00 AM

Quote:

Originally Posted by matthepepe
works great, that was a great idea on how this one functions.

yay its matt, haahaaha....

Installed! Props to you my friend. Keep it up!

magnus 11-13-2003 11:03 AM

I'm having the same problem as someone else mentioned, lastpost isn't taking the user to the last post, instead, it's taking them to the last page and making them scroll down to find the latest post. I've been getting numerous gripes about it, heh.

deaconxgp 01-01-2004 02:52 AM

same here magnus


All times are GMT. The time now is 04:17 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.01382 seconds
  • Memory Usage 1,799KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (5)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (34)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete