Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
mwhalen
New Member
New Member


Joined: Oct 14, 2003
Posts: 1

PostPosted: Tue Oct 14, 2003 9:13 pm Reply with quote

hi everyone
im new to php and phpnuke but am getting my hands dirty Very Happy
id like to get this code working
Code:
/******* Begin Forums Select Box ********/

."<form action=\"modules.php?\"
\"method=\"post\"> <font size=\"2\"><b>".translate("Forums")." </b>\n";
    $toplist = mysql_query("select forum_id, forum_name from $prefix"._bbforums." order by forum_name");
    echo "<select name=\"forum\"onChange='submit()'>\n"
   ."<option value=\"\">".translate("All Forums")."</option>\n";
    while(list($forum_id, $forums) = mysql_fetch_row($toplist)) {
    if ($forum_id==$forum) { $sel = "selected "; }
   echo "<option $sel value=\"$forum_id\">$forums</option>\n";
   $sel = "";
    }
    echo "</select>\n"
/******* End Topic Select Box ********/
."</td></form>\n"


i want to make it so it jumps to the correct forum when clicked
ive also posted this Only registered users can see links on this board! Get registered or login!
with a slightly different but the same question Smile
what ive got working so far can be found at Only registered users can see links on this board! Get registered or login!
what would be even better for this script would be using cat_id instead of forum_id but i couldnt figure out how to display the cat names because i couldnt find cat_name in any of the mysql querys
well thanks in advance for any help you may be able to give
mike
 
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17077

PostPosted: Wed Nov 05, 2003 7:25 am Reply with quote

Mike, did you ever get an answer to this? I was just getting back into town when you posted this and I never recall seeing it.
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

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 ©