Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-27-2008, 07:45 AM
Casual Pligger
Pligg Version: 9.8
Pligg Template: basic
 
Join Date: Oct 2007
Posts: 30
Thanks: 1
Thanked 0 Times in 0 Posts
thumbnail service (bluga.net)

hey guys i want integrate bluga.net thumbnail service in my site, for that bluga.net help to integrate:

Quote:
easythumb
Easythumb is an alternative to the complete Webthumb API. It has a smaller featureset but only requires a single GET request and supports caching thumbnails on Webthumb's servers.

specification
Endpoint: http://webthumb.bluga.net/easythumb.php
Parameters:
user: Your Webthumb user_id available on your user page
url: Site to thumbnail, make sure to urlencode this
size: Size of the thumbnail to return small, medium1, medium2, larger
cache: The # of days old a cached version of the thumbnail can be - 1 to 30
hash: The security hash components are covered below
security hash
The security hash is an md5 hash encoded in hexidecimal containing the following concatenated together

current date: The current date in gmt formated as YYYYmmdd
url: The url to thumbnail not urlencoded
apikey: Your Bluga.net apikey
example
Any example request looks like:
http://webthumb.bluga.net/easythumb....dium &cache=1

Easythumb requests return an image and include the Content-type headers so they can be used directly in an img tag

The big problem is make a md5 that contains date,url and apikey.

Well, i have modified link_summary.tpl to get variables.

- First, parameters:

PHP Code:
$url '{$url_short}';
                
$apikey '3587af0be8710bc1464116918f700ad0';
                
$userId 4152;
                
$date gmdate('Ymd');
                
$size 'medium'
- Second, i modify thumbnail url:

PHP Code:
<class="previewlink" href="{$url}" target="_blank"><img src="http://webthumb.bluga.net/easythumb.php?user={php} echo $userId; {/php}&url={php} echo urlencode($url); {/php}&hash={php} echo md5($date.$url.$apikey); {/php}&size={php} echo $size; {/php}" width="150" height="112" border="0" alt="SnapShot"/></a></div
I need $url to apply to src image, but $url = '{$url_short}' donīt show anything.

I have got show all parameters, but not $url

the problem i have is i canīt get to show the variable-->
PHP Code:
$url '{$url_short}'
for example, if I put:

PHP Code:
{php}
    
$url 'http://www.yahoo.es';
    
$apikey '7414af0be8710bc1464116918f700ad0';
    
$userId 1245;
    
$date gmdate('Ymd');
    
$size 'medium';
    {/
php}

                    <
class="previewlink" href="{$url}" target="_blank"><img src="http://webthumb.bluga.net/easythumb.php?user={php} echo $userId; {/php}&url={php} echo urlencode($url); {/php}&hash={php} echo md5($date.$url.$apikey); {/php}&size={php} echo $size; {/php}" width="150" height="112" border="0" alt="SnapShot"/></a></div
the parameter $url = 'http://www.yahoo.es'; is showed and let me make thumbnail of "yahoo.es". Then, i need to get parameter $url is {$url_short}, to make a thumbnail of each web/blog posted

do you know how i can do it?

Someone knows how i can achieve it?

Thanks!
Reply With Quote
  #2 (permalink)  
Old 05-27-2008, 09:47 AM
chuckroast's Avatar
Coder/Designer
Pligg Version: 1.0
Pligg Template: ExpertVision
 
Join Date: Jun 2006
Location: PA
Posts: 2,415
Thanks: 172
Thanked 440 Times in 279 Posts
Please stop making Duplicate posts. Stick with the threads you already started.

Code:
http://forums.pligg.com/general-help/13446-how-can-i-get-thumbnail-image.html
Code:
http://forums.pligg.com/general-help/13395-help-url_short.html
__________________
Visit PliggPro the official Pligg Mods & Template Shop!

Reply With Quote
  #3 (permalink)  
Old 05-27-2008, 03:44 PM
Casual Pligger
Pligg Version: 9.8
Pligg Template: basic
 
Join Date: Oct 2007
Posts: 30
Thanks: 1
Thanked 0 Times in 0 Posts
sorry for duplicate post but i need know how can i solve this problem!

Anybody can help me?

thanks!

sorry again!
Reply With Quote
  #4 (permalink)  
Old 05-27-2008, 10:35 PM
chuckroast's Avatar
Coder/Designer
Pligg Version: 1.0
Pligg Template: ExpertVision
 
Join Date: Jun 2006
Location: PA
Posts: 2,415
Thanks: 172
Thanked 440 Times in 279 Posts
Quote:
Originally Posted by isgaso View Post
sorry for duplicate post but i need know how can i solve this problem!

Anybody can help me?

thanks!

sorry again!
You must understand this is not a "problem".
Pligg comes with this feature by default.
"thumbnails" Theoretically all thumbnails will look the same.
It's like reinventing the wheel.
__________________
Visit PliggPro the official Pligg Mods & Template Shop!


Last edited by chuckroast; 05-27-2008 at 11:03 PM..
Reply With Quote
  #5 (permalink)  
Old 05-28-2008, 03:41 AM
Casual Pligger
Pligg Version: 9.8
Pligg Template: basic
 
Join Date: Oct 2007
Posts: 30
Thanks: 1
Thanked 0 Times in 0 Posts
yes, iīm agree with you...

but i only want to know if is possible to make it...

may be i should modify smart variables to achieve to show this parameter, but I am not a php coder...

I have tried 100 posibilities but i donīt get any solution

i would pay 15$ for a line of code that help me. For an expert coder, i think it would be an easy thing!

thanks!

greeting!
Reply With Quote
  #6 (permalink)  
Old 05-28-2008, 04:27 AM
Casual Pligger
Pligg Version: 9.8
Pligg Template: basic
 
Join Date: Oct 2007
Posts: 30
Thanks: 1
Thanked 0 Times in 0 Posts
i find this Variable inside php include inside tpl, but i donīt know what i must do
Reply With Quote
  #7 (permalink)  
Old 06-05-2008, 08:21 AM
Casual Pligger
Pligg Version: 9.8
Pligg Template: basic
 
Join Date: Oct 2007
Posts: 30
Thanks: 1
Thanked 0 Times in 0 Posts
Exclamation

any idea?................
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i get it? thumbnail image isgaso General Help 3 05-21-2008 03:47 AM
how does a user submit thumbnail? amazingronit General Help 5 12-15-2007 11:54 AM
Video thumbnail is gone jwailow General Help 9 12-02-2007 10:56 PM
How to stop the thumbnail from automatically resizing frostfire General Help 0 09-11-2007 04:04 AM


Search Engine Friendly URLs by vBSEO 3.2.0