You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 46 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - [FIX] Wrong url after forum search for "redirect" [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
anor
Private
Private


Joined: Feb 26, 2003
Posts: 48


PostPosted: Sun Jul 06, 2003 2:23 pm Reply with quoteBack to top

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?t=201&highlight=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.

_________________
Want to help converting phpbb mods to phpbbnuke mods. Gotto http://www.portedmods.com. ALso i you are searching for mods and images for both nuke 6.0 as nuke 6.5.
Find all posts by anorView user's profileSend private messageSend e-mailVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.164 Seconds - 311 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::