php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#233817 - 01/23/03 02:55 AM 6.2 Tip - disable new post highlighting
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC

   6.2 Tip - disable new post highlighting to Del.icio.us Add to del.icio.us
  Digg 6.2 Tip - disable new post highlighting Digg it
OK - I'll post this tip here in case anyone else wants the same thing. <br /> <br />I had a couple of clients who didn't like the way 6.2 highlights the row on the postlist page. <br /> <br />If you leave the new classes out, you'll get some black boxes in some browsers. Not pretty. <br /> <br />So be sure and use the newlighttable, newdarktable and newsubjecttable classes, but set them the same as their non-new counterparts. <br /> <br />Set newlighttable identical to lighttable <br />Set newdarktable identical to darktable <br />Set newsubjecttable identical to subjecttable <br /> <br />I can't really understand why some people wouldn't want the row to glow.. but what do I know. LOL <br /> <br />A variation of this is to set the colors the same.... but text bold if they are new. <br /> <br /><img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#233818 - 01/23/03 03:41 AM Re: 6.2 Tip - disable new post highlighting [Re: Daine]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
Excellent tip Josh! <img src="/forum/images/graemlins/cool.gif" alt="" /> <br /> <br />I need to make a pass through my CSS files and make sure they are up to date...
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#233819 - 02/11/03 01:28 AM Re: 6.2 Tip - disable new post highlighting [Re: jacksonm99]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Follow up to my tip.<br /><br />If you disable the new post highlighting, you might wish to add <br /><br />font-weight: bold;<br /><br /><br />to the newlighttable and newdarktable classes. New rows won't highlight... but the text will be bold.. thus you can still easily tell what's new.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#233820 - 02/11/03 03:06 AM Re: 6.2 Tip - disable new post highlighting [Re: Daine]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
Another trick to the newlighttable and newdarktable.<br /><br />Open up your favorite image editor (I use Fireworks MX).<br /><br />Make a rectangle and give it the same fill color as darktable.<br /><br />Edit the fill color and bring up a slider to adjust the color. Move the slider down a few "notches" until you have something a little lighter than the darktable color (you may have to go the other way if darktable is too light). Note the ASCI code for the color you just created (it will be your newdarktable).<br /><br />Repeat the process, only this time start out with the lighttable color as your fill. This one will be newlighttable<br /><br />You now have two new colors to use for newdark and newlight table that won't clash with the existing light and dark table colors. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#233821 - 02/11/03 10:50 AM Re: 6.2 Tip - disable new post highlighting [Re: jacksonm99]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
Kewl! Never thought of that before<br /><br />Thanks DLT
_________________________
Nikos

Top
#233822 - 02/11/03 12:49 PM Re: 6.2 Tip - disable new post highlighting [Re: Hal_dup2]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
Sometimes I'll make multiple rectangles and I'll leave the light and dark tables next to their new counterparts so I can compare the difference in the colors before I commit changes to the style sheet. <br /> <br />IM me tomorrow. I have some links to plug ins for FireWorks on my laptop to pass to you <img src="/forum/images/graemlins/smile.gif" alt="" />


Edited by Dalantech (02/11/03 12:52 PM)
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#233823 - 02/11/03 05:04 PM Re: 6.2 Tip - disable new post highlighting [Re: jacksonm99]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
Will do DLT<br /><br />Thanks again
_________________________
Nikos

