View next topic
View previous topic
Post new topic   Reply to topic
Author Message
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 754

PostPosted: Sat Mar 17, 2007 3:01 pm
Reply with quote

To use this, you must first complete the mod from this post:
http://nukecoder.com/ftopict-366-Forum_Topic_Titles_in_URL_with_GoogleTap.html

Files to edit: 3
Difficulty: Easy

Open -> modules/Forums/index.php

Find:
php:
 'U_VIEWFORUM' => append_sid("viewforum.$phpEx?" POST_FORUM_URL "=$forum_id")) 


Change to:
php:
 'U_VIEWFORUM' => append_sid("viewforum.$phpEx?" POST_FORUM_URL "=$forum_id&title=".gt_url($forum_data[$j]['forum_name']))) 


End -> modules/Forums/index.php

______________________________

Open -> GoogleTap/GT-Forums.php

This is a partial snippet of the $urlin array, note the one marked //added
php:
 "'(?<!/)modules.php\?name=Forums&file=viewonline'",
"'(?<!/)modules.php\?name=Forums&file=viewforum&f=([0-9]*)&topicdays=([0-9]*)&start=([0-9]*)'",
"'(?<!/)modules.php\?name=Forums&file=viewforum&f=([0-9]*)&start=([0-9]*)'",
"'(?<!/)modules.php\?name=Forums&file=viewforum&f=([0-9]*)&mark=topics'",
"'(?<!/)modules.php\?name=Forums&file=viewforum&f=([0-9]*)((\")|(&sid=[a-zA-Z0-9]*))'",
"'(?<!/)modules.php\?name=Forums&file=viewforum&f=([0-9]*)&title=([a-zA-Z0-9_-]*)((\")|(&sid=[a-zA-Z0-9]*))'",//added
"'(?<!/)modules.php\?name=Forums&file=([^index][a-zA-Z0-9_-]*)((\")|(&sid=[a-zA-Z0-9]*))'",
"'(?<!/)modules.php\?name=Forums&file=index((\")|(&sid=[a-zA-Z0-9]*))'",
"'(?<!/)modules.php\?name=Forums(?!&)'",
"'(?<!/)modules.php\?name=Members_List&file=index((\")|(&sid=[a-zA-Z0-9]*))'"


This is a partial snippet of the $urlout array, note the one marked //added
php:
 "forum-viewonline.html",
"forum-\\1-days\\2-\\3.html",
"forum-\\1-\\2.html",
"forum-\\1-mark.html",
"forum-\\1.html\\2",
"forum-\\1-\\2.html\\3",//added
"forums-\\1.html\\2",
"forums.html\\1",
"forums.html",
"members.html\\1"


End -> GoogleTap/GT-Forums.php
______________________________

Open -> .htaccess
and add the following rewrite rule:
Code:
RewriteRule ^forum-([0-9]*)-([a-zA-Z0-9_-]*).html modules.php?name=Forums&file=viewforum&f=$1&title=$2 [L]


End -> .htaccess
Save and closes all files
End of mod
 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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 cannot attach files in this forum
You cannot download files in this forum


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