Welcome, Guest. Please Login or Register.
May 15, 2024, 01:48:01 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [DONE 1.4.1]Cosmetic Display Modification « previous next »
Pages: [1] 2 3 Reply Ignore Print
Author Topic: [DONE 1.4.1]Cosmetic Display Modification  (Read 8422 times)
Nemesis
What's an Admin?
Global Moderator
YaBB God
*****
Posts: 2199


WWW
[DONE 1.4.1]Cosmetic Display Modification
« on: June 26, 2002, 07:25:07 AM »
Reply with quote

<id>
Cosmetic Display Changes
</id>

<version>
1.0
</version>

<mod info>
This mods changes the way message display looks. Info center is moved underneath users post. IP address was moved underneath users profile. Signature line is moved above the new info center area. Images are optional you can use my new one's or use default YaBB Se images. Suggestion if you do not use report to moderator feature. I suggest disabling that in the admin center. This will help narrow boards from having buttons wrap in the table.

This mod is used on my gaming news site http://www.gamerzalliance.com Please post any problems you are having in the proper board at the YaBB.info site. I will not answere any emails/pm's for support. I will only support this on the proper board.

I coded this mod with 1.4.1 files. Please use Boardmod SE to install this modification. You can download Boardmod SE here: http://dns3.omnibit.it/mangaitalia/tmp/BoardMOD.zip If you like to manually install the modification. Just open the modification with wordpad, or similar text viewing program and follow the boardmod code scheme.

Note: I update this mod from my 1.3.0 mod to work with 1.4.1. If anyone tries it with 1.4.0. Let me know if it works please.
</mod info>

The mod updates two files:
english.lng
Sources/Display.php

<author>
Nemesis
</author>

<DOWNLOAD HERE>
http://www.gamerzalliance.com/distributions/index.php
</DOWNLOAD HERE>
« Last Edit: August 31, 2002, 04:54:04 AM by Nemesis » Logged


Want to say thanks?
*************************************
DONATE or check out my WishList
*********************************
Tranten
Noobie
*
Posts: 22


tranten@hotmail.com WWW
Re:[DONE 1.4.1]Cosmetic Display Modification
« Reply #1 on: December 18, 2002, 10:14:14 PM »
Reply with quote

I installed this a while ago and it looks great.

But I have a question on modifying the info center a little bit. I've asked how-to in the scripting help forum, but no luck, so I thought perhaps you might be able to help (or anyone else, for that matter.) So I'm posting the original message in here:


I have Nemesis' Cosmetic Display Mod on my forum, which moves the Info center, all the buttons from under the username, to under the sig in posts.

It puts all the buttons in one line and puts a space between each. I have no php coding knowledge but I'm looking to delete that space, so I could change the images so that they 'flow' together somehow.

I tried looking in the code (disasterous, I know) and this is what I found and figured to be the code for the info center:

