Jump to content

[Module] Prestashop 1.5 module News and articles by Reservation Partner LT


Recommended Posts

About:

News with social networking share block module lets you create and show articles in the shop. All of the articles have social network share buttons so they can be shared instantly. 

 

Features:

  • Articles are ordered by date;
  • News can to be written in several languages;
  • News link can be hooked at left, right and footer;
  • News link can be with an image and additional text;
  • Share buttons can be turned off;
  • “Read more” button can be hidden;

 

Demo:
 

Video:

 

Compatibility: 
- Prestashop 1.5.x

Support languages:
- English
- Lithuanian

 

The module is Free

 

 

Please contact me if you have any questions.

Skype: shifftiz

info@reservationpartner.com

 

 

 

rpadvancednews.zip

Edited by vekia (see edit history)
  • Like 4

Share this post


Link to post
Share on other sites

Thank you for the module,

work fine, but the block image doesn't appear

 

I see the next code:

<img width="174" height="115" alt="News" src="...shop.com/shop//shop/modules/rpaadvancednews/image.jpg"></img>

 

where I have the problem?

 

you can see here:

http://www.faelectronic.com/shop

Edited by francesc (see edit history)

Share this post


Link to post
Share on other sites

Thank you for the module,

work fine, but the block image doesn't appear

 

I see the next code:

<img width="174" height="115" alt="News" src="...shop.com/shop//shop/modules/rpaadvancednews/image.jpg"></img>

 

where I have the problem?

 

you can see here:

http://www.faelectronic.com/shop

 

The problem is that path to the picture is wrong. I believe your prestashop is misconfigured, because the module takes the pictures path from functions that work with standart CMS functionality.

 

If you need help fixing that private message me.

Share this post


Link to post
Share on other sites

The problem is that path to the picture is wrong. I believe your prestashop is misconfigured, because the module takes the pictures path from functions that work with standart CMS functionality.

 

If you need help fixing that private message me.

 

 

About:

News with social networking share block module lets you create and show articles in the shop. All of the articles have social network share buttons so they can be shared instantly. 

 

Features:

  • Articles are ordered by date;
  • News can to be written in several languages;
  • News link can be hooked at left, right and footer;
  • News link can be with an image and additional text;
  • Share buttons can be turned off;
  • “Read more” button can be hidden;

 

Demo:
 

Video:

 

Compatibility: 

- Prestashop 1.5.x

 

Support languages:

- English

- Lithuanian

 

The module is Free

 

 

Please contact me if you have any questions.

Skype: shifftiz

info@reservationpartner.com

 

More info:

http://www.prestamodulemarket.com/en/prestashop-15-modules/prestashop-15-module-news-module.html

 

 

 

This is Great module. Thanks in advance.

But there are some problem about creating Title and url. I mean that News Title not appear in site title, also the url can't made dinamic url which is same the title. How can i solve this. Thanks..

my site: http://batiknovita.com

Edited by mabrur (see edit history)

Share this post


Link to post
Share on other sites
  • 3 weeks later...

Just wanted to say THANK YOU for this module.

 

