Welcome, Guest. Please Login or Register.
April 27, 2025, 06:22:49 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.3.+] Bio Mod « previous next »
Pages: 1 ... 6 7 [8] 9 Reply Ignore Print
Author Topic: [Done 1.3.+] Bio Mod  (Read 10703 times)
solarisjedi
Jr. Member
**
Posts: 52


Bah

Re:[Done 1.3.+] Bio Mod
« Reply #105 on: December 29, 2002, 10:13:17 AM »
Reply with quote

Quote from: Peter on December 25, 2002, 08:23:11 PMWill this mod work in 1.5.0?
If not, is someone going to change it so it works?

Best regards
Peter


I just looked at 1.5.0 "Profile.php" it is quite different from 1.4.1, so in answer to your question, no it won't work out of the box. The mod will have to be updated to reflect the code format changes in the new version.  :(
Or you could do it by hand.
Logged
BiErLeEuW
Full Member
***
Posts: 174


WWW
Re:[Done 1.3.+] Bio Mod
« Reply #106 on: December 29, 2002, 10:25:26 PM »
Reply with quote

i hope someone can make a version for 1.5 because it's a very nice mod  ;)
Logged
Yordy
Noobie
*
Posts: 40


Dekroeg!

ICQ - 96762844Yo_rdy@hotmail.com WWW
Re:[Done 1.3.+] Bio Mod
« Reply #107 on: January 02, 2003, 11:25:15 AM »
Reply with quote

I would really appreciate that to  :)
Logged
solarisjedi
Jr. Member
**
Posts: 52


Bah

Re:[Done 1.3.+] Bio Mod
« Reply #108 on: January 04, 2003, 04:34:38 AM »
Reply with quote

I seem to have successfully converted this to yaBB SE 1.5.0 with Wiziwig's fixes included. I'm a newb at PHP so hopefully I got it right. I tested it with IE6 and Mozilla 1.2.1, everything seems to work, even the ubbcode.

Jedi~, if your listening, do you care if I post the source or would you like me to send it to you? It's not backwards compatible so it will only work with 1.5.0 and possibly 1.5.x.

Logged
Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:[Done 1.3.+] Bio Mod
« Reply #109 on: January 05, 2003, 05:50:55 PM »
Reply with quote

Go ahead, I'm going to be rewriting it once YaBBSE 1.5.1 comes out anyways though.
Logged
BiErLeEuW
Full Member
***
Posts: 174


WWW
Re:[Done 1.3.+] Bio Mod
« Reply #110 on: January 05, 2003, 09:03:27 PM »
Reply with quote

tnx :) i'm waiting for it  ;)
Logged
solarisjedi
Jr. Member
**
Posts: 52


Bah

Re:[Done 1.3.+] Bio Mod
« Reply #111 on: January 06, 2003, 09:19:28 PM »
Reply with quote

Here it is. Like I said, it works ok on mine but no promises ;)

<id>
Bio mod
</id>

<version>
1.0
</version>

<mod info>
This adds a bio field in the profile.

Enjoy!
Jedi
</mod info>

<author>
Jedi
</author>

<homepage>
http://www.swi3d.vze.com
</homepage>

<edit file>
english.lng
</edit file>

<search for>
$locale = 'en_US';
</search for>

<add after>

$txt['bio1'] = 'Short self-biography, displayed only in your profile.';
$txt['bio2'] = '<b>Bio:</b>';

</add after>

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

