[BETA] Website preview in profile

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Post Reply
993ti
Registered User
Posts: 119
Joined: Sat Nov 02, 2002 1:16 am
Location: The Netherlands
Contact:

[BETA] Website preview in profile

Post by 993ti »

This is a simple mod where a thumbnail preview of the users website is shown in their profile.
Don't know if this is done before, if it is, let me know.
MOD Title: Website preview in profile
MOD Description: This will display a thumbnailpreview of the users website in their profile.
MOD Version: 0.0.9

Demo:
http://www.twenteracingscene.com/ome-ma ... le129.html
http://www.twenteracingscene.com/993ti-profile2.html

Download
Suggestions welcome :)

edit Fixed a typo and made the thumbnail clickable.
Last edited by 993ti on Fri Nov 04, 2005 5:14 pm, edited 2 times in total.
Don't steal, the government doesn't like competition!
Admin of Twenteracingscene
Streetcars
Aibo-forum
iRobot Roomba and Scooba for sale
Faqs Board
Online Sales
kulinar
Registered User
Posts: 657
Joined: Thu Feb 17, 2005 7:31 pm
Contact:

Post by kulinar »

Thumbnail clickable
993ti
Registered User
Posts: 119
Joined: Sat Nov 02, 2002 1:16 am
Location: The Netherlands
Contact:

Post by 993ti »

Done.
Also removed some code i forgot in the install.
Don't steal, the government doesn't like competition!
Admin of Twenteracingscene
Streetcars
Aibo-forum
iRobot Roomba and Scooba for sale
Faqs Board
Online Sales
User avatar
DeViAnThans3
Registered User
Posts: 877
Joined: Sat Oct 08, 2005 10:39 pm
Location: Belgium

Post by DeViAnThans3 »

wow, very nice mod :D
I only provide support via the appropriate topics! Please no PM or mails! :)
My MODs :: [BETA] Facebook Connect
993ti
Registered User
Posts: 119
Joined: Sat Nov 02, 2002 1:16 am
Location: The Netherlands
Contact:

Post by 993ti »

Thx :)
No more feedback on this?
Don't steal, the government doesn't like competition!
Admin of Twenteracingscene
Streetcars
Aibo-forum
iRobot Roomba and Scooba for sale
Faqs Board
Online Sales
rawtoxic
Registered User
Posts: 54
Joined: Sat Mar 19, 2005 2:36 am
Location: US
Contact:

Post by rawtoxic »

Alot of my users are showing preview not available. Click here to visit site. What search engine do you have to register at to make the preview image available?
993ti
Registered User
Posts: 119
Joined: Sat Nov 02, 2002 1:16 am
Location: The Netherlands
Contact:

Post by 993ti »

Crap, i just found out that it's a paid service.
Please do not use this, until i find another free service.
Don't steal, the government doesn't like competition!
Admin of Twenteracingscene
Streetcars
Aibo-forum
iRobot Roomba and Scooba for sale
Faqs Board
Online Sales
993ti
Registered User
Posts: 119
Joined: Sat Nov 02, 2002 1:16 am
Location: The Netherlands
Contact:

Post by 993ti »

Changed the code a bit so i don't get in any trouble.
Should do some better research before i do stupid things, lol.
UPDATE

Code: Select all

# 
#-----[ OPEN ]------------------------------------------ 
# 
includes/usercp_viewprofile.php
#
#-----[ FIND ]------------------------------------------
#

$msnsearch = '<a href="' . $profiledata['user_website'] . '" target="_userwww"><img src="http://msnsearch.srv.girafa.com/srv/i?i= 4ac8babd1cf73ace&s=MSNSEARCH&cy=en-us&r=' . $profiledata['user_website'] . '" alt="' . $lang['Visit_website'] . '" title="' . $lang['Visit_website'] . '" border="0" /></a>';
}
else
{
$www_img = '&nbsp;';
$www = '&nbsp;';
$msnsearch = ' ';
}
# 
#-----[ REPLACE WITH ]------------------------------------------ 
#
$www_preview = '<a href="' . $profiledata['user_website'] . '" target="_userwww"><img src="http://msnsearch.srv.girafa.com/srv/i?s=MSNSEARCH&r=' . $profiledata['user_website'] . '" alt="' . $lang['Visit_website'] . '" title="' . $lang['Visit_website'] . '" border="0" /></a>';
}
else
{
$www_img = '&nbsp;';
$www = '&nbsp;';
$www_preview = ' ';
}
#
#-----[ FIND ]------------------------------------------
#
    'MSNSEARCH' => $msnsearch,
