Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
News Manager
Hi
Is there a easy way to get a list of posts by defining the tag? Something like: nm_show_post('tag')?
Or is there any other solution ?

I need to show posts in 2 columns each by it's own tag.
|tag1|tag2|
|tag1|tag2|
|tag1|tag2|
|tag1|tag2|
|tag1|tag2|

Thanks!!!
Reply
Hi,

anybody know how tho change the canonical link in header to use the real link of a post in news manager ?

because it's a problem to make facebook link or other type of link validate on the canonical url.
Reply
I finally managed to solve my problem with fancy URLS in news manager if it helps anyone.

In the main admin settings I had Permalink structure %parent%/%slug% without a trailing slash, causing the news posts to append to parentpost instead of parent/post. The default permalink structure has a trailing slash, %parent%/%slug%/

I realised this when setting up a new test site for GS3.1 - it just shows how a simple error can cause a whole load of problems!

The issue with html validation still exists though, where fancy urls are not used, there's no & entity in the urls.
Reply
I'm a happy user of this plugin. As a beginner I was thinking that is it possible to include both normal content and news on the same page ?
In news manager's settings "Page to display posts" = index. As my site mainly displays short news. But i would like include a short introduction before news manager posts.

I'm using Innovation theme which suits our needs perfectly.

Example:
-------------
Introduction,Introduction,Introduction,Introduction,Introduction,Introduction,Introduction,

news1

news2

and so on...
-------------

Maybe there is a simple solution ?

Jysse
Reply
Simple solution here ! Smile Just follow the instructions on this forum post :
http://get-simple.info/forum/post/8922/#p8922
My only advice is : read all 19 pages on this thread if you want to take advantage of this great plugin Smile


jysse Wrote:I'm a happy user of this plugin. As a beginner I was thinking that is it possible to include both normal content and news on the same page ?
In news manager's settings "Page to display posts" = index. As my site mainly displays short news. But i would like include a short introduction before news manager posts.

I'm using Innovation theme which suits our needs perfectly.

Example:
-------------
Introduction,Introduction,Introduction,Introduction,Introduction,Introduction,Introduction,

news1

news2

and so on...
-------------

Maybe there is a simple solution ?

Jysse
Reply
Thanks for your help. I decided to use Dynpages plugin and that plugin works ok.
I created a new component with "<?php show_articles(); ?>" inside it. Then i placed a holder in new page.
Result was an empty page. Enabling debug mode shows this error:
Fatal error: Call to undefined function show_articles() in /var/www/clients/client1/web1/web/admin/inc/theme_functions.php(575) : eval()'d code on line 1

If I replace "<?php show_articles(); ?>" for example with "<?php nm_list_recent(); ?>" in component it works ok.

Any ideas ?

Jysse
Reply
webmonkeyukcom Wrote:Any ideas how I can incorporate the Social Icons Plugin - either Chris's original one or the latest one by Nokes

Into this news manager, at the minute I have it setup and it only displays on the actually news page, but I wish for each news item to have its own set of social links

for me twitter shows real link

but facebook will always show index.php

my code:



Code:
<a href="http://twitter.com/home/?status=<?php echo $title; ?> : <?php echo $url = htmlentities('http://'.$_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); ?>" title="Tweetle">
          <img src="<?php get_theme_url(); ?>/images/ico_twitter.png" alt="Tweetle" /></a>    
            
<a href="http://www.facebook.com/sharer.php?u=<?php echo $url; ?>&amp;amp;t=<?php echo $title; ?>" title="Share on Facebook.">
           <img src="<?php get_theme_url(); ?>/images/ico_facebook.png" alt="Paylaş"  />


any ideas???
Reply
mvlcek Wrote:Splitting long news and blog entries into multiple pages:

Pagify version 1.0 now offers the page splitting as a separate function to be used in other plugins.

It shouldn't be too hard to include this in the news manager:
Code:
...
# this is the content of the news item, as it would be output to the page:
$content = ...;
...
# determine somehow (e.g. configuration setting), if page splitting is requested
if (function_exists('return_pagify_content') && ...) {
  # get page number from URL, e.g.
  $pageNum = @$_GET['page'];
  # determine requested page length (e.g. configuration setting)
  $pageSize = ...;
  # what is the link to this news/blog item? Include place holder %PAGE% for page number
  $link = 'http://server/link/to/my/news/item?page=%PAGE%';
  # split content into pages and get content for current page with page navigation
  $content = return_pagify_content($content, $pageSize, $pageNum, $link);
  ...
}
...

Otherwise, if you need paging of long content, you can always use the basic solution without News Manager as described here ;-)

P.S. The new I18N Search plugin also allows other plugins to add their content to the full text index and include it in searches.

Hi Martin

can you please tell me how I use this code with the news manager
, where do I insert code???

thanks
Reply
mintika Wrote:Hi Martin

can you please tell me how I use this code with the news manager
, where do I insert code???

thanks

Mintika, please do not ask too much from Martin, he is not the developer of that plugin.

You should ask the developer of the NewManager ;=)
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
Connie Wrote:You should ask the developer of the NewManager ;=)

Hi Connie,

Good idea, but he seems to have taken an extended vacation, haven't seen Roog around these parts for quite some time Wink

Shame really, since this is a really good plugin that has a lot of promise, but if isn't developed further it will end up obsolete like some promising 2.0 plugins that were never continued.

But let's hope it doesn't come to that. GetSimple needs a good blog plugin.
Reply
Connie Wrote:
mintika Wrote:Hi Martin

