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)

DoDe 11-29-2011 10:08 AM

Yes I did, it's working fine...
Is your board on local or on the webserver?

Loversama 11-29-2011 11:19 AM

Quote:

Originally Posted by DoDe (Post 2272998)
Yes I did, it's working fine...
Is your board on local or on the webserver?

webserver..

www.SinfulShadows.com

however when the plugin is loaded it only loads 20% of the time, as the database errors while its half broken so the plugin is disabled.

Not sure what to do about it, but I really really want to get this working, I want to put the slider in just above the navbar (thats the reason I don't want it as a widget or anything else)

Mooff 11-30-2011 11:02 PM

Quote:

Originally Posted by karlm (Post 2272814)
I wish to make use of this in different areas (categories) of the site, I've followed the instructions on how to do that from the FAQ.
I made a separate folder and gave it 777 permissions - it reflected the standard logo. However, once I add the code from the FAQ for categories....

Code:

    node.publishdate < '. vb::$db->sql_prepare($time) .' AND
        category.categoryid IN ( 9 )
        GROUP BY node.nodeid

It stops working entirely and shows only a blank slate.

please try
Code:

    node.publishdate < '. vb::$db->sql_prepare($time) .' AND
        category.categoryid = 9
        GROUP BY node.nodeid

@Coolbluelogo
I need more debug, please follow the faq

@intruder
untested:
find
Code:

   
$output_bits = '
    <link rel="stylesheet" href="' .$slider_img_filepath. 'nivo-slider.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="' .$slider_img_filepath. 'nivo-slider_uf_theme.css" type="text/css" media="screen" />
    <div style="height:' . $maxheight . 'px;">
    <div id="wrapper">

replace with:
Code:

$newheight = $maxheight + 42;
$output_bits = '
    <link rel="stylesheet" href="' .$slider_img_filepath. 'nivo-slider.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="' .$slider_img_filepath. 'nivo-slider_uf_theme.css" type="text/css" media="screen" />
    <div style="height:' . $newheight . 'px;">
    <div id="wrapper">

and in the css file which you uploaded to your server find this part:
Code:

.nivo-caption {
    background: none repeat scroll 0 0 #0D2132;
    bottom: 0px;
    color: #FFFFFF;
    left: 0;
    opacity: 0.4;
    position: absolute;
    width: 100%;
    z-index: 8;
}

and change the bottom value to -42px

@Loversama
I need more information on the database error so i can help.

Loversama 12-01-2011 08:09 AM

Quote:

Originally Posted by Mooff (Post 2273510)
@Loversama
I need more information on the database error so i can help.

I will post everything I have done up to now and hopefully you can point out where I am going wrong ^___^


Plugins & Products -> Plugin Manager -> Add New Plugin

Product = vBulletin
Hook Location = process_templates_complete
Title = nivo_slider
Plugin PHP Code =

PHP Code:

// DEBUG MODUS !
$debug_modus true;

if(
$debug_modus === false)
{
    
ob_start();
}

//nivo slider - uf - vb.org version
//set these values as you need them:

//your slider folder - has to be read and writeable
//folder where all slider files are saved
$slider_img_filepath '/slider/';   

//picture width and height !same as in the CSS FILE!
$maxwidth 650;                                  
$maxheight 250;    

//do you want images without previewimage to be shown? slider is using the fallback then
$show_articles_without_image false;           

//picture shown if your articles has no previewpicture
$fallback_img $slider_img_filepath 'uf_fallback_slider.png';  

//hardcoded maximum is 20 - if you want more just ask
$number_of_articles_shown 10;                                
            
//lengh in characters of the article descriptions
$description_length 95;

//stretch picture or crop them? false = strechting (default) true = cropping (beta)
$crop false;


//Debug Messages
if($debug_modus)
{
    echo 
"<span style='color:red;'>DEBUG MODE is ON! </span><br />";
    echo 
"slider_img_filepath: $slider_img_filepath <br />";
    echo 
"width: $maxwidth   height: $maxheight <br />";
    echo 
"Strech or Crop? $crop <br />";
    echo 
"show_articles_without_image: "
        
var_dump($show_articles_without_image); 
        echo 
" <br />";
    echo 
"fallback_img: $fallback_img <br />";
    echo 
"#img: $number_of_articles_shown <br />";
    echo 
"description_length: $description_length <br />";
    echo 
'directory ' DIR '<br />';

}




$article_type vb_Types::instance()->getContentTypeID("vBCms_Article");
$time TIMENOW;
 
if(!
extension_loaded('gd'))
{
    echo 
'<span style="color:red">Error occurred:</span> Your System does not support the GD-Libary. Please install the GD-Libary.<br />';
}
       
    
$article_get vB::$db->query_read('
        SELECT
            article.pagetext,
            article.previewimage,
            node.url,
            node.publishdate,
            node.parentnode,
            parentnode.url AS parenturl,
            thread.replycount,
            info.title,
            node.nodeid,            
            GROUP_CONCAT( category.category )
        FROM
            '
.TABLE_PREFIX.'cms_article AS article INNER JOIN
            '
.TABLE_PREFIX.'cms_node AS node 
                ON (node.contentid = article.contentid AND node.contenttypeid = ' 
vb::$db->sql_prepare($article_type) .') INNER JOIN
            '
.TABLE_PREFIX.'cms_nodeinfo AS info 
                ON info.nodeid = node.nodeid INNER JOIN
            '
.TABLE_PREFIX.'cms_node AS parentnode 
                ON parentnode.nodeid = node.parentnode LEFT JOIN
            '
.TABLE_PREFIX.'thread AS thread ON thread.threadid = info.associatedthreadid LEFT JOIN
            '
.TABLE_PREFIX.'cms_nodecategory AS nodecategory ON nodecategory.nodeid = node.nodeid LEFT JOIN
            '
.TABLE_PREFIX.'cms_category AS category ON nodecategory.categoryid = category.categoryid 
        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'
);

    
$database_articles = array();
    
    
/* my version of sorting the articles via relevance - i'll keep it in case someone is interested*/
    
while($article vB::$db->fetch_array($article_get))
    {
        
$article['value'] = ( - ($time $article['publishdate'] ) / 86400 ) * ( - ($time $article['publishdate'] ) / 86400 ) * ( - ($time $article['publishdate'] ) / 86400 ) + (10 $article['replycount']);
        
$database_articles[] = $article;        
    }
    
    foreach(
$database_articles as $c => $key)
    {
        
$sort_value[] = $key['value'];
    }
    
    
array_multisort($sort_valueSORT_DESC$database_articles);    
    
    
//
    
$i 0;
    
$section_array = array();
    
$featured_articles = array();
    
    foreach(
$database_articles AS $article)
    {
        
$section_array[$article['parentnode']]++;

        
$categories explode(',' $article['GROUP_CONCAT( category.category )']);
     
        if(
$show_articles_without_image == true OR $article['previewimage'])
        {
            if(
$section_array[$article['parentnode']] < 50 AND $i $number_of_articles_shown)
            {
                if(
$debug_modus == true OR !file_exists($slider_img_filepath 'slide_' $article['nodeid'] . '.jpg'))
                {
                    
//rebuild image to the height and width we want in the slider 
                    //called sprite since i got the code from our sprite addon :P
                    
$sprite imagecreatetruecolor($maxwidth$maxheight);
                    if(
is_resource($sprite) AND $article['previewimage'] )
                    {                                   
                        
$imageinfo getimagesize($article['previewimage']);
                        if(
is_array($imageinfo))
                        {   
                            
$image null;
                            switch(
$imageinfo[2])
                            {
                                case 
IMAGETYPE_PNG:
                                
$image imagecreatefrompng($article['previewimage']);
                                break;
                                case 
IMAGETYPE_GIF:
                                
$image imagecreatefromgif($article['previewimage']);
                                break;
                                case 
IMAGETYPE_JPEG:
                                
$image imagecreatefromjpeg($article['previewimage']);
                                break;
                                default:
                                echo 
'<span style="color:red">Error occurred:</span> Unknown image format. ' $article['previewimage']. '<br />';
                                break;                        
                            }
                            
                            if(!
is_resource($image))
                            {
                                
//resiziing did not work - we are using the fallback image.
                                
echo '<span style="color:red">Error occurred:</span> imagecreation failed. ' $article['previewimage']. '<br />';
                                
$article['previewimage'] = $fallback_img;
                            }
                            else
                            {
                                
$img_width $imageinfo[0];
                                
$img_height $imageinfo[1];                            
                                
                                if(
$crop == false)
                                {                                    
                                    
imagecopyresampled($sprite$image0000$maxwidth$maxheight$img_width$img_height );
                                    
imagedestroy($image);
                                }
                                else
                                {
                                    
//cropping
                                    
$ratiox $maxheight $img_height ;
                                    
$ratioy $maxwidth $img_width ;
                                    
$new_height $img_height;
                                    
$new_width $img_width;
                                    
                                    if (
$maxheight $img_height OR $maxwidth $img_width)
                                    {
                                        if(
$ratiox $ratioy)
                                        {
                                            
$new_height round($img_height $ratiox);
                                            
$new_width round($img_width $ratiox);
                                        }
                                        else
                                        {
                                            
$new_height round($img_height $ratioy);
                                            
$new_width round($img_width $ratioy);
                                        }                                        
                                    }
                                    
$cropx $new_height $maxheight;
                                    
$cropy $new_width $maxwidth;
                                    
                                    
imagecopyresampled($sprite$image0000$new_width$new_height$img_width$img_height);
                                    
imagedestroy($image);
                                    
                                }
                                
                                
                                
$img_filepath $slider_img_filepath 'slide_' $article['nodeid'] . '.jpg';
                                
$success imagejpeg($spriteDIR  . ($img_filepath[0] != DIRECTORY_SEPARATOR ?  DIRECTORY_SEPARATOR '') . $img_filepath);
                                
imagedestroy($sprite);
                                if(
$success)
                                {
                                    
$article['previewimage'] = $img_filepath;
                                }
                                else
                                {
                                    
$img_filepath DIR  . ($img_filepath[0] != DIRECTORY_SEPARATOR ?  DIRECTORY_SEPARATOR '') . $img_filepath;
                                    echo 
'<span style="color:red">Error occurred:</span> imagejpeg failed. ' $article['previewimage']. '<br />
                                    directory: '
$img_filepath ;
                                    
                                    
$article['previewimage'] = $fallback_img;
                                }
                            }
                            
                        }
                        else
                        {
                            
//resiziing did not work - we are using the fallback image.
                            
echo '<span style="color:red">Error occurred:</span> picture is not readable.' $article['previewimage']. '<br /> ';
                            
$article['previewimage'] = $fallback_img;
                        }                  
                    }
                    else
                    {
                        
//resiziing did not work - we are using the fallback image.
                        
echo '<span style="color:red">Warning:</span> article has no previewimage or sprite is no ressource. ' $article['previewimage']. '<br />';
                        
$article['previewimage'] = $fallback_img;
                    }
                }
                else
                {
                    
//we already have the image, no need to resize or crop anything
                    
$article['previewimage'] = $slider_img_filepath 'slide_' $article['nodeid'] . '.jpg';
                }

                
/*remove everything from the previewtext - html and bb. I do not want bold or colored text there. Cut to a decent length.*/        
                
$article['pagetext'] = strip_bbcode($article['pagetext'], truetruefalsetruefalse);

                
$article['previewtext'] = strip_tags($article['pagetext'], '<a>');
                    
                
$len $description_length;
                if ( 
strlen($article['previewtext']) > $len )
                {                    
                    
$article['previewtext'] = substr$article['previewtext'] , strrpossubstr$article['previewtext'], 0$len), ' ' ));
                }   

                
$i++;
                
//Build Array
                
$article_neu = array();
                
$article_neu['description'] = '<h2 style="font-weight:bold; font-size: 14px">'$article['title'].'</h2><span>'$article['previewtext'] .'</span> <a href="/content.php?r=' $article['nodeid'] . '-' $article['url'] . '">read on</a>';
                
$article_neu['htmlcaptionname'] = 'htmlcaption' $article['nodeid'] ;
                
$article_neu['picture'] = '<a href="/content.php?r=' $article['nodeid'] . '-' $article['url'] . '"><img src="'.$article['previewimage'].'" alt="" title="#htmlcaption'$article['nodeid'] . '" /></a>';
                
                
$featured_articles[] = $article_neu;
            }
        }
    }
    
    
//Randomize Array
    //shuffle($featured_articles);

    //Debug Messages
    
if($debug_modus)
    {
        echo 
'#articles - featured and databasepull ';
        
var_dump(count($featured_articles));
        
var_dump(count($database_articles));
    }

    
$output_bits '
    <link rel="stylesheet" href="' 
.$slider_img_filepath'nivo-slider.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="' 
.$slider_img_filepath'nivo-slider_uf_theme.css" type="text/css" media="screen" />
    <div style="height:' 
$maxheight 'px;">
    <div id="wrapper">
        <div class="slider-wrapper theme-uf">
            <div class="ribbon"></div>
            <div id="slider" class="nivoSlider">'
;
            
                foreach(
$featured_articles AS $article)
                {
                    
$output_bits .= $article['picture'];
                }
            
$output_bits .= '
            </div>'
;
            
            foreach(
$featured_articles AS $article)
            {
                
$output_bits .= '<div id="' $article['htmlcaptionname'] . '" class="nivo-html-caption">' $article['description'] .'</div>';
            }
            
            
$output_bits .= '         
        </div>

    </div>
    <script type="text/javascript" src="' 
.$slider_img_filepath'jquery-1.6.1.min.js"></script>
    <script type="text/javascript" src="' 
.$slider_img_filepath'jquery.nivo.slider.pack.js"></script>
    <script type="text/javascript">
    $(window).load(function() {
        $("#slider").nivoSlider();
    });
    </script>
    </div>
    '
