Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 04:08 pm EST

Geeklog Forums

Add pictures...


shaawn

Anonymous
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

mach

Anonymous
what's that word I just learned? oh yeah! "hotswapping" Laughing
but seriously, just use an absolute url, e.g.,
Text 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

shawn

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

shawn

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

Status: offline

Dirk

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

shawn

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

Status: offline

Robin

Forum User
Full Member
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:
Text 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:
Text 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 Very Happy
Geeklog Polish Support Team
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
worried
Quote by Robin: $_CONF['user_html']

Bad advise, Robin Shocked

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
 Quote

Status: offline

Robin

Forum User
Full Member
Registered: 02/15/02
Posts: 725
Quote by Dirk:Bad advise, Robin Shocked
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" Smile
So shaawn, that would be $_CONF['admin_html'] that you need to add the IMG tag.
Geeklog Polish Support Team
 Quote

All times are EST. The time is now 04:08 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