Welcome, Guest. Please Login or Register.
November 06, 2024, 09:21:33 AM
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 All Versions] Boardindex fix « previous next »
Pages: [1] Reply Ignore Print
Author Topic: [Done All Versions] Boardindex fix  (Read 1225 times)
Scorpion
Noobie
*
Posts: 33


WWW
[Done All Versions] Boardindex fix
« on: June 08, 2003, 10:33:24 PM »
Reply with quote

I don't know if anyone has noticed, but when you are logged in as a member or logged out as a guest, on any yabbse forum, the boardindex changes... It's hard to explain, here's some pictures - take a look at the bottom of the cell which says "mark as read" it dissappears for guests...

Member:


Guest:


Here is the fix for it, this makes the bottom cell appear, and the "mark as read" button to appear only to members.

Open boardindex.php find lines 308-322
   if ($username != 'Guest' )
   {
      echo '
               <tr>
                  <td class="titlebg" colspan="6" align="center">
                     <table cellpadding="0" border="0" cellspacing="0" width="100%">
                        <tr>
                           <td align="left">
                              ' . $img['new_some'] . '  
                              ' . $img['new_none'] . '</td>
                           <td align="right">
                              <font size="1"> ';
      if ($showmarkread == 1)
         echo " <a href=\"$scripturl?action=markallasread\">$img[markallread]</a>";
      echo '


replace with:
   {
      echo '
               <tr>
                  <td class="titlebg" colspan="6" align="center">
                     <table cellpadding="0" border="0" cellspacing="0" width="100%">
                        <tr>
                           <td align="left">
                              ' . $img['new_some'] . '&nbsp;&nbsp;
                              ' . $img['new_none'] . '</td>
                           <td align="right">
                              <font size="1">&nbsp;';
      if ($showmarkread == 1) if ($username != 'Guest' )
         echo " <a href=\"$scripturl?action=markallasread\">$img[markallread]</a>";
« Last Edit: June 08, 2003, 10:35:25 PM by Scorpion » Logged
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:[Done All Versions] Boardindex fix
« Reply #1 on: June 08, 2003, 10:38:23 PM »
Reply with quote

Um, they did that on purpose because all boards/posts are marked as read for guests. And guests cannot use the mark as read function.

So your mod does no good whatsoever. :-\
Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
Scorpion
Noobie
*
Posts: 33


WWW
Re:[Done All Versions] Boardindex fix
« Reply #2 on: June 08, 2003, 10:40:58 PM »
Reply with quote

Quote from: Chris Cromer on June 08, 2003, 10:38:23 PM
Um, they did that on purpose because all boards/posts are marked as read for guests. And guests cannot use the mark as read function.

So your mod does no good whatsoever. :-\

Oh, I thought it stored a cookie for the guests, for the boards and posts read... :(
Logged
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:[Done All Versions] Boardindex fix
« Reply #3 on: June 08, 2003, 10:53:17 PM »
Reply with quote

No, all posts/boards are set to read for guests no matter what.
Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
Zulu
Full Member
***
Posts: 104


I'm no longer a llama, I'm a Monkey

WWW
Re:[Done All Versions] Boardindex fix
« Reply #4 on: June 11, 2003, 03:36:43 PM »
Reply with quote

It's nice to install this if you want to have a common look at all your pages.. but the functions it gives are kinda useless ;D
Logged

Webby @ RFI
Formerly known as PtPazuzu
Jack.R.Abbit
Mod Team
YaBB God
*****
Posts: 553


RACE FOR SPENT!

Re:[Done All Versions] Boardindex fix
« Reply #5 on: June 11, 2003, 03:45:03 PM »
Reply with quote

Something seems not too right with that code.  those two "if" statements strung on like that.  And that first "{" seems to be hanging out there now since the "if" statement was moved.  Not that it matters since as mentioned it really serves no functional purpose.
Logged

<--------  Mods by Jack  -------->
Package Server: http://www.modsbydesign.com/mods.by.jack/yabbse/ (now serving)


|----------------------------------------------|
|                                              |
|          DON'T PM ME FOR SUPPORT!             |
|                                              |
|----------------------------------------------|
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done All Versions] Boardindex fix « 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.160 seconds with 20 queries.