;
        
$output $output_bits;
 
if(
$debug_modus === false)
{
    
ob_end_clean();        

}

$templater = \vB_Template::create('vbcms_page');
$templater->register('nivo_slider'$output);
$template_hook['process_templates_complete'] .= $templater->render(); 

Styles & Templates -> vbcms_page
PHP Code:

{vb:raw header}
{
vb:raw nivo_slider}
{
vb:raw navbar}
{
vb:raw toolbar

Then the website will only some times load, half the time it will get:

Quote:

Database error
The database has encountered a problem.

And the other time I get:

Quote:

DEBUG MODE is ON!
slider_img_filepath: /slider/
width: 650 height: 250
Strech or Crop?
show_articles_without_image: bool(false)
fallback_img: /slider/uf_fallback_slider.png
#img: 10
description_length: 95
directory /home1/fadertwi/public_html
Error occurred: picture is not readable.http://www.sinfulshadows.com/attachm...tid=255&cid=24
Error occurred: picture is not readable.http://www.sinfulshadows.com/attachm...tid=256&cid=24
Error occurred: picture is not readable.http://www.sinfulshadows.com/attachm...tid=254&cid=24
Error occurred: picture is not readable.http://www.sinfulshadows.com/attachm...tid=252&cid=24
Error occurred: picture is not readable.http://www.sinfulshadows.com/attachm...tid=250&cid=24
Error occurred: picture is not readable.http://www.sinfulshadows.com/attachm...tid=251&cid=24
Error occurred: picture is not readable.http://www.sinfulshadows.com/attachm...tid=248&cid=24
#articles - featured and databasepull int(7) int(7)

I also get a error in the PHP which does not display onscreen but in the logs which is:

Quote:

[01-Dec-2011 02:04:44] PHP Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home1/fadertwi/public_html/includes/class_bootstrap.php(555) : eval()'d code on line 505
I have also tried the method of changing the article type as you suggested.

Quote:

$article_type = vb_Types::instance()->getContentTypeID("vBCms_Article");
to

Quote:

$article_type = 24;
which is the article type in the DB however that causes the process_templates_complete to not allow any other hooks, or it crashes or something..


So yea pretty stuck, but it'd be amazing if I could fix this, I am re-modling my website at the moment and I really need the slider in my header! :D

my website is www.SinfulShadows.com however I will have to disable the plugin as my members will not be able to access my site freely while its crashing.

Booyakan 12-05-2011 03:25 AM

Is it possible to have this on forumhome if we do not have cms? And possible instructions if so?

I tried the static code with forumhome instructions from the FAQ but could not get it working.

Mooff 12-07-2011 01:12 PM

@Loversama
I thought that '\' Error was solved some pages ago?

the "Error occurred: picture is not readable." comes from fopen or allow_url open not beeing ON in the server configuration (i guess)

the DB-Error. I don't know, without an error message what that database error is i'm lost here.

@Booyakan
Without CMS you can only use the static version and that should be possible on forumhome either via plugin and templatehook. Or editing the template itself, or using the notice system - depending on where you want the static version to appear.

Booyakan 12-08-2011 03:25 AM

Quote:

Originally Posted by Mooff (Post 2275535)
@Loversama
I thought that '\' Error was solved some pages ago?

the "Error occurred: picture is not readable." comes from fopen or allow_url open not beeing ON in the server configuration (i guess)

the DB-Error. I don't know, without an error message what that database error is i'm lost here.


@Booyakan
Without CMS you can only use the static version and that should be possible on forumhome either via plugin and templatehook. Or editing the template itself, or using the notice system - depending on where you want the static version to appear.

Thank you, got it!

DoDe 12-13-2011 06:46 PM

Hi @,

After I moved to another host I receive the following warrning and the images are not pulled:
PHP Code:

DEBUG MODE is ON
slider_img_filepathslider
width950 height390 
Strech 
or Crop
show_articles_without_imagebool(false
fallback_imgslider/uf_fallback_slider.png 
#img: 10 
description_length95 
directory 
/home/dode/www

Warning
array_multisort() [function.array-multisort]: Argument #1 is expected to be an array or a sort flag in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 110 

I would appriciate any help.

Thanks!

Problem solved: problem with the templates during migration.

kenp 12-13-2011 07:39 PM

The slider seems to be working for me which is great but it continues to target articles that do not have images. I have the widget code set to false; for showing sections without image, yet it continues to do so. Any one have an idea?

Valker 12-13-2011 09:13 PM

Hi !

2 questsions:

Does it work with nivo slider 2.7 and how do i update?

and

how do i limit the transistion effekt to fade ?

Edit: and i?ve got a third request:

does it lag ?
http://www.trinitas-gilde.com/content.php

I?ts lagging a bit in FF, in IE it lags very strong but in Chrome or Opera its totally fluid.
(at first it lagged only at a friends pc, but i switchted mine a few day for a few day with for an upodate, now it lags on this (little) pv even.)

Actually he even made a video:

http://www.youtube.com/watch?feature...&v=ird7NFxDHig

Dr.osamA 12-14-2011 08:45 AM

thank you bro

installed

Mooff 12-14-2011 09:07 PM

@kenp
please post the debug (last faq question)

@Valker
nivo slider 2.7 - yes, it should work with nivo slider 2.7 - i have modified our nivo slider jquery file so i can't test it right away, but in theory you just have to switch the jquery.nivo.slider.pack.js file which is included in the first post and update that file on your server with their new version.
yes it does lag quite a bit, first you have two jquery files included on your site (check the faq what to change) and if that doesn't help change the 1.6.4 jquery file you are using with a different/newer version.
Your site looks awesome btw. :)

Valker 12-15-2011 09:08 PM

Thanks :D!
I gonna check this tomorrow and will report :D

Valker 12-16-2011 02:52 AM

Omg thanks a lot, it worked.

but, i didn?t figured out how to set the transistion effect. On nivo slider?s site they say:

Quote:

As of v2.7 you can now override a slides transition using the data-transition attribute. For example:

<img src="images/slide1.jpg" alt="" data-transition="slideInLeft" />

The above code will force this slide to use the slideInLeft transition every time it appears. It overrides all other effect settings.
but i didn?t find something like this in the pack code or the widget file. ;/

inigo 12-17-2011 06:23 PM

After it was working correctly I?ve begun to receive this error:

Code:

XML tag name mismatch (expected meta)
[Stop in this errorr] </head>
jquery....min.js (l?ne 4)
XML tag name mismatch (expected meta)
[Stop in this error] </head>
jquery...pack.js (l?ne 4)
XML tag name mismatch (expected meta)
[Stop in this error] </head>
jquery....min.js (l?ne 4)
$("#slider").nivoSlider is not a function
[Detener en este error] $("#slider").nivoSlider();

In firebug, and the images and text are showing but not the slider, only one below the other.

Can you help me with this? Any idea? I have read this topic, but i haven't find this issue explained.

Thanks in advance for any help!

Valker 12-19-2011 04:42 PM

hm may i help you ? do you give me a link perhaps ?
I´m not sure why this error occure...did you some changes is your vb ? updates or such ?
For me it looks like the js files arn´t connected...but i´m not sure.

The Rocketeer 12-19-2011 11:00 PM

hey Mooff, The Slider is causing refresh problems even after I clear the cache in the admin CP and also after clearing it on my browser. The Slider doesn't show the newly Featured Article.

is there a fix?

kenp 12-21-2011 03:44 AM

I would like to have the slider set o a sub-domain to hopefully reduce the amount of requests on the server. I do not see where in the uploaded files I can tell it to do so. Can you point me in the right direction please.

rose123 12-22-2011 02:28 AM

This works great for me but I was expecting when user clicks on slide, it will direct the user to original page where article is published.
What happens is
I have slide show on home page and primary content on home page
When user clicks on slide, it displays the clicked article under primary content and does not direct the user to original page where article is published.
Thanks in advance for your time.

Valker 12-22-2011 08:54 AM

Hi, its me again ;S

So, we moved our site on another server caus of namechange.
-> http://www.minions-guild.com/content.php
I actually updated the version to 4.1.9 - but now the slider doen?t work. I reinstalled it as it was originally (not newest jquery and newest slider version, which worked btw) but, its white, so i guess it has something to do with java.

vb updated some js files as i saw....does this - 4.1.9 - uccure the issue ?

doctorsexy 12-22-2011 09:00 AM

I had the opposite didnt work well with 4.1.8 works well with 4.1.9

Valker 12-22-2011 09:13 AM

we love vb :)

