vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   vBulletin CMS Widgets - [WIDGET] Slider (https://vborg.vbsupport.ru/showthread.php?t=233909)

cory_booth 01-22-2010 10:00 PM

[WIDGET] Slider
 
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 01-22-2010 11:49 PM

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 01-22-2010 11:59 PM

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

ManagerJosh 01-23-2010 12:24 AM

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 01-23-2010 12:43 AM

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 01-23-2010 12:44 AM

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 01-23-2010 12:53 AM

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 01-23-2010 12:54 AM

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 01-23-2010 01:02 AM

any forum example ?

pablete 01-23-2010 01:06 AM

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


All times are GMT. The time now is 10:54 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01777 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete