Author Topic: [BUG] 1.7.4 Postcard Vorschau | Postcard Preview  (Read 60692 times)

0 Members and 2 Guests are viewing this topic.

bildergallery

  • Guest
[BUG] 1.7.4 Postcard Vorschau | Postcard Preview
« on: December 25, 2007, 10:54:34 PM »
Hallo zusammen,
ich habe einen kleinen Bug gefunden.

Wenn ich den Nachrichtentext in einer Postkarte mit einer Zeilenschaltung eingebe,
werden diese in der Vorschau nicht mehr angezeigt.

Siehe Bilder, Zeilenschaltung bei Test 2,3,4

Dies ist natürlich sehr ärgerlich, wenn man seinen Bekannten, Freunden etc. eine Nachricht
übermitteln will und dies nicht sauber dargestellt wird.

Wie kann man dieses Problem lösen?
Danke für die Hilfe...


Hi all
I have a problem with line returns in postcard preview. When i use line returns in the message,
comes in postcard preview no line returns.

Gruss Ivan

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: [BUG] 1.7.4 Postcard Vorschau | Postcard Preview
« Reply #1 on: December 27, 2007, 10:01:23 PM »
Hallo,

Ivan hat Recht das Problem habe ich auch.
Wer kann uns den mal Helfen  :!:

nobby

EDIT
Das heisst wenn ein Text untereinander geschrieben wird, wird dieser in der Ansicht in einer Zeile dargestellt und nicht untereinander.
EDIT ENDE
« Last Edit: December 27, 2007, 10:40:49 PM by nobby »

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [BUG] 1.7.4 Postcard Vorschau | Postcard Preview
« Reply #2 on: December 27, 2007, 10:40:25 PM »
moin.

ändert in der postcards.php dies (zeile 222)

Code: [Select]
      "message" => format_text(stripslashes($message), 2),

auf

Code: [Select]
      "message" => format_text($message),
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: [BUG] 1.7.4 Postcard Vorschau | Postcard Preview
« Reply #3 on: December 27, 2007, 10:44:40 PM »
@Nicky

Danke! Hat geklappt...

nobby

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [BUG] 1.7.4 Postcard Vorschau | Postcard Preview
« Reply #4 on: December 27, 2007, 10:49:16 PM »
Line return:

Code: [Select]
"message" => format_text($message, 1, 0, 1),
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: [BUG] 1.7.4 Postcard Vorschau | Postcard Preview
« Reply #5 on: December 27, 2007, 10:58:14 PM »
So, und wenn bei der Eingabe auch noch ein Automatischer Zeilenumbruch stattfindet
dann wäre es noch Perfekter.

Denn ich kann über den ganzen Bildschirm schreiben, dann sieht die Postkarte in der Vorschau aber blöd aus.

Der Zeilenumbruch sollte ab ca. 20 Zeichen stattfinden, oder!

nobby

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [BUG] 1.7.4 Postcard Vorschau | Postcard Preview
« Reply #6 on: December 27, 2007, 11:00:45 PM »
thunderstrike wird sich schon melden ;)

ich gehe jetzt schlafen..

gn8
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: [BUG] 1.7.4 Postcard Vorschau | Postcard Preview
« Reply #7 on: December 27, 2007, 11:01:39 PM »
thunderstrike wird sich schon melden ;)

ich gehe jetzt schlafen..

gn8

OK, Gute Nacht!

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [BUG] 1.7.4 Postcard Vorschau | Postcard Preview
« Reply #8 on: December 27, 2007, 11:05:22 PM »
I no get German lang but 1, 0, 1 is switch case for show different way of format text. Is same for image description if create / edit image in gallery.

Jan code:

Quote
format_text($image_row['image_description'], 1, 0, 1)

for re-format text with image description. ;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [BUG] 1.7.4 Postcard Vorschau | Postcard Preview
« Reply #9 on: December 28, 2007, 09:37:43 AM »
Code: [Select]
function format_text($text, $html = 0, $word_wrap = 0, $bbcode = 0, $bbcode_img = 0) {

eigentlich sind beide richtig...

bei meiner version werden keine html und bbcode tags zugelassen da alles standard = 0

obwohl wordwrap hier irgendwie nicht funktioniert.
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [BUG] 1.7.4 Postcard Vorschau | Postcard Preview
« Reply #10 on: December 28, 2007, 03:13:44 PM »
hi,
thanks for the fast support ;)
which code is right???

what is the different?

Code: [Select]
"message" => format_text($message, 1, 0, 1),
or

Code: [Select]
"message" => format_text($message),

1, 0, 1 is right for this. ;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: [BUG] 1.7.4 Postcard Vorschau | Postcard Preview
« Reply #11 on: December 28, 2007, 07:45:11 PM »
Hallo,

das Problem habe ich nicht. Bei mir ist es jetzt in Ordnung.

nobby

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [BUG] 1.7.4 Postcard Vorschau | Postcard Preview
« Reply #12 on: December 28, 2007, 07:47:15 PM »
[edit]

in postcards.php file,

find:

Code: [Select]
format_text($message),

replace:

Code: [Select]
"message" => format_text($message, 1, 0, 1),

after find:

Code: [Select]
"headline" => format_text($image_row['postcard_headline']),
"message" => format_text($image_row['postcard_message'])

replace:

Code: [Select]
"headline" => format_text($image_row['postcard_headline'], 2),
"message" => format_text($image_row['postcard_message'], 1, 0, 1)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [BUG] 1.7.4 Postcard Vorschau | Postcard Preview
« Reply #13 on: December 29, 2007, 07:30:38 PM »
Quote
<input type="hidden" name="message" value="<a href="mailto:admin@test.com">admin@test.com</a>

Is no possible for return URL with value in input value. ;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [BUG] 1.7.4 Postcard Vorschau | Postcard Preview
« Reply #14 on: December 29, 2007, 08:13:16 PM »
If try this:

Code: [Select]
<input type="hidden" name="message" value="{message}"><a href="mailto:{sender_email}">{sender_email}</a>

is work right ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?