The Rocketeer 12-22-2011 09:14 AM

I am also having problems, It has stopped displaying any new featured articles :(
I placed some new articles in the featured articles category like I always do but the slider only displays the old ones. It was working fine few weeks ago but now no new article is shown in the slider. Do I have to manually deselect older featured articles to make way for new ones?

Hopefully Mooff will be back here soon, after Christmas and can help us all with the problems :)

Valker 12-24-2011 06:58 AM

so i rerolled my forum once again to 4.1.7 - and i never ever will update it again :D

Neptun 12-24-2011 02:52 PM

i have VBSEO running - is there a fix to get it working with vbseo - i get online the whole urls not rewritten with seo ?!

Thank you for help - the rest works great - perfect hack

basilrath 01-01-2012 05:42 PM

Love this mod

works fab with 4.1.9 also

Just worth mentioning the codeline
PHP Code:

$article_neu['picture'] = '<a href="/content.php?r=' $article['nodeid'] . '-' $article['url'] . '"><img src="'.$article['previewimage'].'" alt="" title="#htmlcaption'$article['nodeid'] . '" /></a>'

youl probably have to drop the r= out for direct links to be achieved correctly

Plus if your board has a url like mine such as

http://www.tabletennistalk.co.uk/forum/forum.php

your slider folder still should be 'slider/'

