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 |
#292
|
|||
|
|||
This is a great mod!
Is there a way to control which attachment is displayed? I have an image I want the slider to use for each article as I write them, though I don't want to display the slider image in the article itself. What i have been doing is adding the attachment to the article though not displaying it in the article which works fine. The problem is that when I add an image I do want displayed in the article but not in the slider it takes precedence over the old slider image and is displayed in the slider. Is it possible for the slider to pull say an image with a particular name? So that the slider always looks for a imaged named 'slider.png' and pulls that for the slider as opposed to the first image in the article? |
#293
|
|||
|
|||
Please excuse my noob question.
I install the slider and it's work in the header of frontpage CMS. The small display of information about the article is display in the bottom area. However, the picture is not showing at all. All the 5 article in spider is showing "uf_fallback_slider.png" Does it means that my article is not having any picture. I normally include picture by using url reference only. After that, I upload picture to my article. However, this picture is still not show in the slider too. My site: http://www.komunitasparfum.com Any advise to repair it ???? Thanks in advance. |
#294
|
|||
|
|||
@bintoro
please go through the faq in the second post. Your site isn't loading for me - i'm getting a 500 internal server error when trying. @wombycat Then you do not need the resizing part. Just manually upload the slider-images you want to show in your slider-img-filepath-folder and change the following code (untested): Code:
//rebuild image to the height and width we want in the slider //called sprite since i got the code from our sprite addon :P $sprite = imagecreatetruecolor($maxwidth, $maxheight); if(is_resource($sprite) AND $article['previewimage'] ) { $imageinfo = getimagesize($article['previewimage']); if(is_array($imageinfo)) { $image = null; switch($imageinfo[2]) { case IMAGETYPE_PNG: $image = imagecreatefrompng($article['previewimage']); break; case IMAGETYPE_GIF: $image = imagecreatefromgif($article['previewimage']); break; case IMAGETYPE_JPEG: $image = imagecreatefromjpeg($article['previewimage']); break; default: echo '<span style="color:red">Error occurred:</span> Unknown image format. ' . $article['previewimage']. '<br />'; break; } if(!is_resource($image)) { //resiziing did not work - we are using the fallback image. $article['previewimage'] = $fallback_img; echo '<span style="color:red">Error occurred:</span> imagecreation failed. ' . $article['previewimage']. '<br />'; } else { $img_width = $imageinfo[0]; $img_height = $imageinfo[1]; imagecopyresampled($sprite, $image, 0, 0, 0, 0, $maxwidth, $maxheight, $img_width, $img_height ); imagedestroy($image); $img_filepath = $slider_img_filepath . 'slide_' . $i . '.jpg'; $success = imagejpeg($sprite, DIR . ($img_filepath[0] != DIRECTORY_SEPARATOR ? DIRECTORY_SEPARATOR : '') . $img_filepath); imagedestroy($sprite); if($success) { $article['previewimage'] = $img_filepath; } else { $img_filepath = DIR . ($img_filepath[0] != DIRECTORY_SEPARATOR ? DIRECTORY_SEPARATOR : '') . $img_filepath; echo '<span style="color:red">Error occurred:</span> imagejpeg failed. ' . $article['previewimage']. '<br /> directory: '. $img_filepath ; $article['previewimage'] = $fallback_img; } } } else { //resiziing did not work - we are using the fallback image. $article['previewimage'] = $fallback_img; echo '<span style="color:red">Error occurred:</span> picture is not readable.' . $article['previewimage']. '<br /> '; } } else { //resiziing did not work - we are using the fallback image. $article['previewimage'] = $fallback_img; echo '<span style="color:red">Warning:</span> article has no previewimage or sprite is no ressource. ' . $article['previewimage']. '<br />'; } Code:
$filename = $slider_img_filepath . 'slide_' . $article['nodeid'] . '.jpg'; if (file_exists($filename)) {$article['previewimage'] = $filename;} else {$article['previewimage'] = $fallback_img;} It does look for a file named slide_342.jpg in your slider folder. Where 342 is your articleID. If that file does exist it is used as the sliderimage. If not the fallback image is used. If you want to use a different folder manipulate the $filename variable to your needs. Cheers Mooff |
#295
|
|||
|
|||
@Mooff
Thanks for your info. Frankly, I don't understand with 500 internal server error ??? I just check my website and loading is fine. Mind to recheck once again please....... Thanks. |
#296
|
|||
|
|||
Hi,
I installed the Nivo Slider Widget on my Site. I write some Articels with Images but the Slider dont show this images. The Slider shows the articel Title, and the backup Picture, but not the pictures from my articles. |
#297
|
|||
|
|||
Can this mod be used to pull images from a folder as apposed from articles and so on?
|
#298
|
|||
|
|||
Hi ! I hope someone can help me ;S
I installed the Slider as said on my page: http://www.trinitas-gilde.com/content.php but the article-images do not show up -_- i checked about the query etc, but its exaclty as Zervesa descibed. I?ll hope for help xD |
#299
|
|||
|
|||
@bintoro
It's loading, but really slow, like 15sec before anything happens for me. @Zervesa, Valker please go through the faq in post 2. @zapiy it can be used for such a behaviour, but that does need recoding. If you come up with some php-code which cycles through a folder and pulls images i can tell you where to put that. |
#300
|
|||
|
|||
works fine now thanks i failed with the link cause we have a temprary domain (we?ll have an other in a few weeks)
|
#301
|
|||
|
|||
Hi again :P
So i got a question about the "read on". I want to change it, and seached for this phrase in the data, but found nothing. I even tried to find the answer by the nivo slider, but there was no explenation. Do you have a clue bout it ? |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|