Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 01:29 pm EDT

Geeklog Forums

no images allowed in html?


Status: offline

loculus

Forum User
Newbie
Registered: 07/01/05
Posts: 14
How can I embed images in a story using html without using the admin upload/imagex option? ImageX will simply display

[image1]

within the story.

Also, when I upload in image directly my domain ising ftp, and then use html to include the image, the image html just gets removed by geeklog. How can I change this to allow images in the html?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany

Status: offline

loculus

Forum User
Newbie
Registered: 07/01/05
Posts: 14
Ok, now I'm even more confused. I read

"The Admin list is actually an extension of the user list, so that Admins can use all the HTML tags from any of the two lists."


So as an admin, I should be able to include html to display an image yet when I edit a contribution to include an image. It still does not display. I even edited the config.php to include the "src" tag and it still did not work. What am I doing wrong? Shoudn't I be able to include any html as an admin?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by loculus: What am I doing wrong?

Well, what did you try?

bye, Dirk
 Quote

Status: offline

loculus

Forum User
Newbie
Registered: 07/01/05
Posts: 14
Quote by Dirk:
Quote by loculus: What am I doing wrong?

Well, what did you try?

bye, Dirk


I tried adding a "src" tag to the list of tags allowed in the config.php file ...

Text Formatted Code
This is a list of HTML tags that users are allowed to use in their posts.
 * Each tag can have a list of allowed attributes (see 'a' for an example).
 * Any attributes not listed will be filtered, i.e. removed.
 */
$_CONF['user_html'] = array (
    'p'    => array(),
    'b'    => array(),
    'i'    => array(),
    'a'    => array('href' => 1, 'title' => 1),
    'em'   => array(),
    'br'   => array(),
    'tt'   => array(),
    'hr'   => array(),
    'li'   => array(),
    'ol'   => array(),
    'ul'   => array(),
    'src' => array(),
    'pre'  => array()
);

/* This is a list of HTML tags that Admins (site admin and story admins) can
 * use in their posts. It will be merged with the above list of user-allowable
 * tags ($_CONF['user_html']).
 
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
There is no such thing as a "src" tag in HTML. You want to add the "img" tag and the "src" attribute. And you certainly don't want to add it to the allowed tags for normal users (unless this is on an intranet or some other setup where you can trust your users).

This is actually all explained in that FAQ entry I've already pointed you to ...

bye, Dirk
 Quote

Status: offline

loculus

Forum User
Newbie
Registered: 07/01/05
Posts: 14
Thanks for your help.

The best I can get is a broken image because Geeklog edits out the rest of the line after "" so it appears that "img" works, but now it is deleting the url to the image.

EDIT: + As an admin (StoryAdmin Actuall as it reads in the faq) I should be able to post an image without all this.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by loculus: The best I can get is a broken image because Geeklog edits out the rest of the line after "" so it appears that "img" works, but now it is deleting the url to the image.

Again, what did you try? The example given in the FAQ should work.

bye, Dirk
 Quote

Status: offline

loculus

Forum User
Newbie
Registered: 07/01/05
Posts: 14
Okay. Well, I started over, went back to my original unedited config.php file and entered the line from the faq. It does work now so I guess I have something wrong in my custom config. Thanks for the help. I guess I need to re-edit my config.php file now lol.
 Quote

All times are EDT. The time is now 01:29 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