which is confusing some i think and will rectify many errors

DoDe 01-08-2012 06:30 PM

Dear Mooff,

I have the micro-cart system installed on my vbulletin with the slider on the main CMS.
Is it possible to take the products from micro-cart to show on the nivo-slider?
I mean if I put a product on sell throw micro-cart and I also put there a picture for it then I would like it to show on nivo-slider along with the proper link to that product.

Thanks in advance!

singh9211 01-09-2012 06:00 AM

really liked the mod, thanks for the contribution......

Mooff 01-13-2012 08:08 PM

Sorry guys for the long wait, i have been really busy lately.

Quote:

Originally Posted by DoDe (Post 2285319)
Dear Mooff,

I have the micro-cart system installed on my vbulletin with the slider on the main CMS.
Is it possible to take the products from micro-cart to show on the nivo-slider?
I mean if I put a product on sell throw micro-cart and I also put there a picture for it then I would like it to show on nivo-slider along with the proper link to that product.

Thanks in advance!

That would need a different database query. But yes, it is possible.


Quote:

Originally Posted by rose123 (Post 2279935)
This works great for me but I was expecting when user clicks on slide, it will direct the user to original page where article is published.
What happens is
I have slide show on home page and primary content on home page
When user clicks on slide, it displays the clicked article under primary content and does not direct the user to original page where article is published.
Thanks in advance for your time.

