Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
News Manager
Connie Wrote:I am not a guy,

but I would like to help you if you would be so nice to post a URL to check your problem ...

I am using Xammp server which is local server, with the help of this I check the website on local computer and if everything seems ok then I upload it to server. So I do not have any url.

I am attaching the picture where I have a problem.
Reply
RewriteRule ^blog/tag/([^/.]+)/?$ index.php?id=blog&tag=$1 [L]
RewriteRule ^blog/post/([^/.]+)/?$ index.php?id=blog&post=$1 [L]
RewriteRule ^blog/page/([^/.]+)/?$ index.php?id=blog&page=$1 [L]
RewriteRule ^blog/archive/([^/.]+)/?$ index.php?id=blog&archive=$1 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(es|en)/(.*?/)?([A-Za-z0-9_-]+)/?$ index.php?id=$3&lang=$1 [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]

I found a conflict between using language codes in the URL with the I18N plugin and using clean URLS with the news manager. The URL for the news manager includes the %language% instead of the particular en/es/de ect. I guess this would involve modifying the news manager .htaccess rules too? I'm afraid to screw up my rewrite rules.

By the way Connie, the word "guys" in colloquial English refers to both guys and girls kind of like in Spanish a noun keeps the masculine form when referring to a group of guys and girls and only uses the feminine form when referring only to one or more girls exclusively. The idiosyncrasies of language are never ending! 0_0
Todo arde si le aplicas la chispa adecuada.
Reply
yurifanboy,

I know that, but from time to time my humour isn't clear enough ;=)
|--

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

suken Wrote:I am using Xammp server which is local server, with the help of this I check the website on local computer and if everything seems ok then I upload it to server. So I do not have any url.

is the server health check ok?
did you set set_locale in gsconfig.php?
Code:
# Set PHP locale
# http://php.net/manual/en/function.setlocale.php
setlocale(LC_ALL, 'en_US');

what are the settings for the timezone in the settings?

As you can see at our site, http://www.get-simple.de/blog/post/neues...s-manager, the date is shown, our settings are:

Code:
# Set PHP locale
# http://php.net/manual/en/function.setlocale.php
setlocale(LC_ALL, 'de_DE');
$LANG = 'de_DE';
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
Hi, this is a really good plugin. I'm able to do with it exactly what I wanted but for one thing:

I'm using the <?php nm_list_recent(); ?> function to show a list of 'latest news' on my front page.

At the moment the function shows *5* recent posts.

I'd like to do one of two things, either:

1. Show fewer than 5 posts - but I can't find where to specify this number.
2. Show the list as a sentence separated by commas, as in "Most recent post, Another post, A further post, Yet another post". This is my preferred option.

Is anyone able to help me with either of these?
Reply
Connie Wrote:@ Suken,

suken Wrote:I am using Xammp server which is local server, with the help of this I check the website on local computer and if everything seems ok then I upload it to server. So I do not have any url.

is the server health check ok?
did you set set_locale in gsconfig.php?
Code:
# Set PHP locale
# http://php.net/manual/en/function.setlocale.php
setlocale(LC_ALL, 'en_US');

what are the settings for the timezone in the settings?

As you can see at our site, http://www.get-simple.de/blog/post/neues...s-manager, the date is shown, our settings are:

Code:
# Set PHP locale
# http://php.net/manual/en/function.setlocale.php
setlocale(LC_ALL, 'de_DE');
$LANG = 'de_DE';


Yes, the server check was ok, but the cURL Module was not installed, other then that it was all ok.
My time zone is USA central time. and I tried the code you mention above but it didn't work. So please help me on this.
Reply
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.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
suken Wrote:Hey guys I am using News Manager Plugin and some how I am not able to show the date after the individual post e.g. I can just see "Posted on" but after that there is nothing show on my website, So guys if any one knows about this problem please help me on this.
what are your server specs and software versions ?
I also had some problems with date and afaik I posted my thoughts.
Addons: blue business theme, Online Visitors, Notepad
Reply
Hi guys,

I have a small problem, that I hope you can help me with.

On my news page I have put a "Scroll to top" script, which conflicts with the news manager on the main page, but not when you click on a post.

See attached image...

Hope somebody can help. Smile
Reply
I am having the same problem with the publication date not appearing in my new items. It just says "Published on" without a date. I am using GetSimple on a local server. My settings are:

Code:
# Set PHP locale
# http://php.net/manual/en/function.setlocale.php
setlocale(LC_ALL, 'en_US');

Thanks for any help.
Reply
Sorry since I'm a newbie at this, but how do you change the CSS settings for this plugin? My theme that I'm using uses a red background for titles, and it makes the newsfeed titles unreadable.
Reply
There comes a readme with the newsmanager, pointing you to http://rxgr.nl/newsmanager/
same link is in the extend ;=)

at that side you will find a description of the CSS and there you read: "This plugin uses various CSS classes (title, date, content, etc), but you have to write your own CSS rules in order to apply a style of your liking. "

you will find all css classes there

so this means you can define the styles as you whish, you have to do that in the stylesheet of your theme
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
Connie, do you have a fix for my problem? Smile
Reply
graphiclunch Wrote:Connie, do you have a fix for my problem? Smile

unfortunately not, I am not a javascript person
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
Connie Wrote:There comes a readme with the newsmanager, pointing you to http://rxgr.nl/newsmanager/
same link is in the extend ;=)

at that side you will find a description of the CSS and there you read: "This plugin uses various CSS classes (title, date, content, etc), but you have to write your own CSS rules in order to apply a style of your liking. "

