Posted on: 01/06/04 12:29pm
By: ola_one
Hello all,
Can someone possibly give me a step by step lesson on how to insert a picture in Gallery to a story in Geeklog.
I have done this seversl times trying to follow the directions presented in Geeklog, but each time, it turns out to be a serious examination for me.
I often get errors and then without knowing what I did, it will show the picture.thumb in my story but the link would still be missing.
I need to understand how to first insert the picture, and secondly, link the picture back to the album it belongs to.
I know that I need to add the image by inserting [ImageX_left] in the story. But each time I do that, it seems I need to browse and add the picture first.
Please educate me, especially with the link back to the album.
Thank you all in advance.
Ola
Re:Inserting Picture in a Story or Topic.
Posted on: 01/06/04 12:48pm
By: samstone
As you can see, there are usually 5 image uploading fields near the bottom of the story editor. What ever you browse and add in that first field is [images1], second [image2], etc.
So this is the procedure. You write the article and include a code [image1] [image2] [image3], etc. wherever you want in the story, and as you scroll down the page you add the image link by clicking on browse. At the end you click save. The images will be uploaded and placed at the place you put the codes.
Hope this helps!
Sam
Inserting an image from Gallery into a story
Posted on: 01/06/04 02:20pm
By: Turias
You're confusing inserting images into stories normally and doing the same thing with images already in Gallery. If you want a picture from Gallery to show up in a story, you should add it using simple HTML.
Do the following:
1) Get the URL for the thumbnail image
2) Get the URL for the gallery page which shows the complete image
3) Add the following into the story:
<a href="[gallery_page_link]"><img src="[thumbnail_image_link]" align="left|right|..." /></a>
Things to keep in mind:
1) Make sure that all of these tags and attributes are allowed for admins in your config.php file.
2) You need to post the story as HTML formatted
Re:Inserting Picture in a Story or Topic.
Posted on: 01/06/04 02:36pm
By: samstone
That's right, I didn't see that he was talking about images from the Gallery.
Ola, the insturction on that story editing page is for inserting images from your computer, not from the Gallery.
Sam
Re:Inserting Picture in a Story or Topic.
Posted on: 01/06/04 05:19pm
By: ola_one
Hello Again,
I know this may sound stupid, but when Turias said I needed to do three things, are all those accomplished by the html code:
The Gallery page link is the url to my gallery?
The Thumnail_image_link is the url to my thumbnail?
If the above are true, how do I link the specific thumbnail which is now part of my story to the rest of the album where the thumnail came from?
Would the code have done that for me?
Thanks again, I really appreciate all your help
Ola
Re:Inserting Picture in a Story or Topic.
Posted on: 01/06/04 05:23pm
By: Turias
The HTML code merely displays an image that is already in the gallery. If you want to post an image in both the gallery and the story, then put it in the gallery first and find the links that I mentioned before.
If you don't care if the image is in the gallery and only want it to be in the story, then don't do what I said. Instead, attach the image through the story submission page.
Re:Inserting Picture in a Story or Topic.
Posted on: 01/06/04 08:59pm
By: ola_one
Yes I want to insert the image from gallery. My question is that the html code that you game me does not mention the album name at all, I was trying to add an image to a story say for instance the image of a turkey to tell the story of thanksgiving, but when you click on the image of the turkey that I would have inserted in the story, it should then take you to the album named thanksgiving where the image came from in the first place.
Sorry if I was not clear with my initial question.
Thanks
Ola
Re:Inserting Picture in a Story or Topic.
Posted on: 01/06/04 11:41pm
By: Turias
Right, and my first post still stands. You need the URL for the thumbnail image and the URL for the page that displays the entire image.
If that doesn't make sense, then give me the URL to your site and the image you want posted and I will find it for you.
Re:Inserting Picture in a Story or Topic.
Posted on: 01/08/04 11:57pm
By: ola_one
Thanks again Turias,
I am in the process of changing registrar and in the next couple of days, my url may not work well.
What I found confusing is that the first part of the code you gave me, is referencing the gallery_page_link. Does this mean the album that the thumbnail is coming from?
This is one of those situations where I hope you say there is nothing like a stupid question.
But I have several albums in my Gallery right now, so what I am getting at is that the picture in the story gets linked to the album.
Am I saying the same thing or just not getting it?
Does that code mean link to the album on the gallery page?
Thanks again
Ola
Re:Inserting Picture in a Story or Topic.
Posted on: 01/09/04 12:02pm
By: samstone
Hi Ola,
Changing the registrar should not affact your url.
Yes, the code Turias gave you also links to the gallary page.
Sam
Re:Inserting Picture in a Story or Topic.
Posted on: 01/09/04 02:24pm
By: Turias
The 2 urls you need are the following:
1) Click on gallery. Click the gallery that contains your image. Find the thumbnail of your image. Right-click the thumbnail and find it's url.
2) Now click on the image. The page that appears is the second URL.
Now, if you use the code above, you can display thumbnails in the story, and then, when you click on the thumbnail, it will display the full image in the gallery.
Re:Inserting Picture in a Story or Topic.
Posted on: 01/11/04 05:20am
By: emagin
I just tried this. I pasted in the code as you specify and while it PREVIEWS the image just fine (I'm using HTML Area in the layout, so the thumbnail image shows up), when I go to save it and then look at the story the image is gone.
I tried this with other layouts (w/out HTML Area) and the same thing happens. No image shows up even though the HTML is in there.
Have you tested this? Do you have an online xample by chance?
Thanks
Re:Inserting Picture in a Story or Topic.
Posted on: 01/11/04 01:12pm
By: Turias
I don't have a public Geeklog site, so I don't have a place to paste an example at the moment. Could you link to the story you tried this in? I'd like to see its HTML.
Re:Inserting Picture in a Story or Topic.
Posted on: 01/11/04 06:21pm
By: samstone
I have used this with one of my stories. But I didn't use the thumbnail image from the gallery because the gallery thumbmail is not small enough. I put a small headshot of the author and link it to a large picture in the gallery.
I also have HTMLArea, which make this much easier to upload the thumbnail picture and link it to the gallery. I think it is faster and less troublesome than the other way.
Sam
Re:Inserting Picture in a Story or Topic.
Posted on: 01/11/04 07:19pm
By: ola_one
Hello guys, somehow I tried the code and all I got was an error.
The following errors occured while trying to save your story. Please correct these errors before saving
image #1, 20040111190152134_1.jpg, was not used. You must include this image in the intro or body before you can save your changes
In writing my story, I had included the tag as you said:
I also browsed to the image and added this image to the story as the only image picked, leaving the other 4 areas blank.
But when I saved the story, I got the error message.
Did I miss something in the tag or what did I do wrong?
Thanks
Ola
Re:Inserting Picture in a Story or Topic.
Posted on: 01/11/04 08:44pm
By: samstone
Which tag are you talking about?
In your case you should not be using Turias tag. You should be using [image1] at the place where you want the image to be.
If you use Turias tag. You should not be uploading anything from those fields.
Sam
Re:Inserting Picture in a Story or Topic.
Posted on: 01/12/04 09:44am
By: Turias
Yeah, don't actually attach the image.
Re:Inserting Picture in a Story or Topic.
Posted on: 01/12/04 12:23pm
By: ola_one
Okay guys,
Now the only other question is do I write Turias code verbatim, in other words, am I to include the [ ] and | in the tag?
The way Turias wrote the tag
<a href="[www.abc.com/gallery/family]"><img src="[www.abc.com/gallery/family/boy]" align="left|..." /></a>
Would the above code work or should the ... not be in it?
Thanks a million.
Ola
Re:Inserting Picture in a Story or Topic.
Posted on: 01/12/04 12:29pm
By: Turias
No.
Can you just post a link to the image and I can show you an example?
Re:Inserting Picture in a Story or Topic.
Posted on: 01/12/04 07:09pm
By: ola_one
The following are the two links
Link to the Album:
http://www.feyiola.com/gallery/summer2003
Link to the thumbnail:
http://www.feyiola.com/gallery/summer2003/Orlando_Vacation_004
Thanks
Ola
Re:Inserting Picture in a Story or Topic.
Posted on: 01/12/04 11:57pm
By: Turias
Your link should be:
<a href="http://www.feyiola.com/gallery/summer2003/Orlando_Vacation_004"><img src="http://www.feyiola.com/albums/summer2003/Orlando_Vacation_004.thumb.jpg"></a>
Examine it and figure out where I got those links from.
Also, add
align="left", align="right", or align="center" to the image tag if you want the image to be aligned in a vertain fashion.
Re:Inserting Picture in a Story or Topic.
Posted on: 01/13/04 07:18pm
By: ola_one
Sorry again Turias, but would you believe that I used to get the html code as part of my story when it was not workin. With your code, I did not get the code with the story. It was a clean story without the html code at the begining of my story.
The problem is that no image shows up. The only image next to my story is the topics icon. The gallery picture did not show up.
I have resolved my domain registration, so you may be able to get to the site. I saw the Ellinwood site, and it looks nice..
The site should be up unless I have other problems..
http://www.feyiola.com
Thanks in advance
Ola
Re:Inserting Picture in a Story or Topic.
Posted on: 01/13/04 07:28pm
By: ola_one
The previous post is missing some info...
The image was being attched to the Grandpa Story.
And without any preference for alignment yet, I copied your code exactly the way you put it but after saving it and the image did not show up, I went back to try and edit the story, and what I found was that the code has been changed to half of what I put in.I have removed the beginning
href="http://www.feyiola.com/gallery/summer2003/Orlando_Vacation_004">
The last part of the code which references the thumbnail is no where to be found....
Am I doing something weird, or is something wrong with my setup?
Thanks again
Ola
Re:Inserting Picture in a Story or Topic.
Posted on: 01/14/04 12:31am
By: samstone
Ola,
You need to set up in the config.php to allow those html tags before you can use them.
Sam
Re:Inserting Picture in a Story or Topic.
Posted on: 01/14/04 09:22am
By: ola_one
Sorry Samstone,
But knowing my history, I need help in what exactly needs to be done in config.php.
Is this a matter of commenting out stuff or turning it on by changing a variable from 0 to 1, or is it about inserting something completely new?
Any which way, can you tell me which, and how.
Thanks
Ola
Re:Inserting Picture in a Story or Topic.
Posted on: 01/14/04 09:32am
By: ola_one
But knowing my history, I need help in what exactly needs to be done in config.php.
Is this a matter of commenting out stuff or turning it on by changing a variable from 0 to 1, or is it about inserting something completely new?
Any which way, can you tell me which, and how.
I forgot to add that I just for the heck of it downloaded Geeklog at work so I can look for the solution in config.php
What I found is that the user_html has 1 in the a ref and the admi_html has 1 in all the rest. See below:
/* 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)
);
If the Config comes with allow html by default, I have not changed that at all.
I must say that I am not at home to see exactly what the config.php on my server says, but I will see by the end of the day.
Am I checking in the right place?
Thanks
Ola