I'm sorry, can you please rephrase your question or provide links what happens and what behaviour you would prefer?

Quote:

Originally Posted by kenp (Post 2279607)
I would like to have the slider set o a sub-domain to hopefully reduce the amount of requests on the server. I do not see where in the uploaded files I can tell it to do so. Can you point me in the right direction please.

I'm sorry, can you please rephrase your question?

Quote:

Originally Posted by The Rocketeer (Post 2279232)
hey Mooff, The Slider is causing refresh problems even after I clear the cache in the admin CP and also after clearing it on my browser. The Slider doesn't show the newly Featured Article.

is there a fix?

Are you running the latest version? Can you link me to your site?

edyy 01-14-2012 09:02 AM

nice mod, and thanks for the great contribution

I have a small problem with the mood , it works perfect but it doesn't load the images from articles it gets the standard one from the slider folder. I think the problem is because I have the CMS in www.site.com and the forum in www.forum.site.com. When I try to see an atachament from an article the link looks like www.forum.site.com/atachamnets/image.jpg. And I also use vbseo but I think that is not a problem.

jb-net 01-16-2012 06:40 AM

Excellent vb4 mod!

I'm not the best php coder so I would like to ask you:

Is there a possibility to add a static slide independently from the last articles?

Example:
Slide 1 - 3 ... the last articles from the cms
Slide 4 ... a static one, per example an advertisement for the vbulletin iphone app, linked to an external website (like itunes store)

