Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> ShortLinks/TegoNuke
Author Message
neralex
The Mouse Is Extension Of Arm


Joined: Aug 22, 2007
Posts: 1325
Location: Germany

PostPosted: Thu Nov 17, 2011 9:41 pm Reply with quote

hello!

With this query i can short a topic search:

Code:
RewriteRule ^search-([0-9]*).html modules.php?name=Search&query=&topic=$1 [L]


I want now set the query=, too. In my theme (story-page.html) i use the following line to jump into the search list of all articles inside a topic:

Code:
modules.php?name=Search&query=$topicname&topic=$topic


I try it with this rule and it works:

Code:
RewriteRule ^searchtopic-([a-zA-Z0-9_-]*)-([0-9]*).html modules.php?name=Search&query=$1&topic=$2 [L]


But is it the right way?
 
View user's profile Send private message
spasticdonkey
RavenNuke(tm) Development Team


Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA

PostPosted: Fri Nov 18, 2011 3:21 am Reply with quote

looks good to me, but hard to say 100% without testing. not sure if you have any topics with spaces in them, but that is something to look/test for.
 
View user's profile Send private message Visit poster's website
neralex
PostPosted: Fri Nov 18, 2011 6:25 pm Reply with quote

hey spasticdonkey!

that's cool!

$topicname is the name without spaces in the topic-module! i use this this to fix out the spaces in the $topictext.

Smile
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> ShortLinks/TegoNuke

View next topic
View previous 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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©