Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[WIDGET] Slider Details »»
[WIDGET] Slider
Version: 1.00, by cory_booth cory_booth is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Category: vBulletin CMS Widgets - Version: 4.0.1 Rating:
Released: 01-22-2010 Last Update: Never Installs: 157
Re-useable Code Additional Files Is in Beta Stage  
No support by the author.

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();

Download Now

File Type: zip slider.zip (4.1 KB, 2467 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
SyRiAn BoY

Comments
  #12  
Old 01-23-2010, 06:05 AM
Sleeter Sleeter is offline
 
Join Date: Dec 2008
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #13  
Old 01-23-2010, 06:32 AM
sean-zigster sean-zigster is offline
 
Join Date: Jun 2008
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could we not have this showing certain albums or is there another mod out there that doe this ?
Reply With Quote
  #14  
Old 01-23-2010, 01:06 PM
fourat fourat is offline
 
Join Date: Mar 2008
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you so much
Reply With Quote
  #15  
Old 01-23-2010, 01:06 PM
ywwz ywwz is offline
 
Join Date: Jul 2009
Posts: 255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Such a good idea.
Reply With Quote
  #16  
Old 01-23-2010, 02:00 PM
Datenpapst Datenpapst is offline
 
Join Date: Mar 2004
Location: Vienna
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #17  
Old 01-23-2010, 02:26 PM
dacho's Avatar
dacho dacho is offline
 
Join Date: Dec 2004
Location: Tell-Aviv
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

we can use it also on the CMS with CMS content ?
Reply With Quote
  #18  
Old 01-23-2010, 02:45 PM
cory_booth cory_booth is offline
 
Join Date: Jul 2006
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by valendono View Post
any forum example ?
Sorry, this was for the CMS and I certainly have a long way to go before it is ready to template and use hooks to place in the forum home.

Quote:
Originally Posted by pablete View Post
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
Opps... Yep this is why I put this out here for the pros... The code is set for no /forum/

So to fix, check slider.php

Find these two lines:
PHP Code:
$link "../showthread.php?t=".$threadid."";
$imagepath "../attachment.php?attachmentid=".$pic['attach'];

and 
make
$link "../forum/showthread.php?t=".$threadid."";
$imagepath "../forum/attachment.php?attachmentid=".$pic['attach']; 
You may need to adjust this line:
PHP Code:
require_once('./includes/class_bbcode.php'); 
as well

Quote:
Originally Posted by Sleeter View Post
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?
1. Images, yeah I make sure my event posts have 400px or less... I'll have to investigate resizing...

2. Drop the tabs... Hmmm, try this: near the bottom of slider.php.
between tabhtml and centerhtml add

tabhtml ='';

Quote:
Originally Posted by Datenpapst View Post
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?

So you mean you are pulling in another .php file? Hmmm... No I have one div and one center and both are closed at the end.
You could simply drop the div and center statements and see if that helps?

Quote:
Originally Posted by dacho View Post
we can use it also on the CMS with CMS content ?
That'd be great, but not right now...
It pulls from a forum and not the CMS.




NOTE:
Folks thanks for the feedback and I am truly sorry if this is a struggle. Again, I had this and other ideas of mine posted in the Programming section here but I got no feed back... So I posted this here to see what people thought.

I will do my very best to get this thing up to snuff, but this is also tagged as a free project so if someone else is faster at this than me - go for it...
Reply With Quote
  #19  
Old 01-23-2010, 02:48 PM
cory_booth cory_booth is offline
 
Join Date: Jul 2006
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Datenpapst View Post
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?
Ah... Are you pulling in any portion of the php file?
I have a lot of CSS in there - perhaps that is the issue?
Reply With Quote
  #20  
Old 01-24-2010, 03:50 AM
Sleeter Sleeter is offline
 
Join Date: Dec 2008
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First of all thank you so much for putting this out. I've been working with it for a day now and have got it to a point where I can implement on my site. Graphically it is fantastic! Just what I was looking for. Had to make several adjustments to the PHP and CSS but nothing to difficult.

The way I have implemented this is to set up a private forum. When I get some good content (with nice photos) I copy the posts to the private forum. I then crop the photo to 650x320 and re-attach. The only problem I still have is the links from the thread title in the slideshow to the thread it came from. I want to remove that link completely since members will not be able to see the private forum. Any idea how to accomplish that?

Again, thanks so much for sharing. I had a slideshow like this on my 3.8 site and my members really missed it since upgrading to 4.0.

You can see it installed here: www.westcoasthighliners.com

I would love to get feedback.

EDIT: To drop the tabs I changed this tab items in the CSS to display: none
Reply With Quote
  #21  
Old 01-24-2010, 12:54 PM
nomoreturn's Avatar
nomoreturn nomoreturn is offline
 
Join Date: Apr 2009
Posts: 345
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cory_booth View Post
Sorry, this was for the CMS and I certainly have a long way to go before it is ready to template and use hooks to place in the forum home.



Opps... Yep this is why I put this out here for the pros... The code is set for no /forum/

So to fix, check slider.php

Find these two lines:
PHP Code:
$link "../showthread.php?t=".$threadid."";
$imagepath "../attachment.php?attachmentid=".$pic['attach'];

and 
make
$link "../forum/showthread.php?t=".$threadid."";
$imagepath "../forum/attachment.php?attachmentid=".$pic['attach']; 
You may need to adjust this line:
PHP Code:
require_once('./includes/class_bbcode.php'); 
as well



1. Images, yeah I make sure my event posts have 400px or less... I'll have to investigate resizing...

2. Drop the tabs... Hmmm, try this: near the bottom of slider.php.
between tabhtml and centerhtml add

tabhtml ='';




So you mean you are pulling in another .php file? Hmmm... No I have one div and one center and both are closed at the end.
You could simply drop the div and center statements and see if that helps?


That'd be great, but not right now...
It pulls from a forum and not the CMS.




NOTE:
Folks thanks for the feedback and I am truly sorry if this is a struggle. Again, I had this and other ideas of mine posted in the Programming section here but I got no feed back... So I posted this here to see what people thought.

I will do my very best to get this thing up to snuff, but this is also tagged as a free project so if someone else is faster at this than me - go for it...
1st of all thanks for giving us such a nice mod i installed and my images are not showed up so i did this as you told and still images not showing please help me to fix this thanks
Attached Images
File Type: png slide pic.PNG (10.2 KB, 0 views)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:47 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.20274 seconds
  • Memory Usage 2,367KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete