Welcome to Geeklog, Anonymous Thursday, September 19 2024 @ 08:51 pm EDT
Geeklog Forums
Please Help me with HTML Tags...
Status: offline
ola_one
Forum User
Full Member
Registered: 06/28/03
Posts: 186
Hi all,
I know Dirk answered this problem for someone recently, but I do not know what the real solution is. I have installed Geeklog 1.3.8sr3, but my html tags are being stripped. I have tried everything Turias has told me to do to link my pictures, but the tags are being stripped always.
I cannot seem to link my thumbnails to the appropriate albums.
Can someone please TEACH me what I need to do. From the thread I read, it has something to do with lib-common.php, but somehow I do not know what I need to change in it.
My site is looking like it should, just the html is being stripped.
http://www.feyiola.com
Please help me.
Ola
I know Dirk answered this problem for someone recently, but I do not know what the real solution is. I have installed Geeklog 1.3.8sr3, but my html tags are being stripped. I have tried everything Turias has told me to do to link my pictures, but the tags are being stripped always.
I cannot seem to link my thumbnails to the appropriate albums.
Can someone please TEACH me what I need to do. From the thread I read, it has something to do with lib-common.php, but somehow I do not know what I need to change in it.
My site is looking like it should, just the html is being stripped.
http://www.feyiola.com
Please help me.
Ola
10
7
Quote
Status: offline
ola_one
Forum User
Full Member
Registered: 06/28/03
Posts: 186
Sorry Turias,
You have been trying to help me on this before (linking a picture to the album). Believe me. I have checked config.php and I actually copied the content to the last thread that shows that the admin and user settings have the default of 1.
The user html has a href set to 1, and the admin has about 6 - 8 variables all set to 1.
Unless there is somewhere else that needs to be checked and that I cannot find in myconfig.php.
Sorry, but those tags are showing as 1 in config.php.
So please, I still need help.
Thanks.
You have been trying to help me on this before (linking a picture to the album). Believe me. I have checked config.php and I actually copied the content to the last thread that shows that the admin and user settings have the default of 1.
The user html has a href set to 1, and the admin has about 6 - 8 variables all set to 1.
Unless there is somewhere else that needs to be checked and that I cannot find in myconfig.php.
Sorry, but those tags are showing as 1 in config.php.
So please, I still need help.
Thanks.
7
7
Quote
Status: offline
ola_one
Forum User
Full Member
Registered: 06/28/03
Posts: 186
Okay then,
This is all there is in the html tag areas...
// Parameters for checking HTML tags
// *** Warning: Adding the following tags to the list of allowable HTML can
// *** make your site vulnerable to scripting attacks!
// *** Use with care:
/* 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(),
'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 (
'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)
);
As I said, all the numbers are 1.
Thanks for your help.
Ola
This is all there is in the html tag areas...
// Parameters for checking HTML tags
// *** Warning: Adding the following tags to the list of allowable HTML can
// *** make your site vulnerable to scripting attacks!
// *** Use with care:
/* 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(),
'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 (
'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)
);
As I said, all the numbers are 1.
Thanks for your help.
Ola
6
10
Quote
Status: offline
Blaine
Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
This is what we were saying, you have not added the img related tags to the allowable HTML. You need to add another line to the $_CONF['user_html'] or admin_html for the IMG tag with any attributes you want to allow.
Such as:
'img' => array('src' => 1),
Will now allow the IMG HTML tag with the src attribute.
Geeklog components by PortalParts -- www.portalparts.com
Such as:
'img' => array('src' => 1),
Will now allow the IMG HTML tag with the src attribute.
Geeklog components by PortalParts -- www.portalparts.com
7
6
Quote
All times are EDT. The time is now 08:51 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