Go Back   PHP Link Directory Forum > PHP Link Directory (phpLD) > Mods and contribution Discussion

Mods and contribution Discussion This forum is only for discussion of modding phpLD. For specific mod releases, please see the appropriate forum.

Closed Thread
 
topic widgets
Old 11-06-2005   #1
relinkd
 
Join Date: Oct 2005
Posts: 15
Default Site Thumbnail Alexa Thumbshots Mod

This mod will allow your phpLD directory script to display site thumbnails next to each link.

Instructions
--------------

1. If you use this mod it'd be great if you'd give me a link. Thanks!
Code:
Content visible to registered users only.
2. Turn on Display PageRank in phpLD admin area


3. Open /templates/pagerank.tpl and find...
Code:
Content visible to registered users only.
4. Replace the above line with...
Code:
Content visible to registered users only.
Comply with Alexa's usage requirements: Change the [yoursite.com] above to your site! ie; ?id=yourdomainnamehere.com&size=

5. Save pagerank.tpl file


6. Open /main.css and find...
Code:
Content visible to registered users only.
7. Change the height (92px seems to work about right)


8. Save main.css


9. Enjoy! You're done!


Others have contributed some great tweaks and variations of this mod in this thread and others where you can find out how to update/create the Alexa thumbnail, show thumbnails for featured links only, create a link for visitors to update thumbnails, show the thumbnail without the pagerank, and more so read on.

PS: If you like this mod and you're using Firefox, you can get the same effect for Google, Yahoo, MSN and other search engines with BetterSearch or Google and Yahoo searches with GooglePreview.

Last edited by David; 05-29-2010 at 05:14 AM.
relinkd is offline  
Old 11-06-2005   #2
kickass
 
Join Date: Aug 2005
Location: Delaware Valley, PA
Posts: 221
Default

VERY nice! Yes, if I ever get done with paying work and get back to working on my own projects, seek locally will benefit by this one . . . just wish we could use it without that pr bar . . .
kickass is offline  
Old 11-06-2005   #3
Bill
Mentor
 
Bill's Avatar
 
Join Date: Aug 2005
Location: New Jersey
Posts: 331
Default

Code:
Content visible to registered users only.
I bet there is a way to use it without the PR bar.
Bill is offline  
Old 11-06-2005   #4
relinkd
 
Join Date: Oct 2005
Posts: 15
Default

Code:
Content visible to registered users only.
I bet there is a way to use it without the PR bar.[/quote]

Just replace steps 2-5 above with this for no PR bar...

Open up a new file paste this
Code:
Content visible to registered users only.
Save as pagerank.tpl replacing your old pagerank.tpl

no PR bar for you!

oh and I guess this also links the image with nofollow attrib and click track ID

Last edited by David; 08-21-2008 at 04:33 AM.
relinkd is offline  
Old 11-15-2005   #5
richm
Supporter
 
Join Date: Oct 2005
Posts: 50
Default

While going through your site, if you find items that do not have current Alexa thumbnails, you can update them by going by visiting:
htxp://thumbnails.alexa.com/update_thumbnail?url=nameofsite.com

I click on the link, and paste "http://thumbnails.alexa.com/update_thumbnail?url=" before the url and press enter. Alexa will update the thumbnail within 2 days.

Last edited by David; 08-21-2008 at 04:33 AM.
richm is offline  
Old 11-16-2005   #6
Nobody
Supporter
 
Join Date: Aug 2005
Location: Sweden
Posts: 218
Default

Maybe you should somehow add a link in the admin approve links section of the phpLD directory script, so that all new sites get a thumbnail.

Last edited by David; 05-29-2010 at 05:16 AM.
Nobody is offline  
Old 11-16-2005   #7
richm
Supporter
 
Join Date: Oct 2005
Posts: 50
Default

Since sites change over time, I would also love to see a little php program that goes through the database (starting at a given record number) and opens this window for every record a few seconds apart. Would it be difficult to program such a thing (as a standalone php program).

For now, I am counting on the users to update the thumbnails. Therefore, my pagerank.tpl file, which displays the thumbnails, includes an "Update Thumbnail" button for the directory script users:

Code:
Content visible to registered users only.
To make this work, I had to increase the height of my thumbnail area by changing the following in main.css:
Code:
Content visible to registered users only.

Last edited by David; 05-29-2010 at 05:17 AM.
richm is offline  
Old 11-16-2005   #8
Peter_Rosado
Supporter
 
Join Date: Nov 2005
Posts: 10
Default

Hey...weird, I just did that this morning on my directory (the update thumbnail thingy) :?
I also added that to the approve e-mail.

Last edited by David; 08-21-2008 at 04:34 AM.
Peter_Rosado is offline  
Old 11-16-2005   #9
richm
Supporter
 
Join Date: Oct 2005
Posts: 50
Default