<search for>
   $request = mysql_query("
      SELECT passwd, realName, emailAddress, websiteTitle, websiteUrl, signature, posts, memberGroup, ICQ, AIM, YIM, gender, personalText, avatar, dateRegistered, location, birthdate, timeFormat, timeOffset, hideEmail, ID_MEMBER, usertitle, karmaBad, karmaGood, lngfile, MSN, secretQuestion, secretAnswer
      FROM {$db_prefix}members
      WHERE memberName='$user'");
</search for>


<replace>
   $request = mysql_query("
      SELECT passwd, realName, emailAddress, websiteTitle, websiteUrl, signature, posts, memberGroup, ICQ, AIM, YIM, gender, personalText, avatar, dateRegistered, location, birthdate, timeFormat, timeOffset, hideEmail, ID_MEMBER, usertitle, karmaBad, karmaGood, lngfile, MSN, secretQuestion, secretAnswer, bio
      FROM {$db_prefix}members
      WHERE memberName='$user'");
</replace>

<search for>
                              tick();
                           //-->
                           </script>
                        </td>
                     </tr><tr>
</search for>

<add after>
                        <td width="45%"><font size="2">' . $txt['bio2'] . '</font><br><font size="1">' . $txt['bio1'] . '</font></td>
                        <td><textarea name="bio" rows="8" cols="50">' . $bio . '</textarea></td>
                     </tr><tr>
</add after>

<search for>
      if ($newpassemail)
      {
</search for>

<add before>
      if (strlen($member[bio])>=10){
      $request = mysql_query("
         UPDATE {$db_prefix}members
         SET bio='$member[bio]'
         WHERE memberName='$user'");
      }

</add before>

<search for>
         $member['signature'] = mysql_escape_string($member['signature']);
</search for>

<add after>
         $member['bio'] = mysql_escape_string($member['bio']);
</add after>

<search for>
      $member['signature'] = str_replace('<', '&lt;', $member['signature']);
      $member['signature'] = str_replace('>', '&gt;', $member['signature']);
</search for>

<add after>
      $member['bio'] = str_replace("<","&lt;",$member['bio']);
      $member['bio'] = str_replace(">","&gt;",$member['bio']);
</add after>

<search for>
         $GenderFemale = ' selected="selected"';
   }
   $signature = (isset($memsettings['signature']) ? $memsettings['signature'] : '');
   $signature = str_replace('&lt;', '<', $signature);
   $signature = str_replace('&gt;','>',$signature);
</search for>

<add after>
   $bio = (isset($memsettings['bio']) ? $memsettings['bio'] : '');
   $bio = str_replace('<br />', '', $bio);
   $bio = str_replace ('&quot;', '&quot;', $bio);
   $bio = str_replace ('&#039;', "'", $bio);
   $bio = str_replace ('&amp;', '&', $bio);
   $bio = str_replace ('&lt;', '<', $bio);
   $bio = str_replace ('&gt;', '>', $bio);
</add after>

<search for>
   # get the member's info
   $request = mysql_query("
      SELECT passwd, realName, emailAddress, websiteTitle, websiteUrl, signature, posts, memberGroup, ICQ, AIM, YIM, gender, personalText, avatar, dateRegistered, location, birthdate, timeFormat, timeOffset, hideEmail, ID_MEMBER, usertitle, karmaBad, karmaGood, lngfile, MSN, memberIP
      FROM {$db_prefix}members
      WHERE memberName='$user'");
</search for>

<add after>
   $request2 = mysql_query("
      SELECT bio
      FROM {$db_prefix}members
      WHERE memberName='$user'");
   $bio = mysql_fetch_row($request2);
   $bio = $bio[0];
   $bio = htmlspecialchars("$bio");
   $bio = str_replace('\t', '&nbsp;&nbsp;&nbsp;', $bio);
   $bio = str_replace('\r', '', $bio);
   $bio = str_replace('\n', '<br>', $bio);
   $bio = DoUBBC("$bio");
</add after>

<search for>
                  </tr>
                  ' . $usrlng . '
</search for>

<add after>
                  <tr><td colspan=2><hr size="1" width="100%" class="windowbg3"></td></tr>
                  <tr><td><font size=2>' . $txt['bio2'] . '</font></td><td><font size=2>' . $bio . '</font></td></tr>
</add after>

<search for>
   $signature = (isset($memsettings['signature']) ? $memsettings['signature'] : '');
   $signature = str_replace('&lt;', '<', $signature);
   $signature = str_replace('&gt;','>',$signature);
</search for>

<add after>
   $bio = $memsettings['bio'];
   $bio = str_replace('&lt;', '<', $bio);
   $bio = str_replace('&gt;','>', $bio);
   $bio = str_replace('<br />', '', $bio);
   $bio = DoUBBC($bio);
</add after>
« Last Edit: January 06, 2003, 09:20:39 PM by solarisjedi » Logged
BiErLeEuW
Full Member
***
Posts: 174


WWW
Re:[Done 1.3.+] Bio Mod
« Reply #112 on: January 08, 2003, 10:06:17 PM »
Reply with quote

can you give me a screenshot or a test account?
Logged
BiErLeEuW
Full Member
***
Posts: 174


WWW
Re:[Done 1.3.+] Bio Mod
« Reply #113 on: January 09, 2003, 10:01:30 PM »
Reply with quote

solarisjedi or someone ? have installed this mod?
Logged
Yvette
Noobie
*
Posts: 35


Re:[Done 1.3.+] Bio Mod
« Reply #114 on: January 10, 2003, 08:46:24 AM »
Reply with quote

Quote from: solarisjedi on January 06, 2003, 09:19:28 PMHere it is. Like I said, it works ok on mine but no promises ;)


I have YaBBSE1.5.0, went to the German link that was provided in order to get biographie_db.php, ran it and installed the mod from your post.

I can edit the bio, but it doesn't always update to the new text that I add.  The text actually seems to have to be 10 characters and over in order to save correctly and appear in the Bio area.

I also havn't been able to get it to let me remove the bio text.  When I remove it and submit, the old text is still there.  Any ideas? Should I have not used that db.php?

http://www.vegweb.com/cgi/yabbse/index.php?action=viewprofile;user=veggie

Yvette
« Last Edit: January 10, 2003, 01:53:29 PM by Yvette » Logged
BiErLeEuW
Full Member
***
Posts: 174


WWW
Re:[Done 1.3.+] Bio Mod
« Reply #115 on: January 10, 2003, 04:37:35 PM »
Reply with quote

Seems like a bug if you can remove it  ???
« Last Edit: January 10, 2003, 04:37:51 PM by onsforum » Logged
solarisjedi
Jr. Member
**
Posts: 52


Bah

Re:[Done 1.3.+] Bio Mod
« Reply #116 on: January 10, 2003, 05:08:37 PM »
Reply with quote

Quote from: Yvette on January 10, 2003, 08:46:24 AMI can edit the bio, but it doesn't always update to the new text that I add.  The text actually seems to have to be 10 characters and over in order to save correctly and appear in the Bio area.

It has a greater than or equal to 10 character limit on modifying. (not sure why I didn't write it). In Profile.php or the mod above remove the minimum 10 character limit from:

     if (strlen($member[bio])>=10){
      $request = mysql_query("
         UPDATE {$db_prefix}members
         SET bio='$member[bio]'
         WHERE memberName='$user'");
      }

to look like this:
     $request = mysql_query("
         UPDATE {$db_prefix}members
         SET bio='$member[bio]'
         WHERE memberName='$user'");

QuoteI also havn't been able to get it to let me remove the bio text.  When I remove it and submit, the old text is still there.

Thats because 0 is less than 10 ;)
Logged
BiErLeEuW
Full Member
***
Posts: 174


WWW
Re:[Done 1.3.+] Bio Mod
« Reply #117 on: January 10, 2003, 06:25:19 PM »
Reply with quote

it didn't work with boardmod  :-\ :-\
Logged
solarisjedi
Jr. Member
**
Posts: 52


Bah

Re:[Done 1.3.+] Bio Mod
« Reply #118 on: January 10, 2003, 06:56:26 PM »
Reply with quote

try editing it by hand. I tested and it works fine on mine.
Logged
Yvette
Noobie
*
Posts: 35


Re:[Done 1.3.+] Bio Mod
« Reply #119 on: January 10, 2003, 08:49:48 PM »
Reply with quote

Thanks! Works fine now.
Logged
Pages: 1 ... 6 7 [8] 9 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.3.+] Bio Mod « 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.470 seconds with 16 queries.