Welcome, Guest. Please Login or Register.
November 02, 2024, 09:41:42 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  |  [Done 1.5.x] Category Switch v1.9 SE « previous next »
Pages: [1] Reply Ignore Print
Author Topic: [Done 1.5.x] Category Switch v1.9 SE  (Read 2614 times)
Juvenall Wilson
Full Member
***
Posts: 162


Eat more vegetarians

ICQ - 83740832switchTone@hotmail.com
[Done 1.5.x] Category Switch v1.9 SE
« on: May 04, 2003, 11:45:11 PM »
Reply with quote

Inspired by a design change I'm working in for the next version of the perl YaBB (no, not Y2), I created a mod for SE that will give the same effect. It's been tested on both 1.5.1 and 1.5.2 and seems to work alright for the three beta testers I abused today..


Quote
Category Switch v1.9 SE
By: Juvenall Wilson (switch)

One of the things that always got me about the BoardIndex of both the Perl and PHP versions of YaBB was how the Category name was listed after the forum key. Adding to my frustration, the size of the cells always threw me off. So I threw this mod together.

Nothing too fancy here. We simply search for the html that prints out the forum key then move that into the category display. This causes it to show the key directly after the catagory name. While we're up to that, we change the class the two parts are a part of so we can control their look more precicley then before.

After you run the mod, you MUST add the two new classes to the CSS of your template. If you don't, it won't look as good. Then again, there's no accounting for taste..

Here's the screenshot after it's installed -


Click here to get Category Switch 1.9 SE!

---------------------------------------------------------
!-Important-!
You MUST add two new classes to your template's CSS file. This gives you more control over the size and color of the category title and forum key without making major changes to the rest of your forum. You'll find the two classes inside of the package.

Also note there is no Admin option for this yet. I'll add that in later when I get some extra time again..heh
---------------------------------------------------------

Please let me know of any bugs or compatability problems you happen to run into.


Enjoy ;D
« Last Edit: May 06, 2003, 06:21:53 PM by Juvenall Wilson » Logged

Juvenall Wilson
Full Member
***
Posts: 162


Eat more vegetarians

ICQ - 83740832switchTone@hotmail.com
Re:[Done 1.5.x] Category Switch v1.9 SE
« Reply #1 on: May 06, 2003, 06:22:30 PM »
Reply with quote

Removed something that was screwing up the bottom of some templates.
Logged

B »
Noobie
*
Posts: 6


cute butt crazie

ICQ - 86723747bineshz@hotmail.com WWW
Re:[Done 1.5.x] Category Switch v1.9 SE
« Reply #2 on: June 07, 2003, 02:32:48 PM »
Reply with quote

wonderful mod for consistency addicts here ;D

WTG Juvenall :)
Logged

Down to Earth Still Above All
I, Brian
Full Member
***
Posts: 238


It is coming...

WWW
Re:[Done 1.5.x] Category Switch v1.9 SE
« Reply #3 on: June 15, 2003, 10:24:20 AM »
Reply with quote

Good idea! If it's not too remedial to ask, where abouts is the actual text title "forum" coded? It would like more logical to change that to "board", yes?
Logged

B »
Noobie
*
Posts: 6


cute butt crazie

ICQ - 86723747bineshz@hotmail.com WWW
Re:[Done 1.5.x] Category Switch v1.9 SE
« Reply #4 on: June 18, 2003, 05:03:32 PM »
Reply with quote

Quote from: I, Brian on June 15, 2003, 10:24:20 AM
Good idea! If it's not too remedial to ask, where abouts is the actual text title "forum" coded? It would like more logical to change that to "board", yes?

Suit ur logic buddy ;D

Here u go ...

The actual text "Forum" is called from the language file ur using, say "english.lng" to the file "Sources/BoardIndex.php"

Open up the file "english.lng" and search for "$txt[20] = 'Forums';". Here, replace the word "Forum" to "Board" :D

OR

u can add a new text variable eg. $txt[1001] = 'Board'; into the "english.lng" file and call it in the "Sources/BoardIndex.php" where it is colored red below:

(note: the code displayed below is 'after' the mod has been applied)
Quote
$curcat=$row_board['ID_CAT'];

         echo "<tr> <td colspan=\"5\" class=\"cattitlebg\" height=\"18\">\n";

         echo "<a name=\"$row_board[ID_CAT]\"><b>$row_board[catName]</b></a></td>\n</tr>\n";
         echo '<tr>
                  <td class="forumkey"> </td>
                  
                  <td class="forumkey"><b>' . $txt[20] . '</b></td><-- Replace the 20 with 1001 within the []'s here.

                  <td class="forumkey" width="6%" align="center"><b>' . $txt[330] . '</b></td>

                  <td class="forumkey" width="6%" align="center"><b>' . $txt[21] . '</b></td>

                  <td class="forumkey" width="22%" align="center"><b>' . $txt[22] . '</b></td>

               </tr>';

Have gone in for the former option, later one is another option u wud like to use only if u choose to :)
Logged

Down to Earth Still Above All
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.5.x] Category Switch v1.9 SE « 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.062 seconds with 21 queries.