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)

DS MrSinister 08-06-2011 01:31 AM

Quote:

Originally Posted by gabbariele (Post 2229827)
Hi there, thank you for the mod!
I've added it, but nothing is showing out!
Website is: http://www.tera-italy.com/forums/content.php

Could you help me please? Thanks

Are you trying to pull the information from CMS or the forum id.

The one in the first post pulls the information from the forum id.

If you want to pull the information from the your CMS download this one.

https://vborg.vbsupport.ru/showpost....&postcount=200

Sin

gabbariele 08-06-2011 05:58 AM

Quote:

Originally Posted by DS MrSinister (Post 2229933)
Are you trying to pull the information from CMS or the forum id.

The one in the first post pulls the information from the forum id.

If you want to pull the information from the your CMS download this one.

https://vborg.vbsupport.ru/showpost....&postcount=200

Sin

Hi, thanks for your reply. Yes I'm using the forum mod, and the forum id I've chosen should be ok.

Edit: I've tried to switch to the CMS mod, and now I see a big black widget, instead of a little black widget :) Still empty!

DS MrSinister 08-06-2011 07:54 PM

Quote:

Originally Posted by gabbariele (Post 2229982)
Hi, thanks for your reply. Yes I'm using the forum mod, and the forum id I've chosen should be ok.

Edit: I've tried to switch to the CMS mod, and now I see a big black widget, instead of a little black widget :) Still empty!


Looks like you got it working.

dkikuchi 08-10-2011 07:17 PM

I'm hoping someone here might be able to help me troubleshoot this mod. I've modified the CSS a bit and have it just about how I want it... the problem: It's not actually "sliding". While you can't see the tabs, when I unhide them you can see there are 2 currently and clicking on the second forces a page reload (instead of an ajax event) and the layout is not correct.

As you may be able to see, the top of the 2nd image is also visible under the widget for some reason (all images have been re-sized and cropped to fix the 700x250 dimensions exactly).

I'd greatly appreciate any help you can give. My current slider.php is attached.

Link to site

Edit: Nevermind... forgot that the countdown script was also including jQuery and that was apparently causing a conflict!

Wordplay 08-11-2011 07:48 AM

i wish i could get the slider to look like this:
http://www.bet.com/shows.html
that is the best slideshow i've seen thus far.


Mr Sinister, can you help me?

i'm trying to get this to work, but am having serious difficulties.

when i upload the default slider or the last slider you posted (700) the slide ends up over the 3 thumbsnails and text.

i have a 835px space, and want it to show the slide image and text on the left side and on the right side the thumbnails, but i cannot get that to work.

DS MrSinister 08-11-2011 10:20 AM

Quote:

Originally Posted by Wordplay (Post 2232154)
i wish i could get the slider to look like this:
http://www.bet.com/shows.html
that is the best slideshow i've seen thus far.


Mr Sinister, can you help me?

i'm trying to get this to work, but am having serious difficulties.

when i upload the default slider or the last slider you posted (700) the slide ends up over the 3 thumbsnails and text.

i have a 835px space, and want it to show the slide image and text on the left side and on the right side the thumbnails, but i cannot get that to work.

I will try my best to help you.

what is your URL to hr slider?

Sin

Wordplay 08-12-2011 10:25 AM

thanks sinister, what do you mean by hr slider?

you mean my slider? i only have a live site, so i can't afford to have it show up there all messy, so i leave it deactivated until i have it working right? will a screencap of it do?

DS MrSinister 08-12-2011 07:36 PM

Quote:

Originally Posted by Wordplay (Post 2232587)
thanks sinister, what do you mean by hr slider?

you mean my slider? i only have a live site, so i can't afford to have it show up there all messy, so i leave it deactivated until i have it working right? will a screencap of it do?

Opps sorry type O.. lack of sleep.

hr should be *your..

screen shot would do! link to your website would help also. if you don't feel like posting it just PM it.

Sin

Wordplay 08-12-2011 08:21 PM

oh no error

DS MrSinister 08-12-2011 09:59 PM

find

Code:

$centerhtml .="<img src='".$imagepath."' alt=''/>";
replace it

Code:

$centerhtml .= "<img src='".$imagepath."' width='830px' height='320px' alt=''/>";
edit the width and height to meet your needs. hope this helps.

Sin

Wordplay 08-13-2011 01:56 PM

whoops error

DS MrSinister 08-14-2011 12:41 AM

not sure why the tabs are showing on the left hand side.. it must be your CSS.. with out looking at your css code in the slider.php file. so please post your css code.

Sin

Wordplay 08-14-2011 06:09 AM

i don't mind that it's on the left anymore, it can stay there, i just want to get rid of the space between the column with the thumbs and the actual image.

