SOLVED: LinkMgr images

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
nmorgan
Forum Members
Forum Members
Posts: 37
Joined: Fri Oct 03, 2008 11:21 pm

SOLVED: LinkMgr images

Post by nmorgan »

Hello, I'm the current version of cmsms with linkmgr installed.

I can't figure out how to get the images to show up. I've uploaded link images to the linkmgr uploads folder - when adding links I'm able to select the uploaded files...

yet when I display the page I just get the links as bulleted items with no image.

Any ideas?

http://morganwebhosting.com/~bvizzard/i ... page=press

scroll to the bottom section where links appear under "In The Blogosphere" section.

Is there another module that would do this better?
Last edited by nmorgan on Thu May 24, 2012 1:47 pm, edited 1 time in total.
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: LinkMgr images

Post by Jos »

Try {get_template_vars} and for any array you retrieve you can use {$arrayname|print_r}. Put it after the module call.
That way you get all the available variables and their values.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: LinkMgr images

Post by Rolf »

<img src="{$item.link_img}" title="{$item.link_name}" alt="{$item.link_name}" />
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
nmorgan
Forum Members
Forum Members
Posts: 37
Joined: Fri Oct 03, 2008 11:21 pm

Re: LinkMgr images

Post by nmorgan »

Hello thanks for responses.

Is this module meant to include a photo automatically? I'm not too great with code but with a little more info I might can follow you guys. So far no luck.


Jos: I put in the vars code so that displays now. I tried to follow what you said but got a smarty error which is displaying now:
http://morganwebhosting.com/~bvizzard/i ... page=press


Roff: I tried putting the code you mentioned

<img src="{$item.link_img}" title="{$item.link_name}" alt="{$item.link_name}" />

into the template but didn't know where it belonged. I was able to displace one photo which showed up at the bottom of the list but not one thumbnail for each story.

I was hoping for just a thumbnail instead of the bullet for each of these. Maybe that's not what linkmgr is supposed to do.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: LinkMgr images

Post by Rolf »

Short example

Code: Select all

<div class="linkmgr">
{foreach from=$items item="item"}
{if $item.link_img}<a href="{$item.link_url}" target="_blank"><img src="{$item.link_img}" title="{$item.link_name}" alt="{$item.link_name}" /></a>{/if}
<h4><a href="{$item.link_url}" target="_blank">{$item.link_name}</a></h4>
<p>{$item.link_desc}</p>
{/foreach}
</div>
Note: images must be uploaded to the /uploads/images/linkmgr directory.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
nmorgan
Forum Members
Forum Members
Posts: 37
Joined: Fri Oct 03, 2008 11:21 pm

Re: SOLVED: LinkMgr images

Post by nmorgan »

Thanks so much for your help. That worked but the photo just rests above the post - which may just be how it is supposed to be. I was hopping for a thumbnail before the post like you see on blog rolls on blogs. Perhaps I'm not using the right tool for the job.

Again, much thanks!
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: SOLVED: LinkMgr images

Post by Jos »

You can resize the image with CGSmartImage or SuperSizer and even edit the template and stylesheet in a way that a user can click on the thumbnail to view it in an overlay like "Lightbox"
Post Reply

Return to “Modules/Add-Ons”