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..
For Alexa Graph, <img src="http://traffic.alexa.com/graph?w=379&h=216&r=6m&z=&y=r&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.
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
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:
Thanks fastian..Alexa is working now.. But Thumbnail not http://www.bqtm.com/detail/link-152.html I can get thumbnails here from MSN http://www.bqtm.com/computers_and_internet/web_directories/
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)
OOppsss.. Sorry my mistake. 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