Welcome, Guest. Please Login or Register.
November 27, 2024, 02:37:05 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.1] Different Category Icons « previous next »
Pages: 1 2 3 [4] 5 6 7 Reply Ignore Print
Author Topic: [Done 1.5.1] Different Category Icons  (Read 21284 times)
maime
Noobie
*
Posts: 34


Let there be no doubt about it...I am a flying pig

WWW
Re:[Done 1.4.0] Different Category Icons
« Reply #45 on: September 06, 2002, 08:11:43 PM »
Reply with quote

hmmm I had no problems what so ever after dl the latest mods from Big P. ;D
 r u sure u used the latest? :P
Logged
Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[Done 1.4.0] Different Category Icons
« Reply #46 on: September 08, 2002, 10:04:13 PM »
Reply with quote

Maybe you outa figure out what the latest means. His mod is made for yabbse 1.3 not 1.4 !!! He needs to clear that up., this line in his mod, which is his latest archive in his link, proves this. That select in his mod does not exist as written in 1.4, it is a code that exists in 1.3 boardindex.

<search for>
   $result = mysql_query("SELECT name,ID_CAT FROM {$db_prefix}categories WHERE ('$settings[7]'='Administrator' || '$settings[7]'='Global Moderator' || FIND_IN_SET('$settings[7]',memberGroups)!=0 || memberGroups='') ORDER BY catOrder");
</search for>

<replace>
   $result = mysql_query("SELECT name,iconon,iconoff,ID_CAT FROM {$db_prefix}categories WHERE ('$settings[7]'='Administrator' || '$settings[7]'='Global Moderator' || FIND_IN_SET('$settings[7]',memberGroups)!=0 || memberGroups='') ORDER BY catOrder");
</replace>


Quote from: maime on September 06, 2002, 08:11:43 PMhmmm I had no problems what so ever after dl the latest mods from Big P. ;D
 r u sure u used the latest? :P
Logged

Big P
Mod Team
YaBB God
*****
Posts: 1462


"Back in '68, I don't like you, The End."

ICQ - 76064555pierceward@hotmail.com WWW
Re:[Done 1.4.0] Different Category Icons
« Reply #47 on: September 09, 2002, 05:30:33 PM »
Reply with quote

I think the problem is with yabb se 1.4.1, not 1.4.0 as it worked with 1.4.0 I believe. I'll test it out in a bit. Sure it's only one line anyhow.
Logged

PHPNews has been released!!! Download it now!!!
maime
Noobie
*
Posts: 34


Let there be no doubt about it...I am a flying pig

WWW
Re:[Done 1.4.0] Different Category Icons
« Reply #48 on: September 09, 2002, 11:13:45 PM »
Reply with quote

the latest for me is version 1.4.0
if you have 1.4.0 it must work..  ???well it did for me ;D
I dont know about version 1.4.1 though


Quote from: Wiziwig on September 08, 2002, 10:04:13 PMMaybe you outa figure out what the latest means. His mod is made for yabbse 1.3 not 1.4 !!! He needs to clear that up., this line in his mod, which is his latest archive in his link, proves this. That select in his mod does not exist as written in 1.4, it is a code that exists in 1.3 boardindex.

<search for>
   $result = mysql_query("SELECT name,ID_CAT FROM {$db_prefix}categories WHERE ('$settings[7]'='Administrator' || '$settings[7]'='Global Moderator' || FIND_IN_SET('$settings[7]',memberGroups)!=0 || memberGroups='') ORDER BY catOrder");
</search for>

<replace>
   $result = mysql_query("SELECT name,iconon,iconoff,ID_CAT FROM {$db_prefix}categories WHERE ('$settings[7]'='Administrator' || '$settings[7]'='Global Moderator' || FIND_IN_SET('$settings[7]',memberGroups)!=0 || memberGroups='') ORDER BY catOrder");
</replace>


Quote from: maime on September 06, 2002, 08:11:43 PMhmmm I had no problems what so ever after dl the latest mods from Big P. ;D
 r u sure u used the latest? :P
Logged
sensovision
Full Member
***
Posts: 100


WWW
Re:[Done 1.4.0] Different Category Icons
« Reply #49 on: September 09, 2002, 11:24:41 PM »
Reply with quote

It's not work with my 1.4.1   :(
Logged

Denis

Are you good with the graphic? check out our design logo contest!
rickc
Jr. Member
**
Posts: 55


My Tsi rules!

WWW
Re:[Done 1.4.0] Different Category Icons
« Reply #50 on: September 10, 2002, 03:53:45 PM »
Reply with quote

[shadow=blue,left,300]Wow, man...[/shadow] this was just the mod I was looking for...
I installed it,
it said my sql db went ok, but when I logged in, everything was the same..
can you tell me where I went wrong???
I did like the install told me, run it thought the browser, then deleate...
Do I have to add anything to though the admin functions??
let me know...
 thanks in advance RickC

