Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Wednesday, May 22 2013 @ 02:30 PM EDT


 Forum Index > Support > General Geeklog Support New Topic Post Reply
 Add pictures...
   
Anonymous: shaawn
 09/06/05 02:40AM (Read 1329 times)  



Hey when I make a post im trying to add pictures from another host... What is the code I need to use to do that. Thnaks.

 
 Quote
Anonymous: mach
 09/06/05 02:59AM  



what's that word I just learned? oh yeah! "hotswapping"
but seriously, just use an absolute url, e.g.,
PHP Formatted Code
 <img src="http://otherhost.com/copyrightImage.jpg" alt="ouch" />
 

you must also have enabled the use of an img tag in your stories... this is done in config.php

 
 Quote
Anonymous: shawn
 09/06/05 03:16AM  



It wont work.. Im trying to get the pic to show up in my post

 
 Quote
Anonymous: shawn
 09/06/05 04:01AM  



Also where in the config file do I change this? To make it show pics show up. Thanks

 
 Quote
Dirk
 09/06/05 01:50PM  
AAAAA
Admin

Status: offline


Registered: 01/12/02
Posts: 13027

 
Profile Email Website
 Quote
Anonymous: shawn
 09/06/05 04:02PM  



Im kinda an idiot with that could you explain in in an easy well.. Just tell me what to do. Thanks

 
 Quote
Robin
 09/07/05 04:05AM  
+++++
Full Member

Status: offline


Registered: 02/15/02
Posts: 725
Quote by shawn: Im kinda an idiot with that could you explain in in an easy well.

OK. Now concentrate because I'm going to write this only once.
In config.php you find this // Parameters for checking HTML tags. Below you find this:
PHP Formatted Code
$_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()
);
 

It's the list of allowed, meaning that can be used, html tags. As you can see img is not one of them. Therefore you have to add it to the above list (in config.php). After adding the above list will look like this:
PHP Formatted Code
$_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(),
    'img' => array('src' => 1, 'alt' => 1)
);
 


To avoid any mistakes just copy and paste it over in your config.php.

Good luck

Geeklog Polish Support Team
 
Profile Email Website
 Quote
Dirk
 09/07/05 01:31PM  
AAAAA
Admin
worried

Status: offline


Registered: 01/12/02
Posts: 13027
Quote by Robin: $_CONF['user_html']

Bad advise, Robin

The IMG tag should not be made available to normal users (unless you're in a controlled environment like an intranet or a closed user group). I've seen a few "nice" things on the security mailing lists recently showing what you can do when you allow everyone the use of images.

bye, Dirk

 
Profile Email Website
 Quote
Robin
 09/07/05 06:28PM  
+++++
Full Member

Status: offline


Registered: 02/15/02
Posts: 725
Quote by Dirk:Bad advise, Robin
The IMG tag should not be made available to normal users

Oops, my bad. Guess it was a bit hasty and as they say "Haste makes waste"
So shaawn, that would be $_CONF['admin_html'] that you need to add the IMG tag.

Geeklog Polish Support Team
 
Profile Email Website
 Quote
Content generated in: 3.70 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to post 
Filtered HTML Allowed 
Censored Content