Thread Rating:
  • 4 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
News Manager (updated)
(2014-05-17, 17:18:10)Carlos Wrote: Ok, showtags will not be in 3.0. If there's a need for it I will add it back. Thank you TeeJay.

Thank you, I think you will prevent a lot of consusion this way.
Tomáš Janeček - Multilingual personal website powered by GetSimple
» The little I did for GetSimple
Reply
There's still an issue... well, THE issue: due to the way Extend works, plugin update check doesn't report newer releases of this NM (updated) version (neither does the Updater plugin).

A way to fix this would be renaming the plugin: instead of news_manager.php it would now be newsmanager.php or news_manager_something.php (same for the plugins/news_manager folder) - for Extend it would be a different plugin and updates would be checked properly.

However this would break compatibility with several complementary plugins (some mine, some from others) that should be patched/updated to work properly. At least these:

- NM RSS (@ReedMurphy)
- I18N Search for NM posts (@sbatko)
- NM CreatePost
- NM Toolbar

These two would also be affected, but I could make the changes in NM in a way so that they don't need to be changed:

- NM Addons
- Pages & Comments (@cumbe)

However, if we can live without this issue fixed (I do), I'm not doing the rename in NM 3.0 and leave it for a future version (anyway I'm not sure if I'd do another rename in the long term, and I don't want this to be annoying)

Thoughts?
Reply
In my opinion it would be fine if the update worked.
I don't mind that it doesn't work but it's only because I get an email with every reply in this topic. No one should be supposed to watch forum for new versions.

For Pages&Comments, cumbe is definitely willing to update his plugin - I'm sure about that. I guess that you, Carlos, would update your plugins as well as it's nothing difficult or time demanding. About the RSS, we could try to contact ReedMurphy and if he was not willing to update it but allowed us, we could edit the plugin ourselves.

Then the plugin could be renamed to news_manager_something.php, I'm still not sure what the third part should be.
Tomáš Janeček - Multilingual personal website powered by GetSimple
» The little I did for GetSimple
Reply
how about a third option, a plugin that can modify the api checking and check an arbitrary plugin instead of the one it would normally for those in question ? Or implement your own version checking and override the native one for your specific plugin.

You could replace the plugins page result table row via js with the real info via extend call using id instead of file.

Or just replace the cache file so it picks that up instead always.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
@TeeJay
Thanks once more for your feeback, much appreciated.

@shawn_a
I'm already changing the link in the plugins page by using str_replace on $table, though of course this doesn't fix the upgrade check (neither issues with the Updater plugin)

About replacing the cache file, I hadn't thought about that. I'll look into it, thanks!
Reply
Just request you api result using ?id=123 instead of ?file=news_manager.php
but manually save the cache file as md5(original ?file=_news_namanger url)
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
Thank you Shawn, I had already discovered that and done some quick tests.
I think that I'll have this working in the next days.
Thanks a lot for your suggestions.
Reply
I move here the thread I posted in " General Questions and Problems" (Carlos told me to do it)
There I asked: Where are months located? I have news manager installed and my language installed but the date is always in english, does anybody knows where the months are located? I can't find where date gets that words so to translate them.
Does anybody knows it?
thank you

Now I update here:
I have news manager 2.4.6 installed and I selected italian language, the problem appears for the months only, for exemple a post of 25 may on my is the following: "Pubblicato il 25 May, 2014", so you can see that only month is wrong. I looked for all the few files in news manager and the months names aren't stored there I think, I made a search on every single file in there but I can't find them, so does anybody knows where the plug in get months names? I really can't understand it, if I know where month are stored I can translate them.
Thank you
Reply
Months are not in the plugin files. They should be in the server. Is it Windows-based?

Does the it_IT.php file (in news_manager/lang) have this line?
Code:
"LOCALE"              =>  "it_IT.utf8,it.utf8,it_IT.UTF-8,it.UTF-8,it_IT,it",
Reply
now I understand a bit more
I have a vps with debian 7 installed, what should I do?

yes, the it_IT file has that line of code
Reply
Hi Remolab, this is not about any stored strings, it's all about PHP.

