News Manager (updated) - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13) +--- Thread: News Manager (updated) (/showthread.php?tid=3972) |
RE: News Manager (updated) - Carlos - 2013-02-15 (2013-02-15, 08:18:52)wampir Wrote: How i can make to view 3 letter like this Vel 2013 ?? You have to edit news_manager/inc/sidebar.php - around line 38, change this: PHP Code: $title = nm_get_date('%B %Y', mktime(0, 0, 0, $m, 1, $y)); by this: PHP Code: $title = nm_get_date('%b %Y', mktime(0, 0, 0, $m, 1, $y)); (date formats for strftime) Note that you'll have to re-do that change when you upgrade the plugin. RE: News Manager (updated) - wampir - 2013-02-15 Yes work RE: News Manager (updated) - D.O. - 2013-02-18 Hi Carlos, is there a way to show only the Year when we use "nm_list_archives" instead of Month+Year? RE: News Manager (updated) - Carlos - 2013-02-18 You mean yearly/annual archives, I suppose. I had it in mind. I'll add a function for that. RE: News Manager (updated) - D.O. - 2013-02-18 Thanks Carlos! It could be simply great!!!! With all these special addons NM should be a native part of GS! RE: News Manager (updated) - lakechicago - 2013-02-18 Can someone explain to me how to modify the css in the News Manager? There doesn't appear to be a stylesheet. Thanks. Don RE: News Manager (updated) - Carlos - 2013-02-19 News Manager uses some predefined classes in posts, that you can style in your css. See here: http://get-simple.info/forums/showthread.php?tid=1056 (section CSS) RE: News Manager (updated) - lakechicago - 2013-02-19 Just what I was looking for. Thank you. Don RE: News Manager (updated) - JustSaint - 2013-02-19 How can i make "---more---" without Excerpt? sorry for bad english RE: News Manager (updated) - Carlos - 2013-02-20 This plugin does not (still) have that feature. (And I don't know of any other GS plugin that does.) RE: News Manager (updated) - roemhildtg - 2013-02-20 How would I go about adding a function to get the most recent one or two post excerpts to include on a sidebar? I looked into this for awhile and I couldn't find anything, if you could point me in the right direction I would appreciate it. RE: News Manager (updated) - JustSaint - 2013-02-20 (2013-02-20, 06:41:23)Carlos Wrote: This plugin does not (still) have that feature. (And I don't know of any other GS plugin that does.)I guess it's not hard to implement. Can you add new tag to make excerpt? RE: News Manager (updated) - Carlos - 2013-02-21 (2013-02-20, 09:53:09)roemhildtg Wrote: How would I go about adding a function to get the most recent one or two post excerpts to include on a sidebar? Some days ago I posted here about an addon plugin I'm developing for NM (it's in beta, but usable). I hadn't documented it: News Manager Addons plugin Sorry for the poor docs, I'll update them... RE: News Manager (updated) - datiswous - 2013-02-21 Hi sorry if it has been mentioned before: The link to the plugin page in plugins section of a GetSimple install still directs to the old version of the plugin. see attachment. RE: News Manager (updated) - Carlos - 2013-02-21 @datiswous Yes, thank you for reporting. Known issue, it's because the old and new plugins have the same filename (news_manager.php), then Extend returns the same link for both (in this case it's the oldest one, but I think that with some other plugin it happens the opposite). I'll probably rename the plugin (my updated version) some day to fix this (to newsmanager, news-manager, news_management, or maybe something different) BTW, more important than the link itself, is that the plugin management page does not tell if there's a new updated version in Extend. RE: News Manager (updated) - D.O. - 2013-02-21 Hi Carlos, if my NM uses inxex.php to shows all the news, is there a way in NM to recognize if I clicked on a news or not? example when I am on a page like this...? http://www.mysite.com/index.php?post=news RE: News Manager (updated) - Carlos - 2013-02-21 (2013-02-21, 05:21:22)D.O. Wrote: is there a way in NM to recognize if I clicked on a news or not? I'll probably add some helper functions in the future... In the meantime you could do: PHP Code: <?php if (nm_post_title("","",0)) { ?> (nm_post_title is not intended for this, but it should do the trick...) EDIT: Hmm... I don't like this solution, it does an extra file read... Another -quick- way could be: PHP Code: <?php if (isset($_GET['post'])) { ?> RE: News Manager (updated) - D.O. - 2013-02-21 Gracias Hermano, it works perfectly. I developed your suggestions in this way... Example: If we've news on the index page and we want to see an animation or a particular text only on the first page, but we don't want it on other pages (included NM archive/post/tag/page section), here's a very elementary solution... Quote:if (return_page_slug() == 'index') { RE: News Manager (updated) - Carlos - 2013-02-22 @D.O. I've made some changes to your code: PHP Code: <?php RE: News Manager (updated) - datiswous - 2013-03-03 Quote:Anyway if you're using News Manager 2.3+, instead of using this plugin you could edit your template to use the new nm_post_title tag. See here: http://get-simple.info/forums/showthread.php?tid=3972&pid=31721#pid31721 Thanks, I'm using version 2.3.2 so it seams I don't need to use the plugin. Doesn't work, even in Cardinal. Still showing title of page + under that title of posts (+ dates). This code is in Emerald2 theme now: Code: <head> Code: <head> RE: News Manager (updated) - Carlos - 2013-03-03 I've checked your site and I see it is working. But you used the example I posted (with "..."). I suppose you want to display the site name after the page/post title, so it could be like: Code: <title><?php nm_post_title() or get_page_clean_title(); ?> - <?php get_site_name(); ?> </title> RE: News Manager (updated) - D.O. - 2013-03-03 Ty Carlos, it's perfect now! RE: News Manager (updated) - Thomas_ - 2013-03-04 Hi, 2 questions (note that I'm a complete newbie). Is it possible, and if so can you explain me step by step how to do it: 1) To get some words in the title with each posts. like - Title1 - Read more - Title 2 - Read more .... 2) is there a possibility stamp a (javascript) code with each post at the bottom of the post Thanks Thomas RE: News Manager (updated) - Carlos - 2013-03-05 1) I don't understand what you mean, sorry. You can select excerpts (with a maximum number of characters) instead of full posts, for the main/archives/etc pages. There's also a way to use exceprts in the recent posts list for the sidebar. 2) Currently you would have to edit the plugin's code (function nm_show_post, inc/site.php) RE: News Manager (updated) - datiswous - 2013-03-06 (2013-03-03, 18:16:00)Carlos Wrote: I've checked your site and I see it is working. Hey Carlos, Maybe I just don't get the function of it. What I want is when the newsmanager shows up on a page, don't show the page-title on the page, only the post-title. But on pages not using the pagemanager, the page title is shown. I thought that was the function of the new template-tag (and the plugin). Now I see both (with dates). If I rule that out (<!-- -->), the titles of pages wouldn't show up on pages without newsmanager. Thanks for the support. Edit1: btw, I changed the code to this: <title><?php nm_post_title() or get_page_clean_title(); ?> - <?php get_site_name(); ?> </title> , but no change when I see the pages. Edit2: Hey Carlos, maybe you can add links to all the working plugins for newsmanager on both the plugins page and first post in this topic. |