you will find all css classes there

so this means you can define the styles as you whish, you have to do that in the stylesheet of your theme

I'm using the Distinctive theme (http://get-simple.info/extend/theme/distinctive/194/) which apparently doesn't have a style.css file. Any suggestions on changing the background color of the title?
Reply
I wrote:

Quote:in the stylesheet of your theme

you make me a little angry, sorry, but this theme has a css file.

The template shows:

Code:
<link rel="stylesheet" href="<?php get_theme_url(); ?>/screen.css" type="text/css" />

and, o wonder, there is a screen.css in the package.

So, now you know where you can define the styles.
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
Has anyone ever considered introducing pingback functionality into newsmanager? I've done some reading (see below) and it looks possible but I was wondering if anyone has tried already?

http://www.quietearth.us/articles/2006/1...ack-in-php
http://www.xiven.com/sourcecode/pingbackserver.php

maybe overkill for getsimple?
Reply
Connie Wrote:I wrote:

Quote:in the stylesheet of your theme

you make me a little angry, sorry, but this theme has a css file.

The template shows:

Code:
<link rel="stylesheet" href="<?php get_theme_url(); ?>/screen.css" type="text/css" />

and, o wonder, there is a screen.css in the package.

So, now you know where you can define the styles.

Thank you for your help. Sorry if I made you angry, as I am new to Get Simple. We all have to learn some how, and I think forums are a good way to learn (and reading from your prior posts you've been very helpful to a lot of people). Hope I won't make more unreasonable posts in the future! Thanks again!
Reply
hi all,
i'm new in getsimple, fantastic.

i'm using news manager plugin, i traslated it in italian.
I attach the file.

bye
Reply
Well hello all too!

it seems I got the same idea than andrea before so there, mine is just an update of the french one.

I haven't had yet enough time to test much but your plugin works fine for me. The only little bug is with "août" on the publishing date that doesn't display correctly. I got ça instead
Code:
Publié le 31 ao� 2011

That just visual so not big for now but if someone know the answer before I look at it, I take Wink
Sorry my English is poor, I'm working on it
Reply
Lithie Wrote:The only little bug is with "août" on the publishing date that doesn't display correctly. I got ça instead
Code:
Publié le 31 ao� 2011

That just visual so not big for now but if someone know the answer before I look at it, I take Wink
Hi!

Try to fiddle with gsconfig.php in your site root folder, lines which start with
Code:
# Set PHP locale
# http://php.net/manual/en/function.setlocale.php
setlocale(LC_ALL, 'en_US');

Try to set "setlocale" to fr_FR or fr_FR.UTF8
I did it on a little similiar problem with another plugin and my Polish language and it works for me.
Tell us if it works for you too or not.
Reply
hi Raffee,

my gsconfig.php was already setlocale(LC_ALL,'fr_FR') so I test with fr_FR.UTF8 but that doesn't change anything.

I had an idea it might just be the display accents so I test a news with date 02/21/2011 and I did got the same problem.

I found a solution by tweaking the plugin. In news_manager/inc/site.php (ligne 105) change
Code:
<p class="nm_post_date"><?php echo i18n_r('news_manager/PUBLISHED') . " $date"; ?></p>
by
Code:
<p class="nm_post_date"><?php echo i18n_r('news_manager/PUBLISHED') ." ".utf8_encode($date); ?></p>

Now that works. I just have the oddity of the month being shorten to 4 letters in local and 3 online ^^


mcurry Wrote:Hi, this is a really good plugin. I'm able to do with it exactly what I wanted but for one thing:

I'm using the <?php nm_list_recent(); ?> function to show a list of 'latest news' on my front page.

At the moment the function shows *5* recent posts.

I'd like to do one of two things, either:

1. Show fewer than 5 posts - but I can't find where to specify this number.
2. Show the list as a sentence separated by commas, as in "Most recent post, Another post, A further post, Yet another post". This is my preferred option.

Is anyone able to help me with either of these?
I saw no one had answers you yet.

For your 1 you can change it in the admin panel -> news manager -> parameters (next to create new post) -> numbers of recent posts
2) hmm there ya need a script to transform the list you get to your option... or you could modify the function in sidebar.php with the risk that you lost it at update
Sorry my English is poor, I'm working on it
Reply
Does anyone knows how could I have news in 2 languages ? (e.x. English and Greek)
Reply
Argh I just stumble on a new bug that yet again seems to incriminate accents. When i first put the tags cloud on my site, I didn't have tags with accents é ou ê (at least). But yesterday, I was randomly testing the site and when i click on the tag "général" i got (idem on local) :
Code:
Notice: Undefined index: évênement in /home/a2425092/public_html/GS_BMT/plugins/news_manager/inc/site.php on line 52

Warning: Invalid argument supplied for foreach() in /home/a2425092/public_html/GS_BMT/plugins/news_manager/inc/site.php on line 53
I look a little, but I haven't find a solution yet. Any idea?


Sorry kiriakos, i don't know if it's possible. Maybe look with the i18n internationalization plugin but I don't think so.
Sorry my English is poor, I'm working on it
Reply
Quote:Lithie wrote:
I saw no one had answers you yet.

For your 1 you can change it in the admin panel -> news manager -> parameters (next to create new post) -> numbers of recent posts
2) hmm there ya need a script to transform the list you get to your option... or you could modify the function in sidebar.php with the risk that you lost it at update

Thanks Lithie Smile Was a simple solution in the end! Cheers,
Reply




Users browsing this thread: 10 Guest(s)