Version: , by (Guest)
Developer Last Online: Jan 1970
Version: Unknown
Rating:
Released: 12-10-2000
Last Update: Never
Installs: 0
No support by the author.
How can I make it so it call us up the right $onoff when I specifically want it to look at a specific forum Id. I am creating drop down menus to access some forums and want to be able to add my on.gif to the list when there is a new post for the user.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Make on and off gifs for each forum you want special images displayed on. Name them on1.gif, off1.gif, on2.gif, off2.gif where the number is the forum id.
Then change your template to say:
$onoff$forumid.gif
I guess I didnt describe that very well - what you described I know how to do with out a prob
If you look at http://tuffsports.com/forum - I have drop down menus at the top of the page that lead to new forums that I am working on setting up
As you would see that is way to many forums to list on one page, and I like having them at easy access in the drop down menu.
What I want to be able to do is make it say "New" (my on.gif) next to forums that have a new post in them, and I want to be able to do this with in the actual menu.
What I dont know how to do is call up the script that checks the users cookie based on a specific forum id and then kick out the proper result for $onoff.
I will add that I have done extensive searching through here for the answer and could not find anything that helped me out (heck I sat here for about five hours one night and read just about every thread in this forum looking for the answer)
My gut feeling is that I will have write a specific script for each and every forum that I want to apply this to, but that is ok - My header template is already three pages long, and will get to be about ten by the time I am finished anyway.
OK inch by inch I am getting there - I just have one thing I am stumped on
this would be the basic code
if ($lastvisitdate=="Never") {
$xyz="on";
} else {
if ($bblastvisit<<b>$forum</b>[lastpost]) {
$xyz="on";
} else {
$xyz="off";
}
the $forum is where I am stumped - I know this is what $forum is
$forums=$DB_site->query("SELECT forumid,title,description,displayorder,lastpost,la stposter,replycount,threadcoun t,allowposting FROM forum WHERE active=1 AND displayorder<>0 AND categoryid=$categoryid ORDER BY displayorder");
while ($forum=$DB_site->fetch_array($forums))
Ok that is all good and well, but what the heck do I need to replace $forum with to get the specific forum that I want - I know it is not as simple as the forum id, tried that.