Post by i2Paq » Wed Sep 12, 2012 9:08 pm

I absolute LOVE this extension + the support is one of it's kind - a BIG thumbs UP!

Please find attached the Dutch Translation.

Please PM me if there is an issue.

Attachments

Dutch translation for News for OpenCart 150x v216


Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Active Member

Posts

Joined
Fri Jan 13, 2012 9:32 pm

Post by philbydevil » Wed Sep 19, 2012 12:04 pm

Hi fanha99. Still loving your module!

Just wondering if it would be possible to add something like a "Featured Article" checkbox to the Data tab in Admin. And what that checkbox would do would be to highlight (add a border, and possibly a light grey/other colour background) to the article in the article list/category and search pages.

So from this (no featured articles):
Picture3.png

Picture3.png (65.11 KiB) Viewed 5207 times

To this (first article is featured):
Picture-3a.png

Picture-3a.png (48.38 KiB) Viewed 5207 times

I think that it would be a great feature for everyone. Otherwise, PM me so we can talk costs. Thanks.

I heart cmd-f, cmd-c, cmd-v, cmd-z + vQmod.
My favourite page...
v1.5.4.1


User avatar
Active Member

Posts

Joined
Fri Dec 03, 2010 5:20 am

Post by fanha99 » Wed Sep 19, 2012 6:26 pm

- featured articles will display at the 1st position for all kind of sort? or for default sort?
- when display category, only show featured articles which is belong to that category? or all featured articles?
- at the all news page (news/all) will all of them show at 1st place
- for the featured articles, what different? just show the border around all the featured articles? or border around each articles?

News/Blog extension for opencart, show Tagging related product while reading article

FAQ System for opencart, allow user to give feedback on each article

Combo set and discount when buy full set


Active Member

Posts

Joined
Fri Jan 13, 2012 9:32 pm

Post by philbydevil » Wed Sep 19, 2012 7:42 pm

fanha99 wrote:- featured articles will display at the 1st position for all kind of sort? or for default sort?
* Good question. I've been thinking about this today. My first thought was just for the default sort (does default sort = time added / chronological?).... but then, for my purposes, customers would be paying to become "featured" so I'm thinking all kinds of sorts is probably better.

So, if the sort order is A-Z, first the featured articles from A-Z are shown first, and then the non-featured articles from A-Z follow.

Yep, I think all kinds of sort would be best ;)
fanha99 wrote:- when display category, only show featured articles which is belong to that category? or all featured articles?
* Only show featured articles that belong to that category.
fanha99 wrote:- at the all news page (news/all) will all of them show at 1st place
* Yes... so when the customer clicks on sort (any kind), the featured articles are shown first, and then the non-featured articles follow (like the answer to the first question).

