Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 84
2 members and 82 guests
foo7tjtdallergp, health46ev26
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
» .:.

Go Back   Nukemods Forum > nukemods releases > Other "stuff"

Reply
 
LinkBack Thread Tools Display Modes
[FIX] Wrong url after search for "redirect"
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 81
Join Date: Oct 2002
Location: Netherlands
[FIX] Wrong url after search for "redirect" - 07-06-2003, 05:01 PM

This "bug" isn't only in the new port but also in the phpbb 2.1, I found it by accident but it is easy to "fix" , it isn't a pretty fix but it works. You can try it on any intergrated phpbb board and you will get the same result. When you search for "redirect" you will all the topics or posts (depends on what you have selected) all the results will bring you (when you click on one of them) to http://www.yourdomain.com/viewtopic?...light=redirect (i took the example the result of http:.//www.nukefixes.com). All boards are effected by this (execpt the one on http://www.portedmods.com). To fix it open modules/Forums/search.php and search for the code :

Code:
$forum_url = append_sid("viewforum.$phpEx?" . POST_FORUM_URL . '=' . $searchset[$i]['forum_id']); 
         $topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . '=' . $searchset[$i]['topic_id'] . "&highlight=$highlight_active"); 
         $post_url = append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $searchset[$i]['post_id'] . "&highlight=$highlight_active") . '#' . $searchset[$i]['post_id'];

and replace the code with
Code:
Code:
$forum_url = "modules.php?name=Forums&file=viewforum&" . POST_FORUM_URL . '=' . $searchset[$i]['forum_id']; 
         $topic_url = "modules.php?name=Forums&file=viewtopic&" . POST_TOPIC_URL . '=' . $searchset[$i]['topic_id'] . "&highlight=$highlight_active"; 
         $post_url = "modules.php?name=Forums&file=viewtopic&" . POST_POST_URL . '=' . $searchset[$i]['post_id'] . "&highlight=$highlight_active" . '#' . $searchset[$i]['post_id'];

All that was needed was removing the append_sid() command and the .$phpEx? and add modules.php?name=Forums&file= and after viewtopic or viewforum the & symbol. Like i said this is just the quick and dirty fix but it does work, try it your self I will post this on as many sites as possible.


Well that sig was fun while it lasted
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Random News "YES" / Center Block "NO" Liqid Site design 0 07-06-2005 07:47 PM
Top of box says "charcoal-Forums" instead of " wildefire Theme packs 2 03-03-2003 09:40 AM
"Latest Post From Forums" central Block Stuck... noelmd Purged Topics 5 02-28-2003 08:08 AM
"Edit" and "Delete" -links in section? zlaxzzor Purged Topics 0 12-10-2002 12:04 PM
"Content" vs "Section" (didn't get it) klipywitz Purged Topics 1 12-06-2002 10:01 PM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31