Alexa Mod For PhplinkDirectory version 3.

Discussion in 'Solicitations & Announcements' started by paidhosting, May 20, 2006.

Thread Status:
Not open for further replies.
  1. #1
    Hello fellow dp members,
    Well i was working on making one template compatible with version 3 of php link directory and someone i think icare dude from here pmed me and said alexa thumbnail not present as default in version 3 and i was like :eek: so did some googling and thanks to few posts i was able to come up with working alexa thumbnail mod for php link directory and would like to share with all you guys.

    Here are the instructions:

    Open templates/Default/pagerank.tpl and replace the code in there with this code

    <div class="pr">
    <a href="{$link.URL}" id="{$link.ID}" "{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}><img border="1" width="80" height="60" src="http://pthumbnails.alexa.com/image_server.cgi?site=yoursite.com&size=small&url={$link.URL} " alt="{$link.TITLE}"></a>
    <p><a href="http://www.alexa.com/data/details/contact_info?url={$link.URL}" >Update Thumbnail </a>
    <div class="pr">
      {if $pr ge 0} PR: {$pr} {else} N/A {/if}
       <p> <div class="prg">
    <div class="prb" style="width: {if $pr ge 0}{math equation="x*4" x=$pr}{else}0{/if}px"></div>
    </div>
    </p>
    </div>
    
    Code (markup):
    Replace yoursite.com with your site name

    Now open Default/style/main.css

    And find and locate div.pr {
    and replace the whole thing with :

    
    div.pr {
    	font-size: 6pt;
    	color: #000000;
    	float: left;
    	height: 110px;
    	margin-right: 5px;
    	width:120px;
    }
    
    Code (markup):
    Enjoy folks. Hoping phplinkdirectory owner can include it as default option.

    Oh to make it work u do have to enable pr display option. If you have customized ur default template edit main.css file accordingly.

    Here is demo of the above in action : http://www.a1whs.com/demo4/Arts/

    Cheers.

    EDITED: For those who already edited their files there was a small mistake that i made and put a nofollow tag in all, please replace the pagerank.tpl file with the above code (it has been fixed and nofollow can be controlled via admin panel now).
     
    paidhosting, May 20, 2006 IP
    india.calling likes this.
  2. loopy62

    loopy62 Peon

    Messages:
    668
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #2
    OMG!!! This werks!!! You are the bomb......


    Thank you!
     
    loopy62, May 21, 2006 IP
  3. SiteExpress

    SiteExpress Well-Known Member

    Messages:
    1,355
    Likes Received:
    153
    Best Answers:
    0
    Trophy Points:
    155
    #3
    This mod and many others are avaiaable in the phpld forums.:confused:
     
    SiteExpress, May 21, 2006 IP
  4. paidhosting

    paidhosting Peon

    Messages:
    4,822
    Likes Received:
    483
    Best Answers:
    0
    Trophy Points:
    0
    #4
    yup so why not post it here cause most users here use and look for phpld solutions.

    This mod is combination of various suggestions posted at phpld forums. Some people like easy solutions instead of trying to figure out which post will make the mod work flawlessly.

    I made it for myself and if someone wants to use it please do so and if phpld makers want to make it default feature in their next release please do so, its free of cost.

    If someone wants to bitch please do so cause thats free of cost too.
     
    paidhosting, May 21, 2006 IP
  5. paidhosting

    paidhosting Peon

    Messages:
    4,822
    Likes Received:
    483
    Best Answers:
    0
    Trophy Points:
    0
    #5
    U meant works ? And ur welcome :)
     
    paidhosting, May 21, 2006 IP
  6. BlueDevilMedia

    BlueDevilMedia Well-Known Member

    Messages:
    1,917
    Likes Received:
    87
    Best Answers:
    0
    Trophy Points:
    190
    #6
    You meant works? And you're welcome!
     
    BlueDevilMedia, May 21, 2006 IP
  7. loopy62

    loopy62 Peon

    Messages:
    668
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #7

    Stop putting words in my mouth...:D
     
    loopy62, May 21, 2006 IP
  8. dvduval

    dvduval Notable Member

    Messages:
    3,372
    Likes Received:
    356
    Best Answers:
    1
    Trophy Points:
    260
    #8
    Thanks for the contribution. I know many people will appreciate this.
    I assume this mod will also work with phpLD 2.0 which is also free. :)
     
    dvduval, May 21, 2006 IP
  9. an0n

    an0n Prominent Member

    Messages:
    5,688
    Likes Received:
    915
    Best Answers:
    0
    Trophy Points:
    360
    #9
    What I would suggest is that you PHPLD guys go on over to www.phplinkdirectory.com/forums and signup.

    I'm not saying posting here is a bad thing, because it's a great thing imho.

    Just pointing out where you should go, should you have the need for a MOD or questions about phpld in general.

    Rob
     
    an0n, May 21, 2006 IP
Thread Status:
Not open for further replies.