DjangoBB

Django based forum engine

  • You are not logged in.

#1 June 19, 2011 09:10:22

scrapper
Registered: 2010-12-20
Posts: 44
Reputation: +  1  -
Profile   Send e-mail  

link inside code tag

hello friends, hello slavonic :-)

this is a problem:

 some code and now a link inside the code [url]http://www.google.com[/url] 

as you can see, URL-tags get added automatically because of the URI but inside code-tags the html afterwards does show up the automatically added URL tags.

i haven't found where this is done, still looking.
i have checked if it is done by add_post function. but no it seems to be somewhere else.
so i guess it's done in postmarkup…!? a lot of parsing :-)

greetings
sc

Edited scrapper (June 19, 2011 09:17:27)

Offline

#2 June 19, 2011 09:23:11

scrapper
Registered: 2010-12-20
Posts: 44
Reputation: +  1  -
Profile   Send e-mail  

link inside code tag

i have posted the issue to postmarkup as well.

http://code.google.com/p/postmarkup/issues/detail?id=25 [code.google.com]

greetings
sc

Offline

#3 June 19, 2011 09:48:57

scrapper
Registered: 2010-12-20
Posts: 44
Reputation: +  1  -
Profile   Send e-mail  

link inside code tag

double entry - i am innocent!
by the way, this is the reason, why it would be great to delete posts within lets say the first 10minutes.
and not just let users to edit the posts. to avoid such double entries.
(i have deleted the double content)
but it would be great to delete the whole post.

Edited scrapper (June 19, 2011 09:55:36)

Offline

#4 June 19, 2011 09:50:13

scrapper
Registered: 2010-12-20
Posts: 44
Reputation: +  1  -
Profile   Send e-mail  

link inside code tag

Hint
a dirty quick fix would be to set auto_urls=False

in postmarkup.py:

_postmarkup = create(use_pygments=pygments_available)
def render_bbcode(bbcode,
encoding="ascii",
exclude_tags=None,
auto_urls=True,
paragraphs=False,
clean=True,
render_unknown_tags=False,
tag_data=None):

but i hope we find a real solution for the future.
something like:
if inside code-tags auto_urls=False else auto_urls=True

Offline

#5 June 21, 2011 10:29:51

slav0nic
DjangoBB Developer
From: Ukraine
Registered: 2009-10-25
Posts: 382
Reputation: +  5  -
Profile   Send e-mail  

link inside code tag

hi, tnx.

but will be better if this fixed in postmarkup codebase by author.

Offline

#6 June 21, 2011 10:38:24

scrapper
Registered: 2010-12-20
Posts: 44
Reputation: +  1  -
Profile   Send e-mail  

link inside code tag

hey slav0nic my friend,

yes i know, this is the reason why i have posted the problem to him. Hope he will find a good solution soon!

greetings
sc

Offline

#7 June 21, 2011 10:39:13

slav0nic
DjangoBB Developer
From: Ukraine
Registered: 2009-10-25
Posts: 382
Reputation: +  5  -
Profile   Send e-mail  

link inside code tag

ok tnx, i sended mail to author too

Offline

#8 Jan. 9, 2012 16:07:46

slav0nic
DjangoBB Developer
From: Ukraine
Registered: 2009-10-25
Posts: 382
Reputation: +  5  -
Profile   Send e-mail  

link inside code tag

fixed on latest postmarkup

Offline

Board footer

Moderator control

Powered by DjangoBB

Lo-Fi Version