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, 53 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - HELP with GT and forum news PLEASE -- more info inside [ ]
 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
Korben-Dallas
Nuke Soldier
Nuke Soldier


Joined: Oct 18, 2003
Posts: 10


PostPosted: Tue Oct 21, 2003 10:51 am Reply with quoteBack to top

Module's Name: ForumNews Advanced
Module's Version: 1.3.0
I have a forum to submit news
when someone does sumbit new to that forum
i get a PM to approve post

BUT the html links provided by GT dont work to:
1. Approve the post
2. Approve all future posts in that topic
3. Auto approve user

i had to physically diable GT to approve post and user and then re-enable GT cause it re wrote all my links site wide to html

here are the 3 links from the LATEST POST
these will be an example as the links will change per post and per user

Quote:
http://www.datastreamz.net/modules.php?name=Forums&file=viewtopic&p=3220&app_p=3220#3220 approve post

http://www.datastreamz.net/modules.php?name=Forums&file=viewtopic&t=1119&app_r=1119 auto apporve all further posts


http://www.datastreamz.net/modules.php?name=Forums&file=viewtopic&p=3220&app_ua=100#3220 auto approve user


what do i need to add to the header footer mainfile and htaccess ?

PLEASE help as this is a real pain in the arse to keep enabling and disabling

thank you in advance
Korben
Find all posts by Korben-DallasView user's profileSend private message
Audioslaved
Elite Nuker
Elite Nuker


Joined: Jun 14, 2003
Posts: 420

Location: Hawaii and The Fan Forum

PostPosted: Tue Oct 21, 2003 9:41 pm Reply with quoteBack to top

Try the following code out:

Code:

header.php
"'(?<!/)modules.php\?name=Forums&file=viewtopic&(p|t)=([0-9]*)&app_(r|p|ua)=([0-9]*)'",

"forums-\\1\\2-\\3\\4.html",

.htaccess
RewriteRule ^forums-(p|t)([0-9]*)-(r|p|ua)([0-9]*).html modules.php?name=Forums&file=viewtopic&$1=$2&app_$3=$4


Code:

Now don't forget that your ampersands may be off, for example, it will rewrite according to what is represented in the code, so if a ampersand in html &amp; is present, then that has to be reflected in the header.php, here is an example of what I mean.

The URL would be written as follows:
"'(?<!/)modules.php\?name=Forums&file=viewtopic&amp;(p|t)=([0-9]*)&amp;app_(r|p|ua)=([0-9]*)'",

Instead of:
"'(?<!/)modules.php\?name=Forums&file=viewtopic&(p|t)=([0-9]*)&app_(r|p|ua)=([0-9]*)'",

The easiest way for me to usually figure it out is to look straight at the code and see how it is supposed to be printed. Also note that you do not need to represent the ampersand's in the .htaccess. So the .htaccess file entry should be all set for you. let me know if you figure it out. I dont have forum news, so I cannot guarantee that this will work for you.

-Bill (Audioslaved)

_________________
GT-NExtGEn: The future of GoogleTap
http://gt-nextgen.com/

The Audioslave Fan Forum
http://www.audioslaved.com
Find all posts by AudioslavedView 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.300 Seconds - 200 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::