Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
0 registered members (), 59 guests, and 388 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
Gizmo
Gizmo
Portland, OR; USA
Posts: 16,788
Joined: June 2006
Show All Member Profiles 
Top Posters(30 Days)
Gizmo 18
M4TT 12
FREAK 11
Ruben 8
isaac 4
mmkk 4
Latest Photos
Chinese Buddhist temple.
My buddha beads.
Rendered Walls
Multi-Screen wallpaper
Stockholm Metro
Previous Thread
Next Thread
Print Thread
V6.5.5: little xhtml minor bug #129339
06/14/06 04:00 AM
06/14/06 04:00 AM
Joined: Jun 2006
Posts: 1,148
Berlin, Germany
Zarzal Offline OP
old hand
Zarzal  Offline OP
old hand
Joined: Jun 2006
Posts: 1,148
Berlin, Germany
If someone use the ubb img tag in his signature threads convert it to img src but without selfclosing /> on its end. This gives a verify error in W3C Markup Validation Service.


my board: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Re: V6.5.5: little xhtml minor bug #129340
06/14/06 04:27 AM
06/14/06 04:27 AM
Joined: Jun 2006
Posts: 1,148
Berlin, Germany
Zarzal Offline OP
old hand
Zarzal  Offline OP
old hand
Joined: Jun 2006
Posts: 1,148
Berlin, Germany
and another one: ubbthreads/templates/default/showflat.tmpl. there is a missing close ancor tag and the # is too much.

found in line 156:
Code
<a name="#{$postrow[$i]['Number']}">#<span id="number$i">{$postrow[$i]['Number']}</span> - {$postrow[$i]['time']} <i>{$postrow[$i]['IP']}</i> {$postrow[$i]['filelink']}


should be:
Code
<a name="{$postrow[$i]['Number']}">#<span id="number$i">{$postrow[$i]['Number']}</span> - {$postrow[$i]['time']} <i>{$postrow[$i]['IP']}</i> {$postrow[$i]['filelink']}</a>


my board: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Re: V6.5.5: little xhtml minor bug #129341
06/14/06 04:45 AM
06/14/06 04:45 AM
Joined: Jun 2006
Posts: 1,148
Berlin, Germany
Zarzal Offline OP
old hand
Zarzal  Offline OP
old hand
Joined: Jun 2006
Posts: 1,148
Berlin, Germany
I found the xhtml bug for the missing selfclosing tag:

in /ubbthreads/ubbt.inc.php line 806:
Code
$Body = preg_replace("/(\[IMG\]|\[{$ubbt_lang['TEXT_IMAGE']}\])http([^\[]*)\.(gif|jpg|png)(\[\/IMG\]|\[\/{$ubbt_lang['TEXT_IMAGE']}\])/i","<img src=\"http\\2.\\3\">",$Body);


should be:
Code
$Body = preg_replace("/(\[IMG\]|\[{$ubbt_lang['TEXT_IMAGE']}\])http([^\[]*)\.(gif|jpg|png)(\[\/IMG\]|\[\/{$ubbt_lang['TEXT_IMAGE']}\])/i","<img src=\"http\\2.\\3\" alt=\"\" />",$Body);


my board: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Re: V6.5.5: little xhtml minor bug #129342
06/20/06 01:43 PM
06/20/06 01:43 PM
Joined: Jun 2006
Posts: 1,148
Berlin, Germany
Zarzal Offline OP
old hand
Zarzal  Offline OP
old hand
Joined: Jun 2006
Posts: 1,148
Berlin, Germany
mmhh, this fix the bug for the first time, but a new problem comes up. If I change the preg_replace ubb code for img got converted to html if I edit the post and if you try to submit this edit and html is off in this board the image is gone and text will be displayed.

How does this work? There must be another place to change a bit of code to solve this.


my board: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Re: V6.5.5: little xhtml minor bug #129343
09/16/06 09:14 AM
09/16/06 09:14 AM
Joined: May 2006
Posts: 3
EU, Slovenia
P
PaNTerSan Offline
stranger
PaNTerSan  Offline
stranger
P
Joined: May 2006
Posts: 3
EU, Slovenia
function undo_markup:
Code
 
// Convert image markup
if ($config['allowimages'] || ($config['sigimage'] && $type=="sig")) {
     $Body = preg_replace("/<img src=\"([^\>]*)\">/i","[{$ubbt_lang['TEXT_IMAGE']}]\\1[/{$ubbt_lang['TEXT_IMAGE']}]",$Body);
}
 


Kind regards,
PaNTerSan

Shout Box
Today's Birthdays
No Birthdays
Recent Topics
Users Unable to Upload Avatar [Not a Bug]
by M4TT. 12/13/17 08:51 AM
Shout Box Sound Effect
by M4TT. 11/29/17 08:28 PM
Ad island
by TGCsanderson. 11/25/17 06:41 PM
Taking to long to connect to DB
by AstroCat. 11/24/17 12:34 PM
Forum Statistics
Forums36
Topics35,015
Posts190,544
Members12,045
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.1
(Snapshot build 20171106)