Welcome to Geeklog, Anonymous Friday, November 08 2024 @ 10:05 pm EST
Geeklog Forums
[Fixed] How to use [code] tag in plaintext stories?
Status: offline
::Ben
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Status: offline
::Ben
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Seems to be easy to use but it doesn't work on geeklog 1.4.0sr5 and $_CONF['skip_html_filter_for_root'] = 1
if story is post in plain old texte
::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
Text Formatted Code
[ code ]A word[ /code ]<br />if story is post in plain old texte
::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
15
15
Quote
Status: offline
LWC
Forum User
Full Member
Registered: 02/19/04
Posts: 818
If you meant you can use it, but don't notice any difference, then you should know it just uses the HTML tag "pre", which does automatic line breaks, but disables wrapping. That's about it for what "pre" does.
See it in work.
To be able to use a real code format, I created a CSS class to which I called "code", put it in style.css and whenever I need it, I just:
Well, see it in work.
You can download this Geeklog class and its instructions from the download section in my site (it's one of the features of the "HTML 2 Text" script).
See it in work.
To be able to use a real code format, I created a CSS class to which I called "code", put it in style.css and whenever I need it, I just:
Well, see it in work.
You can download this Geeklog class and its instructions from the download section in my site (it's one of the features of the "HTML 2 Text" script).
14
10
Quote
Status: offline
::Ben
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Thank you for the lesson and the images LWC.
It's a bug because on geeklog 1.4.0sr5 and $_CONF['skip_html_filter_for_root'] = 1 if story is post in plain old texte tags like [ link: ] or [ file: ] work very well.
::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
It's a bug because on geeklog 1.4.0sr5 and $_CONF['skip_html_filter_for_root'] = 1 if story is post in plain old texte tags like [ link: ] or [ file: ] work very well.
::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
11
14
Quote
Status: offline
LWC
Forum User
Full Member
Registered: 02/19/04
Posts: 818
Oh, guess your title should have been "How to use the code tag in plaintext stories?"...
But in any case "pre"'s "no wrapping" part causes a lot of troubles (while the advantage is simply automatic line breaks which you get in Geeklog's plaintext mode anyway!), so you may think twice about using "code" as long as it uses "pre".
As for why it doesn't work, I think it's because it contradicts the whole concept of the plaintext mode. The other tags you mentioned probably just paste plain URLs, which are turned into HTML links if the right choice is enabled in config.php (which is about the only HTML choice that covers plaintext mode too).
But in any case "pre"'s "no wrapping" part causes a lot of troubles (while the advantage is simply automatic line breaks which you get in Geeklog's plaintext mode anyway!), so you may think twice about using "code" as long as it uses "pre".
As for why it doesn't work, I think it's because it contradicts the whole concept of the plaintext mode. The other tags you mentioned probably just paste plain URLs, which are turned into HTML links if the right choice is enabled in config.php (which is about the only HTML choice that covers plaintext mode too).
9
11
Quote
Status: offline
::Ben
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
LWC,
I made the mod in the title. English is not very easy for me... but I work everyday to make it easier.
So it would be nice to fixe this minor bug.
::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
I made the mod in the title. English is not very easy for me... but I work everyday to make it easier.
As for why it doesn't work, I think it's because it contradicts the whole concept of the plaintext mode.
So it would be nice to fixe this minor bug.
::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
13
13
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
As LWC said, that's not a bug. The CODE tag is there so that you can post HTML code while in HTML mode (for example). You don't need that when you're posting in text mode, since all the characters are posted "as is" there anyway.
bye, Dirk
bye, Dirk
15
14
Quote
Status: offline
::Ben
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Ok thank you misters.
I was looking for a way to show code different in the story when posting in plain text. Not the good way...
::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
I was looking for a way to show code different in the story when posting in plain text. Not the good way...
::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
16
14
Quote
All times are EST. The time is now 10:05 pm.
- 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