<td colspan="2">
EOT;
{        
if($muserID != '-1')
   print str_replace (array('"', ''', '&', '<', '>'), array('"', "'", '&', '<', '>'), $userprofile[$mname]['signature']);
}
print <<<EOT
</td></tr>
              <tr>
        <td align="left">
EOT;
if($muserID != "-1") {
   print "\n            {$userprofile[$mname]['ICQ']} $icq $msn $yim {$userprofile[$mname]['AIM']}\n";
}
if($muserID == '-1') {
   print "            <a href=\"mailto:$memail\">$img[email_sm]</a>\n";
}else if ($userprofile[$mname]['hideEmail'] != "1" || $settings[7] == "Administrator" || $allow_hide_email != '1') {
   print "            $profbutton".$userprofile[$mname]['websiteUrl']." <a href=\"mailto:$memail\">$img[email_sm]</a>$sendm\n";
} else {
   print"    $profbutton{$userprofile[$mname]['websiteUrl']}$sendm \n";
}
print <<<EOT
               </td>

I deleted some of the spaces... like: "$icq $msn $yim" into: "$icq$msn$yim" and that worked for those buttons respectivly, but I couldn't figure out where to delete a space for all the others... anybody able to help me out on this?  

Here's a screenshot of the current layout:


What we'd like to do, is delete the spaces between all those images, and then create some other images that flow better.

We were able to somewhat create this look in our control panel by just using a table in the template:


Now, while we don't want the infocenter to look exactly the same, it helps you guys to realize what we're trying to do.

Thanx in advance!
Logged
JohnnyBoy
Noobie
*
Posts: 36


OldGP3freak

WWW
Re:[DONE 1.4.1]Cosmetic Display Modification
« Reply #2 on: January 22, 2003, 09:34:03 AM »
Reply with quote

Are you going to make a version that works with version 1.5.x?
I really like the mod but it doesn't work on 1.5.x :(

Greetz,
John
Logged
Nemesis
What's an Admin?
Global Moderator
YaBB God
*****
Posts: 2199


WWW
Re:[DONE 1.4.1]Cosmetic Display Modification
« Reply #3 on: January 22, 2003, 12:48:16 PM »
Reply with quote

I will update all my mods this weekend.

Nemey
Logged


Want to say thanks?
*************************************
DONATE or check out my WishList
*********************************
JohnnyBoy
Noobie
*
Posts: 36


OldGP3freak

WWW
Re:[DONE 1.4.1]Cosmetic Display Modification
« Reply #4 on: January 26, 2003, 07:41:31 AM »
Reply with quote

Thank you very much :)
Logged
mephisto_kur
Sr. Member
****
Posts: 308


Hi ho.

WWW
Re:[DONE 1.4.1]Cosmetic Display Modification
« Reply #5 on: January 30, 2003, 03:30:33 PM »
Reply with quote

Desparately waiting for this for 1.5.1....
Any news?  (not to be a jerk)
I was barely getting used to moving around in the old code, 1.5.x is like Greek to me now!
Logged



Awmp, ding, soo googoongee doop, dee
Googoo Fleegoogeegoo
Goo Fleegoogeegoo
Duht, Deeheeh
Oogoogoog Dtee
Oogoogagoo oogoogweee
Fleegoogeegoo, fleegow
Go go mah mah mefs sufh yeah...
mephisto_kur
Sr. Member
****
Posts: 308


Hi ho.

WWW
Re:[DONE 1.4.1]Cosmetic Display Modification
« Reply #6 on: January 30, 2003, 09:05:25 PM »
Reply with quote

bah, I have a bug.
« Last Edit: January 30, 2003, 10:24:57 PM by mephisto_kur » Logged



Awmp, ding, soo googoongee doop, dee
Googoo Fleegoogeegoo
Goo Fleegoogeegoo
Duht, Deeheeh
Oogoogoog Dtee
Oogoogagoo oogoogweee
Fleegoogeegoo, fleegow
Go go mah mah mefs sufh yeah...
JohnnyBoy
Noobie
*
Posts: 36


OldGP3freak

WWW
Re:[DONE 1.4.1]Cosmetic Display Modification
« Reply #7 on: February 03, 2003, 08:30:24 PM »
Reply with quote

Quote from: Nemesis on January 22, 2003, 12:48:16 PM
I will update all my mods this weekend.

Nemey

This must be a long weekend then ;)
Logged
mephisto_kur
Sr. Member
****
Posts: 308


Hi ho.

WWW
Re:[DONE 1.4.1]Cosmetic Display Modification
« Reply #8 on: February 12, 2003, 08:56:53 PM »
Reply with quote

For lack of an update from Nemesis, you can have my PfaBB version.  It should work with YaBBSE 1.5.1RC's.

Mine changes both where the icons are displayed, and allows you to use your own for ICQ and Yahoo.

As always, back up your files, I am not supporting this, its just a hack that I did for PfaBB and thought maybe you guys could adapt it to your needs.  (The divs around the sig\attachment\imicons are for a future thing I'm doing.  If you don't want them there, just be sure to put line breaks where you want them, since divs automatically break the line when they close)

You can also, if you wish, use these icons.  These work for light backgrounds...



And dark:




<id>
IM Icons Under Signature Mod for YaBBSE 1.5.4 and pfabb
</id>

<version>
0.1.5.4
</version>

<mod info>
This mod moves the IM Icons (AIM, MSN, PM, www, email, etc) from the left column to under the signature.  THIS A BETA.
If your board breaks, I warned you!  MAKE A BACKUP.

Files Modified
Display.php
Load.php
Memberlist.php
</mod info>

<author>
Mephisto_kur (Bill Walker)
With a little help from Moya!
</author>

<homepage>
http://www.heavybrick.com
</homepage>

<edit file>
Display.php
</edit file>

<search for>
       global $sourcedir, $sc, $prev_next;
</search for>

<add after>
       global $imicons;
</add after>

<search for>
               $online = '';
               $title = '';
               $star = '';
               $icq = '';
               $yim = '';
               $memberinf ='';
               $postinfo = '';
               $usernamelink = '';
</search for>

<add after>
               $imicons = '';

</add after>

<search for>
               if ($muserID != '-1')
               {
                       $userinfo .= '
                                               ' . $star . '<br /><br />
                                               ' . $online . '
                                               ' . $userprofile[$mname]['gender'] . '
                                               ' . $postinfo . '
                                               ' . $userprofile[$mname]['avatar'] . '
                                               ' . $userprofile[$mname]['personalText'] . '
                                               ' . $userprofile[$mname]['ICQ'] . ' ' . $icq. ' ' . $msn . ' ' . $yim . ' ' . $userprofile[$mname]['AIM'] . '<br />
                                               ' . implode($menusep, $profileButtons);
               }
               else
                       $userinfo .= '<br /><a href="mailto:' . $memail . '">' . $img['email_sm'] . '</a>' . "\n";
               $userinfo .= '
                                       </font>';
</search for>

<replace>
//IM Icon Move Mod
       if ($muserID != '-1')
       {    
       $imicons = $userprofile[$mname]['ICQ'] . '
                         ' . $icq. '
                         ' . $msn . '
                         ' . $yim . '
                         ' . $userprofile[$mname]['AIM'] . '
                         ' . implode($menusep, $profileButtons);

         $userinfo .= '
                         ' . $star . '<br /><br />
                         ' . $online . '
                         ' . $userprofile[$mname]['gender'] . '
                         ' . $postinfo . ' ' . $userprofile[$mname]['avatar'] . '
                         ' . $userprofile[$mname]['personalText'];
       }
       else
       {
         $imicons .= '<br /><a href="mailto:' . $memail . '">' . $img['email_sm'] . '</a>' . "\n";
         $imicons .= '</font>';
       };
</replace>

<search for>
                                                                                       ' . $signature . '
                                                                                       ' . $attachImage . '
</search for>

<replace>
                                                                                       <div>' . $signature . '</div><br />
                                                                                       <div>' . $attachImage . '</div>
                                                                                       <div>' . $imicons . '</div>
</replace>

<edit file>
Load.php
</edit file>

<search for>
               $userprofile[$user]['ICQ'] = "<a href=\"$cgi&amp;action=icqpager&amp;UIN=" . $userprofile[$user]['ICQ'] . "\" target=\"_blank\"><img src=\"http://web.icq.com/whitepages/online?icq=" . $userprofile[$user]['ICQ'] . "&amp;img=5\" alt=\"" . $userprofile[$user]['ICQ'] . "\" border=\"0\" /></a>";
</search for>

<replace>
     $userprofile[$user]['ICQ'] = "<a href=\"$cgi&amp;action=icqpager&amp;UIN=" . $userprofile[$user]['ICQ'] . "\" target=\"_blank\"><img src=\"$imagesdir/icq.gif\" alt=\"".$userprofile[$user]['ICQ']."\" border=0></a>";
</replace>

<search for>
               $yimon[$user] = "<a href=\"http://edit.yahoo.com/config/send_webmesg?.target={$userprofile[$user]['YIM']}\"><img src=\"http://opi.yahoo.com/online?u=" . $userprofile[$user]['YIM'] . "&amp;m=g&amp;t=0\" border=\"0\" alt=\"" . $userprofile[$user]['YIM'] . "\" /></a>";
</search for>

<replace>
               $yimon[$user] = "<a href=\"http://edit.yahoo.com/config/send_webmesg?.target={$userprofile[$user]['YIM']}\"><img SRC=\"$imagesdir/yahoo.gif\" BORDER=0 alt=\"".$userprofile[$user]['YIM']."\"></a>";
</replace>

<edit file>
Memberlist.php
</edit file>

<search for>
                       $row['ICQ'] = "<a href=\"$cgi;action=icqpager;UIN=$row[ICQ]\" target=\"_blank\"><img src=\" http://web.icq.com/whitepages/online?icq=$row[ICQ]&img=5\" alt=\"$row[ICQ]\" border=\"0\" /></a>";
</search for>

<replace>
                       $row['ICQ'] = "<a href=\"$cgi;action=icqpager;UIN=$row[ICQ]\" target=\"_blank\"><img src=\"$imagesdir/icq.gif\" alt=\"$row[ICQ]\" border=0></a>";
</replace>
« Last Edit: July 07, 2003, 06:00:49 AM by mephisto_kur » Logged



Awmp, ding, soo googoongee doop, dee
Googoo Fleegoogeegoo
Goo Fleegoogeegoo
Duht, Deeheeh
Oogoogoog Dtee
Oogoogagoo oogoogweee
Fleegoogeegoo, fleegow
Go go mah mah mefs sufh yeah...
Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[DONE 1.4.1]Cosmetic Display Modification
« Reply #9 on: February 13, 2003, 05:35:17 AM »
Reply with quote

Might not work as expected.. Like for instance.. What are we replacing here??


<search for>
$profileButtons[] = '<a href="' . $scripturl . '?action=viewprofile;user=' . $euser . '">' . $img['viewprofile_sm'] . '</a>';
</search for>

<replace>
$profileButtons[] = '<a href="' . $scripturl . '?action=viewprofile;user=' . $euser . '">' . $img['viewprofile_sm'] . ' </a>';
</replace>

<search for>
$profileButtons[] = "<a href=\"mailto:$memail\">$img[email_sm]</a>";
</search for>

<replace>
$profileButtons[] = "<a href=\"mailto:$memail\"> $img[email_sm] </a>";
</replace>
Logged

mephisto_kur
Sr. Member
****
Posts: 308


Hi ho.

WWW
Re:[DONE 1.4.1]Cosmetic Display Modification
« Reply #10 on: February 13, 2003, 05:37:36 AM »
Reply with quote

Quote from: Wiziwig on February 13, 2003, 05:35:17 AM
Might not work as expected.. Like for instance.. What are we replacing here??


<search for>
$profileButtons[] = '<a href="' . $scripturl . '?action=viewprofile;user=' . $euser . '">' . $img['viewprofile_sm'] . '</a>';
</search for>

<replace>
$profileButtons[] = '<a href="' . $scripturl . '?action=viewprofile;user=' . $euser . '">' . $img['viewprofile_sm'] . ' </a>';
</replace>

<search for>
$profileButtons[] = "<a href=\"mailto:$memail\">$img[email_sm]</a>";
</search for>

<replace>
$profileButtons[] = "<a href=\"mailto:$memail\"> $img[email_sm] </a>";
</replace>


As I said above:
Quote
and allows you to use your own for ICQ and Yahoo.

OOPS, edit, I need to read better.  Thos lines add a couple spaces between the "$profilebuttons" to give even spacing with the IM buttons.
« Last Edit: February 13, 2003, 05:38:59 AM by mephisto_kur » Logged



Awmp, ding, soo googoongee doop, dee
Googoo Fleegoogeegoo
Goo Fleegoogeegoo
Duht, Deeheeh
Oogoogoog Dtee
Oogoogagoo oogoogweee
Fleegoogeegoo, fleegow
Go go mah mah mefs sufh yeah...
Nemesis
What's an Admin?
Global Moderator
YaBB God
*****
Posts: 2199


WWW
Re:[DONE 1.4.1]Cosmetic Display Modification
« Reply #11 on: February 13, 2003, 08:29:40 AM »
Reply with quote

Maybe I should told you guys, I been having a hectic time last few weeks. Some big changes at work then My computer crashed. I have not had time to update my mods. I wrote this in the admin board but forgot to let everyone esle know.
Logged


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


Hi ho.

WWW
Re:[DONE 1.4.1]Cosmetic Display Modification
« Reply #12 on: February 13, 2003, 04:07:14 PM »
Reply with quote

Quote from: Nemesis on February 13, 2003, 08:29:40 AM
Maybe I should told you guys, I been having a hectic time last few weeks. Some big changes at work then My computer crashed. I have not had time to update my mods. I wrote this in the admin board but forgot to let everyone esle know.

I don't think any of us are afraid you are abandoning us!  ;)
We realize you guys are busy right now.
Logged



Awmp, ding, soo googoongee doop, dee
Googoo Fleegoogeegoo
Goo Fleegoogeegoo
Duht, Deeheeh
Oogoogoog Dtee
Oogoogagoo oogoogweee
Fleegoogeegoo, fleegow
Go go mah mah mefs sufh yeah...
Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[DONE 1.4.1]Cosmetic Display Modification
« Reply #13 on: February 13, 2003, 05:49:28 PM »
Reply with quote

Here's a tweek that lines out the user and blocks display of user buttons if that user has been deleted:


                     <td bgcolor="' . $windowbg . '" class="' . $css . '">
                        <table width="100%" cellpadding="4" cellspacing="1" class="' . $css . '" bgcolor="' . $windowbg . '">
                           <tr>
                              <td class="' . $css . '" bgcolor="' . $windowbg . '" valign="top" width="15%" rowspan="2">';
                              if ($muserID == '-1') { echo ' <s>' . $userinfo . '</s> ';}
                              else  { echo '   ' . $userinfo . '    ';}

                            echo '
                              </td>
                              <td class="' . $css . '" bgcolor="' . $windowbg . '" valign="top" width="85%" height="100%">
                                 <table width="100%" border="0">
                                    <tr>
                                       <td align="left" valign="middle"><img src="' . $imagesdir . '/' . $micon . '.gif" alt="" /></td>
                                       <td align="left" valign="middle">
                                          <font size="2"><b>' . $msub . '</b></font><br />
                                          <font size="1">&#171; <b>' . $counterwords . ' ' . $txt[30] . ':</b> ' . $messdate . ' &#187;</font>
                                       </td>
                                       <td align="right" valign="bottom" height="20" nowrap="nowrap">
                                          <font size="-1">' . implode($menusep, $messageButtons) . '</font>
                                       </td>
                                    </tr>
                                 </table>
                                 <hr width="100%" size="1" class="windowbg3" />
                                 ' . $lastmodified . '<br><br><br>
                                 ' . $message . '
                              </td>
                           </tr><tr>
                              <td class="' . $css . '" bgcolor="' . $windowbg . '" valign="bottom">
                                 <table width="100%" border="0">
                                    <tr>';
                                    if ($settings[7] == 'Administrator') { echo ' <font size="1"><br>' . $attached . '</font>  ';   }
                                    if ($muserID == '-1') { echo ' <font size="2"><center><b>' . $txt[dm] . '</center></b></font>   ';   }
                              else  { echo '   <font size="1">'  . $imicons . '&nbsp;&nbsp;&nbsp;' . $reportToModerator . $ipInfo . '</font> ';   }
                                  echo '
                                       </td>
                                    </tr>
                                 </table>
                           <div>' . $signature . '</div><br />
                           <div>' . $attachImage . '</div>
                           </tr>
                        </table>
Logged

mephisto_kur
Sr. Member
****
Posts: 308


Hi ho.

WWW
Re:[DONE 1.4.1]Cosmetic Display Modification
« Reply #14 on: February 22, 2003, 09:12:43 PM »
Reply with quote

Except that you are incorrectly using non-breaking spaces, and you have now hard coded the font size for the $imicons.
Logged



Awmp, ding, soo googoongee doop, dee
Googoo Fleegoogeegoo
Goo Fleegoogeegoo
Duht, Deeheeh
Oogoogoog Dtee
Oogoogagoo oogoogweee
Fleegoogeegoo, fleegow
Go go mah mah mefs sufh yeah...
Pages: [1] 2 3 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [DONE 1.4.1]Cosmetic Display Modification « 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 1.302 seconds with 20 queries.