ps,  
Logged
Big P
Mod Team
YaBB God
*****
Posts: 1462


"Back in '68, I don't like you, The End."

ICQ - 76064555pierceward@hotmail.com WWW
Re:[Done 1.4.0] Different Category Icons
« Reply #51 on: September 10, 2002, 10:23:06 PM »
Reply with quote

Quote from: sensovision on September 09, 2002, 11:24:41 PMIt's not work with my 1.4.1   :(
I know it won't, that's why the subject says "1.4.0". I'll have a fix ready tomorrow ;)

rickc, what is your problem? Have you gone to your "Manage Cats" section of your Admin panel where you can add new images for each category? That's the admin functions.
Also are you sure you installed the mod at all? Are you using 1.4.0 of yabb se? It won't install for version 1.4.1 until I release a compatible version tomorrow.  :)
Logged

PHPNews has been released!!! Download it now!!!
Big P
Mod Team
YaBB God
*****
Posts: 1462


"Back in '68, I don't like you, The End."

ICQ - 76064555pierceward@hotmail.com WWW
Re:[Done 1.4.0] Different Category Icons
« Reply #52 on: September 11, 2002, 08:04:51 PM »
Reply with quote

Done and double done. ;)
Logged

PHPNews has been released!!! Download it now!!!
rickc
Jr. Member
**
Posts: 55


My Tsi rules!

WWW
Re:[Done 1.4.1/1.4.0] Different Category Icons
« Reply #53 on: September 13, 2002, 07:42:10 AM »
Reply with quote

I'mi running 1.40 (for now...)
I found my problem, but have no solution yet.

whe using the mod tool I get invalid string errors on steps 3,4,18,&19..

where in the code are the steps??
should I wait until 1.41??Where can I DownLoad you 1.41 file? On your site or here, let me know thankd again RickC
Logged
rickc
Jr. Member
**
Posts: 55


My Tsi rules!

WWW
Re:[Done 1.4.1/1.4.0] Different Category Icons
« Reply #54 on: September 13, 2002, 07:45:46 AM »
Reply with quote

Never mind I found the link to you site where you have the 1.41 .zip file ... thanks again.. I been waiting for this mod since I found yabb. I'll let ya know how this install goes :)

RickC
Logged
Big P
Mod Team
YaBB God
*****
Posts: 1462


"Back in '68, I don't like you, The End."

ICQ - 76064555pierceward@hotmail.com WWW
Re:[Done 1.4.1/1.4.0] Different Category Icons
« Reply #55 on: September 13, 2002, 05:19:04 PM »
Reply with quote

The download link in the first post is to the mod file on my site. It's the direct download link, the link in my sig is to all my mod files with downloads and num. of downloads etc.  ;)
It should work without any problems, but I must inform you that there was only one step that needed changing for 1.4.1, so if you have mods installed, that's most likely why there was a conflict with so many steps with problems for you. You should install this mod first for 1.4.1 to ensure you have no problems (make sure you uninstall your other mods before you upgrade by the way. ) ;)
Logged

PHPNews has been released!!! Download it now!!!
rickc
Jr. Member
**
Posts: 55


My Tsi rules!

WWW
Re:[Done 1.4.1/1.4.0] Different Category Icons_thanks Big P
« Reply #56 on: September 15, 2002, 10:29:28 PM »
Reply with quote

I just wanted to say thanks again for the mod, I installed the newwer one you just built,  it worked just great, now I can get my site up and running thanks again Rick C
Logged
Daniel D.
Mod Team
YaBB God
*****
Posts: 2935


Re:[Done 1.4.1/1.4.0] Different Category Icons
« Reply #57 on: September 16, 2002, 12:56:30 AM »
Reply with quote

* Daniel D. yells: BIG P - arrrghhh !! Why the hell isn't this working !! :-[

Someone asked me if I can change this mod to display the new pics at the old place beside the "mark all as read" button because he uses only one sort of pics. He still wants to turn it on/off.

I wrote the following code and it works:
- pics are displayed at the left side like the normal ones
- you can turn them on/off

BUT: He wants the feature that if he doesn't change the icons, the old one's should be displayed. If he wants some new, they should be there. Ok, for some reasons that won't work !!

<edit file>
Sources/BoardIndex.php
</edit file>

<search for>
      print <<<EOT
  <tr>
    <td colspan="5" class="catbg" height="18"><a name="$row_board[ID_CAT]"><b>$row_board[catName]</b></a></td>
  </tr>
EOT;
</search for>

