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)

ilvikingo 08-27-2010 02:14 PM

how can I eliminate the right tab with thumbnail to get only the image ?

Veer 08-29-2010 02:43 AM

Is it possible to use it with insert image bbcode instead of attachments?

gurler 08-29-2010 09:19 AM

Quote:

Originally Posted by Veer (Post 2090943)
Is it possible to use it with insert image bbcode instead of attachments?


+1 :up:

ilvikingo 08-30-2010 10:11 AM

noone knows how can I eliminate the right tab with thumbnail to get only the image ?

Bleed0ut 08-30-2010 08:29 PM

Viking, That question has been asked 5 times and answered 5 times. At least.

On a happier note, anyone gotten this ported for vBa homepage yet? Eager to use it.

Thanks

ilvikingo 09-01-2010 08:41 AM

BleedOut, if I ask again probably I'm not able to resolve my problem :) If you could spent 2 of your minutes I would like to know how can I eliminate the thumbnail! thanks

myarmy 09-04-2010 04:15 AM

great idea. but i'm looking for an article slider

Bouncer222 09-10-2010 09:54 PM

How the hell do you add the jquery for the slider to show up??? Why isn't this posted?? I've been googling for hours without any luck.

Anyone?

bandare 09-11-2010 06:35 PM

Quote:

Originally Posted by myarmy (Post 2093538)
great idea. but i'm looking for an article slider

I've seen so many people post here asking about an article slider. I have no idea why there isn't one for vbcms!

krustyx 09-17-2010 11:26 AM

For me, its only showing this

%17/%09/%2010

