Welcome, Guest. Please Login or Register.
May 04, 2025, 01:32:44 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  |  Mod Ideas and Creation  |  Signature Preview in the first Profile page « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Signature Preview in the first Profile page  (Read 440 times)
Russ
Noobie
*
Posts: 18


I'm a llama!

Signature Preview in the first Profile page
« on: June 01, 2002, 04:09:34 AM »
Reply with quote

Hey all,
Just wondering how hard it would be to display a members signature out on their main profile screen like the Avatars and Text are diaplayed.

I've had a few people that are constantly modifying their signatures ask if this was possible so they could see the changes they are making without having to go back to the boards and look at their posts.

Russ
Logged
Russ
Noobie
*
Posts: 18


I'm a llama!

Re:Signature Preview in the first Profile page
« Reply #1 on: June 12, 2002, 11:38:45 PM »
Reply with quote

LOL, well it's been a while, Just wondering if I'm way off mark suggesting this or am I the only one who could use it.

Anyone else think this is possible or even useful?

Russ
Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:Signature Preview in the first Profile page
« Reply #2 on: June 12, 2002, 11:42:56 PM »
Reply with quote

I think this would be both possible and useful.  I know I constantly move around when changing my sig just to see how it looks.
Logged

SK15
Jr. Member
**
Posts: 93


SK15 ESTA EM TODAS !!! - SK15 THIS IN EVERYBODY

ICQ - 134233334sk15@msn.com WWW
Re:Signature Preview in the first Profile page
« Reply #3 on: June 13, 2002, 05:23:09 AM »
Reply with quote

I also know that is possible...  
But why would where be placed he doesn't have a space adapted for them in that part.  
Do you have some idea of where to place the exhibition?
« Last Edit: June 13, 2002, 05:24:42 AM by SK15 » Logged
Russ
Noobie
*
Posts: 18


I'm a llama!

Re:Signature Preview in the first Profile page
« Reply #4 on: June 15, 2002, 04:10:25 PM »
Reply with quote

Well It displays your Avatar and Text, Was thinking of a split window there that at the bottom displays the Sig?
Logged
sylvester
YaBB God
*****
Posts: 525


Re:Signature Preview in the first Profile page
« Reply #5 on: June 15, 2002, 11:19:43 PM »
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>

<File>
Sources/Profile.php
</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>

</file>
Enjoy...
« Last Edit: July 04, 2002, 07:16:05 AM by sylvester » Logged

I'm back
Russ
Noobie
*
Posts: 18


I'm a llama!

Re:Signature Preview in the first Profile page
« Reply #6 on: June 15, 2002, 11:58:30 PM »
Reply with quote

That is exactly what I was looking for....you rock!!!

Thank you,
Russ
Logged
sylvester
YaBB God
*****
Posts: 525


Re:Signature Preview in the first Profile page
« Reply #7 on: June 16, 2002, 12:29:38 AM »
Reply with quote

Quote from: Russ on June 15, 2002, 11:58:30 PMThat is exactly what I was looking for....you rock!!!

Thank you,
Russ
You're welcome. ;) ;D

BTW: Does it work?
Logged

I'm back
Russ
Noobie
*
Posts: 18


I'm a llama!

Re:Signature Preview in the first Profile page
« Reply #8 on: June 17, 2002, 03:48:24 PM »
Reply with quote

Yes it worked perfectly...

Again thank you!!

Russ
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Signature Preview in the first Profile page « 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.167 seconds with 20 queries.