can you please tell me how I use this code with the news manager
, where do I insert code???

thanks

Mintika, please do not ask too much from Martin, he is not the developer of that plugin.

You should ask the developer of the NewManager ;=)

@Connie mach bitte deine augen auf,
pagify code schreibt @mvlcek für news manager lass Martin bitte die Entscheidung ob er diese Frage beantworten will oder nicht. Es ist schwachsinnig, dass du sagst ich solle den Developer fragen. Wo bleibt der Sinn und Zweck dieses Forums? Bitte nicht persönlich nehmen bemühe mich lediglich nur darum hier support zu kriegen

Edit Connie: Nicht persönlich nehmen? "schwachsinnig"?
Reply
Simple bug report:

If non-latin title used and empty Slug/URL was specified for a News Manager's entry, it should be the post's title substitution to the Slug/URL with required transliteration. E.g. "privet-mir" for "Привет мир" title.

Otherwise the News Manager plugin uses ".xml" for Slug/URL which is unacceptable. This causes further troubles upon deleting or modifying entries.

PS: I've made some quick and dirty fix for myself but it could be better if Author reviewed it:

posts.php, line 43, added ||empty($_POST['post-slug'])
Code:
# empty titles are not allowed
if (empty($_POST['post-title'])||empty($_POST['post-slug']))
$_POST['post-title'] = '[No Title]';
Hail to get-simple developers!
Reply
Hi everyone,

Thanks for the great plugin first of all!


I was wondering if it would be possible to mod it to show different meta tags for different news, for ie

<meta name="keywords" content="getsimple, easy, content management system" />

idea is to make those keywords different for every news, which is very useful for SEO purposes. Any ideas or pointers on where to start to mod it please?
Reply
jysse Wrote:Thanks for your help. I decided to use Dynpages plugin and that plugin works ok.
I created a new component with "<?php show_articles(); ?>" inside it. Then i placed a holder in new page.
Result was an empty page. Enabling debug mode shows this error:
Fatal error: Call to undefined function show_articles() in /var/www/clients/client1/web1/web/admin/inc/theme_functions.php(575) : eval()'d code on line 1

If I replace "<?php show_articles(); ?>" for example with "<?php nm_list_recent(); ?>" in component it works ok.
Sorry, this question was not clearly asked by me. Here is more details if someone could help me.

1. DynPages plugin is installed.
2. Created a component called "news". Inside that component is a line:
<?php nm_list_recent(); ?>
3. called that component from a test page like this:
<p>
Some text...</p>
<p>
And now the news:</p>
<p>
{% news %}</p>
<p>
An now back to other topics...</p>
4. That works fine!

What should I insert in component to replace <?php nm_list_recent(); ?> so that all news are visible.
I mean in a same way that they are shown on my index page (which is the page for news manager news..).

Jysse
Reply
I've just created a new post with something like </a></a></a></a> as a title and content and that kind of bugged the news manager: Was not able to delete the file, it was named .xml and deleting it from my /data folder with root didn't work.
Solved the problem by going to url/admin/load.php?id=news_manager&edit=
(as the file had no name, that was the only way to edit the post)
Reply
Downburst Wrote:</a></a></a></a>

why do you use that as title? THis is a closing tag of a HTML tag and so it might be wiped by many plugins...
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
Hi there,

is it posible to show image from full news text to Excerpt? Or some other way to put images in excerpt text.
Reply
I think that I missed something, but when I generate sitemap for google etc., it doesn't include news page and posts are missing too :/

things I miss in this plugin:
1. excerpt for word count (so last word is not cut, maybe just check if last character is blank, if not, try to cut one more character etc. ? )
2. first image from post could be shown on excerpt too
3. ability to click [...] for reading full article
Reply
Whenever I try to add a new post, the first existing news items gets duplicated as well - resulting in a long list of identical posts. Any attempt on manually editing posts.xml in Data/Other/News_Manager has been fruitless - it replicates itself again right away.

Is this a cache thing or something with permissions maybe?
Reply
Hi roog, thank you for this plugin.
I have it working just great in the news template, or any sidebar.
I love the very easy way to make it work Smile

Is there any way to include the "news content" (with Excerpt, title and date) in OTHER PAGE? (combining with anothe content)

for instance: I would like to include a "news section" INSIDE OF Home page.

IS it possible or I 'd better forget the idea?

than you again !!
Reply
You could always add something like this to your template <?php nm_list_recent(); ?>
Reply
jkob Wrote:You could always add something like this to your template <?php nm_list_recent(); ?>

Yes, i have it but it shows nothing but title and link to the post

I would like having the news content: List of posts with Excerpt, title and date

thanks for reply.
Reply
@focoves

I don't know much about this plugin, but this seems to work (in template or component):
Code:
<?php nm_show_page(); ?>

Example: to display the latest posts in your homepage, insert this in your template file:
Code:
<?php if (return_page_slug()=='index') nm_show_page(); ?>
Reply
Thanks Carlos,

You also answered my earlier question and I was able to show both static and news material on the front page !

Jysse
Reply
Super noob to GS and just installed News Manager to a site yesterday. Wrote my first blog post and all seemed well. However, when the post title/link is clicked it does not find the page. What have I done wrong? You can view it at: http://steveronsen.com/blog/

Awesome plugin, btw, I just need my hand held a bit, I guess. Thanks!
Reply




Users browsing this thread: 5 Guest(s)