Welcome, Guest. Please Login or Register.
May 21, 2024, 04:51:14 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.0][code] Signature preview @ view profile « previous next »
Pages: [1] Reply Ignore Print
Author Topic: [Done 1.4.0][code] Signature preview @ view profile  (Read 5546 times)
sylvester
YaBB God
*****
Posts: 525


[Done 1.4.0][code] Signature preview @ view profile
« on: June 16, 2002, 12:48:43 AM »
Reply with quote

<id>
Signature preview @ view profile
</id>

<mod info>
If you have a signature, it will show it in your view-profile page :)
</mod info>

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

<search for>
function ViewProfile (){
</search for>

<add before>
function signature($mname) {
global $db_prefix,$modSettings,$txt;
$request = mysql_query("SELECT signature FROM {$db_prefix}members WHERE memberName='$mname' LIMIT 1");
$request1 = mysql_fetch_array($request);
if($request1['signature'] != "") {
$sig = $request1['signature'];
$sig = DoUBBC($sig);
$signature = <<<EOT
<tr>
    <td class="titlebg" bgcolor="$color[titlebg]" colspan="2" height="25">
   <table border="0">
  <tr>
    <td>
    <font size=2><b>{$txt[85]}:</b></font></td>
  </tr><tr>
   <td colspan="2">{$sig}</td>
  </tr>
   </table>
    </td>
  </tr>
EOT;
}
return $signature;
}
</add before>

<search for>
function ViewProfile (){
        global $user, $modify, $userpic_width, $facesurl, $userpic_height, $allowpics, $txt, $color, $cgi, $GodPostNum;
   global $SrPostNum, $FullPostNum, $JrPostNum, $settings, $allow_hide_email, $imagesdir,$yytitle;
   global $username,$password,$pwseed,$action,$cookiepassword,$cookieusername,$db_prefix,$modSettings;
   $user=urldecode($user);
   $request = mysql_query("SELECT ID_MEMBER FROM {$db_prefix}members WHERE memberName='$user'");
</search for>

<add after>
$signature = signature($user);
</add after>

<search for>
</tr>$usrlng
    </table>
    </td>
    <td bgcolor="$color[windowbg]" class="windowbg" valign="middle" align="center" width="150">
    $pic<BR><BR>
    <font size=2>$memsettings[12]</font></td>
  </tr>
</search for>

<add after>
$signature
</add after>

</edit file>
Enjoy...

P.S. This 'mod' was requested by Russ.

Screenshots:
User has a signature


User has no signature
« Last Edit: August 16, 2002, 04:51:59 AM by Nemesis » Logged

I'm back
Trushna
Noobie
*
Posts: 49


Re:[code][completed] Signature preview @ view profile
« Reply #1 on: June 16, 2002, 11:15:35 AM »
Reply with quote

Can I see it in action? (screenshot or similar)
« Last Edit: June 16, 2002, 01:35:05 PM by Trushna » Logged

( 18/6/2002 ) * FIFA vs Italy : 2 - 1 *
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:[code][completed] Signature preview @ view profile
« Reply #2 on: June 17, 2002, 04:57:29 AM »
Reply with quote

Thanks for the mod but will you please put it in a boardmod format.
Logged

sylvester
YaBB God
*****
Posts: 525


Re:[code][completed] Signature preview @ view profile
« Reply #3 on: July 04, 2002, 06:51:28 AM »
Reply with quote

Quote from: David on June 17, 2002, 04:57:29 AMThanks for the mod but will you please put it in a boardmod format.
done...
Logged

I'm back
Stud Muffin
Full Member
***
Posts: 120


Oh baby!!

WWW
Re:[code][completed] Signature preview @ view profile
« Reply #4 on: August 16, 2002, 01:02:22 AM »
Reply with quote

Installed this on 1.4.1 and it works ok after altering a couple of steps as the format has changed slight in 1.4.1 profile.php.  Nice mod as all ways  sylvester    :)


P.S. When's the site opening then?
Logged

Thanks to all the YaBBSE team, a great forum :)
OAP clan Forum
koldnal
Full Member
***
Posts: 129


Erfaring er det navnet folk gir sine feiltrinn.

Re:[Done 1.4.0][code] Signature preview @ view profile
« Reply #5 on: August 16, 2002, 10:22:26 PM »
Reply with quote

Why does it turn up like this? The dark purple should only be where it says "Signatur" and "Mer informasjon" ???

Logged

koldnal
1979Z28
Sr. Member
****
Posts: 324


WWW
Re:[Done 1.4.0][code] Signature preview @ view profile
« Reply #6 on: August 17, 2002, 02:35:45 PM »
Reply with quote

Added this in 1.4.1, and it works beautifully, even though the color of it is a little bit weird looking. We're using the default colors.

Thanks a bunch! ;D
« Last Edit: August 17, 2002, 10:51:46 PM by 1979Z28 » Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.4.0][code] Signature preview @ view profile « 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.070 seconds with 20 queries.