Welcome, Guest. Please Login or Register.
November 21, 2024, 05:47:56 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Completed mods  |  [Code] Mouseover Color Change [BoardIndex] « previous next »
Pages: [1] Reply Ignore Print
Author Topic: [Code] Mouseover Color Change [BoardIndex]  (Read 58330 times)
Shaun
Wannabe Mod Writer
Sr. Member
****
Posts: 361


YaBB SE Rules.

[Code] Mouseover Color Change [BoardIndex]
« on: March 14, 2002, 06:16:58 AM »
Reply with quote

Here's the old mouseover color swap mod for the BoardIndex.  It only changes the board name cell and the last post cell.





<version>
YaBB SE 1.1.0 - 1.3.0
</version>

<mod info>This mod changes table cell colors when a user moves their mouse over the cell.  It swaps your  $color[windowbg2] for your $color[windowbg] when active.  This only affects certain cells in your Board Index.
</mod info>

<author>
Shaun
</author>

<homepage>
http://www.nextcelica.net - [Shaun]
</homepage>

<open file>
BoardIndex.php
</open file>


<search for>
         print <<<EOT
  <tr>
    <td class="windowbg" width="6%" align="center" valign="top">$new</td>
    <td class="windowbg2" align="left" width="60%">
</search for>


<replace>
         print <<<EOT
  <tr>
    <td class="windowbg" bgcolor="$color[windowbg]" width="6%" align="center" valign="top">$new</td>
    <td class="windowbg2" bgcolor="$color[windowbg2]" onmouseover="this.style.backgroundColor='$color[windowbg]'" onmouseout="this.style.backgroundColor=''" align="left" width="60%">
</replace>


<search for>
   <td class="windowbg2" valign="middle" width="22%"><font size="1">$latestPostTime<br />$txt[yse88] <a href="$scripturl?board=$row_board[ID_BOARD];action=display;threadid=$topicID;start=$startPage;boardseen=1">$subject</a><br> $txt[525] $latestPostName</font></td>
  </tr>
</search for>


<replace>
    <td class="windowbg2" bgcolor="$color[windowbg2]" onmouseover="this.style.backgroundColor='$color[windowbg]'" onmouseout="this.style.backgroundColor=''" valign="middle" width="22%"><font size="1">$latestPostTime<BR>in <a href="$scripturl?board=$row_board[ID_BOARD];action=display;threadid=$topicID;start=$startPage">$subject</a><br> $txt[525] $latestPostName</font></td>
  </tr>
</replace>
« Last Edit: July 24, 2002, 07:56:58 AM by Shaun » Logged

This guy uses objects like women man!
Nemesis
What's an Admin?
Global Moderator
YaBB God
*****
Posts: 2199


WWW
Re:Mouseover Color Change [BoardIndex]
« Reply #1 on: March 14, 2002, 06:39:55 AM »
Reply with quote

Looks good Shaun, only suggestion I have is do the same with messageindex so that it gives the forum's a uniformed effect.

Logged


Want to say thanks?
*************************************
DONATE or check out my WishList
*********************************
Shaun
Wannabe Mod Writer
Sr. Member
****
Posts: 361


YaBB SE Rules.

Re:Mouseover Color Change [BoardIndex]
« Reply #2 on: March 14, 2002, 06:45:45 AM »
Reply with quote

Yeah, I did it before but I felt like it was too flashy.  I'll add it tomorrow after work...

I dunno what standard mods are supposed to be written in so I stick with the old way...boardmod 2.5 se, packman, yabbpaks...which one is right?
Logged

This guy uses objects like women man!
Nemesis
What's an Admin?
Global Moderator
YaBB God
*****
Posts: 2199


WWW
Re:Mouseover Color Change [BoardIndex]
« Reply #3 on: March 14, 2002, 06:49:20 AM »
Reply with quote

I am doing mine as boardmod 2.5 SE

When I learn to use packman I make them available both ways. I going wait till 1.1.3 out before I mess with packman thou.
Logged


Want to say thanks?
*************************************
DONATE or check out my WishList
*********************************
Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[Code] Mouseover Color Change [BoardIndex]
« Reply #4 on: March 25, 2002, 02:02:32 AM »
Reply with quote

Hmm Did those changes you made in yabbse break your board or something?  Clicking on your url shows nothing but a broken board!!! Scares me out of applying your changes!!

Quote from: Shaun on March 14, 2002, 06:16:58 AMHere's the old mouseover color swap mod for the BoardIndex.  It only changes the board name cell and the last post cell.

View it on my test board:  http://www.nextcelica.net/yabbse
Logged

Godai
Mod God :P
Sr. Member
****
Posts: 473


YaBB SE!!!!

ICQ - 70621553godai78@hotmail.com WWW
Re:[Code] Mouseover Color Change [BoardIndex]
« Reply #5 on: March 25, 2002, 07:19:26 AM »
Reply with quote

The changes are good, his board was just down :/
Logged

Emanuele 'Godai' Sparvoli
YaBB Italian Team
100% YaBB Lover
Narga
Noobie
*
Posts: 17


Light Of Dragon's eyes

WWW
Re:[Code] Mouseover Color Change [BoardIndex]
« Reply #6 on: January 12, 2003, 07:27:57 AM »
Reply with quote

can't use for version 1.5
Logged

I try to make my forum to YabbSe support for Vietnamese.
My working process :72%
DrMcNasty
Noobie
*
Posts: 18


I wish I was an Oscar Meyer Weiner

ICQ - 4286350 WWW
Re:[Code] Mouseover Color Change [BoardIndex]
« Reply #7 on: March 12, 2004, 03:22:33 AM »
Reply with quote

Has someone found a way to do this on 1.5.x yet?

Please post if you have.  I would really appreciate it.

Nasty
« Last Edit: March 12, 2004, 03:23:00 AM by DrMcNasty » Logged

I wish I could be as cool as Jeff Lewis.
He is the man ...!
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Code] Mouseover Color Change [BoardIndex] « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.234 seconds with 21 queries.