Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 04:57 pm EST
Geeklog Forums
How to Add Images to Geeklog Text?
Anonymous
Anonymous
How do I add images to Geeklog text and pages? For example.. How would I type in a page on www.nans.us and when it shows have a picture in the top right corner> Thanks...
8
7
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
As a normal user on a standard install - you can't.
You can allow the HTML <img> tag for HTML postings by adding it to $_CONF['alllow_html'] in config.php, if you want.
As an Admin, you can actually upload images to be used in stories. This is explained in the Admin's version of the story editor.
bye, Dirk
10
9
Quote
Anonymous
Anonymous
Thank you. I am the admin so I'll look up the story editor info. Thank you.
6
7
Quote
Anonymous
Anonymous
Hello,
I cannot upload images to stories as an admin.
The image gets there, is assigned a number, but it does not appear on the story. Am I using the wrong code? I use [image2338686998.gif] Is this the correct syntax?
An additional question: can I use html to add images, that is img src and so on?
Thanks!
Michael
10
7
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The correct syntax is [image1] for the first image, [image2] for the second, etc. You don't need to know the name that Geeklog assigns to the actual image files.
And, yes, you can use <img> - if you add that to the list of allowable HTML tags (in config.php).
bye, Dirk
8
7
Quote
Michael
Anonymous
What is the syntax to add img to the 'admin_html' section.
I am brand new to this and I have just installed geeklog. I am trying to get the basics down so I can customize it for my parents website. I was hoping to give them the ability to type some text and attach images to the text. When I try it I get the same result as described here. I use the geeklog story editor and browse to my local picture, include the "[image1_left] in the body text but the result is a broken image. Sizing is not an issue I have tried multiple sizes. If I ftp to the /images/articles directory there is nothing there. Any help is greatly apprecieated.
Thanks
I am brand new to this and I have just installed geeklog. I am trying to get the basics down so I can customize it for my parents website. I was hoping to give them the ability to type some text and attach images to the text. When I try it I get the same result as described here. I use the geeklog story editor and browse to my local picture, include the "[image1_left] in the body text but the result is a broken image. Sizing is not an issue I have tried multiple sizes. If I ftp to the /images/articles directory there is nothing there. Any help is greatly apprecieated.
Thanks
7
7
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Michael: What is the syntax to add img to the 'admin_html' section.
The syntax you're using is correct (assuming you're using the English language file - some of the translations also translated the word "image" ...).
Switch on the debugging for the image upload in config.php:
$_CONF['debug_image_upload'] = true;
Then see (after your next attempt) if the contents of Geeklog's error.log help you track down the problem.
bye, Dirk
9
10
Quote
Michael
Anonymous
My syntax question was about how to properly add the "img" tag in the config.php file. (I am currently using notepad and the config.php file is a monster to deal with. A side recomendation on a good windows text editor would be nice.)
'p' => array('class' => 1, 'id' => 1, 'align' => 1,<i> <b>'img' => 1),</b></i>
'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)
)
The bold italics is what I added.
Any other suggestions. I am going to try the other now.
Thanks
Text Formatted Code
$_CONF['admin_html'] = array ('p' => array('class' => 1, 'id' => 1, 'align' => 1,<i> <b>'img' => 1),</b></i>
'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)
)
The bold italics is what I added.
Any other suggestions. I am going to try the other now.
Thanks
9
8
Quote
All times are EST. The time is now 04:57 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