and can you help me make the descripton align on the left rather than center, and make it take away 600px rather than what it is taking away right now?


Code:

<style>
#featured{
        width:830px;
        padding-right:0px;
        position:relative;
        border:0px solid #ccc;
        height:350px;
        background:#fff;
}
#featured ul.ui-tabs-nav{
        position:absolute;
        top:0; left:0px;
        list-style:none;
        padding:0; margin:0;
        width:200px;
}
#featured ul.ui-tabs-nav li{
        padding:0px 0; padding-left:3px;
        font-size:10px;
        color:#666;
}
#featured ul.ui-tabs-nav li img{
        float:left; margin:2px 5px;
        background:#fff;
        padding:0px;
        border:1px solid #eee;
}
#featured ul.ui-tabs-nav li span{
        font-size:10px; font-family:Verdana;
        line-height:18px;
    border-color: #000;
}
#featured li.ui-tabs-nav-item a{
        display:block;
        height:70px;
        color:#333;  background:#fff;
        line-height:20px;
}
#featured li.ui-tabs-nav-item a:hover{
        background:#f2f2f2;
}
#featured li.ui-tabs-selected{
        background:url('images/selected-item.gif') top left no-repeat;
}
#featured ul.ui-tabs-nav li.ui-tabs-selected a{
        background:#ccc;
}
#featured .ui-tabs-panel{
        width:400px;
    height:350px;
        background:#999; position:relative;
}
#featured .ui-tabs-panel .info{
        position:absolute;
        top:180px; left:0;
        height:70px;
        background: url('images/transparent-bg.png');
    color:#fff;
}
#featured .info h2{
        font-size:18px; font-family:Georgia, serif;
        color:#fff; padding:2px; margin:0;
        overflow:hidden;
}
#featured .info p{
        margin:0 5px;
        font-family:Verdana; font-size:11px;
        line-height:15px; color:#f0f0f0;
}
#featured .info a{
        text-decoration:none;
        color:#fff;
}
#featured .info a:hover{
        text-decoration:underline;
}
#featured .ui-tabs-hide{
        display:none;
}
</style>
<!-- jQuery - Do you already load this javascript?  (i.e. cometchat) -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" ></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.3/jquery-ui.min.js" ></script>

