Log in

View Full Version : Automatically load prefix on newthread link?


tpearl5
03-20-2009, 04:41 PM
I'm looking for a way to automatically fill in the prefix based on a link. For example, a new 'news' thread would be something like
/newthread.php?do=newthread&f=1&p=news

or if I want a 'question' thread:
/newthread.php?do=newthread&f=1&p=question

(assuming news and question are the names of prefix p)

Lynne
03-20-2009, 04:46 PM
You'll probably hae to write a plugin to do that. Take a look at the prefix code in newthread.php and see if there is a hook to plugin to where you can set "selected=selected" for the prefix you want.

tpearl5
03-20-2009, 06:04 PM
yeh, I figured a plugin would be needed. Unfortunately I wouldn't know how to do it myself.