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
  #152  
Old 09-26-2010, 02:33 PM
Jojonas Jojonas is offline
 
Join Date: Oct 2008
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="http://www.learn-seafight.com/cmps_index.php" target="_blank">http://www.learn-seafight.com/cmps_index.php</a>

ok now it's visible but over the header o0
Reply With Quote
  #153  
Old 09-26-2010, 02:59 PM
DS MrSinister DS MrSinister is offline
 
Join Date: Dec 2002
Location: the burgh
Posts: 553
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

did you crate a new page or is that the default page of vba?

Edit.. PS try upgrading to vba 4.0.1 see if that helps at all....

also looks like the welcome block is missing. if it is try adding it back.
Reply With Quote
  #154  
Old 09-26-2010, 07:35 PM
Jojonas Jojonas is offline
 
Join Date: Oct 2008
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay the welcome block is active but it doesn't work. And my vB license goes only to 4.0.3 :/
Reply With Quote
  #155  
Old 09-27-2010, 03:17 AM
DS MrSinister DS MrSinister is offline
 
Join Date: Dec 2002
Location: the burgh
Posts: 553
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok do this for me remove and delete all what you did for this mod. and try use the attach file.

login to admincp --> vba CMPS --> Download/Upload Module ---> click Browse find the xml file. choose active YES select the style you want to install this on. then click Submit. after that download the slidermodule.php file thats crates in your modules folder. edit line 20 reuopload and see what happens.
Attached Files
File Type: xml newsfeed.xml (7.2 KB, 83 views)
Reply With Quote
  #156  
Old 09-27-2010, 01:56 PM
Jojonas Jojonas is offline
 
Join Date: Oct 2008
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great it works!!! Thanks!
Reply With Quote
  #157  
Old 09-27-2010, 01:59 PM
DS MrSinister DS MrSinister is offline
 
Join Date: Dec 2002
Location: the burgh
Posts: 553
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

your very welcome. now you need to edit the colors so they match your theme.

too do that just edit slidermodule.php file.
Reply With Quote
  #158  
Old 09-28-2010, 06:18 AM
wullieclsfb wullieclsfb is offline
 
Join Date: Apr 2010
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello could someone post up a step by step guide on how to add this widget i have made several attempts to add this and a few other test widgets to see if i could get them still no luck i have no knowlage on how to do this as i only upgraded to the suite yesturday so i would be gratful if someone would kindly post everything i need to do so i can get this working thank you
Reply With Quote
  #159  
Old 09-28-2010, 01:22 PM
DS MrSinister DS MrSinister is offline
 
Join Date: Dec 2002
Location: the burgh
Posts: 553
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1. download file from the first page and unzip upload the files.
2. Login in to the Admincp
3. goto vBulletin CMS --> click Widgets.
4. create new widget make PHP Direct Execution name it what you want too. add a description if you like.
5. go back to widget page. click on Configure of the new PHP Direct Execution widget. place this code in that box.

Code:
ob_start();
echo '<div align="left">';
require_once './clientscript/slider/slider.php';
echo '</div>';
$output=ob_get_contents();
ob_end_clean();
template name vbcms_widget_slider_page

6. now add a new template called vbcms_widget_slider_page place the code in the new template.

Code:
<div class="cms_widget">
<div class="block">
<div class="cms_widget_header">
	<h3>{vb:raw title}</h3>
</div>
<div class="cms_widget_content">
<table align="center">
      <tr>
         <td>{vb:raw output}</td>
      </tr>
</table>
</div>
</div>
</div>
7. goto vBulletin CMS -- Layout Manager --> edit the layout you are using --> select the new widget you have made. place were you like to have to showed.
Reply With Quote
  #160  
Old 09-28-2010, 03:17 PM
wullieclsfb wullieclsfb is offline
 
Join Date: Apr 2010
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you got it working but how do i get my images to appear the way they do in the demo they just coming up on below each other and not flicking through
Reply With Quote
  #161  
Old 09-28-2010, 04:15 PM
DS MrSinister DS MrSinister is offline
 
Join Date: Dec 2002
Location: the burgh
Posts: 553
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

need a link to your web site to see?
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:03 AM.


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.05457 seconds
  • Memory Usage 2,324KB
  • 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
  • (2)bbcode_code
  • (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
  • (4)pagenav_pagelink
  • (2)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