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 |
|
||||||
|
|
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.
|
||||||
|
|||||||
| Anonymous: mach |
|
||||||
|
|
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 |
||||||
|
|||||||
| Anonymous: shawn |
|
||||||
|
|
It wont work.. Im trying to get the pic to show up in my post
|
||||||
|
|||||||
| Anonymous: shawn |
|
||||||
|
|
Also where in the config file do I change this? To make it show pics show up. Thanks
|
||||||
|
|||||||
| Dirk |
|
||||||
![]() ![]() ![]() ![]() ![]() Admin ![]() Status: offline ![]() Registered: 01/12/02 Posts: 13027 |
|||||||
|
|||||||
| Anonymous: shawn |
|
||||||
|
|
Im kinda an idiot with that could you explain in in an easy well.. Just tell me what to do. Thanks
|
||||||
|
|||||||
| Robin |
|
||||||
![]() ![]() ![]() ![]() ![]() 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 |
||||||
|
|||||||
| Dirk |
|
||||||
![]() ![]() ![]() ![]() ![]() Admin ![]() ![]() 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 |
||||||
|
|||||||
| Robin |
|
||||||
![]() ![]() ![]() ![]() ![]() 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 |
||||||
|
|||||||
| Content generated in: 3.70 seconds |
|
|
|