Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - MultiformeIngegno
481
Quote from Nao on May 18th, 2012, 02:59 PM
Funny? I'd rather you say stunning :P
Ahahah :D
482
Features / Re: Action buttons: positioning
« on May 5th, 2012, 11:27 AM »
It's looking good!! ;)
483
Plugins / Re: Random idea for a plugin
« on May 5th, 2012, 11:24 AM »
It would be fun! ^_^
484
Inexplicable behavior by Internet Explorer. >:( >:( >:(
I have implemented this stuff in 2 websites:
1st: multiformeingegno.it
2nd: bombacarta.com/le-attivita/bombafoto/

Everything works fine in the first website with every browser (including IE), fancybox loads properly and it's ok. In the second website with IE if I click on the thumbnails after the 3 big images, instead of opening Fancybox, IE goes to the thumbnail url!! I can't understand why!! The links are:
<a href="BIG IMAGE URL" class="fancybox" data-fancybox-group="gallery"><img src="THUMB URL" style="margin-right:5px;border:none" alt="" width="150" height="150"/></a>

Everything should work as expected (I have 0 errors on JS console and it is THE SAME FANCYBOX IMPLEMENTATION, SAME FILES AND EVERYTHING)! The thing I can't explain is WHY THE HELL Internet Explorer goes to the thumb URL when the <a> links to the big image!!

Of course everything works properly with ALL other browsers (including Safari Mobile and Android browser)!!!
485
Ops forgot to mention I'm on Safari Mobile, iOS 5.
486
The Pub / Action menu bug (Was: Re: Logging password errors)
« on May 2nd, 2012, 09:47 PM »
Little OT:
in mobile theme I can open the Actions menu (and there's the like button) but I can't close it.
487
Features / Re: The calendar
« on May 1st, 2012, 09:49 AM »
Right! :)
489
Bug reports / Re: Pretty URL remarks
« on April 27th, 2012, 12:09 PM »
It works like a charm instead.. The security concerns are valid, but it works really really well.
490
Features / Re: "Select" code on iPhone
« on April 26th, 2012, 07:02 PM »
iPhone 3GS can be updated to iOS 5
491
Bug reports / Re: Pretty URL remarks
« on April 26th, 2012, 05:35 PM »
Quote
I think we should write some kind of 'automatic updater' for plugins and Wedge, disabled by default or something, with the ability to install only the 'proven' updates of Wedge (or maybe also cutting edge versions?), something like that... We could simply retrieve the gzip file, extract it somewhere, and copy the tree structure
That would be cool!! :o
492
Off-topic / Re: Extract images with a certain tag from Instagram
« on April 22nd, 2012, 08:04 PM »
Ok, solved. :)
Code: [Select]
$x_data='Scattata da '.$value->caption->from->full_name.' il '.htmlentities(gmstrftime('%e %B %Y alle %R', $value->caption->created_time + 7200)).' '.htmlentities($location);
493
Off-topic / Re: Extract images with a certain tag from Instagram
« on April 22nd, 2012, 07:55 PM »
Okay, I changed the code so that after 5 entries it displays the images left as thumbnails instead of standard_resolution. I also added a different text for standard_resolution images and thumbnail ($x_data):

Code: [Select]
<?php
setlocale(LC_TIME'it_IT');
function get_instagram($tag=bombacarta,$count=10,$width=612,$height=612){
$url 'https://api.instagram.com/v1/tags/'.$tag.'/media/recent/?access_token=13137.f59def8.1a759775695548999504c219ce7b2ecf&count='.$count;
// Also Perhaps you should cache the results as the instagram API is slow
$cache './wp-content/themes/raymond-31/instagram_json/'.sha1($url).'.json';
if(file_exists($cache) && filemtime($cache) > time() - 500){
// If a cache file exists, and it is newer than 1 hour, use it
$jsonData json_decode(file_get_contents($cache));
} else {
$jsonData json_decode((file_get_contents($url)));
file_put_contents($cache,json_encode($jsonData));
}
$result '<div style="border-top:1px solid #ddd">'.PHP_EOL;
$ic=0;
foreach ($jsonData->data as $key=>$value) {
$location = (!empty($value->location->name))?'presso '.$value->location->name:null;
if($ic>=5){$width=150;$height=150;$res_c=thumbnail;$x_data="thumbnail text";}else{$res_c=standard_resolution;$x_data="standard resolution text";}
$ic++;
$result .= "\t".'<em>'.htmlentities($value->caption->textENT_QUOTES"UTF-8").'</em><br /><img src="'.$value->images->$res_c->url.'" alt="'.htmlentities($value->caption->textENT_QUOTES"UTF-8").'" width="'.$width.'" height="'.$height.'" /><br /><div class="postinfo">'.$x_data.'</div><br />'.PHP_EOL;
}
$result .= '</div>'.PHP_EOL;
return $result;
}
echo get_instagram();
?>


The problem is that instead of "standard resolution text" (added as an example), I'd like to add there something like "Scattata da $value->caption->from->full_name". But I don't know how to "include" the $value->caption->from->full_name stuff without errors..

So I tried with:
Code: [Select]
<?php
setlocale(LC_TIME'it_IT');
function get_instagram($tag=bombacarta,$count=10,$width=612,$height=612){
            
$url 'https://api.instagram.com/v1/tags/'.$tag.'/media/recent/?access_token=13137.f59def8.1a759775695548999504c219ce7b2ecf&count='.$count;
            
// Also Perhaps you should cache the results as the instagram API is slow
            
$cache './wp-content/themes/raymond-31/instagram_json/'.sha1($url).'.json';
            if(
file_exists($cache) && filemtime($cache) > time() - 500){
                
// If a cache file exists, and it is newer than 1 hour, use it
                
$jsonData json_decode(file_get_contents($cache));
            } else {
                
$jsonData json_decode((file_get_contents($url)));
                
file_put_contents($cache,json_encode($jsonData));
            }
            
$result '<div style="border-top:1px solid #ddd">'.PHP_EOL;
            
$ic=0;
            foreach (
$jsonData->data as $key=>$value) {
                
$location = (!empty($value->location->name))?'presso '.$value->location->name:null;
if($ic>=5){$res_c=thumbnail_resolution$x_data="thumb text";}else{$res_c=standard_resolution;$x_data=Scattata da $value->caption->from->full_name 'il' htmlentities(gmstrftime('%e %B %Y alle %R'$value->caption->created_time 7200)) htmlentities($location) }
$ic++;
                
$result .= "\t".'<em>'.htmlentities($value->caption->textENT_QUOTES"UTF-8").'</em><br /><img src="'.$value->images->$res_c->url.'" alt="'.htmlentities($value->caption->textENT_QUOTES"UTF-8").'" width="'.$width.'" height="'.$height.'" /><br /><div class="postinfo">'.$x_data.'</div><br />'.PHP_EOL;
            }
            
$result .= '</div>'.PHP_EOL;
            return 
$result;
        }
echo get_instagram();
?>


But I got a Parse error: syntax error, unexpected T_STRING on line 30, which is:
Code: [Select]
if($ic>=5){$res_c=thumbnail_resolution; $x_data="thumb text";}else{$res_c=standard_resolution;$x_data=Scattata da $value->caption->from->full_name 'il' htmlentities(gmstrftime('%e %B %Y alle %R', $value->caption->created_time + 7200)) htmlentities($location) }
494
The Pub / Re: Number of 'online users'
« on April 22nd, 2012, 02:43 PM »
http://cdn.dietaland.com/wp-content/uploads/2009/10/pop-corn.jpg
Sorry I needed to post it.. :P

Let's go back to the topic!! :)
495
The Pub / Re: Number of 'online users'
« on April 22nd, 2012, 02:43 AM »
I'm ok with the removal, it "fixes" all the problems with PHPSESSID and all the things you mentioned, and of course if you want accurate stats you don't rely on SMF/Wedge stats..