How to do few PHPLD modifications ?

Discussion in 'Directories' started by MeetHere, Jun 3, 2007.

  1. #1
    I want to add some PHPLD modifications..

    1 - How to show site thumbnail and alexa graph on details page ?

    2 - How to show colored background in latest and top links for featured listing ? As here http://www.mingleon.com/new-links.html

    Thanks..:)
     
    MeetHere, Jun 3, 2007 IP
  2. Fastian

    Fastian Peon

    Messages:
    2,085
    Likes Received:
    235
    Best Answers:
    0
    Trophy Points:
    0
    #2
    For Alexa Graph,
    <img src="http://traffic.alexa.com/graph?w=379&amp;h=216&amp;r=6m&amp;z=&amp;y=r&amp;u={$URL|escape|trim}" border="0" alt="Alexa Rank Graph" />
    PHP:
    You can change w=379 & h=216 according to your template.
    I will follow soon regarding Thumbnail.

    There is a thread at phpLD Forum on how to add different color for Featured. You may like to search there.
     
    Fastian, Jun 3, 2007 IP
  3. SasaVtec

    SasaVtec Notable Member

    Messages:
    1,588
    Likes Received:
    150
    Best Answers:
    0
    Trophy Points:
    275
    #3
    for the site thumb its usually msn there is a code somewhere on the phpld forum but the alexa

    <!-- Alexa Graph Widget from http://www.alexa.com/site/site_stats/signup -->
    	
    <script type="text/javascript" 
    	src="http://widgets.alexa.com/traffic/javascript/graph.js"></script>
    	
    <script type="text/javascript">/*
    <![CDATA[*/
    
       // USER-EDITABLE VARIABLES
       // enter up to 3 domains, separated by a space
       var sites      = ['http://www.directorymix.com']; 
       var opts = {
          width:      380,  // width in pixels (max 400)
          height:     300,  // height in pixels (max 300)
          type:       'n',  // "r" Reach, "n" Rank, "p" Page Views 
          range:      '6m', // "7d", "1m", "3m", "6m", "1y", "3y", "5y", "max" 
          bgcolor:    'e6f3fc' // hex value without "#" char (usually "e6f3fc")
       };
       // END USER-EDITABLE VARIABLES	
       AGraphManager.add( new AGraph(sites, opts) );
    	
    //]]></script>
    	
    <!-- end Alexa Graph Widget -->
    PHP:
    replace the http://www.directorymix.com $URL and should work edit of course details.tpl and place it where u want it
     
    SasaVtec, Jun 3, 2007 IP
    MeetHere likes this.
  4. Fastian

    Fastian Peon

    Messages:
    2,085
    Likes Received:
    235
    Best Answers:
    0
    Trophy Points:
    0
    #4
    For site thumbnail, play a bit with this code :)
    <img src="http://msnsearch.srv.girafa.com/srv/i?s=MSNSEARCH&r={$link.URL|escape}" alt="{$link.TITLE|escape}" width="300" height="216" border="1">
    PHP:
     
    Fastian, Jun 3, 2007 IP
    MeetHere likes this.
  5. MeetHere

    MeetHere Prominent Member

    Messages:
    15,399
    Likes Received:
    994
    Best Answers:
    0
    Trophy Points:
    330
    #5
    MeetHere, Jun 3, 2007 IP
  6. Fastian

    Fastian Peon

    Messages:
    2,085
    Likes Received:
    235
    Best Answers:
    0
    Trophy Points:
    0
    #6
    If you are adding a small preview, then use this.

    	  <img src="http://msnsearch.srv.girafa.com/srv/i?s=MSNSEARCH&r={$link.URL|escape}" alt="{$link.TITLE|escape}" width="110" height="89" border="1">
    
    PHP:
    I think its something to do with Width & Hight settings. (Not that sure)
     
    Fastian, Jun 3, 2007 IP
  7. MeetHere

    MeetHere Prominent Member

    Messages:
    15,399
    Likes Received:
    994
    Best Answers:
    0
    Trophy Points:
    330
    #7
    I tried and changed size too.. But not showing any preview.
     
    MeetHere, Jun 3, 2007 IP
  8. Fastian

    Fastian Peon

    Messages:
    2,085
    Likes Received:
    235
    Best Answers:
    0
    Trophy Points:
    0
    #8
    OOppsss.. Sorry my mistake. :eek:
    It should be
    <img src="http://msnsearch.srv.girafa.com/srv/i?s=MSNSEARCH&r={$URL|escape|trim}" alt="{$URL|escape|trim}" width="110" height="89" border="1">
    PHP:
    The URL path was wrong before. Just change {$link.URL|escape} with {$URL|escape|trim}

    See an example HERE :)
     
    Fastian, Jun 3, 2007 IP
  9. MeetHere

    MeetHere Prominent Member

    Messages:
    15,399
    Likes Received:
    994
    Best Answers:
    0
    Trophy Points:
    330
    #9
    Thanks fastian, that works..
    I also made the image Clickable :)

    Now, need answer for the 2nd question..
     
    MeetHere, Jun 3, 2007 IP
  10. MeetHere

    MeetHere Prominent Member

    Messages:
    15,399
    Likes Received:
    994
    Best Answers:
    0
    Trophy Points:
    330
    #10
    Still waiting for featured link modification on latest links and top hits page :eek:
    Anybody ??
     
    MeetHere, Jun 6, 2007 IP