Tell me how you added this to the email notification function. I looked at adding it to the email "function" at the bottom of dir_approve_links.php, or adding it as a button in dir_approve_links.tpl. Neither of these seemed ideal (besides, I didn't know how to add it to the function, echo?).

0r... are you saying that you added this to the text of the email message that you send, telling the submitter to click on the link (not a bad idea).
richm is offline  
Old 11-17-2005   #10
Hizson
 
Join Date: Sep 2005
Posts: 30
Default

I love this mod. But I am having a slight problem with it.

In FireFox it looks great as you can see at

{no longer using thumbnails and link removed}

But if you go to the same page in IE the site discription drops down and beneath the alexa thumbnail.

Does anyone know what I can do to fix this? Could this be because I am using vkaryl's great mod?

Thanks,

Jere
__________________
{non working links removed from sig}

Last edited by David; 03-07-2008 at 09:20 PM.
Hizson is offline  
Old 11-17-2005   #11
HighPageRank
 
Join Date: Nov 2005
Posts: 10
Default

link.tpl

Code:
Content visible to registered users only.
Replace ALEXA-ID
Example : {link removed - no longer using thumbnails}

Last edited by David; 08-21-2008 at 04:35 AM.
HighPageRank is offline  
Old 11-17-2005   #12
richm
Supporter
 
Join Date: Oct 2005
Posts: 50
Default

Hizson: It looks as if you are IE is clearing your alignment after the title. Could you post your link.tpl file and the styles you are using in your stylesheet?
richm is offline  
Old 11-19-2005   #13
vkaryl
 
Join Date: Aug 2005
Posts: 260
Default

Hey Jere.... yep, it's no doubt because this mod wasn't available when I set up the description class for this template.

I'll work it over this weekend, and post back when I've got a usable solution.

Thanks for the heads up!
__________________
Directory Scripts
Rock Template
vkaryl is offline  
Old 11-21-2005   #14
Hizson
 
Join Date: Sep 2005
Posts: 30
Default

Great Varkyl...I really appreciate the help.

Jere
__________________
{non working links removed from sig}
Hizson is offline  
Old 11-21-2005   #15
vkaryl
 
Join Date: Aug 2005
Posts: 260
Default Fixes....

Hi Jere (and anyone else who might need this) -

See attachment: this includes pagerank.tpl and main.css - fixes both IE and FF for use with the Alexa thumbs mod.

This is good with the thumbs but is a tad bit wonky without, so I'm providing it as just these two files instead of including it in the main template distro.

Let me know if you run into any problems (but start a new topic in the Design forum, please!); I tested at 800x600, 1024x768, 1280x1024, and 1600x1200 on both FF 1.5 RC3 and IE 6.

BTW, I took out the border=0 in the img call, inline css is a real no no, you should have a css selector in your stylesheet to cover no borders on images and images used as links/anchors (and since I'm including my main.css, you WILL have same if using my template). For those not using my template, but not sure what to put in the stylesheet, see following (implements no borders on images and images used as links/anchors):

img, img a {
border:0;
}

Other than that, relinkd, this is an OUTSTANDING mod, and thank you very very much for providing it to this community for free.
__________________
Directory Scripts
Rock Template
vkaryl is offline  
Old 11-21-2005   #16
Hizson
 
Join Date: Sep 2005
Posts: 30
Default

Thanks Varkyl. That straightened everything out for my directory. As always, great work.

Jere
__________________
{non working links removed from sig}
Hizson is offline  
Old 11-27-2005   #17
vkaryl
 
Join Date: Aug 2005
Posts: 260
Default

For anyone who's the same sort of "validation control freak" I am, here's an amended call which validates:

Code:
Content visible to registered users only.
This adds an automatic alt="", changes the bare ampersands to & and self-closes the img tag....

Follow the rest of the original instructions....

Relinkd, thanks again, and I'm linking as requested....
__________________
Directory Scripts
Rock Template

Last edited by David; 08-21-2008 at 06:46 PM.
vkaryl is offline  
Old 12-05-2005   #18
Ap0s7le
 
Join Date: Jun 2005
Location: The world
Posts: 813
Default

I'm using Alexa on one of my sites, but in the Link Details sections.

What I did though was create it as a seperate mod.

Also, I wrote a function that when Alexa gives their No Image available image, it goes ahead and contacts them so their's no need for human contact.

It wouldn't be hard to add something like that into the Validate section, so the bot would know to check all the links :lol:

later

-Casey
__________________
Casey Wilson / Ap0s7le
Freelance Programmer
Need help with PHPLD? PM me
Ap0s7le is offline  
Old 12-12-2005   #19
Neticus
Supporter
 
Neticus's Avatar
 
Join Date: Dec 2005
Posts: 484
Default

Hi, im trying to attempt alexa thumbshots for featured links only. If this takes some timely coding then perhaps a way to supress page rank being attached to featured links?
Neticus is offline  
Old 12-18-2005   #20
Mike77
 
Join Date: Jul 2005
Posts: 46
Default

Code:
Content visible to registered users only.
Hi Casey,

did you alredy finish this Link Details mod?I like the idea to have alexa image on details page. Is this mod available from where? Free,payable?
Mike77 is offline  
Closed Thread

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
topic widgets



All times are GMT +1. The time now is 05:53 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.