# 
#-----[ REPLACE WITH ]------------------------------------------ 
#
    'WWW_PREVIEW' => $www_preview,
# 
#-----[ OPEN ]------------------------------------------ 
# 
templates/subSilver/profile_view_body.tpl

#
#-----[ FIND ]------------------------------------------
#
{MSNSEARCH}
# 
#-----[ REPLACE WITH ]------------------------------------------ 
#
{WWW_PREVIEW}
Don't steal, the government doesn't like competition!
Admin of Twenteracingscene
Streetcars
Aibo-forum
iRobot Roomba and Scooba for sale
Faqs Board
Online Sales
993ti
Registered User
Posts: 119
Joined: Sat Nov 02, 2002 1:16 am
Location: The Netherlands
Contact:

Post by 993ti »

rawtoxic wrote: Alot of my users are showing preview not available. Click here to visit site. What search engine do you have to register at to make the preview image available?

It uses the Girafa thumbnail service.
Another thumbnail service is from the Alexa search engine.
It has a nice feature where you can decide the size of the thumbnail
http://thumbnails.alexa.com/image_serve ... .phpbb.com

Replacing medium with small will show a smaller thumbnail.
Replace www.phpbb.com with your own site.
Downside is that the url changes so i don't know how to implement it correctly.
If a thumbnail doesn't show up with Alexa, you can update it by using this url:
http://thumbnails.alexa.com/update_thum ... URSITE.com

Another service is Thumbshots.
Downside is that you have to place an extra code on your site that links to their site.
Don't steal, the government doesn't like competition!
Admin of Twenteracingscene
Streetcars
Aibo-forum
iRobot Roomba and Scooba for sale
Faqs Board
Online Sales
rawtoxic
Registered User
Posts: 54
Joined: Sat Mar 19, 2005 2:36 am
Location: US
Contact:

Post by rawtoxic »

updated to new version and it works like a charm... keep us posted.. I'd be willing to add the ad for the thumbpost one. My forum is for webadministrators and such so I wouldn't mind an extra ad link.
User avatar
beggers
Registered User
Posts: 1257
Joined: Fri Nov 23, 2001 8:19 pm
Location: Las Vegas
Contact:

Post by beggers »

I may be wrong about this but I believe that Thumbshots will only generate a thumbnail for your site if it is listed in DMOZ.ORG. Since I haven't been able to get a new site listed at DMOZ.ORG in about two years, I'd say that's not a good option. DMOZ is a dead horse.

Update: It looks like they've dropped the DMOZ requirement in favor of a logo on your site. They've made Thumbshots for a lot of my sites even though I've never swapped the link with them.
rawtoxic
Registered User
Posts: 54
Joined: Sat Mar 19, 2005 2:36 am
Location: US
Contact:

Post by rawtoxic »

I have an issue.. It's not with this mod but the search engine that it generates my thumbnail from. I have resubmitted my URL to both of the engines you specified on an earlier post because the thumbnail it has for my site is atleast 3 months old or older. I have waited now 96 hours and it still shows an old thumbnail for my site. I'm not registered on DMOZ and I don't know if it will even let me since it's not an information site but a charity site to help me raise money for some new teeth. :) Will they not rescan my url for a certain number of months or am I not submitting to the right engine?

Here is what is going on graphically...

What it looks like on my profile

What my site looks like now
993ti
Registered User
Posts: 119
Joined: Sat Nov 02, 2002 1:16 am
Location: The Netherlands
Contact:

Post by 993ti »

The mod uses girafa for the thumbnails.
To let them know your site has changed, click here.
I don't know how long it will take to update though.
Don't steal, the government doesn't like competition!
Admin of Twenteracingscene
Streetcars
Aibo-forum
iRobot Roomba and Scooba for sale
Faqs Board
Online Sales
rawtoxic
Registered User
Posts: 54
Joined: Sat Mar 19, 2005 2:36 am
Location: US
Contact:

Post by rawtoxic »

I submitted to them on the 6th. Maybe i'm being too anxious. :) Thanks for the reply. Great mod BTW!
Post Reply

Return to “[2.0.x] MODs in Development”