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 |
#162
|
|||
|
|||
edited the same time you made your post.
Quote:
replace 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:
if($article['previewimage'] ) { //do nothing } else { $article['previewimage'] = $fallback_img; echo '<span style="color:red">Warning:</span> article has no previewimage or sprite is no ressource. ' . $article['previewimage']. '<br />'; } Pictures should show up then. But it might look odd if the pictures do not have the right width and height. |
#163
|
||||
|
||||
I figured out a way around the hosts rule so I have it working now without the edit above.
Im sure this has been covered but spare me a few brain cells so I get BTW.. Image re-sizes but stretches. Can it be set to fill the area rather then stretch? And by the way. Huge thank you for the quick replies. Best mod support Ive ever seen. :up: I guess I should add the work around. Just added a php.ini to the root with this function enabled. |
Благодарность от: | ||
Mooff |
#164
|
||||
|
||||
Having 1 small issue. The highlight "dots" for lack of better word that are supposed to be in the top right corner are about 1/3 from the top down and on the right of my slide. Not sure how or why the only changes I've made in the CSS is to height/width and then the # of slides.
http://www.outlawedoffroad.com/content/ is the live example of whats happening. Any help is appreciated. Love this mod, not I just have to start using pics that will fit it better which for future posts won't be a problem we'll just format/standardize the first pics and it'll be golden. Thanks again. |
#165
|
||||
|
||||
Quote:
|
#166
|
|||
|
|||
@theoutlawed
Check this post: https://vborg.vbsupport.ru/showthrea...39#post2233439 (your top value might differ, just try different values till it is in the right place) @Scalemotorcars Strechting is on purpose cause fill or cropping the images would look even worse. Best course of action is to use previewpictures for the articles which are near the slider width/height ratio. |
#167
|
||||
|
||||
Thanks
I simply made it taller and its looking pretty sharp now. Thanks again for all the help and great mod. :up: |
#168
|
||||
|
||||
Quote:
Thanks for the assist, 5 second change and BOOM it's perfect again. This mod is one of the best things I've done to my homepage/cms it gives such a clean and professional look to a casual visitor who may see a dozen similar forums. |
#169
|
||||
|
||||
Quote:
|
#170
|
||||
|
||||
This error occurred
PHP Code:
allow_url_fopen active. But slider not appear. |
#171
|
|||
|
|||
That is not the full error message is it?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|