PDA

View Full Version : Profile Enhancements - Homepage Thumbnail Preview in Member's Profile


veenuisthebest
24 Feb 2009, 06:19
******************veenuisthebest******************
*****************Visit Tech6.com (http://www.tech6.com)****************

Homepage Thumbnail Preview in Member's Profile

Difficulty: Very Easy


Q. What does it do ??

A. If a user fills in the Homepage field, a linked thumbnail preview is generated and replaced by his Homepage text link.

Q. Do I need this ??

A. Yes.

Q. Does it work in different browsers ??

A. Tested in IE, Firefox and Chrome. Works perfect !!

Q. vBulletin Versions ??

A. Works in 3.7.x and 3.8.x


Template Edit: 1
Member Info Templates/memberinfo_block_contactinfo

PLEASE NOTE:- This is not actually a product but a service by www.shrinktheweb.com (http://www.shrinktheweb.com). You must register (http://www.shrinktheweb.com/index.php?view=join) before using this as they provide you with a unique key ID that you have to enter in the code below. Its worth registering !! Its 100% free. As they say, the thumbnails are refreshed monthly.

Begins here:-

1. First register (http://www.shrinktheweb.com/index.php?view=join) at www.shrinktheweb.com (http://www.shrinktheweb.com) and note Your Access Key ID from STW lobby (http://www.shrinktheweb.com/index.php?view=lobby).

2. Open memberinfo_block_contactinfo template:-

Find and delete this:-

<if condition="$prepared['homepage']">
<dt class="shade">$vbphrase[home_page]</dt>
<dd><a href="$prepared[homepage]" target="_blank">$prepared[homepage]</a></dd>
</if>

Then find this:-

<dl class="list_no_decoration" id="additional_contact_details">


And add above:-

<!-- Homepage preview begins here -->
<if condition="$prepared['homepage']">
<fieldset>
<legend>$vbphrase[home_page] of $prepared (<a href="$prepared[homepage]" target="_blank">$prepared[homepage]</a>)</legend>
<div class="fieldset_padding floatcontainer">
<ul class="list_no_decoration">
<li><a href="$prepared[homepage]" target="_blank"><img src="http://www.shrinktheweb.com/xino.php?embed=1&amp;STWAccessKeyId=Your Access Key ID&amp;Size=lg&amp;stwUrl=$prepared[homepage]" width="175" height="125" align="left" border="0" style="border: 3px double #e3e3e3" alt="$prepared[username]'s Homepage" /></a></li>
</ul></div></fieldset>
</if>
<!-- /Homepage -->
You'll have to enter Your Access Key ID within the IMG tag in the above code.

You may edit the above code according to your requirements like setting the width, height, border color, Size=lg for large and sm for small.


Hope you like this sweet little mod, very simple but really useful and cool. I am sure, you are definitely going to use this.. ;)

Pleaseee MARK AS INSTALLED (http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=206420) if you find it useful !!

[U]Critical Changes in 1.5:-
1. XHTML valid now.
2. STW has announced changes in URL parameters that would be mandatory soon:-
u -> stwu
Url -> stwUrl

Change in 1.6:-
1. You do not need "Your Secret Access Key" in the URL anymore. It will work with/without it, but removing it is preferred, as now it makes sense of it being "secret". SO, just &amp;stwu=Secret Key has been removed from the code.


Source: http://tech6.com/f51/homepage-thumbnail-preview-members-profile-t587/

***************************************************************************
***************************************************************************

TimberFloorAu
24 Feb 2009, 06:59
Has this changed significantly from the last 3.7 version, as we use it and its great

veenuisthebest
24 Feb 2009, 07:14
NO CHANGES at all from the 3.7 version. But I did post one update today regarding removal of stwu in 3.7 thread. This one includes it as well.

So both are same, I just wanted to make it available in 3.8 section.

TimberFloorAu
24 Feb 2009, 07:25
NO CHANGES at all from the 3.7 version. But I did post one update today regarding removal of stwu in 3.7 thread. This one includes it as well.

So both are same, I just wanted to make it available in 3.8 section.

Cheers Bro ^5

Will click Installed :)

adhmwagde
24 Feb 2009, 11:53
i have to give my Access Key ID but nothing change in my member info

thanks

veenuisthebest
25 Feb 2009, 13:20
i have to give my Access Key ID but nothing change in my member info

thanks
Access Key ID is required for thumbnail to display from STW site.

Deviant K1
25 Feb 2009, 15:42
INSTALLED!!!

Works great. Thanks for sharing :)!

powersilie
07 Mar 2009, 11:14
Installed!

Thank You, it works great and my users love it!

TOP!

Greetings
Karin

spirittina
08 Oct 2011, 03:43
great little edit thanks so much :D