|
|
Joined: Jun 2003
Posts: 60
Member
|
Member
Joined: Jun 2003
Posts: 60 |
Phew! this is rough. More help is needed. Perhaps someone who has sucessfully accomplished this can e-mail me a copy of their ubb_lib_posting.cgi file Cuz this aint workin'!
Scenario: I am trying to reverse the posting but only on certain forums (4 to be exact). Am using 6.4 Found code, changed it, but to no avail.
Here's what was there:
#reverse topics? if ($vars_display{ReverseThreads} eq 'TRUE') { @ordered_topic = reverse(@topic_file); } else { @ordered_topic = @topic_file; } # end if/else reverse threads option
Here's what I changed it too:
#reverse topics? if ($vars_display{ReverseThreads} eq 'TRUE' || $forum_number == 65) { @ordered_topic = reverse(@topic_file); } else { @ordered_topic = @topic_file; } # end if/else reverse threads option
But it didn't function for forum 65.
I checked the syntax, there are no errors. perhaps a different name must be inputed?
Any help would be greatly appreciated.
REaMERE
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
Instead of $forum_number, use $in{f}
|
|
|
|
Joined: Jun 2003
Posts: 60
Member
|
Member
Joined: Jun 2003
Posts: 60 |
Thanks for the quick reply Tried it but still no skill.
Here's the latest:
#reverse topics? if ($vars_display{ReverseThreads} eq 'TRUE' || $in{f} == 65) { @ordered_topic = reverse(@topic_file); } else { @ordered_topic = @topic_file; } # end if/else reverse threads option
Supposedly, the original post worked for a friend on 6.4 but I cant get in touch with them. ANy other suggestions? thanks in advance
REaMERE
|
|
|
|
Joined: Jun 2003
Posts: 60
Member
|
Member
Joined: Jun 2003
Posts: 60 |
Sorry, it worked, only the original forum I tried is still not working. The forum number is right. interesting.
I guess I can just add more lines for additional forums (need 4 total to be reverse order)
Thanks again!
REaMERE
|
|
|
|
Joined: Jun 2003
Posts: 60
Member
|
Member
Joined: Jun 2003
Posts: 60 |
One strange thing, adding lines allows one additional forum to go in reverse, but the final 2 are not affected. Any ideas? Syntax is as follows:
#reverse topics? if ($vars_display{ReverseThreads} eq 'TRUE' || $in{f} == 39) { @ordered_topic = reverse(@topic_file); } else { @ordered_topic = @topic_file; } # end if/else reverse threads option #reverse topics? if ($vars_display{ReverseThreads} eq 'TRUE' || $in{f} == 40) { @ordered_topic = reverse(@topic_file); } else { @ordered_topic = @topic_file; } # end if/else reverse threads option #reverse topics? if ($vars_display{ReverseThreads} eq 'TRUE' || $in{f} == 43) { @ordered_topic = reverse(@topic_file); } else { @ordered_topic = @topic_file; } # end if/else reverse threads option #reverse topics? if ($vars_display{ReverseThreads} eq 'TRUE' || $in{f} == 65) { @ordered_topic = reverse(@topic_file); } else { @ordered_topic = @topic_file; } # end if/else reverse threads option
The last 2 do not function, the first 2 do.
REaMERE
|
|
|
|
Joined: Jun 2003
Posts: 60
Member
|
Member
Joined: Jun 2003
Posts: 60 |
Got it. Had the caching on. Just call me dopey!
REaMERE
|
|
|
|
Joined: Aug 2000
Posts: 874
Moderator / Developer
|
Moderator / Developer
Joined: Aug 2000
Posts: 874 |
How 'bout making that into one if statement:
[code][/code]No need for so many statements.
|
|
|
|
Joined: Jun 2003
Posts: 60
Member
|
Member
Joined: Jun 2003
Posts: 60 |
thanks Jordo, that was the first try. I don't know if I posted that or not on this string. I'll post again, once a permanent solution is working for multiple forums in reverse order. (This is for Braindumps, which people want to see the latest first, so I don't really see many others needing this for their board)
Thanks for all the help so far guys!
REaMERE
|
|
|
|
Joined: Jun 2003
Posts: 60
Member
|
Member
Joined: Jun 2003
Posts: 60 |
Well, here's the final if anyone cares for running multiple forums in reverse order. This is an example of my syntax:
#reverse topics? if ($vars_display{ReverseThreads} eq 'TRUE' || $forum_number == 65 || $forum_number == 40 || $forum_number == 43 || $forum_number == 39 || $forum_number == 70) { @ordered_topic = reverse(@topic_file); } else { @ordered_topic = @topic_file; } # end if/else reverse threads option
Easy, as it should of been. I think I tried this first but I didn't clear the cache.
Damn cache
REaMERE
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|