<!-- Rotating Code -->
<script type="text/javascript">
    $(document).ready(function(){
        $("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);
    });
</script>
<!-- / Rotating Code -->
<?php
global $db,$vbulletin,$sess, $std, $INFO, $vboptions, $session, $bbcode;
// vBulletin: Parse BBCode
if (!is_object($bbcode_parser)){
        require_once('./includes/class_bbcode.php');
        $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
}

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


// Start loop
$forumid = implode(',',$forumid);
$getnews = $db->query_read("SELECT threadid from ".TABLE_PREFIX."thread WHERE attach !='0' AND forumid in($forumid) ORDER by sticky DESC, threadid DESC LIMIT $limit");
while ($news = $db->fetch_array($getnews)) {
        $myid[]=$news['threadid'];
}
$tabhtml="";
$contenthtml="";
$div_id = 1;

if ($myid) {
foreach ($myid as $threadid) {
$getpics = $db->query_read("SELECT t.threadid as tid, t.title as title,t.replycount as rcount, p.pagetext as pagetext,a.attachmentid as attach,f.forumid as forumid,f.title as forum from ".TABLE_PREFIX."thread as t
        LEFT JOIN ".TABLE_PREFIX."post as p on(t.firstpostid=p.postid)
        LEFT JOIN ".TABLE_PREFIX."attachment as a on(a.contentid=p.postid)
        LEFT JOIN ".TABLE_PREFIX."forum as f on(t.forumid=f.forumid)
        where t.threadid='$threadid'
        ORDER BY attach DESC
        LIMIT 1");

while ($pic = $db->fetch_array($getpics)) {
$replies=$pic['rcount'];
if ($replies=='1') {
$update="- (1 update)";
} elseif ($replies>'1') {
$update="- ($replies updates)";
} else {
$update="";
}

$pic['pagetext'] = $bbcode_parser->do_parse($pic['pagetext'],false,false,false,false,false,false);
$link = "../showthread.php?t=".$threadid."";
$imagepath = "../attachment.php?attachmentid=".$pic['attach'];
$titleContent = ucwords($pic['title']);
$introtext = $pic['pagetext'];
$pattern = '~\[([^\]]+?)(=[^\]]+?)?\](.+?)\[/\1\]~';
preg_replace($pattern, ' ' , $introtext);
$OpenBrace = '\[';
$CloseBrace = '\]';
$NotACloseBrace = "[^{$CloseBrace}]";
$Multiple = '+?';
$Optional = '?';
$Anything = "(.{$Multiple})";
$StartTag = "{$OpenBrace}({$NotACloseBrace}{$Multiple})(={$NotACloseBrace}{$Multiple}){$Optional}{$CloseBrace}";
$EndTag = "{$OpenBrace}/\\1{$CloseBrace}";
$FullPattern = "~{$StartTag}{$Anything}{$EndTag}~";
$String = $introtext;
$String = preg_replace($FullPattern, '', $String);
$introtext = $String;

 // clean images
$introtext = preg_replace("/<img.+?>/", "", $introtext);
 // HTML cleanup
if ($striptags) {
$introtext = strip_tags($introtext, $allowed_tags);
}
// if character limitation is defined
 if ($chars) {
 if(function_exists("mb_string")) {
 $introtext = mb_substr($introtext, 0, $chars).'...';
} else {
 $introtext = substr($introtext, 0, $chars).'...';
}
}


if(function_exists("mb_string")) {
 $titleContent = mb_substr($titleContent, 0, 40).'...';
} else {
 $titleContent = substr($titleContent, 0, 40).'...';
}

// if word limitation is defined
if ($words) {
$word_arr = str_word_count($introtext, 2);
$c = 0;
foreach ($word_arr AS $k => $v) {
if ($c == $words) {
if(function_exists("mb_string")) {
$introtext = mb_substr($introtext, 0, $k).'...';
} else {
$introtext = substr($introtext, 0, $k).'...';
}
break;
}
$c++;
}
}
$introtext = unhtmlspecialchars($introtext, true);

$tabhtml .= "<li class='ui-tabs-nav-item' id='nav-fragment-".$div_id."'><a href='#fragment-".$div_id."'>";
$tabhtml .="<img src='".$imagepath."' height='35px' width='50px' alt='' />";
$tabhtml .="<span>".$titleContent." ".$update."</span></a></li>";

$centerhtml .="<div id='fragment-".$div_id."' class='ui-tabs-panel' style=''>";
$centerhtml .="<img src='".$imagepath."' width='630px' height='350px' alt=''/>";
$centerhtml .="<div class='info'>";
$centerhtml .="<br><br><br><br><br><br><br><br><b><a href='".$link."'>".$titleContent."</a> </b>";
$centerhtml .="".$introtext."</div></div>";


$div_id++;
}
}

$db->free_result($getpics);
unset($pic);
$db->free_result($getnews);
unset($news);
// End loop

$tabhtml = "<div id=\"featured\"><ul class=\"ui-tabs-nav\">".$tabhtml."</ul>";

echo $tabhtml.$centerhtml."</div>";
}
?>


Budget101 08-14-2011 12:13 PM

I have this installed in a "widget" like the directions show. However, currently all of my widgets have a "frame" with a title. I would like this to show without the "widget" style (basically to look like content without any frame at all, So it's blended.
How do I do that?

victorvu 08-14-2011 12:48 PM

1 Attachment(s)
Hello Cory Booth:

Thanks for the mod. I installed it according to the instructions, but got the empty shell, as shown below:

Attachment 131949

Do you have the complete code ?

Victor

Wordplay 08-14-2011 05:49 PM

Quote:

Originally Posted by Budget101 (Post 2233350)
I have this installed in a "widget" like the directions show. However, currently all of my widgets have a "frame" with a title. I would like this to show without the "widget" style (basically to look like content without any frame at all, So it's blended.
How do I do that?

just change the widget template.

Budget101 08-14-2011 06:26 PM

Quote:

Originally Posted by Wordplay (Post 2233454)
just change the widget template.

thank you, I completely missed that the first time around. Got it now :-)

Budget101 08-14-2011 06:29 PM

Quote:

Originally Posted by victorvu (Post 2233355)
Hello Cory Booth:

Thanks for the mod. I installed it according to the instructions, but got the empty shell, as shown below:

Attachment 131949

Do you have the complete code ?

Victor

Victor, the code is complete, I had the same error that you're experiencing, when you configure the widget to add it in, do not delete the existing code which is:

Code:

$output = date(vB::$vbulletin->options['dateformat']) . "<br />\n";
Instead, add the code for your slider directly after it. You should then be able to see your slider without any issue, provided everything else is installed/configured correctly.

Budget101 08-14-2011 06:36 PM

Ok, in setting this up I am seeing the following issue- the text description (preview text) doesn't appear in the bottom under the title of the CMS slider. (using recent_section_articles.php) Any ideas how to fix?

Thanks!

Budget101 08-14-2011 07:03 PM

Quote:

Originally Posted by Wordplay (Post 2233290)
i don't mind that it's on the left anymore, it can stay there, i just want to get rid of the space between the column with the thumbs and the actual image.

Edit:

Code:

#featured ul.ui-tabs-nav li {
    color: #666666;
    font-size: 12px;
    padding: 1px 0 1px 13px;
}

change the padding line to:
padding: 1px 0 1px 0px;

Budget101 08-14-2011 07:35 PM

Quote:

Originally Posted by Wordplay (Post 2233290)
and can you help me make the descripton align on the left rather than center,

Find:

Code:

#featured .info p{
    margin:0 5px;
    font-family:Verdana; font-size:11px;
    line-height:15px; color:#f0f0f0;
}

Use this instead:

Code:

#featured .info p {
    color: #F0F0F0;
    font-family: Verdana;
    font-size: 11px;
    line-height: 15px;
    margin: 0 5px;
    text-align: left;
}