<replace>
// Begin Diff Cat Icon Mod
  if ($row_board[iconon] == "") $row_board[iconon] = "on.gif";
  $on = "<img src='$imagesdir/$row_board[iconon]' alt='$txt[333]' border=0>";
  if ($row_board[iconoff] == "") $row_board[iconoff] = "off.gif";
  $off = "<img src='$imagesdir/$row_board[iconoff]' alt='$txt[334]' border=0>";
      print <<<EOT
  <tr>
    <td colspan="5" class="catbg" height="18"><a name="$row_board[ID_CAT]"><b>$row_board[catName]</b></a></td>
  </tr>
EOT;
</replace>

<search for>
               $new = "<img src=\"$imagesdir/on.gif\" alt=\"$txt[333]\">";
</search for>

<replace>
               $new = "$on";
</replace>

<search for>
         $new = "<img src=\"$imagesdir/off.gif\" alt=\"$txt[334]\">";
</search for>

<replace>
         $new = "$off";
</replace>

<search for>
   $result_boards = mysql_query ("SELECT c.name as catName, c.ID_CAT, b.ID_BOARD, b.name as boardName, b.description, b.moderators, b.numPosts, b.numTopics, c.memberGroups FROM {$db_prefix}categories as c LEFT JOIN {$db_prefix}boards as b ON (b.ID_CAT=c.ID_CAT)$condition ORDER BY c.catOrder, c.ID_CAT, b.boardOrder, b.ID_BOARD");
</search for>

<replace>
   $result_boards = mysql_query ("SELECT c.name as catName, c.iconon as iconon, c.iconoff as iconoff, c.ID_CAT, b.ID_BOARD, b.name as boardName, b.description, b.moderators, b.numPosts, b.numTopics, c.memberGroups FROM {$db_prefix}categories as c LEFT JOIN {$db_prefix}boards as b ON (b.ID_CAT=c.ID_CAT)$condition ORDER BY c.catOrder, c.ID_CAT, b.boardOrder, b.ID_BOARD");
</replace>

<search for>
      print <<<EOT
  <tr>
    <td class="titlebg" colspan="6" align="center">
    <table cellpadding="0" border="0" cellspacing="0" width="100%">
      <tr>
        <td align="left">
        <img src="$imagesdir/new_some.gif" border="0" alt="$txt[333]">  
        <img src="$imagesdir/new_none.gif" border="0" alt="$txt[334]"></td>
        <td align="right"><font size="1"> 
</search for>

<replace>
if($modSettings[iconsEnable]) {
      print <<<EOT
  <tr>
    <td class="titlebg" colspan="6" align="center">
    <table cellpadding="0" border="0" cellspacing="0" width="100%">
      <tr>
        <td align="left">
EOT;

if($row_board[iconon] != "on.gif" && $row_board[iconoff] != "off.gif") {
print <<<EOT
   <table cellpadding="0" border="0" cellspacing="0">
     <tr><td align="left">$on </td><td align="left"><font size=1>$txt[333]  </font></td><td align="left">$off </td><td align="left"><font size=1>$txt[334]</font></td>
     </tr>
   </table>
EOT;
} else {
print <<<EOT
   <table cellpadding="0" border="0" cellspacing="0">
     <tr><td align="left"><img src="$imagesdir/new_some.gif" border="0" alt="$txt[333]">  </td><td align="left"><img src="$imagesdir/new_none.gif" border="0" alt="$txt[334]"></td>
     </tr>
   </table>
EOT;
}
print <<<EOT
        <td align="right"><font size="1"> 
EOT;
} else {
print <<<EOT
  <tr>
    <td class="titlebg" colspan="6" align="center">
    <table cellpadding="0" border="0" cellspacing="0" width="100%">
      <tr>
        <td align="left"> </td>
        <td align="right"><font size="1"> 
EOT;
}
// End Diff Cat Icon Mod
</replace>

Do I have to insert something like that:
else if($row_board[iconon] == "on.gif" && $row_board[iconoff] == "off.gif") {
« Last Edit: September 16, 2002, 12:58:46 AM by Daniel D. » Logged

Big P
Mod Team
YaBB God
*****
Posts: 1462


"Back in '68, I don't like you, The End."

ICQ - 76064555pierceward@hotmail.com WWW
Re:[Done 1.4.1/1.4.0] Different Category Icons
« Reply #58 on: September 16, 2002, 05:17:20 PM »
Reply with quote

Oh daniel! Way to mess things up :P
Actually I might just do this myself in the normal package, I'll print the old icons in the normal place if *no* new images are added. - However, wouldn't it be easier if he just doesn't add the mod anyway??  ::)
I'll give it a go later, I'm pretty busy atm though.
Logged

PHPNews has been released!!! Download it now!!!
Daniel D.
Mod Team
YaBB God
*****
Posts: 2935


Re:[Done 1.4.1/1.4.0] Different Category Icons
« Reply #59 on: September 16, 2002, 05:37:36 PM »
Reply with quote

Hehe, THX !
Logged

Pages: 1 2 3 [4] 5 6 7 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.5.1] Different Category Icons « 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.026 seconds with 20 queries.