Hi, Can any bright spark help me align my thumbnails correctly on this directory, they should be to the left of the link information... www.web-directory-submit.com Thanks, Steve
{strip} <table><tr> {* show page rank *} {if $smarty.const.SHOW_PAGERANK} <td> {if $link.FEATURED eq 1} <img src="http://msnsearch.srv.girafa.com/srv/i?s=MSNSEARCH&r={$link.URL|escape|trim}" style="border:1px #000000 solid;" border="0" width="130" height="110" alt="{$link.TITLE}" /></a> {/if} {include file="pagerank.tpl" pr=$link.PAGERANK} </td> {/if} <td> <a id="id_{$link.ID}" href="{$link.URL|escape|trim}" title="{$link.TITLE|escape|trim}" {* nofollow *} {if $link.NOFOLLOW or ($link.RECPR_VALID eq 0 and ($smarty.const.RECPR_NOFOLLOW eq 2 or ($smarty.const.RECPR_NOFOLLOW eq 1 and $link.RECPR_REQUIRED eq 1)))} rel="nofollow"{/if} {if $smarty.const.ENABLE_BLANK} target="_blank"{/if}> {$link.TITLE|escape|trim}</a> <span class="url">- {$link.URL|escape|trim}</span> {if !empty ($search) or !empty ($uid)} <p>{l}Category{/l}: <a href="{$smarty.const.DOC_ROOT}/{$link.CATEGORY_URL|escape|trim}" title="{$link.CATEGORY_TITLE|escape|trim}">{$link.CATEGORY_TITLE|escape|trim}</a></p> {/if} <p> {$link.DESCRIPTION|escape|trim} - [<a class="subcat" href="{if !$smarty.const.ENABLE_REWRITE} {$smarty.const.DOC_ROOT}/detail.php?id={$link.ID} {else} {$smarty.const.DOC_ROOT}/detail/link-{$link.ID}.html{/if}" title="{l}Read more about{/l}: {$link.TITLE|escape|trim}">{l}Read more{/l}</a> {if $smarty.const.REQUIRE_REGISTERED_USER == 1 and !empty ($regular_user_details) and ($regular_user_details.ID == $link.OWNER_ID)} , <a href="{$smarty.const.DOC_ROOT}/submit.php?linkid={$link.ID}" title="{l}Edit or Remove your link{/l}">{l}Review{/l}</a> {/if} ] </p> </td> </tr> </table> {/strip}
link.tpl also..see this line above? {if $link.FEATURED eq 1} <img src="http://msnsearch.srv.girafa.com/srv/i?s=MSNSEARCH&r={$link.URL|escape|trim}" style="border:1px #000000 solid;" border="0" width="130" height="110" alt="{$link.TITLE}" /></a> {/if} if you want all of your links to have thumbs, just remove {if $link.FEATURED eq 1} and {/if} if you need help pm me your ftp: host/user/pswd. Rob
Clever fella, thank you very much for this, take a look, are the thumbnails too big do you think? Perhaps this is a better size actually. Do you know why the [ Read more ] has all that space in it that it shouldnt , any idea how to fix? Thank you for your help Steve
EDIT, ignore this post, fixed it by editing my pagerank.tpl. Rob, just realised Ive lost the PageRank toolbar with this ? Cheers, Steve
read the code very carefully. you more than likely went one {/if} too far. the pagerank bar is the {include file="pagerank.tpl" pr=$link.PAGERANK} which is located between two {/if}'s that need to be in there to shwo pr. sorry for the delay, i am helping about 4 other people on the phpld forums. Rob
Thanks Rob, just one quick question then, the link details now appear to be operating outside the controls of the CSS which means the fonts /colours are not as they should be. How can i change them? Thanks for your help. Steve
assign your classes to your links accordingly. <a class="thenameofyourclass" hrfef='http://www.blahblahblah.com"> also, on your second column (<td>) add a valign="top" e.g. <td valign="top"> to get your descriptions aligned to the top and look neat.
Thanks Anon , you are an absolute star and have helped me loads, in fact you have done for me what I was trying to do. So a huge thank you man. Steve
No problem Steve, and my pleasure. I appreciate your trust in me and your kindness as well. *You* are the absolute star Rob
No problem Remember, you can always check on the phpld forums for answer too, if you get stuck with something. Rob
@ thudufushi GreyLine helped you a lot too, Not that? Where is the template Sponsor link and template designer link?
his 'programmer' probably 'reverse engineered' it and he was so impressed 'her' probably forgot to include it hahahaha sorry to see your hard work ripped off Shabu.
vegabond, please advise the template you are referring to and the links that should be displayed and It will be done Cheers, Steve