I'm unsure about the search page though. My first thought is that the featured articles shouldn't affect the results on the search page... But then again, maybe it should be the same as the the category/all examples above... featured articles show at the top of search and are sorted accordingly, followed by non-featured articles (I'll have to think about this one some more).
fanha99 wrote:- for the featured articles, what different? just show the border around all the featured articles? or border around each articles?
* The border is only around the featured articles. All normal articles just display as per usual. The featured articles could also have some other style changes, like a light coloured background, or bold heading, or something that makes them stand out.

I heart cmd-f, cmd-c, cmd-v, cmd-z + vQmod.
My favourite page...
v1.5.4.1


User avatar
Active Member

Posts

Joined
Fri Dec 03, 2010 5:20 am

Post by fanha99 » Wed Sep 19, 2012 8:28 pm

the default sort of current version is:
- "sort order field" Ascending, than date DESC

when I need some articles always on the top, I use the "sort order field" with -1, the other is 0 or 1,2....
if you not use the "sort order field", you can play trick with -1.

how do you think about the "sort order field" = -1 as the featured article? this solution will be cheap, don't need to modify the database.

it will easy to apply "sort order field" Ascending for the other kind of sort, like sort by title.

then, about the display style, you can change it with small peach of code in the template files, don't need to change the core files, so update will be easy.

News/Blog extension for opencart, show Tagging related product while reading article

FAQ System for opencart, allow user to give feedback on each article

Combo set and discount when buy full set


Active Member

Posts

Joined
Fri Jan 13, 2012 9:32 pm

Post by philbydevil » Wed Sep 19, 2012 8:33 pm

fanha99 wrote:the default sort of current version is:
- "sort order field" Ascending, than date DESC

when I need some articles always on the top, I use the "sort order field" with -1, the other is 0 or 1,2....
if you not use the "sort order field", you can play trick with -1.

how do you think about the "sort order field" = -1 as the featured article? this solution will be cheap, don't need to modify the database.

it will easy to apply "sort order field" Ascending for the other kind of sort, like sort by title.

then, about the display style, you can change it with small peach of code in the template files, don't need to change the core files, so update will be easy.
Sounds perfect! I don't use the sort order field for any reason now so that will work great!!

I heart cmd-f, cmd-c, cmd-v, cmd-z + vQmod.
My favourite page...
v1.5.4.1


User avatar
Active Member

Posts

Joined
Fri Dec 03, 2010 5:20 am

Post by fanha99 » Wed Sep 19, 2012 9:11 pm

so, then open the file:

catalog\model\catalog\news.php

search for these line:

Code: Select all

		$sort_data = array(
			'title-A' => 'nd.title ASC',
			'title-D' => 'nd.title DESC',
modify it:

Code: Select all

		$sort_data = array(
			'title-A' => 'n.sort_order ASC, nd.title ASC',
			'title-D' => 'n.sort_order ASC, nd.title DESC',
it will done for the featured order.

2. for the controller
open the files inside catalog\controller\news\
search for

Code: Select all

				$this->data['articles'][] = array(
					'title' => $result['title'],
replace it with

Code: Select all

				$this->data['articles'][] = array(
					'sort_order' => $result['sort_order'],
					'title' => $result['title'],
3. for the display layout:
hmmm, it will no problem to do with 1 column, but will be problem when you switch between 1 column and 2 column.

News/Blog extension for opencart, show Tagging related product while reading article

FAQ System for opencart, allow user to give feedback on each article

Combo set and discount when buy full set


Active Member

Posts

Joined
Fri Jan 13, 2012 9:32 pm

Post by philbydevil » Thu Sep 20, 2012 10:50 am

Excellent. Thank you. It works well!

I'm happy to only have the 1 column option, and get rid of the 2 column layout.

I heart cmd-f, cmd-c, cmd-v, cmd-z + vQmod.
My favourite page...
v1.5.4.1


User avatar
Active Member

Posts

Joined
Fri Dec 03, 2010 5:20 am

Post by fanha99 » Thu Sep 20, 2012 10:58 am

for 1 column, my opinion is put all the featured articles inside 1 div, then you can edit the css for that div, may be edit the css for inside stuffs also:

open file: catalog\view\theme\default\template\news\articles.tpl

Code: Select all

	<div class="article-list">
		<?php foreach ($articles as $article) { ?>

Code: Select all

	<div class="article-list">
		<?php 
		$featured = false;
		foreach ($articles as $article) { 
		if (!$featured && $article['sort_order'] == -1) {
			$featured = true;
			echo '<div class="article-featured">';
		}
		if ($featured && $article['sort_order'] > -1) echo '</div>';		
		?>

News/Blog extension for opencart, show Tagging related product while reading article

FAQ System for opencart, allow user to give feedback on each article

Combo set and discount when buy full set


Active Member

Posts

Joined
Fri Jan 13, 2012 9:32 pm

Post by philbydevil » Thu Sep 20, 2012 1:32 pm

If I use that code above, the articles don't show at all. No errors in the error log, just white space where the rest of the page should be.
Last edited by philbydevil on Wed Oct 10, 2012 12:37 pm, edited 1 time in total.

I heart cmd-f, cmd-c, cmd-v, cmd-z + vQmod.
My favourite page...
v1.5.4.1


User avatar
Active Member

Posts

Joined
Fri Dec 03, 2010 5:20 am

Post by fanha99 » Mon Sep 24, 2012 2:35 am

<2.1.6 - 2.2.0> (2012/09/24)
- admin: hot link to view article
- admin: hot link to view and modify comment of article
- admin: ajax filter title in comment list
- admin: filter title, filter status in comment list
- admin: ajax filter title in article list
- admin: filter title, filter status in article list
- admin: allow copy article
- all date will display with the "date_format_short" define by language
- send 404 error when article, category not found (good for SEO)
- add canonical link for news/all and news search page (good for SEO)
- add canonical link with full path for news category (good for SEO)
- auto get fill logged customer name and email to the comment box
- fixed: option with show read times and comment count in article page
- temporary remove "stick articles to top menu function"
v220.png

v220.png (27 KiB) Viewed 5110 times


News/Blog extension for opencart, show Tagging related product while reading article

FAQ System for opencart, allow user to give feedback on each article

Combo set and discount when buy full set


Active Member

Posts

Joined
Fri Jan 13, 2012 9:32 pm

Post by philbydevil » Tue Oct 02, 2012 6:24 am

Hi fanh99.

Finally getting back to the featured article. This code:

Code: Select all

   <div class="article-list">
      <?php 
      $featured = false;
      foreach ($articles as $article) { 
      if (!$featured && $article['sort_order'] == -1) {
         $featured = true;
         echo '<div class="article-featured">';
      }
      if ($featured && $article['sort_order'] > -1) echo '</div>';      
      ?>
Is still breaking half of the page.
Last edited by philbydevil on Wed Oct 10, 2012 12:38 pm, edited 1 time in total.

I heart cmd-f, cmd-c, cmd-v, cmd-z + vQmod.
My favourite page...
v1.5.4.1


User avatar
Active Member

Posts

Joined
Fri Dec 03, 2010 5:20 am

Post by fanha99 » Thu Oct 04, 2012 11:35 pm

1. replied via email,

2. css, inside news.css

search

Code: Select all

.article-list > .box-article 
remove “>”

then add this block (may at the end of file)

Code: Select all

.article-list .article-featured {
    border: 1px solid #EEEEEE;
}
note: the css is not beauty but it work

News/Blog extension for opencart, show Tagging related product while reading article

FAQ System for opencart, allow user to give feedback on each article

Combo set and discount when buy full set


Active Member

Posts

Joined
Fri Jan 13, 2012 9:32 pm

Post by JonathanR » Mon Oct 29, 2012 7:21 pm

Hi.

Really like the look of this extension, but can I just check that I don't have to have the News for OpenCart/Blog box(es) in the left-hand column? I only have products down the left-hand side and would be happy for this to be just a link in the footer and maybe in the top bar.

Thanks in advance.

Jonathan

New member

Posts

Joined
Sun Apr 15, 2012 4:34 pm

Post by fanha99 » Mon Oct 29, 2012 7:31 pm

hi JonathanR

the left-hand column is a sub module of the extension.
just as other module, you can decide to show or not to show. you can decide where to show, you can decide which page will be show.

you can stick the category to the top-menu, just as the product category.

for add link to the footer, you will need to modify the footer.tpl, (and the controller/common/footer.php, maybe)

regard,

News/Blog extension for opencart, show Tagging related product while reading article

FAQ System for opencart, allow user to give feedback on each article

Combo set and discount when buy full set


Active Member

Posts

Joined
Fri Jan 13, 2012 9:32 pm

Post by JonathanR » Mon Oct 29, 2012 7:46 pm

That is great news, thanks. I have customised my footer to a degree for other links to go there which are not part of the default installation, so hopefully I will be OK. I like to play around with OpenCart and its modules, and this looks just the ticket so thanks again!

New member

Posts

Joined
Sun Apr 15, 2012 4:34 pm

Post by JonathanR » Mon Oct 29, 2012 10:00 pm

Hi there.

Purchased and smoothly installed. Excellent!

It would be useful for me for the moment to be able to remove the share icons for Facebook etc etc.

I have had a root around in the files but not had any success and I fear I am close to breaking things. Can I have a pointer please? I only want to disable the option at the moment, as I can see it being needed at some point.

Thanks

New member

Posts

Joined
Sun Apr 15, 2012 4:34 pm
Who is online

Users browsing this forum: No registered users and 6 guests