4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: bigwillhere on February 29, 2008, 02:00:33 AM

Title: Button Link
Post by: bigwillhere on February 29, 2008, 02:00:33 AM
I found this nifty little mod and  code in the forum to display all images for a member

{user_images_link}

By using it in the details.html it puts a text link  to display all images of the member.

Instead of a text link, I wanted to use a button or image link.

I tried this, but all it did was display  the image with the text link below it.

<a href="{user_images_link}"><img src="{template_url}/images/but01.gif" border="0" alt="" /></a>

How can I use or create a button or image link v.s. a text link for the above.

Title: Re: Button Link
Post by: thunderstrike on February 29, 2008, 02:04:11 AM
Quote
I found this nifty little mod and  code in the forum to display all images for a member

If so, please post in right topic.
Title: Re: Button Link
Post by: mawenzi on February 29, 2008, 02:17:47 AM
... 18 posts ... so you must know how to use this forum ...
Title: Re: Button Link
Post by: bigwillhere on February 29, 2008, 03:16:38 AM
thunderstrike, thanks for being a gentleman. I'll try to find the post again. I copied and pasted it about a week ago in word pad and saved it. I'm just now getting around to using it. The jest of my question is how to make a button link and I was  using the mod I found in the forum as a reference. It didn't talk about button links. If I find it I will post my question there but I think it will be off topic in that thread.

Thanks


mawenzi, I'm glad you are perfect and don't make any mistakes. I did search before posting for how to make button link but unless you know what keywords to search on, it can be tough to find what you are looking for.  Thanks for making me feel welcome.
Title: Re: Button Link
Post by: thunderstrike on February 29, 2008, 03:23:39 AM
Quote
It didn't talk about button links. If I find it I will post my question there but I think it will be off topic in that thread.

Very good. Post topic for see if right topic headline. ;)
Title: Re: Button Link
Post by: bigwillhere on February 29, 2008, 03:43:06 AM
Hey Thuderstrike...I found the topic and went to post and got this warning:

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Man, I don't want to violate any rules or mawenzi may give may give me another warm and fuzzy reply.

The link to the topic is here http://www.4homepages.de/forum/index.php?topic=12914.15

After reading it again I thought my question on how to create a button link may not fit, but I will post my question  in the old post if you say that is what I should do.

Even though I got this code {user_images_link} from the post, the rest of my attempt at the link below was me trying to figure out how to create a button link from {user_images_link}.

<a href="{user_images_link}"><img src="{template_url}/images/but01.gif" border="0" alt="" /></a>

Oh well, if I violate some rule by taking something from one post and trying to improvise by creating something I want to use, I apologize. My search for the answer netted no results so that is why I posted.



Title: Re: Button Link
Post by: thunderstrike on February 29, 2008, 04:46:59 AM
Ok ... this is good reply for compare topic ... ;)

Quote
{user_images_link}

What is source tag say in PHP file for this ? Please post code.
Title: Re: Button Link
Post by: mawenzi on February 29, 2008, 05:53:38 AM
... for button link "My Images" use in functions.php this ...
Code: [Select]
$user_images_link = "<a href=\"search.php?search_user=".$user_name."\"><img src=\"".get_gallery_image("but01.gif")."\" border=\"0\" alt=\"\" /></a>";

... instead of ...
Code: [Select]
$user_images_link = "<a href=\"search.php?search_user=".$user_name."\">".$lang['pictures']."</a>";
Title: Re: Button Link
Post by: bigwillhere on February 29, 2008, 01:12:19 PM
Thanks guys........that worked. :!: :!: :!: :!:
Title: Re: Button Link
Post by: mawenzi on February 29, 2008, 01:38:39 PM
... guys ...  :roll:
Title: Re: Button Link
Post by: bigwillhere on February 29, 2008, 02:19:44 PM
OOPS.... :oops: thanks mawenzi for the code. I do appreciate everyones effort so that is why I say thanks to all who tried to help.