Opened 10 years ago

Closed 6 years ago

#1127 closed bug (fixed)

External Links in BW-Forum aren't displayed proberly

Reported by: kiwiflave Owned by: jeanyves
Priority: major Milestone: unassigned
Component: BW Forum Keywords: URL, links
Cc:

Description

BW Rox version: user agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8 request uri: http://www.bewelcome.org/forums/s671-Slimming-diet-for-BeWelcome---abolishing-double-forum,-blogs,-wiki

Hi, external links from forum posts don't seem to be displayed properly. It appears as http://www.bevolunteer.org/blog">www.bevolunteer.org/blog, so double.

Cheers

Change History (7)

comment:1 Changed 10 years ago by jeanyves

  • freq_reported changed from 1 to 2

Yes there is something which sucks and I don't understand why.

The problem seems to be that when you add a link inside a forum post the CleanUpText? function has a problem with it. I don't know if teh problem is before teh call of cleanup text or after

The following message is displayed: Warning: DOMDocument::loadHTML() [function.DOMDocument-loadHTML]: error parsing attribute name in Entity, line: 1 in /var/www/test.bewelcome.org/build/forums/forums.model.php on line 2725

Warning: DOMDocument::loadHTML() [function.DOMDocument-loadHTML]: Unexpected end tag : a in Entity, line: 1 in /var/www/test.bewelcome.org/build/forums/forums.model.php on line 2725

Warning: DOMDocument::loadHTML() [function.DOMDocument-loadHTML]: error parsing attribute name in Entity, line: 1 in /var/www/test.bewelcome.org/build/forums/forums.model.php on line 2725

Warning: DOMDocument::loadHTML() [function.DOMDocument-loadHTML]: Unexpected end tag : a in Entity, line: 1 in /var/www/test.bewelcome.org/build/forums/forums.model.php on line 2725

Warning: Cannot modify header information - headers already sent by (output started at /var/www/test.bewelcome.org/build/forums/forums.model.php:2725) in /var/www/test.bewelcome.org/lib/handler/posthandler.lib.php on line 121

But the post is saved and it is needed to fix it after while by editing the post. May be the ploblem comes from makeClickableLinks ?

comment:2 Changed 10 years ago by midsch

  • Summary changed from bug report to External Links in BW-Forum aren't displayed proberly
  • version set to production

comment:3 Changed 10 years ago by jeanyves

  • Owner set to jeanyves
  • Status changed from new to assigned

I think I found the problem: this is because of probably because of the new call to makeClickableLinks introduced by Micha.

It appears that when using the appropriate option the user has already made a clickable ling (using the tiny edit tool) the link sucks. In other hand, the makeclickable is useful if the user don't use the tiny edit tool.

I propose the following fix: If in the text there is already a "href=" I skip the makeClickableLinks

I will also move it in production since they are daily problem swith this f links

comment:4 Changed 10 years ago by crumbking

I would suggest remove the button from the tiny editor menu. The new converter works(ed) fine...

comment:5 Changed 9 years ago by globetrotter_tt

  • Component changed from BV Forum to BW Forum

comment:6 Changed 6 years ago by jsfan

  • Milestone Future deleted

Milestone Future deleted

comment:7 Changed 6 years ago by shevek

  • Milestone set to unassigned
  • Resolution set to fixed
  • Status changed from assigned to closed

Seems to work now. Closing.

Note: See TracTickets for help on using tickets.