Welcome, Guest. Please Login or Register.
April 28, 2025, 01:16:55 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.3.+] Bio Mod « previous next »
Pages: 1 ... 5 6 [7] 8 9 Reply Ignore Print
Author Topic: [Done 1.3.+] Bio Mod  (Read 10710 times)
Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[Done 1.3.+] Bio Mod
« Reply #90 on: August 31, 2002, 04:07:29 AM »
Reply with quote

This is happening with the users as well as me, and they are not all using IE. They are not all using Xp or Win9x. There are Mac's, Netscape, Unix and a host of any other OS's and any other Browser.


Quote from: Daniel D. on August 30, 2002, 09:54:28 PMI can't say that ???. It doesn't happen to me.

I've sometimes problems with IE and the ModSettings. After changing something and visiting the Settings again, nothing is there - all fields are blank !
Logged

Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[Done 1.3.+] Bio Mod
« Reply #91 on: August 31, 2002, 09:56:35 AM »
Reply with quote

Since I couldn't get a response from Jedi I fixed it myself. I'm fairly certain how he had it coded other people may find they also will have a problem with this.

This is my fix to his code to correct the problem I was having, If anyone else is having this problem this should help them. Other than that I think Jedi did all of us a wonderfull thing by creating this innovative solution:

<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,QuickReply 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,QuickReply,bio FROM {$db_prefix}members WHERE memberName='$user'");
</replace>

<search for>
   $bio = str_replace("&lt;","<",$bio);
   $bio = str_replace("&gt;",">",$bio);
   $bio = str_replace("<br />","",$bio);
   $bio = doUBBC($bio);
</search for>

<replace>
   $bio = $memsettings['bio'];
   $bio = str_replace("&lt;","<",$bio);
   $bio = str_replace("&gt;",">",$bio);
   $bio = str_replace("<br />","",$bio);
   $bio = doUBBC($bio);
</replace>

<search for>
   $request = mysql_query("UPDATE {$db_prefix}members SET bio='$member[bio]' WHERE (memberName='$user')");
</search for>

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

« Last Edit: August 31, 2002, 10:01:22 AM by Wiziwig » Logged

Stud Muffin
Full Member
***
Posts: 120


Oh baby!!

WWW
Re:[Done 1.3.+] Bio Mod
« Reply #92 on: August 31, 2002, 07:15:17 PM »
Reply with quote

Nope didn't work for me
Logged

Thanks to all the YaBBSE team, a great forum :)
OAP clan Forum
Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[Done 1.3.+] Bio Mod
« Reply #93 on: August 31, 2002, 07:17:46 PM »
Reply with quote

Um ok what didn't work for you? What exactly was your problem?


Quote from: Stud Muffin on August 31, 2002, 07:15:17 PMNope didn't work for me
Logged

Stud Muffin
Full Member
***
Posts: 120


Oh baby!!

WWW
Re:[Done 1.3.+] Bio Mod
« Reply #94 on: September 01, 2002, 04:37:27 PM »
Reply with quote

Its with the ubbc code. example if you try to do this

 :P

test text

www.url.com

It looks like this after hitting save on profile
:P

[b]test text[/b]

[url]www.url.com[/url]

Go into edit it and then it looks like this
<img src="http://cgi.oap-clan.co.uk/forum/YaBBImages/tongue.gif" alt="" border="0"><br><br><br><br><br><b>test text</b><br><br><br><br><br><a href="www.url.com" target=_blank>www.url.com</a>
Logged

Thanks to all the YaBBSE team, a great forum :)
OAP clan Forum
Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[Done 1.3.+] Bio Mod
« Reply #95 on: September 01, 2002, 07:53:39 PM »
Reply with quote

It's beyond me how you relate that problem you found with the problem we were talking about.. Maybe you wern't even paying attention to what you were reading..

You saw a post about a problem and automatically assumed we were talking about the one you discovered. Whatever.

I don't know where Jedi is and this is his code. I did however verify what you were talking about and sure enough you were right.

So like I did his other bug I am going about about fixing this myself and I am almost there. I'll post the changes when I am complete.
« Last Edit: September 01, 2002, 08:26:59 PM by Wiziwig » Logged

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


