Author Topic: {Help} <br /> überall / <br /> everywhere  (Read 5272 times)

0 Members and 1 Guest are viewing this topic.

Offline Habi86

  • Newbie
  • *
  • Posts: 46
    • View Profile
{Help} <br /> überall / <br /> everywhere
« on: November 28, 2009, 01:14:54 PM »
Hi  :cry:

german

Bei PN, Kommentaren und Kategoriebeschreibung wird überall zustäzlich zum "enter" ein <br /> angegeben, wie krieg ich das wieder weg  :?: :(

zb.:
Code: [Select]
---------
Text
Text
---------

wird

---------
Text

Text
---------

english:


Can any1 help me with this problem?  :( When you use "enter" it adds <br /> again
At PN Messages, Comments or Category description.

example:

Code: [Select]
---------
Text
Text
---------

becomes

---------
Text

Text
---------

This drives me crazy  :cry: I hope some1 can help me out  :)


Liebe Grüße / Greetings,
Habi


Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: {Help} <br /> überall / <br /> everywhere
« Reply #1 on: November 28, 2009, 01:29:33 PM »
1. 4images version?
2. what browser do you use and did you try different browser?
3. what OS do you use?
4. if you look in the page source, do you use two <br> tags, or one <br> at the end of a line?
5. can I see it?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Habi86

  • Newbie
  • *
  • Posts: 46
    • View Profile
Re: {Help} <br /> überall / <br /> everywhere
« Reply #2 on: November 28, 2009, 03:24:29 PM »
Thanks for you quick answer V@no  :D

1. 4images version?
4images 1.7.7
2. what browser do you use and did you try different browser?
I tried both - FF at home and IE at work  :(
3. what OS do you use?
Windows Vista uhm and XP at work I guess
4. if you look in the page source, do you use two <br> tags, or one <br> at the end of a line?
uh...  8O
5. can I see it?
If you would be okay with it - I'll give you FTP access - I'm sure I can trust you, right? :wink:  :)
Let me know if you want to see it "live"
Link would be: orchids.manime.net/details.php?image_id=22 u can try a comment as guest there

That problem started with the Mod PMv2
In that thread there is already an error list:

Quote
From Kurt:
- <br> muss einwandfrei funktionieren ohne ausgabe vom code <br>    solved

english: <br> has to work faultless without adding the <br> code
(hope I translated right  :oops: )


I'm pretty sure I have to deal with the same issue, which Kurt solved


Thanks for your time!
Greetings,
Habi

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: {Help} <br /> überall / <br /> everywhere
« Reply #3 on: November 28, 2009, 09:14:46 PM »
I assume you are referring to [MOD] PMv2 Tutorial Republished here. The original code on first page does not have any issues with double line break. However, searching the topic I found several posts with some "fixes" that will cause the double lines when used a browser on Windows OS.

Possible fix is remove from the new added code in includes/functions.php:
$text nl2br(trim($text)); (make sure you don't remove it from the original code that you commented out during the mod installation, other words that line should be closer to the end of the file)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Habi86

  • Newbie
  • *
  • Posts: 46
    • View Profile
Re: {Help} <br /> überall / <br /> everywhere
« Reply #4 on: November 28, 2009, 09:32:42 PM »
Possible fix is remove from the new added code in includes/functions.php:
$text nl2br(trim($text)); (make sure you don't remove it from the original code that you commented out during the mod installation, other words that line should be closer to the end of the file)

My hero ^______^ *hug*
Thank you SO much!!!!! That is it ;)