[x] Navigation

[x] Languages

[x] Design
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.

News Module

This forum is locked: you cannot post, reply to, or edit topics.    This topic is locked: you cannot edit posts or make replies.    Printer Friendly Page     Forum Index ›  Hilfe

View previous topic :: View next topic  
Author Message
Highlander
Investigator
Investigator

Offline Offline
Joined: Apr 30, 2005
Posts: 18

PostPosted: 30.04.2005 23:19
Post subject: News Module

Hallo zusammen

Ich habe ein Problem beim News Modul der 8.3c Version. Ich schreibe die News immer in Dreamweaver also in HTML zwecks Bilder, Links usw... Das Problem ist, wenn ich den Quellcode in die News kopiere, habe ich Textverschiebungen (durch die Leerzeichen und den zusätzlichen Umbruch). Bei der Dragonfly Version geht es aber, kann man da irgendwie die Newsausgabe abändern.<br><br>

Zu besseren Verständniss ein Beispiel:<br>
PHP:
Hier steht der <strong>Text</strong>.
<
br>
<
br>
Und da geht er weiter.
Ausgabe bei 8.3C:<br>
---------------------------------------------------------------<br>
Hier steht der <strong>Text</strong>.
<br><br> 4Leerzeilen<br><br>
Und da geht er weiter.<br>
---------------------------------------------------------------
<br><br>

Und beim Dragonfly stimmt die Formatierung, also nur 1 Leerzeile (mit dem gleichen Quellcode):<br>
---------------------------------------------------------------
<br>

Hier steht der <strong>Text</strong>.
<br>
<br>
Und da geht er weiter.<br>
---------------------------------------------------------------<br><br>

Vielleicht kann Ertan mir helfen, den das ist bei langen Texten oder Tabellen mit Bildern (muß man alle in 1 Zeile setzen) ziemlich lästig.


Highlander please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile
Highlander
Investigator
Investigator

Offline Offline
Joined: Apr 30, 2005
Posts: 18

PostPosted: 30.04.2005 23:21
Post subject: Re: News Module

Komisch, in der Vorschau ging noch alles mit der HTML ausgabe, jetzt schreibt er nur den Code und Editieren kann man nicht. Hoffe es ist trotztem klar was ich meine. Embarassed


Highlander please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile
Highlander
Investigator
Investigator

Offline Offline
Joined: Apr 30, 2005
Posts: 18

PostPosted: 01.05.2005 20:44
Post subject: Re: News Module

Ich habe das Code Teil gefunden was für den Umbruch zuständig ist. Gibt es eine möglichkeit das man HTML und Leerzeilen extra verwenden kann? Sonst sind die schon geschriebenen News alle abzuändern.

Hier der Code Datei: nbbcode, Zeile 367, wie ändert man den das keine Umbrüche ausgegeben werden.
PHP:
$text = " " . $text;

$text = str_replace("<br />\n", "\n", $text);
$text = str_replace("<br />\n", "\n", $text);
$text = ($user_sig_bbcode_uid != '') ? preg_replace("/:(([a-z0-9]+:)?)$user_sig_bbcode_uid(=|\])/si", '\\3', $text) : $text;
$text = nl2br($text);
First: If there isn't a "[" and a "]" in the message, don't bother.
if (! (
strpos($text, "[") && strpos($text, "]")) ) {
Remove padding, return.
$text = substr($text, 1);
return
$text;


Highlander please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile
Ertan
Webmaster
Webmaster

Offline Offline
Joined: Mar 19, 2004
Posts: 1264
Location: Germany
PostPosted: 02.05.2005 13:27
Post subject: Re: News Module

$text = str_replace("\n", "\n", $text);
$text = str_replace("\n", "\n", $text);
anfügen


aber dann kein xhtml standard mehr !!!!!!!!!

setzt dich noch mehr mit zeichensatz codierung(utf-8) auseinander Wink

ps Dreamweaver ist nicht ideal für standards (use =>ultraedit )

_________________
.: USE THE FORCE :.
Helft mit ! Keine Unbeantworteten Beiträge mehr

Ertan's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Send e-mail Visit poster's website Photo Gallery
Highlander
Investigator
Investigator

Offline Offline
Joined: Apr 30, 2005
Posts: 18

PostPosted: 05.05.2005 11:53
Post subject: Re: News Module

Besten Dank, werde es mal versuchen.


Highlander please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile
Ertan
Webmaster
Webmaster

Offline Offline
Joined: Mar 19, 2004
Posts: 1264
Location: Germany
PostPosted: 05.05.2005 12:53
Post subject: Re: News Module

ooops da fehlt doch was

richtig :
PHP:
    $text = str_replace("<br>\n", "\n", $text);
$text = str_replace("<br>\n", "\n", $text);

_________________
.: USE THE FORCE :.
Helft mit ! Keine Unbeantworteten Beiträge mehr

Ertan's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Send e-mail Visit poster's website Photo Gallery
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.    This topic is locked: you cannot edit posts or make replies.    Printer Friendly Page    Forum Index ›  Hilfe
Page 1 of 1
All times are GMT + 1 Hour



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum




Interactive software released under GNU GPL, Code Credits, Privacy Policy