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 |
#52
|
|||
|
|||
@ another questions :P
1 - I'm getting some charset issues on caption, I use UTF-8, but some captions are coming wrong...but original posts are ok, no issues....just on slider caption. Edit: Just preview text are getting worng, post title is charset ok. 2 - I have verified that slide images are been created with ~200 or 300k, which is causing the slider to stuck some animations (while loading the images). Is there any way to reduce images file size? Ty |
#53
|
|||
|
|||
first one. Won't have time to debug that until next week. However, please give more information (what characters are the issues, what they are in your original posts -quote that part- and what they are in the caption, another quote).
second one. Sure, will be included in the next version - i used parts of the sprite code Osbes wrote for our css-sprite performance addon. There we do need transparency, so the images are saved as *.png For the nivo slider *.jpg does make more sence and jpegs are alot smaller. This part Code:
$img_filepath = $slider_img_filepath . 'slide_' . $i . '.png'; $success = imagepng($sprite, DIR . ($slider_img_filepath[0] != DIRECTORY_SEPARATOR ? DIRECTORY_SEPARATOR : '') . $img_filepath); Code:
$img_filepath = $slider_img_filepath . 'slide_' . $i . '.jpg'; $success = imagejpeg($sprite, DIR . ($slider_img_filepath[0] != DIRECTORY_SEPARATOR ? DIRECTORY_SEPARATOR : '') . $img_filepath); |
#54
|
|||
|
|||
Thanks man nice installed <3
|
#55
|
|||
|
|||
Quote:
Explaining MY charset Issue: In a Original text: " Redu??o " and " implica??es " It shows: " Redução " and " implicações " But it only occurs in the caption $article['previewtext'] variable . $article['title'] variable is working fine with no charset issues. One Question: What happens if I edit the original article and change the image? The script can handle it? And no problem with the support time....u can help me when u have time...don't worry ! Ty for your support ! |
#56
|
|||
|
|||
Ah i see, the issue seems to be my version of equalizing the preview text length (which i changed numerous times along the way). Thought it would work for everything since it does work with the german special characters ? ? ? and so on.
Anyways, quick and dirty fix would be removing the equalizing part (preview length then might differ depending on how many special characters are in there, but everything should look fine then) again, untested Code:
/*remove everything from the previewtext - html and bb. I do not want bold or colored text there. Cut to a decent length.*/ $article['pagetext'] = strip_bbcode($article['pagetext'], true, true, false, true, false); $article['pagetext'] = strip_tags($article['pagetext']); $article['previewtext'] = str_replace('<br />', '', $article['pagetext']); $article['previewtext'] = html_entity_decode($article['previewtext']); $len = $description_length; if ( strlen($article['previewtext']) > $len ) { $article['previewtext'] = substr( $article['previewtext'] , 0 , strrpos( substr( $article['previewtext'], 0, $len), ' ' )); } $article['previewtext'] = htmlentities($article['previewtext']); Code:
/*remove everything from the previewtext - html and bb. I do not want bold or colored text there. Cut to a decent length.*/ $article['pagetext'] = strip_bbcode($article['pagetext'], true, true, false, true, false); $article['pagetext'] = strip_tags($article['pagetext']); $article['previewtext'] = str_replace('<br />', '', $article['pagetext']); $len = $description_length; if ( strlen($article['previewtext']) > $len ) { $article['previewtext'] = substr( $article['previewtext'] , 0 , strrpos( substr( $article['previewtext'], 0, $len), ' ' )); } -- your other question. The slider can handle that. If you edit an article the next time the cms widget cache runs out the new version will be in. By the way i would strongly advise to use the widget cache on this one. Default setting there is 5min - the widget cache for the slider refreshes every 300 minutes on our website. Using the cache the load time is blazing fast. Letting the database query run, sort the articles and then resize and save a bunch of images is not so fast. |
#57
|
|||
|
|||
Quote:
Ty a lot.. Now i'll sit here and wait you bring us the next version with attach working !! D A Stunning Job ! Gratz ! BTW ... Nominated ! Ty |
#58
|
|||
|
|||
Update on Attachements:
I tried debugging it today, but unfortunately run into a huge bug our CMS has. It does not show attached images at all. Neither preview, nor inline, nor in the attachement box. Pictures which are working fine in the forum. Instead it sends our server into some kind of loop, until it ends up with a 503 minutes later... Without working CMS attachements i can't test the slider code for it. Doing some searching in the jira vbulletin bugtracker it does look like this might be fixed in 4.1.4 / 4.1.5 - so i'll look into it again once we have updated our forum to that version. Meanwhile the slider is now running fine on our main cms page and i'll include the jpg/png and charakter encoding stuff soon. |
#59
|
||||
|
||||
Unless you are 100% sure that the same issue already exists in JIRA, please add a new JIRA report, so that we are sure that the issue is in JIRA.
|
#60
|
|||
|
|||
Seems to be that issue:
http://tracker.vbulletin.com/browse/VBIV-5661 ( has been there since vb4.0.2 :/ ) |
#61
|
|||
|
|||
Osbes managed to sort that attachment bug out on our site.
-> new version added 0.9.9 (28.07.2011)
Attachments are working fine for us now. Important point: Guests need to be able to see them, if they can't neither can the slider. Reworked the FAQ. Next version will be uploaded once we've upgraded our board to 4.1.5 (given the upgrade calls for slider changes). |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|