Go Back   Pligg Forum > Pligg Help > General Help
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-15-2008, 09:38 PM
isgaso isgaso is offline
Casual Pligger
Pligg Version: 9.8
Pligg Template: basic
 
Join Date: Oct 2007
Posts: 30
Downloads: 26
Uploads: 0
Thanks: 1
Thanked 0 Times in 0 Posts
help with {$url_short}

hey guys i need some help

i have this php code

PHP Code:
$url '{$url_short}';
                
$apikey '3587af0be8710bc1464116918f700ad0';
                
$userId 4152;
                
$date gmdate('Ymd');
                
$size 'medium'
I need $url to apply to src image, but $url = '{$url_short}' donīt show anything.

Someone knows how i can achieve it?

Thanks!
Reply With Quote
Sponsored Links
Check out the New Templates at the Pligg Pro Shop.
  #2 (permalink)  
Old 05-16-2008, 04:58 AM
isgaso isgaso is offline
Casual Pligger
Pligg Version: 9.8
Pligg Template: basic
 
Join Date: Oct 2007
Posts: 30
Downloads: 26
Uploads: 0
Thanks: 1
Thanked 0 Times in 0 Posts
anybody knows how i can do it?
Reply With Quote
  #3 (permalink)  
Old 05-16-2008, 05:41 AM
cmstheme cmstheme is offline
Pligg Donor
Pligg Version: 9.9
Pligg Template: Squaretle
 
Join Date: Jan 2007
Posts: 121
Downloads: 15
Uploads: 0
Thanks: 19
Thanked 11 Times in 11 Posts
What actually you are going to do? Can you provide details?
Reply With Quote
  #4 (permalink)  
Old 05-16-2008, 11:00 AM
isgaso isgaso is offline
Casual Pligger
Pligg Version: 9.8
Pligg Template: basic
 
Join Date: Oct 2007
Posts: 30
Downloads: 26
Uploads: 0
Thanks: 1
Thanked 0 Times in 0 Posts
yes, i need it to make thumbnail image of stories (link_summary.tpl)

my code is:

PHP Code:
{php}
    
$url '{$url_short}';
    
$apikey '2254af0be8710bc1464116918f700ad0';
    
$userId 6547;
    
$date gmdate('Ymd');
    
$size 'medium';
    {/
php}

                    <
class="previewlink" href="{$url}" target="_blank"><img src="http://thumb.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 have got show all variables, but not $url

how can i achieve it?


thanks!
Reply With Quote
  #5 (permalink)  
Old 05-16-2008, 12:41 PM
isgaso isgaso is offline
Casual Pligger
Pligg Version: 9.8
Pligg Template: basic
 
Join Date: Oct 2007
Posts: 30
Downloads: 26
Uploads: 0
Thanks: 1
Thanked 0 Times in 0 Posts
help please!
Reply With Quote
  #6 (permalink)  
Old 05-16-2008, 03:10 PM
cmstheme cmstheme is offline
Pligg Donor
Pligg Version: 9.9
Pligg Template: Squaretle
 
Join Date: Jan 2007
Posts: 121
Downloads: 15
Uploads: 0
Thanks: 19
Thanked 11 Times in 11 Posts
You get the thumbnail generator from http://thumb.net/easythumb.php but when I visit the site it is NOT FOUND. Also, http://thumb. net redirect to new domain. Those two might be the reason why you have no thumbnails generated.
Reply With Quote
  #7 (permalink)  
Old 05-16-2008, 03:44 PM
isgaso isgaso is offline
Casual Pligger
Pligg Version: 9.8
Pligg Template: basic
 
Join Date: Oct 2007
Posts: 30
Downloads: 26
Uploads: 0
Thanks: 1
Thanked 0 Times in 0 Posts
sorry the code is this:

PHP Code:
{php}
    
$orl '{$url_short}';
    
$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($orl); {/php}&hash={php} echo md5($date.$orl.$apikey); {/php}&size={php} echo $size; {/php}" width="150" height="112" border="0" alt="SnapShot"/></a></div

i changed apikey and userid in this code to prevent be used...

any help?
Reply With Quote
  #8 (permalink)  
Old 05-16-2008, 04:06 PM
cmstheme cmstheme is offline
Pligg Donor
Pligg Version: 9.9
Pligg Template: Squaretle
 
Join Date: Jan 2007
Posts: 121
Downloads: 15
Uploads: 0
Thanks: 19
Thanked 11 Times in 11 Posts
Can you paste the HTML code when you view source your story?

My another guess is that your HTML code contain spaces thats' why it cannot generate thumbnail, i.e.:
HTML Code:
<img src="http://webthumb.bluga.net/easythumb.php?user= 1245 &url= htp://url.com &hash.....
Reply With Quote
  #9 (permalink)  
Old 05-16-2008, 05:03 PM
isgaso isgaso is offline
Casual Pligger
Pligg Version: 9.8
Pligg Template: basic
 
Join Date: Oct 2007
Posts: 30
Downloads: 26
Uploads: 0
Thanks: 1
Thanked 0 Times in 0 Posts
hi again!

i explain you:

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

PHP Code:
{php}
    
$orl '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($orl); {/php}&hash={php} echo md5($date.$orl.$apikey); {/php}&size={php} echo $size; {/php}" width="150" height="112" border="0" alt="SnapShot"/></a></div
the variable $orl = 'http://www.yahoo.es'; is showed and let me make thumbnail of "yahoo.es". Then, i need to get variable $orl is {$url_short}, to make a thumbnail of each web/blog posted

do you know how i can do it?

thanks!
Reply With Quote
  #10 (permalink)  
Old 05-16-2008, 09:21 PM
isgaso isgaso is offline
Casual Pligger
Pligg Version: 9.8
Pligg Template: basic
 
Join Date: Oct 2007
Posts: 30
Downloads: 26
Uploads: 0
Thanks: 1
Thanked 0 Times in 0 Posts
any help?...........
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

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks Enabled by vBSEO 3.0.0