Welcome to Geeklog, Anonymous Monday, November 25 2024 @ 07:38 am EST

Geeklog Forums

Help! Linking in text post mode


The Missing Link

Anonymous
freakingout
I've tried to to write HTML code for my users in an HTML
formatted post and Geeklog almost buried my alive.
I've tried using codes like <pre>, <plaintext> & <xmp> (after
approving them in config.php, of course...), but simply refuses to
accept ANYTHING that started with a "<".

Eventually, everything turned into plain text, including the delete
button, so I had to manually input the link to editing posts, only
replacing the word "edit" with "delete".
Thank god it worked (otherwise I had no way to delete that
gone insane post).

Now, I know, I know...I should have used "plain old text" mode.
BUT...what if I want to use a link? Please tell me there is a way to
do that without posting in HTML!
Don't tell me to just write the URL down and hope my users would
copy and paste it into their browser (not to mention that with the lack
of target=_blank, they'll probably do it in top of MY site...).

Thanks so much, bye!
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by The Missing Link:Eventually, everything turned into plain text, including the delete button, so I had to manually input the link to editing posts, only replacing the word \"edit\" with \"delete\".
Yeah, that\'s one of several disadvantages of letting the user enter plain HTML - if they don\'t close their tags properly, the whole layout could get messed up.
Quote by The Missing LinkBig Grinon\'t tell me to just write the URL down and hope my users would copy and paste it into their browser
I\'m afraid, there\'s no way to have clickable links in text mode.
Quote by The Missing LinkFrownnot to mention that with the lack of target=_blank, they\'ll probably do it in top of MY site...).
Don\'t get me started on that nuisance ... bye, Dirk
 Quote

The Missing Link

Anonymous
Thanks for helping!

Anyway, I don't understand why Geeklog still wouldn't let me use
HTML code when it's surrounded by something like <xmp> & </xmp>.

How can a code possibly ruin my site when it's surrounded by these
tags?

In the delicate security vs. comfort balance, I think that at least in this
case, the security is a little too much tight...:-)
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by The Missing Link:Anyway, I don\'t understand why Geeklog still wouldn\'t let me use HTML code when it\'s surrounded by something like & .
First of all, there\'s no such tag in the HTML standard, so some browsers may not recognize it. Also, Geeklog filters out any tags which are not in the list of allowable HTML in config.php. bye, Dirk
 Quote

The Missing Link

Anonymous
Well, there\'s always the even worse tag, I guess.
I don\'t know of any other such codes, do you?

BUT...you can always invent a special code just for Geeklog.
For example, whenever I write and Geeklog
will just KNOW (internally) to treat the lines between as plain text.

So what do you think?
 Quote

The Missing Link

Anonymous
It removed that name from the post for some reason...
 Quote

The Missing Link

Anonymous
It changed my subject!

I wanted to write:
the even worse tag=the even worse tag
 Quote

The Missing Link

Anonymous
What is going on here?!

I wish I could erase/edit my earlier replies (that the forum messed
with...).
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by The Missing Link: What is going on here?!
Not sure what may have happened to the topic, but HTML tags that are not in the list of allowable HTML are filtered out (as I just explained in a previous post).
Quote by The Missing Link:I wish I could erase/edit my earlier replies (that the forum messed with...).
Registered users can do that ... bye, Dirk
 Quote

The Missing Link

Anonymous
I realise that. I\'m just saying - can\'t you declare your own tags.
Like, call them \"Dirk Tahs\" where everything between them should be
treated as plain text no matter what.

I don\'t require an explanation.
It\'s just a suggestion for the future.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by The Missing Link:I\'m just saying - can\'t you declare your own tags. Like, call them \"Dirk Tahs\" where everything between them should be treated as plain text no matter what.
There is the [code] pseudo tag. Try it ... bye, Dirk
 Quote

The Missing Link

Anonymous
I did (I tried them all eventually...). It\'s just like \"pre\", which means it
doesn\'t require \"p\" and \"br\", but still it wouldn\'t let me use real code (as
text).
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by The Missing Link: but still it wouldn\'t let me use real code (as text).
Then I may have misunderstood what you\'re after. Geeklog\'s code pseudo-tag is intended to reproduce text verbatim, i.e. exactly as you entered it, so that you could post PHP or HTML code. It is not the same as the HTML code or pre tags, as it does some extra escaping of characters. bye, Dirk
 Quote

The Missing Link

Anonymous
May be so, but it still wouldn't let me write actual code, and believe me
I tried.

Actually, what happened was that it CUT my code in the first mention of
a "<".

Let's say I posted:

=====================
bla bla bla bla
Here is the code you wanted:
<code>

<blabla>
<dsfsdf>
<lglgrer>
<lsfdsr>
<gdher>
<lldfgrer>

</code>

Enjoy!
=====================


And the result was:

=====================
bla bla bla bla
Here is the code you wanted:

<<p>
=====================

...and that's it! (yes, that was double &ltWink
 Quote

All times are EST. The time is now 07:38 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content