Is there a easy way to realize something like this?

The Rocketeer 02-06-2012 03:38 AM

@Mooff

Hey Mooff, is there anyway to make this thing work without fopen please? then if you could please post detailed instructions?
One of our sites was recently compromised by a exploit (JA Agent), and we have spent weeks repairing things and switching servers. So a bit hesitant to allow_url_fopen On. Even the new server host said I could try adding this code php_value allow_url_fopen On to the .htaccess, I am still a bit hesitant in doing so.

The Rocketeer 02-06-2012 08:47 PM

Also Mooff, Its giving me some issues, all I get is the fallback image, and also it doesn't update newly chosen articles anymore. I am not sure what the problem is, I have fopen from the .htaccess file. I here is the debug

Code:

DEBUG MODE is ON!
slider_img_filepath: frontpage_nivo_slider/
width: 650 height: 250
show_articles_without_image:
fallback_img: frontpage_nivo_slider/uf_fallback_slider.png
#img: 10
description_length: 95
Error occurred: picture is not readable.frontpage_nivo_slider/uf_fallback_slider.png
Error occurred: picture is not readable.frontpage_nivo_slider/uf_fallback_slider.png
Error occurred: picture is not readable.frontpage_nivo_slider/uf_fallback_slider.png
Error occurred: picture is not readable.frontpage_nivo_slider/uf_fallback_slider.png
Error occurred: picture is not readable.frontpage_nivo_slider/uf_fallback_slider.png
Error occurred: picture is not readable.frontpage_nivo_slider/uf_fallback_slider.png
Error occurred: picture is not readable.frontpage_nivo_slider/uf_fallback_slider.png
Error occurred: picture is not readable.frontpage_nivo_slider/uf_fallback_slider.png
Error occurred: picture is not readable.frontpage_nivo_slider/uf_fallback_slider.png

