Posted on: 07/01/05 03:03pm
By: loculus
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?
no images allowed in html?
Posted on: 07/01/05 03:08pm
By: Dirk
no images allowed in html?
Posted on: 07/01/05 03:22pm
By: loculus
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?
no images allowed in html?
Posted on: 07/01/05 03:25pm
By: Dirk
[QUOTE BY= loculus] What am I doing wrong?[/QUOTE]
Well, what did you try?
bye, Dirk
no images allowed in html?
Posted on: 07/01/05 03:39pm
By: loculus
[QUOTE BY= Dirk] [QUOTE BY= loculus] What am I doing wrong?[/QUOTE]
Well, what did you try?
bye, Dirk[/QUOTE]
I tried adding a "src" tag to the list of tags allowed in the config.php file ...
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']).
no images allowed in html?
Posted on: 07/01/05 03:45pm
By: Dirk
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
no images allowed in html?
Posted on: 07/01/05 03:58pm
By: loculus
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.
no images allowed in html?
Posted on: 07/01/05 04:05pm
By: Dirk
[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.[/QUOTE]
Again, what did you try? The example given in the FAQ should work.
bye, Dirk
no images allowed in html?
Posted on: 07/01/05 04:12pm
By: loculus
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.