Welcome to Geeklog Thursday, July 02 2020 @ 03:14 am EDT

Geeklog Forums

Images in html story

Page navigation


Jeff

Anonymous
Here This is what the article should look like This is on a test page with the html from the an email that I get just loaded into an html file through Dreamweaver.

Here is the link to the same story and same html/code on my page. That doesnt work. here The only thing I edit is grab the first Paragraph for the intro and the headline for the story headline.

it is the same code exactly copied and pasted from the email with the html in it.

Thanks for your help

Jeff
 Quote

Status: offline

Turias

Forum User
Full Member
Registered: 20/10/03
Posts: 807
Um, you said the img tags are not getting stripped out of your stories. They obviously are (look at the source). If you read this FAQ entry thoroughly, you should be able to configure your site so that this works.
 Quote

Jeff

Anonymous
I did and I tried it this is from the config file and what I changed and allow for stories in both the admin and the user:

$_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(),
'code' => 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']). You can also add tags that have already been
* listed for the user-allowed HTML, so as to allow admins to use more
* attributes (see 'p' for an example).
*/
$_CONF['admin_html'] = array (
'img' => array('src' => 1, 'alt' => 1, 'width' => 1),
'p' => array('class' => 1, 'id' => 1, 'align' => 1),
'div' => array('class' => 1, 'id' => 1),
'span' => array('class' => 1, 'id' => 1),
'table' => array('class' => 1, 'id' => 1, 'width' => 1, 'border' => 1,
'cellspacing' => 1, 'cellpadding' => 1),
'tr' => array('class' => 1, 'id' => 1, 'align' => 1, 'valign' => 1),
'th' => array('class' => 1, 'id' => 1, 'align' => 1, 'valign' => 1,
'colspan' => 1, 'rowspan' => 1),
'td' => array('class' => 1, 'id' => 1, 'align' => 1, 'valign' => 1,
'colspan' => 1, 'rowspan' => 1),
'img' => array('src' => 1, 'alt' => 1, 'align' => 1,
'border' => 1, 'width' => 1, 'height' => 1),

);
 Quote

Status: offline

Turias

Forum User
Full Member
Registered: 20/10/03
Posts: 807
You've got an extra comma at the very end there, Jeff. Wink
 Quote

Jeff

Anonymous
No dice man still doesnt want to work I also saw that I had an extra line on the first entry for admin so I removed that as well.
 Quote

Status: offline

Turias

Forum User
Full Member
Registered: 20/10/03
Posts: 807
You must have a syntax problem, somewhere. Is img even listed in the allowed HTML on the story editor page?

The only other thing I can think of is if you upgraded to a newer version of Geeklog but did not update all of the files.
 Quote

Jeff

Anonymous
Thanks for your help. I somehow made it work by re downloading the GL .tar and copy & pasting the code back into a new config file and it works I dont know what happened maybe somehting was corrupted when i was doing the editing but now it works great. I wouldnt think BBedit would do such a thing but you never know, Thank you again for your patience and help


Jeff
 Quote

Page navigation

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