vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=233909

[WIDGET] Slider
by cory_booth
23 Jan 2010 00:46

1 Attachment(s)
Widget Slider - Frontpage Slide Show.

Demo: http://demo.webdeveloperplus.com/fea...ontent-slider/

This is based on the demo above. OK this is my first mod and I know the coding really sucks! But I thought I would get this out and see if anyone want to improve on it.
This is one of those frontpage slide shows that pulls your attachment and data from specified forums.

I hope this works for you.

Install:

Edit slider.php and at line 100:

$forumid - set the forum to pull slides
$limit - set the number of posts
$chars - set the total number of characters
$words - set total number of words

Upload Files.

Create PHP Widget and inser the following code:

ob_start();
echo '<div>';
echo '<center>';
require_once './clientscript/slider/slider.php';
echo '</center>';
echo '</div>';
$output=ob_get_contents();
ob_end_clean();

cory_booth 23 Jan 2010 00:49

NOTE: This mod uses the jquery javascript so if you load it already for other plugins (i.e. cometchat) then look to see if you need to load it with the script.

mandingo 23 Jan 2010 00:59

Looks promising.Any way to get this to work on the forum front page?

ManagerJosh 23 Jan 2010 01:24

I'm seeing this tagged a CMS widget, so exactly what are we pulling from a forum when we have no original forum post with attachments per-se for our CMS articles?

cory_booth 23 Jan 2010 01:43

Quote:

Originally Posted by mandingo (Post 1963931)
Looks promising.Any way to get this to work on the forum front page?

Perhaps, however I am still learning.
I need to template a bunch of this stuff and then do a hook.
I'd like to make it a plugin so you don't have to edit the php.

This is all stuff I will try to do...

cory_booth 23 Jan 2010 01:44

Quote:

Originally Posted by ManagerJosh (Post 1963950)
I'm seeing this tagged a CMS widget, so exactly what are we pulling from a forum when we have no original forum post with attachments per-se for our CMS articles?

I guess I see your point, but for me... My Articles start off as forum posts in the "Current Events" forum. Then I Post as Article...

I guess some people don't use stuff this way so, perhaps this isn't a good idea for your site.

mandingo 23 Jan 2010 01:53

Quote:

Originally Posted by cory_booth (Post 1963966)
Perhaps, however I am still learning.
I need to template a bunch of this stuff and then do a hook.
I'd like to make it a plugin so you don't have to edit the php.

This is all stuff I will try to do...

I'll keep watch.if I can think of any way to help i'll send ideas your way but i'm not a big coder either.

winstone 23 Jan 2010 01:54

if you ever decide to do it using YUI, see this example http://www.lutsr.nl/yui/image%20slideshow/

you will need to change a fair bit of stuff tho

valendono 23 Jan 2010 02:02

any forum example ?

pablete 23 Jan 2010 02:06

Good mod but i have a problem with....

Not show the images from post in features and

My forum is on folder /forum, if you put on a title of one those post featured show me an error, because the links put http://web.com/showthread.php?t=323 an not http://web.com/forum/showthread.php?t=323...

Why can i fixed?

Thank's

Sleeter 23 Jan 2010 07:05

Slideshow is working but images are causing all kinds of strange display (breaking out of the frame). Needs to be able to auto re-size images or only show portions of images and fill the entire frame. Cool start though. I am desperate for a slideshow like this.

Any idea how could I go about getting rid of the small preview images section completely?

sean-zigster 23 Jan 2010 07:32

Could we not have this showing certain albums or is there another mod out there that doe this ?

fourat 23 Jan 2010 14:06

thank you so much

ywwz 23 Jan 2010 14:06

Such a good idea.

Datenpapst 23 Jan 2010 15:00

actually i am just using your widget code, because already got a working slideshow software, but when i use it, somehow the forum goes to the left and the size of the font becomes smaller. Maybe some tags not closed or something missing?


All times are GMT. The time now is 07:43.

Powered by vBulletin® Version 3.8.12
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.