DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • September 21, 2017, 12:32:38 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1] 2   Go Down
  Print  
Author Topic: Additional Bioinfos  (Read 7041 times)
0 Members and 1 Guest are viewing this topic.
Nightborn
Guest
« on: December 16, 2005, 03:42:14 PM »

If Users want to have more than just the normal Bioinfos.

Admin setting from 0 to 65000 chars.

v1.0
http://dragonprime.net/users/Nightborn/additionalbioinfos.zip
Logged
Dannic
Guest
« Reply #1 on: December 16, 2005, 08:56:56 PM »

great module.  

Small request here.

change

Code:
"user_additionalbioinfo"=>"Enter your additional Bioinformation here,text",

to

Code:
"user_additionalbioinfo"=>"Enter your additional Bioinformation here,textarea",
Logged
Nightborn
Guest
« Reply #2 on: December 17, 2005, 12:24:07 AM »

fixed. no new version number. Smiley thanks Dannic
Logged
Dannic
Guest
« Reply #3 on: December 17, 2005, 06:14:12 AM »

hmm.  Looks like the bioinfo is showing up in all players instead of just one.

For example.  I have it in my bio and it shows up in everyone elses.
« Last Edit: December 17, 2005, 06:14:38 AM by Dannic » Logged
Nightborn
Guest
« Reply #4 on: December 17, 2005, 06:28:42 AM »

*cough* forget to check the viewed acctid.

update online.
Logged
Kala
Codemeister
****
Offline Offline

Posts: 479

Who Me?


View Profile WWW
« Reply #5 on: February 23, 2006, 09:19:29 PM »

I have a suggestion, to change the textarea to a varchar as a lot of players were adding the newline code into their bio's and as soon as they saved that the code for new line would disappear, which meant if they saved another preference, they also had to readd the new line coding to the Additional Bioinfo's.


I changed it to a varchar and even though, the box isn't as pretty, it saves all their text formatting, and having to re-enter them..
Logged

~Why are there only 24 hours in a day, what I could do with an extra 1 ~
http://www.timerealms.net
http://www.legendofshrell.com
Nightborn
Guest
« Reply #6 on: February 24, 2006, 02:23:12 AM »

the newline is changed into a new line break... means:

you enter

"whoa`nwhat a haul"
and you save
then you have:

"whoa
what a haul"

which is correct.

Yet wrong was that I did not change the code when I displayed it in the bio (from char(13) to `n) which I now corrected.

Thanks, It should be working now, download and test it out.

Colour codes stay, yet `n will simply be saved as new lines. Smiley makes everything more readable.
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #7 on: February 24, 2006, 03:16:19 AM »

Saving them as newlines ("\n") will not work in the HTML code, as newlines are constantly ignored. Only <br>-Tags lead to line breaks in the page display...
Logged

Running for more than three years now:
Nightborn
Guest
« Reply #8 on: February 24, 2006, 03:59:51 AM »

that's why I change it only for the display Smiley it needs only to be displayed in the bioinfo.

ps: logdnet just caused minutelong lags in my game...
*sigh*

this module should work now.

ps: dragonprime has been much faster... whoa... I try to upload the new version for this mod now for about an hour...
Logged
duena
Militia
**
Offline Offline

Posts: 85

Not knowing what shes doing


View Profile WWW
« Reply #9 on: October 27, 2006, 08:16:28 AM »

So, dig out..

I made some changes to this file (hope its ok) so that it is now as well admin settable that users would have to buy this option at the lodge or need a certain amount of dragonkills or both together.

What I could not figure out is if there is a setting, code or anything that if user forget to close the tags like bolt, italic, or most annoying center  (as the links in the nav will be highlighted)  or if I just have to live with that.

Furthermore if some of those who know better php than me (=try and fix error) could have a look at it as I guess some of my statements could be shortened, for performance reasons or so. Thanks

Regards
Duena
Logged

Der Kaffee muss heiss sein wie die Ksse eines Mdchens am ersten Tag, sss wie die Nchte in ihren Armen und schwarz wie die Flche ihrer Mutter, wenn sie es erfhrt.
Nightborn
Guest
« Reply #10 on: October 27, 2006, 09:34:27 AM »

Thanks ^^

I'll look at it later on.

Yes, I had those guys that used center tags etc too, for now they are few and fixed up manually.

Upon generation, you could *count* the flags `c,`i and so on, and if the sum is uneven, add `c or similar to the end of the text.

Logged
Adept
Codemeister
****
Offline Offline

Posts: 279

I'm a llama!


View Profile WWW
« Reply #11 on: October 27, 2006, 10:11:39 PM »

i did my modifies in sanitize not in bioinfo but this code is all ya need .. replace $out with whatever var you are using..

   if (substr_count($out,"`b")%2 <> 0) $out.="`b";
   if (substr_count($out,"`i")%2 <> 0) $out.="`i";
   if (substr_count($out,"`c")%2 <> 0) $out.="`c";

yeah i dont test if i exceed the string size but eh ever becomes an issue i will deal with it
Logged
Maeher
Codemeister
****
Offline Offline

Posts: 362


There's nothing to see here...


View Profile
« Reply #12 on: October 28, 2006, 02:31:01 AM »

But what if $out is

Code:
`b`i`cHello

for example.

You would append `b, `i and `c

Code:
`b`i`cHello`b`i`c

But now they are in the wrong order, so I guess appoencode will replace them in the order you gave and it will not work. The inner tags have to be closed first.
Logged

There is no signature...
SaucyWench
Mod God
*****
Offline Offline

Posts: 2238


I'm a good girl.


View Profile WWW
« Reply #13 on: October 28, 2006, 02:43:13 AM »

As dirty as it feels to do it, they do not have to be in the correct order when closed.

By the way - the easiest "correct" way to manage this would be to block centre, italic and bold tags from bios. They are already blocked from commentary because players would break the whole screen by leaving them open.
Logged

SaucyWench
Owner of GemDust.com and Darton City proudly hosted by LunarPages
duena
Militia
**
Offline Offline

Posts: 85

Not knowing what shes doing


View Profile WWW
« Reply #14 on: October 30, 2006, 09:44:21 AM »

So, I made it now as well admin settable if you allow these bold, center, italic tags or not.

Furthermore I fixed a minor mistake I found.
Logged

Der Kaffee muss heiss sein wie die Ksse eines Mdchens am ersten Tag, sss wie die Nchte in ihren Armen und schwarz wie die Flche ihrer Mutter, wenn sie es erfhrt.
Pages: [1] 2   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Version 1.1.2 is the current supported version and is available for download.

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
22 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search