as for:
Quote:

and make it take away 600px rather than what it is taking away right now?
I'm not sure I understand what you need- can you reword your question?

Budget101 08-14-2011 07:37 PM

Quote:

Originally Posted by insaneoz (Post 2204776)
You should use: ForumSlider by Forum-Skins.com

https://vborg.vbsupport.ru/showthread.php?t=264419

It's amazing and automatic!!

It SUCKS, you can only use 3 Slides and then you have to PAY for it. Thumbs Down.

chabit77 08-15-2011 07:44 AM

Quote:

Originally Posted by Budget101 (Post 2233474)
Ok, in setting this up I am seeing the following issue- the text description (preview text) doesn't appear in the bottom under the title of the CMS slider. (using recent_section_articles.php) Any ideas how to fix?


Thanks!

same problem for me. any ideas?

bosanci28 08-16-2011 02:59 AM

hi,
i used to have a skin done for se (social engine script) that had similar slider ,and from what i remember you can add how many pictures you want to the slider...

if anyone wants to look into that script/skin to extract the files need it for vbulletin to make it work and release it here free ,

screen:

https://vborg.vbsupport.ru/external/2011/08/52.png


sol let me know,

thanks,

angeljs 09-16-2011 08:35 PM

Hi, something strange is happening with this mod. I have forums that I use for downloads with file and image attachments for each post, but for some reason the slider is pulling the zip files instead of the image files!

sweetpotato 09-21-2011 04:56 AM

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

I installed it but does not work. Could you please instruct more detail please?
Thanks,

Toorak Times 09-23-2011 01:36 AM

Hi guys, we have downloaded but have yet to install, I am on 4.14 now and am upgrading to 4.16/7 today, or do I have to upgrade to 4.15 first?

AndrewSimm 01-05-2012 05:18 AM

I cant get any of the images that come with the slider to work.

AndrewSimm 01-05-2012 05:19 AM

actually to be exact none of the css is working

illusioNtEk 01-28-2012 10:14 PM

Im having issues installing this mod... im willing to pay somebody to help me add this to my forums... plz help me!

Toorak Times 01-29-2012 02:28 AM

Hi Guys second time I 've tried, any help please?

hoof 04-13-2012 10:46 AM

Perfect...Exactly what I was looking for, thank you. Worked like a charm.

acmalin927 04-13-2012 07:40 PM

the picutures do not scroll for me..I see them... but they are stacked..... any help with that?

AndrewSimm 05-04-2012 04:29 PM

I got everything working and it pulls from my CMS like I want. Only 2 issues. 1st, for the few seconds the page is loading it shows the second image of the slider under the first (Main image). The 2nd issue is I am not getting the preview text, just the title.

Mark_Zuckerberg 09-27-2012 07:50 PM

will this work for one category or can we add more then one and will it be updated atomically with the threads? reply me so i should go for it :)

AndrewSimm 11-19-2012 02:19 AM

Quote:

Originally Posted by Mark_Zuckerberg (Post 2369086)
will this work for one category or can we add more then one and will it be updated atomically with the threads? reply me so i should go for it :)

It works for the sub categories as well

BoostedK20 01-19-2013 01:29 AM

I've been messing with this for almost 3 hours now. I have vBadvanced CMPS and I'm just not getting this to work at all. Just got this error: Fatal error: Class 'vBulletinHook' not found in /home/content/21/7557321/html/forums/includes/class_bbcode.php on line 3289

And I don't know where to put this: ob_start();
echo '<div>';
echo '<center>';
require_once './clientscript/slider/slider.php';
echo '</center>';
echo '</div>';
$output=ob_get_contents();
ob_end_clean();

Konstanta 02-03-2013 10:20 AM

How to enter the php code, and the slider does not display a blank window with a blue elephant and php icon

apn3a 06-11-2013 09:29 AM

Hello

Any idea why does not work with IE 10 ?

Thank you


All times are GMT. The time now is 12:59 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.05936 seconds
  • Memory Usage 1,861KB
  • 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
  • (7)bbcode_code_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (39)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