It would be a great idea if before the title of any sticky posts it said Sticky or Announcement etc. At the moment it is not easy to see if a post is sticky or not.
Good idea, it just does not work, $Sticky seems to have no value at that time. I placed the hack further down, below:
code: // ---------------------------------------------------------- // If this post is sticky then we need to use the sticky date if ($Sticky) { $time = $html -> convert_time($Sticky,$user['U_TimeOffset']); } else { if ($view != "expanded") { $time = $html -> convert_time($Last_Post,$user['U_TimeOffset']); } else { $time = $html -> convert_time($Posted,$user['U_TimeOffset']); } }
code: // ---------------------------------------------------------- // If this post is sticky then we need to use the sticky date if ($Sticky) { $time = $html -> convert_time($Sticky,$user['U_TimeOffset']); } else { if ($view != "expanded") { $time = $html -> convert_time($Last_Post,$user['U_TimeOffset']); } else { $time = $html -> convert_time($Posted,$user['U_TimeOffset']); } }
appears around line 133. It's very similar to the code you said to find -- the only difference is [:"red"]$indentsize;[/] instead of [:"red"]"0"[/]. I may have easily made the same mistake if I hadn't read this whole thread first!
I always have second thoughts about mentioning line numbers because mine are usualy messed up from playing... lol
You could use this little hack to even specify a special icon such as the red pin for sticky posts. There's been a few times people thought something was broke but then discovered it was a sticky post doing exactly what it was ment to do... lol (myself included)
The initial code dave gave (hey, that rhymes!!) works fine. You just have to be carefull to place it in the 2nd instance where it appears (around line 864 of a clean script if I remember correctly). Also, you can change (sticky) up there to Sticky: or whatever you want to appear.
hehe thanks for the typo fixes. I just sorta winged it, didn't actually put the code in and test it. I'm glad it's working though. Others may find it usefull too.
It's not a biggie.... I think I prefer them having to view the post first to download the file.... especially if Rick is changing how the download of attachments works. But if you try the snippit of code you posted to make the disk link to the attachment, that works... but it kills the link to the thread.
FYI - Don't try it that way. But it works perfect with just the disk.
sounds great this is just what i need BUT i dont have postlist.php i only have 3 php files all others are cgi im using Ultimate Bulletin BoardTM 6.2.1.2
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.