Just one question though - is there a way to display a block (let's say in the left column) showing the XY latest news in their short form? Something like the News link can be added but also in the block with "teasers" in its content.

 

Thanks

Share this post


Link to post
Share on other sites
  • 2 weeks later...

hi thanks for your module. Installed on a french prestashop 1.5.6.2, added one news that won't appear !
The block "news" is there but no link to the news i added. you know why?

 

I added title then intro and content. The news is active!

 

Another thing... it would be nice if we can add this section inside the homepage (in center).... actually only footer/right/left

 

Thanks

Edited by fulviods (see edit history)

Share this post


Link to post
Share on other sites
  • 4 weeks later...

Hi,

Thanks for great module. Is there any way to add meta-description,meta-tag & friendly url to article?

Thanks!

 

Hi did you fin a solution to add those elements to this module? I have the same need..

Share this post


Link to post
Share on other sites
  • 2 weeks later...

Thank you for your module, is really great !

Just one question : How can I put the date in french format (dd--mm-yy) ?
 
Thanks for your answer
 
Best regards

Share this post


Link to post
Share on other sites

Hi! How would one go about showing last five news in the home page? Would I need to make another module calling from DB or is there a faster way to do it?

 

Thanks

Share this post


Link to post
Share on other sites

Hi, I am no programmer but I managed to call the last five news into the home page. I hope you guys find it useful. Here it goes...

 

I've extended the smartyVariableHook with a db query in rpadvancednews.php like so:

 

public function smartyVariableHook() {

$query = 'SELECT rpn.id_rpadvancednews, rpn.date_add, rpnl.title, rpnl.intro 
FROM `'._DB_PREFIX_.'rpadvancednews` rpn 
LEFT JOIN `'._DB_PREFIX_.'rpadvancednews_lang` rpnl on rpn.id_rpadvancednews = rpnl.id_rpadvancednews
WHERE rpn.active=1 and rpnl.id_lang='.(int)$this->context->language->id.'
ORDER BY rpn.date_add DESC LIMIT 0,5';
 
$news = Db::getInstance()->ExecuteS($query);
 
        $this->smarty->assign(array(
            'rp_news_img' => Configuration::get('RPADVANCEDNEWS_IMG'),
            'rp_news_text' => Configuration::get('RPADVANCEDNEWS_TEXT_'.(int)$this->context->language->id),
'news' => $news,
            'rpadvancednews_share' => Configuration::get('RPADVANCEDNEWS_SHARE'),
            'rpadvancednews_read' => Configuration::get('RPADVANCEDNEWS_READ')
        ));
 
}
 
than I copied whatever I needed from views/templates/front/rpadvancednews.tpl to views/templates/hooks/rpadvancednewstext.tpl
 
Regards,
Mato
Edited by matoola (see edit history)

Share this post


Link to post
Share on other sites
  • 1 month later...

 

Hi, I am no programmer but I managed to call the last five news into the home page. I hope you guys find it useful. Here it goes...

 

I've extended the smartyVariableHook with a db query in rpadvancednews.php like so:

 

public function smartyVariableHook() {

$query = 'SELECT rpn.id_rpadvancednews, rpn.date_add, rpnl.title, rpnl.intro 
FROM `'._DB_PREFIX_.'rpadvancednews` rpn 
LEFT JOIN `'._DB_PREFIX_.'rpadvancednews_lang` rpnl on rpn.id_rpadvancednews = rpnl.id_rpadvancednews
WHERE rpn.active=1 and rpnl.id_lang='.(int)$this->context->language->id.'
ORDER BY rpn.date_add DESC LIMIT 0,5';
 
$news = Db::getInstance()->ExecuteS($query);
 
        $this->smarty->assign(array(
            'rp_news_img' => Configuration::get('RPADVANCEDNEWS_IMG'),
            'rp_news_text' => Configuration::get('RPADVANCEDNEWS_TEXT_'.(int)$this->context->language->id),
'news' => $news,
            'rpadvancednews_share' => Configuration::get('RPADVANCEDNEWS_SHARE'),
            'rpadvancednews_read' => Configuration::get('RPADVANCEDNEWS_READ')
        ));
 
}
 
than I copied whatever I needed from views/templates/front/rpadvancednews.tpl to views/templates/hooks/rpadvancednewstext.tpl
 
Regards,
Mato

 

Hi Mato,

 

You can do something like this :

 

1) modules/rpadvancenews.rpadvancenews,php

 

public function hookHome($params)
{
$sql = "SELECT rpn.id_rpadvancednews, rpn.date_add, rpnl.title, rpnl.intro
 
                FROM `"._DB_PREFIX_."rpadvancednews` rpn
                LEFT JOIN `"._DB_PREFIX_."rpadvancednews_lang` rpnl on rpn.id_rpadvancednews = rpnl.id_rpadvancednews
 
                WHERE rpn.active=1 and rpnl.id_lang=1 ORDER BY rpn.date_add DESC limit 5";
        $rows = Db::getInstance()->executeS($sql);
$return = array();
        foreach($rows as $row)
        {
if(file_exists(_PS_IMG_DIR_.'rpadvancednews/'.$row['id_rpadvancednews'].'.jpg'))
$row['rpadvancednews_img']='img/rpadvancednews/'.$row['id_rpadvancednews'].'.jpg';
            $return[] = $row;
        }
$this->smarty->assign('news_arr',$return);
return $this->display(__FILE__, 'views/templates/hooks/displayHome.tpl');
}
 
2) Make views/templates/hooks/displayHome.tpl and copy the code from the leftColumn.tpl.
 
or use this code as I have :
 
<div class="section">
<div class="margin">
{foreach from=$news_arr item=arr}
<div class="product">
<i><img src="{$base_dir}{$arr.rpadvancednews_img}" alt="{$arr.title}" height="200px" width="200px" /></i>
<h1>{$arr.title}</h1>
<h6>Posted in <span>News</span> on <span>{$arr.date_add}</span></h6>
<p>{$arr.intro}</p>
<a href="#" class="but">Lesen Sie mehr..</a>
</div>
{/foreach}
</div>
</div>
 
Thanks.

Share this post


Link to post
Share on other sites
  • 4 months later...

Merci pour ce super module !

Il fonctionne très bien aussi avec prestashop 1.6.0.9 :)

 

Pour répondre à Damdub, pour mettre un format de date en français, j'ai juste ajouté un date_format dans mes template, comme ceci

{$new->date_add|date_format:"%d-%m-%Y"} ou {$new->date_add|date_format:"%d %B %Y"}

... ma boutique n'est pas multilingue...

Share this post


Link to post
Share on other sites
  • 6 months later...
  • 1 month later...

Ciao,

è possibile integrare i commenti? impostare un codice con il Plug-in sociale di Facebook

In questo modo si da la possibilità agli utenti di commentare la notizia.

Versione di prestashop 1.5.4.1

Grazie

----

 

Hello,
It is possible to integrate the comments? set a code with the Plug-in Facebook social
This will be the ability for users to comment on the report.

Prestashop version 1.5.4.1
thanks

 

 

 

 

 

post-595359-0-43068300-1431502304_thumb.jpg

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More