Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 07:03 am EST

Geeklog Forums

Linking image to story


Muna

Anonymous
How do i make the image link to the story? such that when i click on the image it links me to the story it is on.

Please help

Muna
 Quote

Muna

Anonymous
Someone please help me.

Muna
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
What are you trying to accomplish? An image by itself can't link to anything ...

bye, Dirk
 Quote

Muna

Anonymous
Am trying to make story images i upload link to the story they are on such that when someone clicks on the image on the homepage they are linked to the whole story or read more. The image must link to the "read more" link.

Thank you in advance

Muna
 Quote

Status: offline

jetshack

Forum User
Full Member
Registered: 06/29/04
Posts: 122
Location:Texas
??? will this not work for you?

Text Formatted Code
<a href="http://#"><img src="http://#"></a>
 
 Quote

Muna

Anonymous
Where do i add that? i want it such that when am administering all the articles images they all automatically link to the story they are own...i mean the first image only.

Muna
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
What Jetshack posted would also work with uploaded images:
Text Formatted Code
<a href="http://www.example.com/article.php/your-story-id-here">[image1]</a>
 


bye, Dirk
 Quote

Muna

Anonymous
Where do i add that code guys?

Thank you in advance

Muna
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
In your story.

bye, Dirk
 Quote

Muna

Anonymous
Have tried that code in my story Dirk, its not working properly, you see i want it to automatically link all my stories to [image1] when am administering them so i wont have to add the code all the time.

Hope to hear from you

Muna
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
You can do what you want if you modify the function STORY_replace_images in the file //path_to_geeklog/system/lib-story.php Sorry I don't have the time to tell you exactly what needs to be done though.
 Quote

Muna

Anonymous
I think jmucchiello might have the answe am looking for...someone please help me, I need to know what exactly needs to be done to make my story images link to the story they are on in file //path_to_geeklog/system/lib-story.php

Please help me

Muna
 Quote

Muna

Anonymous
Somoene please help me am so desperate

Muna
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
I'm afraid creating those links automatically would require some non-trivial code changes ...

bye, Dirk
 Quote

Muna

Anonymous
Am still trying to make images link to the stories they are on, how do i make [Image1] link to the article. Have tried what Dirk and the other gentleman suggested but am still having problems.

Someone help me.

Regards

Muna
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
It would help if you could be more specific ...

bye, Dirk
 Quote

Status: offline

trampoline

Forum User
Full Member
Registered: 02/24/06
Posts: 392
You could use Media Gallery, it has a plugin which takes all images in stories and makes them part of the gallery, thereby linking images to gallery to story... I think, not used it myself...
 Quote

All times are EST. The time is now 07:03 am.

  • 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