The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
United-Forum Nivo Slider Widget Details »» | ||||||||||||||||||||||||||||||||
Based on the Nivo Slider - all credit for slider awesomeness goes to them.
vB4 implementation goes to me. What it is: A slider for cms articles, it gets the articles via database, uses (if possible) the previewimage there and resizes it to slider size *update 1.1.0 cropping function included. Livedemo on a Big Board (>2.000.000 posts) the nivo slider on our site is customized to fit our heavily customized cms. Default look of this addon is shown in the picture below facts about the nivo slider Quote:
Custom settings: Support:
Slider not working. No idea why?
The widget here is completely free. No charge, no branding. But, we do not mind donations either. If you want to give us something. Since we are advertising free and fan based we are happy about every small donation. ( On Forumhome bottom right paypal button: http://www.united-forum.de/forum.php ) That's all Hope it works for you. Regards Mooff Download Now
Screenshots
Supporters / CoAuthors Show Your Support
|
13 благодарности(ей) от: | ||
AaronMiller, Aramist, doctorsexy, Gemma, LOGECT, mitch84, nacaruncr, owning_y0u, RaSa, Sage Knight, The Rocketeer, YkudzA |
Comments |
#32
|
|||
|
|||
0.9.1 (21.07.2011)
@Morpheus NS Your issue could be the slashes. Meaning the path ending up at /http/slider//picture.jpg which could break it. Please try 0.9.1. If that isn't the problem check whether the pictures are saved in the folder you chose and if you can look them up manually in your browser. |
#33
|
||||
|
||||
The new version work much better for me. No more errors and I now see titles and text. No images yet though. If I outcomment the 1st and last line, then I get these errors:
Code:
Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 110 Warning: fopen(http://www.mysite.org/attachment.php?attachmentid=79&cid=18) [function.fopen]: failed to open stream: no suitable wrapper could be found in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 110 Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 110 Warning: fopen(http://www.mysite.org/attachment.php?attachmentid=90&cid=18) [function.fopen]: failed to open stream: no suitable wrapper could be found in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 110 Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 110 Warning: fopen(http://www.mysite.org/attachment.php?attachmentid=93&cid=18) [function.fopen]: failed to open stream: no suitable wrapper could be found in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 110 Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 110 Warning: fopen(http://www.mysite.org/attachment.php?attachmentid=92&cid=18) [function.fopen]: failed to open stream: no suitable wrapper could be found in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 110 |
#34
|
|||
|
|||
We are using the fopen() function to check whether the file does still exist on the external server before we start our image manipulation.
Seems like url file access is blocked on your server. I don't know whether this is done via your provider or if you can switch it on in your php.ini http://www.php.net/manual/en/filesys...figuration.php That would be your first option. Second option ist to replace this code: Code:
$filehandle = fopen($article['previewimage'], 'r'); if(is_resource($filehandle)) { fclose($filehandle); Code:
$can_open_file = false; if(strpos($article['previewimage'], 'http://') === false) { $can_open_file = is_readable($article['previewimage']); } else { // initialize a new curl resource $ch = curl_init(); // set the url to fetch curl_setopt($ch, CURLOPT_URL, $article['previewimage']); //exclude the header curl_setopt($ch, CURLOPT_HEADER, FALSE); //exclude the body curl_setopt($ch, CURLOPT_NOBODY, TRUE); // return the value instead of printing the response to browser curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); //take the content as a instance //$filehandle = curl_exec($ch); if(!curl_errno($ch)) { $can_open_file = true; } curl_close($ch); } if($can_open_file) { So the third option would be: Replace Code:
$filehandle = fopen($article['previewimage'], 'r'); if(is_resource($filehandle)) { fclose($filehandle); Code:
if(true) { If that doesn't work i'm out of options. P.S.: On my testsite i have the curl option running right now. |
#35
|
||||
|
||||
Yes, fopen is blocked on purpose due to the major security risks involved. Curl is active though, so that should work. But for some reason it doesn't. Would you mind checking it out?
|
#36
|
|||
|
|||
Please check if the folder you specified here:
$slider_img_filepath = 'external/unitedforum/slider/'; is writeable and whether the addon does save slides in there. |
#37
|
||||
|
||||
Its 777 writable, but the addon does not save anything.
|
#38
|
|||
|
|||
Oh geez i'm so stupid. It doesn't work with attachments right now - i'll fix that bug and post a new version later today.
|
#39
|
||||
|
||||
Thanks!
|
#40
|
|||
|
|||
0.9.2 (23.07.2011)
There you go - code in first post updated. That should do the trick. =) |
#41
|
|||
|
|||
Add-on works insofar as it resizes the images and writes them into the folder. It also displays the little background image. But it won't display anything else.
Any ideas? When I comment out the first and last lines, same thing. No errors. Thanks |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|