Top
#233824 - 02/11/03 05:11 PM Re: 6.2 Tip - disable new post highlighting [Re: Hal_dup2]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
Nevermind, I got called into work tonight (so I won't be in the office during the day tomorrow).<br /><br />Check out Project Fireworks and especialy the Harmonia Plug In. I haven't had a chance to try it yet, but I think Harmonia would be perfect when it comes to choosing the colors for a style sheet.
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#233825 - 02/13/03 01:27 PM Re: 6.2 Tip - disable new post highlighting [Re: Daine]
ZealotOnAStick_dup1 Offline
Member

Registered: 06/14/02
Posts: 166
Loc: Indiana
Josh,<br /><br />Almost everyone on the Honorable Players forums hated the background highlighting for notification of new posts. I've disabled that, and for the mean-time, settled on italicizing new posts.<br /><br />However, many people, including myself, are missing the simple functionality of new posts having the icon color changed. Is this gone from UBB.Threads entirely, or is something just wrong? I've checked permissions, and I've manually checked the actual image files, with the default yellow icons, and the orange icons in the "newicons" directory. Everything appears to be correct, but for some reason, none of the yellow icons every turn orange now on 6.2.1.<br /><br />What's wrong, or how can I get the "old" new post notification method back?

Top
#233826 - 02/13/03 05:48 PM Re: 6.2 Tip - disable new post highlighting [Re: astre]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
That is gone from the program entirely.<br /><br />It got in the way of people adding custom icons. Before... if you wanted to add new post icons, you had to have a yellow and an orange version. Now you only need one.<br /><br />The orange icons (in /images/newicons) shouldn't have been included in the distribution. That was just an oversight and I belive they have been deleted from 6.2.2 as they are not used. <br /><br />So it's not very possible to go back to the old system. People have posted about it here... but it'd be a major project. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#233827 - 02/14/03 12:25 PM Re: 6.2 Tip - disable new post highlighting [Re: Daine]
ZealotOnAStick_dup1 Offline
Member

Registered: 06/14/02
Posts: 166
Loc: Indiana
Bah. That makes a few folks unhappy. Ah well, we'll cope.

Top
#233828 - 02/15/03 02:06 AM Re: 6.2 Tip - disable new post highlighting [Re: astre]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Move the "newicons" directory and it's contents into your "icons" directory. Now edit your postlist.php file and change this:<br /><br />
Code:
<br />      $postrow[$z]['color']      = $rowcolor;<br />      $postrow[$z]['indentsize'] = "0";<br />      $postrow[$z]['icon']       = $icon;<br />      $postrow[$z]['imagesize']  = $imagesize;<br />      $postrow[$z]['Number']     = $Number;<br />      $postrow[$z]['Subject']    = $Subject;<br />      $postrow[$z]['Username']   = $Username;<br />      $postrow[$z]['UserStatus'] = $UserStatus;<br />      $postrow[$z]['Views']      = $Counter;<br />      $postrow[$z]['Replies']    = $printreplies;<br />      $postrow[$z]['time']       = $time;<br />      $postrow[$z]['pageprint']  = $pageprint;<br />      $postrow[$z]['Rating']     = $ThreadRating;<br />      $postrow[$z]['posterid']   = $posterid;<br />      $postrow[$z]['UserNumber'] = $UserNumber;<br />
<br /><br />to this:<br /><br />
Code:
<br />      if (stristr($rowcolor,"new")) {<br />         $icon = "newicons/$icon";<br />      }<br />      $postrow[$z]['color']      = $rowcolor;<br />      $postrow[$z]['indentsize'] = "0";<br />      $postrow[$z]['icon']       = $icon;<br />      $postrow[$z]['imagesize']  = $imagesize;<br />      $postrow[$z]['Number']     = $Number;<br />      $postrow[$z]['Subject']    = $Subject;<br />      $postrow[$z]['Username']   = $Username;<br />      $postrow[$z]['UserStatus'] = $UserStatus;<br />      $postrow[$z]['Views']      = $Counter;<br />      $postrow[$z]['Replies']    = $printreplies;<br />      $postrow[$z]['time']       = $time;<br />      $postrow[$z]['pageprint']  = $pageprint;<br />      $postrow[$z]['Rating']     = $ThreadRating;<br />      $postrow[$z]['posterid']   = $posterid;<br />      $postrow[$z]['UserNumber'] = $UserNumber;<br />
<br /><br />and that should do the trick. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br /><br />Tested it here and it seemed to work.
_________________________
~Dave
ChattersOnline.com

Top
#233829 - 02/15/03 02:16 AM Re: 6.2 Tip - disable new post highlighting [Re: sjsaunders]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
Only works for the main post, not all of them when in expanded mode. But that is a nice mod, great work!
_________________________
/Gardener | Complete list of my mods

Top
#233830 - 02/15/03 02:25 AM Re: 6.2 Tip - disable new post highlighting [Re: c0bra]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Thanks <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />For expanded mode try this:<br /><br />Change this:<br /><br />
Code:
<br />            $tree[$aparent][$anumber]['Uid'] = $ausernumber;<br />            $tree[$aparent][$anumber]['Posted'] = $aposted;<br />            $tree[$aparent][$anumber]['Username'] = $ausername;<br />            $tree[$aparent][$anumber]['Subject'] = $asubject;<br />            $tree[$aparent][$anumber]['Approved'] = $aapproved;<br />            $tree[$aparent][$anumber]['Icon'] = $aicon;<br />            $tree[$aparent][$anumber]['Reged'] = $areged;<br />            $tree[$aparent][$anumber]['Color'] = $acolor;<br />            $tree[$aparent][$anumber]['UserStatus'] = $austatus;<br />            $tree[$aparent][$anumber]['Number'] = $anumber;<br />            $tree[$aparent][$anumber]['Status'] = $astatus;<br />            $tree[$aparent][$anumber]['AnonName'] = $aanonname;<br />
<br /><br />to this:<br /><br />
Code:
<br />            if (stristr($acolor,"new")) {<br />               $aicon = "newicons/$aicon";<br />            }<br />            $tree[$aparent][$anumber]['Uid'] = $ausernumber;<br />            $tree[$aparent][$anumber]['Posted'] = $aposted;<br />            $tree[$aparent][$anumber]['Username'] = $ausername;<br />            $tree[$aparent][$anumber]['Subject'] = $asubject;<br />            $tree[$aparent][$anumber]['Approved'] = $aapproved;<br />            $tree[$aparent][$anumber]['Icon'] = $aicon;<br />            $tree[$aparent][$anumber]['Reged'] = $areged;<br />            $tree[$aparent][$anumber]['Color'] = $acolor;<br />            $tree[$aparent][$anumber]['UserStatus'] = $austatus;<br />            $tree[$aparent][$anumber]['Number'] = $anumber;<br />            $tree[$aparent][$anumber]['Status'] = $astatus;<br />            $tree[$aparent][$anumber]['AnonName'] = $aanonname;<br />
<br /><br /><br />I think that will do it. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#233831 - 02/15/03 03:06 AM Re: 6.2 Tip - disable new post highlighting [Re: c0bra]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
The previous post didn't seem to help expanded view but this did:<br /><br />Change this:<br /><br />
Code:
<br />         $postrow[$z]['color'] = $rowcolor;<br />         $postrow[$z]['indentsize'] = $indentsize;<br />         $postrow[$z]['icon']       = $icon;<br />         $postrow[$z]['imagesize']  = $imagesize;<br />         $postrow[$z]['Number']     = $PNumber;<br />         $postrow[$z]['Subject']    = $Subject;<br />         $postrow[$z]['Username']   = $Username;<br />         $postrow[$z]['UserStatus'] = $UserStatus;<br />         $postrow[$z]['Views']      = "&amp;nbsp;";<br />         $postrow[$z]['Replies']    = "&amp;nbsp;";<br />         $postrow[$z]['time']       = $time;<br />         $postrow[$z]['pageprint']  = "";<br />         $postrow[$z]['UserNumber'] = $Uid;<br />         $postrow[$z]['Rating'] = "";<br />         $postrow[$z]['fpart'] = "";<br />         $postrow[$z]['jumper'] = "";<br />
<br /><br /><br />to this:<br /><br />
Code:
<br />         if (stristr($rowcolor,"new")) {<br />		    $icon = "newicons/$icon";<br />         }<br />         $postrow[$z]['color'] = $rowcolor;<br />         $postrow[$z]['indentsize'] = $indentsize;<br />         $postrow[$z]['icon']       = $icon;<br />         $postrow[$z]['imagesize']  = $imagesize;<br />         $postrow[$z]['Number']     = $PNumber;<br />         $postrow[$z]['Subject']    = $Subject;<br />         $postrow[$z]['Username']   = $Username;<br />         $postrow[$z]['UserStatus'] = $UserStatus;<br />         $postrow[$z]['Views']      = "&amp;nbsp;";<br />         $postrow[$z]['Replies']    = "&amp;nbsp;";<br />         $postrow[$z]['time']       = $time;<br />         $postrow[$z]['pageprint']  = "";<br />         $postrow[$z]['UserNumber'] = $Uid;<br />         $postrow[$z]['Rating'] = "";<br />         $postrow[$z]['fpart'] = "";<br />         $postrow[$z]['jumper'] = "";<br />
<br /><br /><br /><br />This code is located towards the begining of postlist.php and looks simular to code found later in the script.
_________________________
~Dave
ChattersOnline.com

Top
#233832 - 02/15/03 01:03 PM Re: 6.2 Tip - disable new post highlighting [Re: sjsaunders]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Go Dave! <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#233833 - 02/15/03 01:21 PM Re: 6.2 Tip - disable new post highlighting [Re: Daine]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
LoL I was down to the point where everything looked like it had heat rising up in front of it as seen on a long stretch of highway in the afternoon. When this happens I know it's time for some sleep. I got 3 hours and am good to go... LOL
_________________________
~Dave
ChattersOnline.com

Top
#233834 - 02/15/03 07:04 PM Re: 6.2 Tip - More changes needed [Re: sjsaunders]
RandyJG Offline
Junior Member

Registered: 03/11/03
Posts: 231
Loc: Canada
showthreaded.php also requires these modifications so that new replies are shown to have new icons on the message view in threaded mode.<br /><br />This mod appears to work so far.<br /><br />Thanks!

Top
#233835 - 02/15/03 07:13 PM Re: 6.2 Tip - More changes needed [Re: romka]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
I hardly ever use showthreaded so I basically overlooked it... lol sorry. <img src="/forum/images/graemlins/crazy.gif" alt="" /><br /><br />I'll take a look at it sometime yet this weekend and post the needed changes. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#233836 - 02/16/03 06:42 PM Re: 6.2 Tip - More changes needed [Re: sjsaunders]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
Happens to me all the time as well, but the other way around, I don't use showflat and tend to miss out on adding changes to that script. =]<br /><br />Great work on this, as always.
_________________________
/Gardener | Complete list of my mods

Top
#233837 - 02/17/03 02:10 PM Re: 6.2 Tip - More changes needed [Re: c0bra]
ZealotOnAStick_dup1 Offline
Member

Registered: 06/14/02
Posts: 166
Loc: Indiana
Additionally, you don't have to actually move the newicons directory - instead of the relative URL being newicons/$icon, prepend ../ to that, so with icons and newicons both being in the images directory (per installation default prior to 6.2.2) it'll work.

Top
#233838 - 02/17/03 02:31 PM Re: 6.2 Tip - More changes needed [Re: astre]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Have you tested this? I'm just not sure that images/icons/../newicons/some.gif in the url would actually work.
_________________________
~Dave
ChattersOnline.com

Top
#233839 - 02/17/03 03:31 PM Re: 6.2 Tip - More changes needed [Re: astre]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
I just had to test this and yes it indeed does work. Thanks for the tip. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#233840 - 02/18/03 04:01 PM Re: 6.2 Tip - More changes needed [Re: sjsaunders]
ZealotOnAStick_dup1 Offline
Member

Registered: 06/14/02
Posts: 166
Loc: Indiana
[]JustDave said:<br />I just had to test this and yes it indeed does work. Thanks for the tip. <img src="/forum/images/graemlins/smile.gif" alt="" /> [/]<br />As you've already found out, yes, I'm sure it would work. I made the post after redoing the mods on the HP site, as one of our members had already hacked it to do the same thing you did, and I accidentally killed some of that when I upgraded to 6.2.2 and overwrote postlist.php. I thought "Bah, it's a PITA to move all that, I'll just give it a virtual URL/path dropping back one level" and did it, and it worked.

Top
#233841 - 02/23/03 07:53 PM Re: 6.2 Tip - More changes needed [Re: astre]
Sheall Offline
User

Registered: 05/25/02
Posts: 41
I noticed a bit of an error when using this hack... your legend on the postlist page becomes invalid as it was setup to reflect the new post highlighting rather than new post images. To combat this I have attached a text file to this post to detail how to change it. If you have used the ../ method you will need to alter the URL to reflect that, otherwise it should work fine.<br /><br />I have my stylesheets setup so they look like they did before the latest update (ie: alternating color bars, no highlighting for new posts). This hack will make the legend valid whether you use highlighting or not.<br /><br />It worked for me anyway, let me know if I messed up anywhere. <img src="/forum/images/graemlins/blush.gif" alt="" />


Attachments
70576-legendfix.6.2.setup.txt (21 downloads)


Top
#233842 - 02/25/03 02:16 AM Re: 6.2 Tip - More changes needed [Re: sjsaunders]
Lex Offline
Junior Member

Registered: 03/19/03
Posts: 6
Dave have you found out where you need to edit the "showthreaded.php" file to use the orange icons yet?<br /><br />Thank you by the way for posting this, its a life saver. My users were about to over-throw me because of that change.

Top
Page 1 of 2 1 2 >


Who's Online
2 Registered (Gizmo, blaaskaak), 29 Guests and 3 Spiders online.
Key: Admin, Global Mod, Mod