here's a link to my the forum
Code:

tomorrowsgaming.com

iyama 02-08-2012 02:21 PM

Installed buth only see the uf_fallback_slider.png with the articel txt.

The Rocketeer 02-10-2012 09:18 AM

Also same problem here. We need Mooff. :(

basilrath 02-10-2012 12:55 PM

Paths are incorrect

i had same issue

iyama 02-13-2012 08:09 AM

path is correct here, and stil noo images.

basilrath 02-13-2012 04:43 PM

Did you read this and have you tried it?

Quote:

Love this mod

works fab with 4.1.9 also

Just worth mentioning the codeline
PHP Code:
$article_neu['picture'] = '<a href="/content.php?r=' . $article['nodeid'] . '-' . $article['url'] . '"><img src="'.$article['previewimage'].'" alt="" title="#htmlcaption'. $article['nodeid'] . '" /></a>';
youl probably have to drop the r= out for direct links to be achieved correctly

Plus if your board has a url like mine such as

http://www.tabletennistalk.co.uk/forum/forum.php

your slider folder still should be 'slider/'

which is confusing some i think and will rectify many errors

UK CHI3F 02-15-2012 02:30 PM

Hello, I currently have a poor image sliderat the top of my page

But love the way this is supposed to look,
unfortunately I am no expert but believe I followed the instructions correctly.

At the bottom of my site you will see the slider
http://www.xboxplayers.co.uk/site/content.php

Below is the first part of the code and the revised path was copied directly from my cpanel file manager and pasted in.

Both widget and css file have the same image sizes.

I changed the image path if no image found to true but no fallback image has appeared.

Really appreciate any help. Thanks in advance


// DEBUG MODUS !
$debug_modus = false;

if($debug_modus === false)
{
ob_start();
}

//nivo slider - uf - vb.org version
//set these values as you need them:

//your slider folder - has to be read and writeable
//folder where all slider files are saved
$slider_img_filepath = '/public_html/site/Slider';

//picture width and height !same as in the CSS FILE!
$maxwidth = 650;
$maxheight = 250;

//do you want images without previewimage to be shown? slider is using the fallback then
$show_articles_without_image = true;

//picture shown if your articles has no previewpicture
$fallback_img = $slider_img_filepath . 'uf_fallback_slider.png';

//hardcoded maximum is 20 - if you want more just ask
$number_of_articles_shown = 10;

The Rocketeer 02-15-2012 09:12 PM

nope still not working, only see fallback and old articles text. ever since the 418 upgrade this has never been working the same. now in 410 its fully broken.

where is mooff?


All times are GMT. The time now is 06:50 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.04169 seconds
  • Memory Usage 2,077KB
  • 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
  • (8)bbcode_code_printable
  • (4)bbcode_php_printable
  • (15)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