If you look into plugins/news_manager/inc/site.php, you can find there something like (line 266 in my NM version, line 304 in the GitHub version,
Code:
$date    = nm_get_date(i18n_r('news_manager/DATE_FORMAT'), strtotime($post->date));

I guess only something like
Code:
setlocale(LC_ALL, 'it_IT');
is needed to be written before the $date = ...

Not sure if it's this simple, I would have to try it and I still have not enough time.
Tomáš Janeček - Multilingual personal website powered by GetSimple
» The little I did for GetSimple
Reply
Please try editing that lang file and change that line by:
Code:
"LOCALE"              =>  "it_IT.utf8,it.utf8,it_IT.UTF-8,it.UTF-8,it_IT,it,ita,italian",
(I appended ita,italian)
I had to to this for Spanish, but it was a different issue, I think.

If it doesn't work, try changing, in that same line, .utf8 by .UTF8, and if still doesn't, .UTF-8 by .utf-8
(if it's too much hassle I can prepare the line for you to paste)
Servers can have different locale setups, I thought I had covered the most usual ones, but...
Reply
(2014-05-27, 01:52:16)Carlos Wrote: Please try editing that lang file and change that line by:
Code:
"LOCALE"              =>  "it_IT.utf8,it.utf8,it_IT.UTF-8,it.UTF-8,it_IT,it,ita,italian",
(I appended ita,italian)
I had to to this for Spanish, but it was a different issue, I think.

If it doesn't work, try changing, in that same line, .utf8 by .UTF8, and if still doesn't, .UTF-8 by .utf-8
(if it's too much hassle I can prepare the line for you to paste)
Servers can have different locale setups, I thought I had covered the most usual ones, but...

I'll give a try then I'll tell you if it works.
thank you
Reply
I tried all the ways, I cleared the cache but it's still the same, maybe italian isn't installed in my server, I'll try to understand how to check it.
Reply
I found out that I haven‘t italian packages installed in my vps and that's why month are in english. Thank you for helping me.
Reply
I think that for 3.0 I'm going to make News Manager insert the post title in the <title> tag by default, without having to install the News Manager Title plugin or use nm_post_title... in the template.

This change would NOT have effect on sites that already use any of the above solutions (and anyway it could be disabled, with a custom setting)

It would be very simple - example:
Code:
<title>This is the post title - News Page ...</title>
(post title before page title, separated by " - ", like NM Title does by default)

This would be developed further in later versions. But I think that it'd be good to have some built-in, basic SEO by default.

Any thoughts?
Reply
To me, its sound great. The less plugins/mods I have to look for/add on, the easier and quicker it becomes.

Since I am not installing nor working on this every day, I have to keep jumping around this thread to figure out what just installs and what I have to enable or modify in the configs and templates to get something working.

Just my two cents. Smile
Reply
Thanks for the feedback, islander.

You can find docs for 2.4.x and for new features/settings in beta/3.0 in my signature.
I have to mix both, and also make some FAQs and howtos. In the meantime, if you don't know how to do something or have trouble, just ask here.
Reply
Hola again Carlos and hi to you all, GetSimplers.
I'm so glad to see that NewsManager - my favorite plugin - is growing up day by day... so here's my humble contribution: A pull-down menu with all the categories, just like WordPress. Hope you will like it. Cheerz

PHP Code:
function nm_select_tags() {
echo 
'<form action="" method="post">';
echo 
'<select name="nmTAG" onchange="window.location.href= this.form.nmTAG.options[this.form.nmTAG.selectedIndex].value">';
echo 
'<option value="">Make a choice...</option>';
  
$tags = array();
  foreach (
nm_get_tags() as $tag=>$posts)
    if (
substr($tag01) != '_')
      
$tags[$tag] = count($posts);
        foreach (
$tags as $tag=>$count) {
        
$url nm_get_url('tag') . $tag;
        
$spaces = array('-','.');    
    echo 
'<option value="'.$url.'">'.str_replace($spaces," ",$tag).'</option>';
    }
    echo 
'</select></form>';    
  } 
Reply
(2014-06-07, 01:54:35)D.O. Wrote: A pull-down menu with all the categories, just like WordPress.

Very nice, thanks for sharing.
Reply
De nada, bro.
I made it for my www.partenope.org
It is just a tip that you can add to the next versions of NM.
Stay cool

(2014-06-07, 04:01:49)Carlos Wrote:
(2014-06-07, 01:54:35)D.O. Wrote: A pull-down menu with all the categories, just like WordPress.

Very nice, thanks for sharing.
Reply
(2014-06-07, 05:08:34)D.O. Wrote: It is just a tip that you can add to the next versions of NM.

Yes, I'll consider it (created issue), thanks.
Reply
News Manager 3.0 beta 21 - Download / Info

Changes (since beta 20):

- upgrade check for the correct plugin version in Extend (this will not be noticed until a new version is available, e.g. 3.0.1 or 3.1). Thanks to @shawn_a for his help with this

- single posts' title is inserted in the <title> tag by default, for better SEO. This can be disabled with new custom setting titleTag 0 (more info and possible issues in the (draft) upgrade notes)

Consider this a release candidate for 3.0 stable.

If you have the time to test this one just in case there's some issue...
Feedback much appreciated.
Reply
I note that the .htaccess contents of the file supplied with News Manager are not quit as extensive as the default file supplied wit GetSimple.

Should the NM version be a complete replacement or maybe line by line as necessary. The XML security seems more extensive in the GS-supplied file.
Reply
I think that most recent changes in GS's .htaccess file have to do with Apache 2.4 compatibility.
Anyway it's a good idea to update NM's sample one. Thanks!
Reply




Users browsing this thread: 2 Guest(s)