:(

DS MrSinister 09-17-2010 11:40 AM

Quote:

Originally Posted by krustyx (Post 2099585)
For me, its only showing this

%17/%09/%2010

:(

please post your code so i can see what you are trying doing?

krustyx 09-17-2010 02:31 PM

Quote:

Originally Posted by DS MrSinister (Post 2099591)
please post your code so i can see what you are trying doing?

Created a PHP widget

Quote:

ob_start();
echo '<div>';
echo '<center>';
require_once './clientscript/slider/slider.php';
echo '</center>';
echo '</div>';
$output=ob_get_contents();
ob_end_clean();
and i've modified the code in slider.php with

Quote:

$forumid = array(23); // Set forum IDs here.
$limit = '4'; // Limit the displayed slides
$chars = 120; // Character limit for the slide text, e.g. 100 is 100 characters limit.
$words = 20; // Word limit for the slide text, e.g. 20 is 20 words limit
/* ------------------------------ NOTHING TO CHANGE BELOW THIS LINE ------------------------------ */

nanouniko 09-17-2010 03:40 PM

Somebody know How resize the image?...

DS MrSinister 09-18-2010 12:52 AM

Quote:

Originally Posted by krustyx (Post 2099647)
Created a PHP widget



and i've modified the code in slider.php with

replace it with this code and see if this works for you.

Code:

$output = date(vB::$vbulletin->options['dateformat']) . "<br />\n";
ob_start();
echo '<div>';
echo '<center>';
require_once './clientscript/slider/slider.php';
echo '</center>';
echo '</div>';
$output=ob_get_contents();
ob_end_clean();


krustyx 09-18-2010 02:20 AM

Its all good with the original code, i made a mistake :( Sorry.

Images are way too big tho ;) Any resizing?

DS MrSinister 09-18-2010 02:56 AM

1 Attachment(s)
if anyone is looking to make this work with vBadvanced CMPS. just download this attachment.
Don't forget to edit lines 20 to 23 to fit your needs.

add a new php module --> name what ever you want too --> File to Include slidermodule.php

---> Use Module Wrapper Template up to you. enjoy

ilvikingo 09-19-2010 03:21 PM

Hi Mr Sinister do you Know how to eliminate the tabs of the thumbnails?

DS MrSinister 09-19-2010 03:41 PM

so u don't want the thumbnails images to show? or whole tabs them selfs?

betts02 09-19-2010 03:51 PM

Where is this getting the images from ?

Would like to use something like this where i can enter my own images and link them to various pages and/or websites

Also can this be made to work on forumhome in various positions ?

Above forums, Below forums, below footer,etc

cheers in advance

basilrath 09-19-2010 03:58 PM

Pulls from the forum you add in the php file lines 20 - 23

DS MrSinister 09-19-2010 03:58 PM

Quote:

Originally Posted by betts02 (Post 2100549)
Where is this getting the images from ?

Would like to use something like this where i can enter my own images and link them to various pages and/or websites

Also can this be made to work on forumhome in various positions ?

Above forums, Below forums, below footer,etc

cheers in advance


Its set for forumid2. you need to edit the slidermodule.php line 20 to set it for you forumids.

I am sure you can place it other places but i don't know how on doing that sir. sorry

betts02 09-19-2010 04:04 PM

so i have to have the image in a forum post first ?

And this will call that image ?

What happens if the thread has various images from other members ?

Just dont get how its doing it, sorry

betts02 09-19-2010 04:09 PM

Can this be set to a stand alone version so you can enter any image you want via the file and the link ?

Bouncer222 09-19-2010 04:18 PM

you attach images as an attachment to the post, it grabs the image from the first post of that person who created the thread, only attach one image.

ilvikingo 09-20-2010 07:23 AM

O Yes Mr Sinister, I don't want the thumbnails images to show, how can I do? I wanna see only the images that slides

bandare 09-23-2010 02:27 PM

Quote:

Originally Posted by DS MrSinister (Post 2099897)
if anyone is looking to make this work with vBadvanced CMPS. just download this attachment.
Don't forget to edit lines 20 to 23 to fit your needs.

add a new php module --> name what ever you want too --> File to Include slidermodule.php

---> Use Module Wrapper Template up to you. enjoy

any way to work something for vb suite and their CMS?

DS MrSinister 09-23-2010 02:58 PM

Quote:

Originally Posted by bandare (Post 2102277)
any way to work something for vb suite and their CMS?

you can use that file i posted but just rename it to slider.php. upload the file to /clientscript/slider/slider.php like it says to do in the first post. but use the code i have below.


Code:

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

if you like to see it in action for yourself cms and vba cmps

http://www.sinisterslair.com/0index.php <-- vb cms

http://www.sinisterslair.com/index.php <-- vba cmps

bandare 09-23-2010 03:26 PM

aaah, thanks for that but I was hoping to use with articles, not forum posts :(

Jojonas 09-26-2010 09:34 AM

it isn't visible on my page. i've edited the lines 20-23. And user module wrapper, too. where's my problem?

DS MrSinister 09-26-2010 12:54 PM

Quote:

Originally Posted by Jojonas (Post 2103280)
it isn't visible on my page. i've edited the lines 20-23. And user module wrapper, too. where's my problem?


whats the link to your web site? do you have any images posted in your forumid?

Jojonas 09-26-2010 02:33 PM

<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

DS MrSinister 09-26-2010 02:59 PM

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.

Jojonas 09-26-2010 07:35 PM

Okay the welcome block is active but it doesn't work. And my vB license goes only to 4.0.3 :/

DS MrSinister 09-27-2010 03:17 AM

1 Attachment(s)
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.

Jojonas 09-27-2010 01:56 PM

Great it works!!! Thanks!

DS MrSinister 09-27-2010 01:59 PM

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

too do that just edit slidermodule.php file.

wullieclsfb 09-28-2010 06:18 AM

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

DS MrSinister 09-28-2010 01:22 PM

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.

wullieclsfb 09-28-2010 03:17 PM

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

DS MrSinister 09-28-2010 04:15 PM

need a link to your web site to see?


All times are GMT. The time now is 08:08 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.01508 seconds
  • Memory Usage 1,820KB
  • 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
  • (4)bbcode_code_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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