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 - United-Forum Nivo Slider Widget (https://vborg.vbsupport.ru/showthread.php?t=267024)

Mooff 08-14-2011 12:04 PM

Since the question came up some times allready:

Q: I want the slider without widget title - how to do that?
Answer:
create a new template (main style or all styles you have your slider running)
Name: vbcms_php_no_title
code:
Code:

<div class="cms_widget">
<div class="block">
<div class="cms_widget_content widget_content">
{vb:raw output}
</div>
</div>
</div>

save it.

go to widget configuration of the slider widget, change template name to
vbcms_php_no_title

save. Reload slider. Title is gone.

otectom 08-14-2011 03:20 PM

Ok, so first off, THANK YOU!!!

I have been waiting for a long time for this mod, and this one does EXACTLY what I wanted!! It installed easily and works perfectly! Please view installation on my site at http://www.teamotec.net

I have 3 ??????

1. Earlier you showed how to change the image speed, but didn't specify what file to edit. Can you please clarify this for me, I want to slow mine to a 5 second pause.

2. How can you limit the sections that the slider displays? I only want to display articles from the sections "Event Coverage" "Featured Rides" & "Photography"

3. The dots that show that you are on slide 1 of 5 display in the middle of my image instead of at the top or bottom. How can I move them up or down? (I don't particularly care where they end up)

Thanks again for this great mod!! 5 Stars, Nominated, and Marked as Installed!!!

Mooff 08-14-2011 04:23 PM

1. Not a file. That's in the php widget code, close to the bottom.

2. I'll post code for both sections and categories, since i'll link that post in the FAQ.
How to show only articles out of specific sections or categories:

for sections
find:
Code:

        WHERE
            node.setpublish = 1 AND
            node.publishdate > '. vb::$db->sql_prepare($time) .' -34560000 AND
            node.publishdate < '. vb::$db->sql_prepare($time) .'
        GROUP BY node.nodeid
        ORDER BY node.publishdate
        DESC LIMIT 20');

replace with
Code:

        WHERE
            node.setpublish = 1 AND
            node.publishdate > '. vb::$db->sql_prepare($time) .' -34560000 AND
            node.publishdate < '. vb::$db->sql_prepare($time) .' AND
            node.parentnode IN ( 4, 5 )
        GROUP BY node.nodeid
        ORDER BY node.publishdate
        DESC LIMIT 20');

For categories
Code:

        WHERE
            node.setpublish = 1 AND
            node.publishdate > '. vb::$db->sql_prepare($time) .' -34560000 AND
            node.publishdate < '. vb::$db->sql_prepare($time) .'
        GROUP BY node.nodeid
        ORDER BY node.publishdate
        DESC LIMIT 20');

replace with
Code:

        WHERE
            node.setpublish = 1 AND
            node.publishdate > '. vb::$db->sql_prepare($time) .' -34560000 AND
            node.publishdate < '. vb::$db->sql_prepare($time) .' AND
            category.categoryid IN ( 31, 1 )
        GROUP BY node.nodeid
        ORDER BY node.publishdate
        DESC LIMIT 20');

Can be combined of course, if you want that.
Be careful not to miss the AND part
In the Brackets the sections-Ids/ categories-Ids you want have to be included.
In your case it would be ( 144, 145, 149 )

In general you can see the fitting ids in the links which lead to the section or category:
For example:
/content/category/31-esport.html
Category esports on our site has the ID 31.

---- category/section part ends here - in case you followed the faq link ----

3. In the nivo-slider_uf_theme.css file

find:
Code:

.theme-uf .nivo-controlNav a {
    background: url("nivo_slider_sprite.png") no-repeat scroll 0 -30px transparent;
    border: 0 none;
    display: block;
    float: left;
    height: 22px;
    margin-right: 3px;
    text-indent: -9999px;
    width: 22px;
}

replace with
Code:

.theme-uf .nivo-controlNav a {
    background: url("nivo_slider_sprite.png") no-repeat scroll 0 -30px transparent;
    border: 0 none;
    display: block;
    float: left;
    height: 22px;
    margin-right: 3px;
    text-indent: -9999px;
    width: 22px;
    top: -120px;
}

The top value is new. Modify that to whereever you want it.

otectom 08-14-2011 05:05 PM

Mooff, thank you again. I have wanted this on my site for ages and on one rainy sunday morning I was able to add it and have it completely working and customized to my wants in a matter of hours. Support like this is what makes VB great.

FYI in the css file my code looked like this

Code:

.theme-uf .nivo-controlNav a {
        display:block;
        width:22px;
        height:22px;
        background:url(nivo_slider_sprite.png) no-repeat;
    background-position:0 -30px;
        text-indent:-9999px;
        border:0;
        margin-right:3px;
        float:left;
}

Which is different from the code you showed above. So I simply changed it to this

Code:

.theme-uf .nivo-controlNav a {
        display:block;
        width:22px;
        height:22px;
        background:url(nivo_slider_sprite.png) no-repeat;
    background-position:0 -30px;
        text-indent:-9999px;
        border:0;
        margin-right:3px;
        float:left;
    top: -120px;
}

Not a real issue, but I wanted to point it out for others that may be looking to make this same change, and aren't sure about where to make it.

GamersChallenge 08-14-2011 08:21 PM

help, the only image showing is the UF fallback image,
and yes the slider folder is read and writable.

the website is www.gamerschallenge.net

if someone could please help. really need this slider so bad.

thanx

edit: I was the FAQ and I think it might be cause the guests can't view the attachments, can anyone tell me how do I change the permissions for that? I cant find anywhere.

edit: changed the permissions settings for guest to view attachments, didnt fix the problem.

bandare 08-14-2011 08:39 PM

Are you sure you have given read and write permissions to the folder as it says in the instructions?

GamersChallenge 08-14-2011 08:44 PM

Quote:

Originally Posted by bandare (Post 2233508)
Are you sure you have given read and write permissions to the folder as it says in the instructions?

very sure.

Mooff 08-14-2011 09:36 PM

I think the slider_img_filepath is wrong.

Can't confirm without the debug messages, but as a guess, change it to:

$slider_img_filepath = 'slider/';

GamersChallenge 08-14-2011 10:00 PM

thats what it is right now, it can't be wrong since the UF does show.

and thanx for the fast reply

Mooff 08-14-2011 10:10 PM

I see. Please post the debug - last FAQ question.


All times are GMT. The time now is 09:00 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.01306 seconds
  • Memory Usage 1,756KB
  • 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
  • (9)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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