» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 76
0 members and 76 guests
No Members online
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Oral Chelation - initial cleansing of your veins & arteries

Register Now! Contact Us

About this Page
This is a discussion on [FIX] Wrong url after search for "redirect" within the Other "stuff" forums, part of the nukemods releases category; This "bug" isn't only in the new port but also in the phpbb 2.1, I found ...


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

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-06-2003, 06:01 PM
Junior Member
 
Join Date: Oct 2002
Location: Netherlands
Posts: 81
[FIX] Wrong url after search for "redirect"
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 08:47 PM
Top of box says "charcoal-Forums" instead of " wildefire Theme packs 2 03-03-2003 10:40 AM
"Latest Post From Forums" central Block Stuck... noelmd Purged Topics 5 02-28-2003 09:08 AM
"Edit" and "Delete" -links in section? zlaxzzor Purged Topics 0 12-10-2002 01:04 PM
"Content" vs "Section" (didn't get it) klipywitz Purged Topics 1 12-06-2002 11:01 PM


All times are GMT -5. The time now is 04:27 PM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.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