1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Directory Thumbnails placement

Discussion in 'Directories' started by thudufushi, Oct 4, 2006.

  1. #1
    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
     
    thudufushi, Oct 4, 2006 IP
  2. an0n

    an0n Prominent Member

    Messages:
    5,688
    Likes Received:
    915
    Best Answers:
    0
    Trophy Points:
    360
    #2
    {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&amp;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} -&nbsp;[<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&nbsp;more{/l}</a>

    {if $smarty.const.REQUIRE_REGISTERED_USER == 1 and !empty ($regular_user_details) and ($regular_user_details.ID == $link.OWNER_ID)}
    ,&nbsp;<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}
     
    an0n, Oct 4, 2006 IP
  3. thudufushi

    thudufushi Well-Known Member

    Messages:
    1,145
    Likes Received:
    75
    Best Answers:
    0
    Trophy Points:
    155
    #3
    Hi, thanks for that , but what does it mean, locations etc?
     
    thudufushi, Oct 4, 2006 IP
  4. an0n

    an0n Prominent Member

    Messages:
    5,688
    Likes Received:
    915
    Best Answers:
    0
    Trophy Points:
    360
    #4
    link.tpl



    also..see this line above?

    {if $link.FEATURED eq 1}
    <img src="http://msnsearch.srv.girafa.com/srv/i?s=MSNSEARCH&amp;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
     
    an0n, Oct 4, 2006 IP
  5. ! Ask !

    ! Ask ! Peon

    Messages:
    3,282
    Likes Received:
    260
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I really like the design in your directory.
     
    ! Ask !, Oct 4, 2006 IP
  6. thudufushi

    thudufushi Well-Known Member

    Messages:
    1,145
    Likes Received:
    75
    Best Answers:
    0
    Trophy Points:
    155
    #6
    Thanks, mostly my handy work ;).
     
    thudufushi, Oct 4, 2006 IP
  7. thudufushi

    thudufushi Well-Known Member

    Messages:
    1,145
    Likes Received:
    75
    Best Answers:
    0
    Trophy Points:
    155
    #7
    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


     
    thudufushi, Oct 4, 2006 IP
  8. thudufushi

    thudufushi Well-Known Member

    Messages:
    1,145
    Likes Received:
    75
    Best Answers:
    0
    Trophy Points:
    155
    #8
    EDIT, ignore this post, fixed it by editing my pagerank.tpl. :)

    Rob, just realised Ive lost the PageRank toolbar with this ?
    Cheers,
    Steve
     
    thudufushi, Oct 4, 2006 IP
  9. an0n

    an0n Prominent Member

    Messages:
    5,688
    Likes Received:
    915
    Best Answers:
    0
    Trophy Points:
    360
    #9
    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
     
    an0n, Oct 4, 2006 IP
  10. thudufushi

    thudufushi Well-Known Member

    Messages:
    1,145
    Likes Received:
    75
    Best Answers:
    0
    Trophy Points:
    155
    #10
    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
     
    thudufushi, Oct 4, 2006 IP
  11. an0n

    an0n Prominent Member

    Messages:
    5,688
    Likes Received:
    915
    Best Answers:
    0
    Trophy Points:
    360
    #11
    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.
     
    an0n, Oct 4, 2006 IP
  12. thudufushi

    thudufushi Well-Known Member

    Messages:
    1,145
    Likes Received:
    75
    Best Answers:
    0
    Trophy Points:
    155
    #12
    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
     
    thudufushi, Oct 5, 2006 IP
  13. an0n

    an0n Prominent Member

    Messages:
    5,688
    Likes Received:
    915
    Best Answers:
    0
    Trophy Points:
    360
    #13
    No problem Steve, and my pleasure.

    I appreciate your trust in me and your kindness as well. *You* are the absolute star ;)

    Rob
     
    an0n, Oct 5, 2006 IP
  14. dynn

    dynn Notable Member

    Messages:
    5,046
    Likes Received:
    238
    Best Answers:
    0
    Trophy Points:
    253
    #14
    thanks an0n...its work in my directory
     
    dynn, Oct 7, 2006 IP
  15. an0n

    an0n Prominent Member

    Messages:
    5,688
    Likes Received:
    915
    Best Answers:
    0
    Trophy Points:
    360
    #15
    No problem ;)

    Remember, you can always check on the phpld forums for answer too, if you get stuck with something.

    Rob
     
    an0n, Oct 7, 2006 IP
    vegabond likes this.
  16. vegabond

    vegabond Shabu Anower

    Messages:
    1,656
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    240
    #16
    @ thudufushi

    GreyLine helped you a lot too, Not that?

    Where is the template Sponsor link and template designer link?
     
    vegabond, Apr 22, 2007 IP
    an0n likes this.
  17. an0n

    an0n Prominent Member

    Messages:
    5,688
    Likes Received:
    915
    Best Answers:
    0
    Trophy Points:
    360
    #17
    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.
     
    an0n, Apr 22, 2007 IP
  18. thudufushi

    thudufushi Well-Known Member

    Messages:
    1,145
    Likes Received:
    75
    Best Answers:
    0
    Trophy Points:
    155
    #18
    vegabond, please advise the template you are referring to and the links that should be displayed and It will be done :)

    Cheers,
    Steve
     
    thudufushi, Apr 22, 2007 IP
  19. an0n

    an0n Prominent Member

    Messages:
    5,688
    Likes Received:
    915
    Best Answers:
    0
    Trophy Points:
    360
    #19
    AFTER SEVEN months.

    f'kn CONjob.

    I hope the whole community bans you.
     
    an0n, Apr 22, 2007 IP
  20. thudufushi

    thudufushi Well-Known Member

    Messages:
    1,145
    Likes Received:
    75
    Best Answers:
    0
    Trophy Points:
    155
    #20
    Oh shut up and behave yourself. I hope you get banned for acting like a vigilante.
     
    thudufushi, Apr 22, 2007 IP