WWW
Re:[Done 1.3.+] Bio Mod
« Reply #96 on: September 01, 2002, 08:38:48 PM »
Reply with quote

Wiziwig, did that fix you posted fix the issue of it not showing up in their profile after they edit it the next time?
Logged
Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[Done 1.3.+] Bio Mod
« Reply #97 on: September 02, 2002, 06:19:29 AM »
Reply with quote

There you are! Yes the code post I made fixed the problem with the profile not showing up after editing. As for this second bug that's been brought to attention, here's what my version of the fix for that would be, use it or loose it it's your bio code.. I appreciate that you made it and it's not a big deal for me to tweak it if need be.. :)

<Search for>
   $request2 = mysql_query("SELECT bio FROM {$db_prefix}members WHERE (memberName='$user')");
   $bio = mysql_fetch_row($request2);
   $bio = $bio[0];
</Search For>

<Replace>
   $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);
</Replace>

Here's your entire mod with both of my fixes in it:

<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,QuickReply 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,QuickReply,bio FROM {$db_prefix}members WHERE memberName='$user'");
</replace>

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

   </td></tr>
</search for>

<add after>
   <tr><td>$txt[bio2]<br>$txt[bio1]</td><td><textarea name="bio" rows="8" cols="50">$bio</textarea></td></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']);
      $member['bio'] = nl2br($member['bio']);
</add after>

<search for>
         $GenderFemale = ' 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 FROM {$db_prefix}members WHERE memberName='$user'");
   $memsettings = mysql_fetch_row($request)
</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>







Quote from: Jedi~ on September 01, 2002, 08:38:48 PMWiziwig, did that fix you posted fix the issue of it not showing up in their profile after they edit it the next time?
« Last Edit: September 02, 2002, 10:12:15 AM by Wiziwig » Logged

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


WWW
Re:[Done 1.3.+] Bio Mod
« Reply #98 on: September 02, 2002, 11:27:47 AM »
Reply with quote

Well, people can use that one for now, but I decided after giving little or no support for my mods latley, that I would re-write all of them (starting with the mute users mod) as they were all mostly written terribly compared to how I could write them now (now that I'm not a PHP newbie anymore ;) )

I do appreciate people trying to help others with my mods though! :)
Logged
Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[Done 1.3.+] Bio Mod
« Reply #99 on: September 02, 2002, 03:18:14 PM »
Reply with quote

Are you going to re-dist your bio mod with the changes?

Thanks.. I did what I had to do and I'm happy you've accepted the changes..

Logged

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


WWW
Re:[Done 1.3.+] Bio Mod
« Reply #100 on: September 02, 2002, 07:06:40 PM »
Reply with quote

Ya, once the new version is done, I will release it (and host it properly.)
Logged
greenway
Noobie
*
Posts: 1


I'm a llama!

Re:[Done 1.3.+] Bio Mod
« Reply #101 on: November 09, 2002, 12:26:19 PM »
Reply with quote

I'll really need this mod, but the link is dead.
How can i obtain the mod now???
b.t.w. is the new version almost released???

Greetzz Green
Logged
Daniel D.
Mod Team
YaBB God
*****
Posts: 2935


Re:[Done 1.3.+] Bio Mod
« Reply #102 on: November 09, 2002, 02:54:44 PM »
Reply with quote

Download it from the German Mod Section - No. 29. It'll work with the english version, too !
Logged

Nemesis
What's an Admin?
Global Moderator
YaBB God
*****
Posts: 2199


WWW
Re:[Done 1.3.+] Bio Mod
« Reply #103 on: November 09, 2002, 04:20:21 PM »
Reply with quote

Hey daniel did you happen to dl most of Jedi mods? He is no longer with YaBB SE. I like to host them at boardmod se, maybe as an unsupported/beta mod or something?
Logged


Want to say thanks?
*************************************
DONATE or check out my WishList
*********************************
Peter
Noobie
*
Posts: 10


WWW
Re:[Done 1.3.+] Bio Mod
« Reply #104 on: December 25, 2002, 08:23:11 PM »
Reply with quote

Will this mod work in 1.5.0?
If not, is someone going to change it so it works?

Best regards
Peter
Logged
Pages: 1 ... 5 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.032 seconds with 18 queries.