e107help.org Q&A
0 like 0 dislike

Hello Guys and girls :) My site is on www.server-service.dk 

I need a second scroller for customers recommendations. 
At the moment I´m using news scroller for scenarios from my real life working with computers and servers - it takes the content from defined articles in news section. 

I want the same function as news scroller, but in a another scroller menu that is just for my customers recommendations - and I dont know If I must find another plugin and which one ? 

Im used to set up homepages in e107 but I cant seam to find this solution  smiley help ?
 

 

e107 version 107 v. 1.04
in Plugins by (22 points) 1 1 1
Please try to define the goal : is it 'real'news or to be seen as 'commenting' or appreciation from clients ? You could use different plugins (still found) http://tgtje.nl/news.php example : front page right side Top 2 run on news but 'some small changes are made for rendering the news ITEM. The last one is a manual added (txt) based (top = news ticker (madmonk) 2nd = news scroller NLSTART 3rd = quick news ..R. Uceda ) more info needed? contact

7 Answers

0 like 0 dislike
I just want to add a second content scroller independant of news section
by (22 points) 1 1 1
0 like 0 dislike

For independence you could use ( example) aacgc's content slider (manual based) or any other 

You could also wrap an own jquery sliding module.. it is up to you (you do not all the basics to do if you just want to add a plugin (menu) withour 'real' installment.Based on plugin or by own created menu (custompages/menus) both will do. Or even bind in plain marquee It is all up to you how you want it to act and/or being displayed.

 

by (2.9k points) 6 9 10
0 like 0 dislike

Sorry about writting here, but i keep recieve "Important: Please enter the version of e107 which is applicable to your question!".

 

Hello all, I'm still using ver 1.0.4, but I want to upgrade to ver.2.

I'm using theme with News slider showing last 4 news with title and image (you can see it working at http://targovishte.info). I have problem with the correct path for the news images, in ver.1 all news images goes to /e107_images/newspost_images and slider.sc looks like this:

global $sql,$tp;

$ret = "";


$ret .= "<div id='feature_list'>";

$sql = new db;
$qry = "SELECT * FROM #news WHERE news_render_type = 0 ORDER BY news_id DESC LIMIT 0,4";
if($sql->db_Select_gen($qry)){

                 $ret .="<ul id='tabs'>";
                 
                 while ($row = $sql->db_Fetch()){
             $news_id = $row['news_id'];
                  $title = $row['news_title'];    
             $body = mb_substr($row['news_body'], 0, 40);           
                  $image = $row['news_thumbnail'];  
                
                            $ret .="<li>
                                        <a href='javascript:;'>
                                            <img src='".e_IMAGE."newspost_images/".$image."' alt='' />
                                    </a>
                                    </li>";
                   }                
                   $ret .="</ul>";
                   
                   $qry = "SELECT * FROM #news WHERE news_render_type = 0 ORDER BY news_id DESC LIMIT 0,4";
           if($sql->db_Select_gen($qry)){
           
           $ret .="<ul id='output'>";
                   
                     while ($row = $sql->db_Fetch()){
               $news_id = $row['news_id'];
                    $title = $row['news_title'];    
               $body = mb_substr($row['news_body'], 0, 80);            
                    $image = $row['news_thumbnail'];

                 $ret .="<li>
                <a href='".e_HTTP."news.php?item.".$news_id."'><img src='".e_IMAGE."newspost_images/".$image."' alt='' /> </a>
                <a href='".e_HTTP."news.php?item.".$news_id."' title='".$title."'><h3>".$title."</h3></a>
                                    </li>";                     
                     }
                 $ret .="</ul>";
                     }
}
$ret .="</div>";


return $ret;
break;

In db, in news_thumbnail column, was only the name of the image file used for the news - image.jpg for example and the code worked fine. Now in this db cell goes something like {e_MEDIA_IMAGE}2015-01/378_6b7ecf2d77bdab2ad08adb7e9a5fb5accbe3651a.jpg and I dont know how to put this path in my slider.sc.

Is it some new constant or something? Any help will be welcome, thanks.

by (5 points)
0 like 0 dislike

Look at news plugin in file news_carousel_menu.php (in V2 this is exactly news slider) and look at way how it works with images.  In V2 are all images in media folder sorted by months (I really dislike this) and  thumbUrl makes from {e_MEDIA_IMAGE} normal displayed images.  You can look at http://www.mvknovemesto.sk/ to see news_carousel_menu works, but I quote:  "do note that v2 is not stable yet and should only be used for testing!"  

by (1.7k points) 11 37 50
0 like 0 dislike

Thanks Tgjte and Jimako for nice suggestions -
Kumboom , maybe remove your question to another page soc its not related to this issue. 

I will get back to you as soon as I have tried ur solutions - looks great :) smiley

by (22 points) 1 1 1
Welcome to e107 Q&A, where you can ask questions and receive answers from other members of the e107 community.
852 questions
1,248 answers
2,171 comments
5,724 users