Plugin: Simple News

puppiepoppy / 2010-01-18 17:33:34   

So, to all those folks out there that said "...worked perfectly!", can you please share with us your website link? Would love to check them out.

Thanks.

rickykappa / 2010-01-18 18:17:47   

mike, it's in alex's post just above mine,
http://www.alexsnukal.com/

guilhem / 2010-01-19 17:57:30   

Hello,

Thank you for adding "Simple News", it also works fine for me. There's one issue, however, I can't make work properly: the date's language. I don't understand why it appears ever in english even if the user selects another language in Preferences.
Is there a way to fix this?

Thanks.

rickykappa / 2010-01-20 12:50:34   

you're right it doesn't work, and unluckily fixing this issue is beyond my knowledge :-(
being this plugin probably becoming obsolete in a short time (I've heard there is a new version of indexhibit coming sooner or later, with blog plugin), probably those guys who could give hints are not much interested to do it.
I have tried some workaround but no luck :-/
here is what I did:
1) first I've edited the index.php in the ndxz-studio/lang/my_language
I've simply added the weekdays and months statements, like this:
    "january" => "Gennaio",
2) I've edited the plugin.simple_news.php
    $pages = $OBJ->db->fetchArray("SELECT user_format, user_offset, user_lang, url, title, content, pdate
where user_lang was "missing"...
3) in the same file I've changed like this the following line:
        $when = convertDate($page['pdate'], $page['user_offset'], $page['user_format'], $page['user_lang']);

well, nothing happened as a result...
but at least nothing was broken ;-)
is there anybody who can go on from here or is it totally useless?

guilhem / 2010-01-20 13:21:47   

Well, I've just found the answer to my question in another thread:
http://www.indexhibit.org/forum/thread/6694/

  1. As Jota explains there, you only must add one line in <em>plugin.simple_news.php</em>.
  2. <ol><li>setlocale(LC_TIME,"spanish");</li></ol>In my case, it worked only by specifying the language through the ISO code
  3. <ol>
  4. <li>setlocale(LC_TIME,"ca_ES");</li></ol>
  5. Anyway, thanks for your contribution rickykappa ;)
guilhem / 2010-01-20 13:24:05   

Well, I've just found the answer to my question in another thread:
http://www.indexhibit.org/forum/thread/6694/

  1. As Jota explains there, you only must add one line in <em>plugin.simple_news.php</em>.
  2. <ol>
  3. <li>setlocale(LC_TIME,"spanish");</li>
  4. </ol>
  5. In my case, it worked only by specifying the language through the ISO code
  6. <ol>
  7. <li>setlocale(LC_TIME,"ca_ES");</li>
  8. </ol>
  9. Anyway, thanks for your contribution rickykappa ;)

guilhem / 2010-01-20 13:26:01   

Well, I've just found the answer to my question in another thread:
http://www.indexhibit.org/forum/thread/6694/

  1. As Jota explains there, you only must add one line in <em>plugin.simple_news.php</em>.
  2. setlocale(LC_TIME,"spanish");
  3. In my case, it worked only by specifying the language through the ISO code
  4. setlocale(LC_TIME,"ca_ES");

Anyway, thanks for your contribution rickykappa ;)

guilhem / 2010-01-20 13:27:02   

Well, sorry. I can't give a fine format to my message :(

rickykappa / 2010-01-20 14:59:38   

thankyou guilhem, my fault I didn't look through the forum!
it worked fine for me too, just added

setlocale(LC_TIME,"italian");

fine, one more thing learned :-)

kim_c / 2010-01-21 09:42:26   

I was wandering about this plugin. It's a great plugin yes but i see some things that can make it better for user. Does anybody knows how to split the content of the page in two and then tell to news plugin which part should display in news page. That will be awesome because suppose that you have a page full of text you don't want in first page to display all page no? Maybe a div named "description" would be enough. But also you need that description of that page to appear in your first news page. So...anybody knows how to? Thanks guys and i'm also still wandering.
You can also view this thread

richardn / 2010-01-26 03:28:34   

Thanks rickykappa for the installation_for_dummies instructions. I got it working.

- But I don't think I need the '» Permalink' at the bottom of each post - is there anyway to get rid it of it?

- And is there any way to include a jpeg in a news post? (Obviously, I can include a jpeg on each news page that I create, but the plugin seems to zap it.)

rickykappa / 2010-01-26 09:55:46   

@richardn
- the permalink is obviously in the plugin, I guess that if you read carefully through it you'll easily find out where to delete it.
- yes, but only if you type an img tag directly in the textarea

richardn / 2010-01-26 11:36:09   

Thanks ricky.

- I can't make much sense of PHP, but commenting out line 38 of the plugin removes the 'Permalink' link. I'd also like to prevent the the title of the news post being a link, which I think can be handled in line 36, but I'm not quite sure how to do it.
- Great, I've got images to appear using the image tag.

Hmm. I'm not sure how useful the Simple News plugin is for me. I think it might be simpler to just have a news page which I update manually using indexhibit's text window, adding some img tags to display jpegs, and manually entering today's date etc. The plugin seems a bit fiddly, publishing a new page for each bit of news and then hiding it and have the plugin link back to it. What's the point? Any examples of it put to good use, with regular updates?

elisacerri / 2010-01-28 14:44:46   

2 stupid problems:
- the news work but, if i hide the page i don't have the link in the men√π...so how i can go on news page?
- plugin generate a double news...why?
here the addresss:

http://www.bomboland.com/index.php?/news/news/

thanx

rickykappa / 2010-01-28 14:56:38   

the first page, where you typed the plugin call, must be published and not hidden, only the following news are hidden pages.
so that page will magically appear in the menu... ;-)

elisacerri / 2010-01-28 16:15:13   

GRAZIE!

jooordi / 2010-01-30 10:38:40   

ricky or anyone, where can I find Exhibits admin?

Don't see it anywhere. If I go to jordihuisman.nl/ndxz, it leads me to 'Exhibits:Main'. I can choose 'preferences', but that just gives 500 lines of 'Warning: Invalid CRT parameters detected' and a password/time settings box.

rickykappa / 2010-01-30 10:49:57   

@ jordi - sorry but I can't help about your issue :-/
I'd suggest you to rather start another thread, here your post it's out of topic

ivo_valadares / 2010-02-03 12:57:18   

Hello. Or I'm too stupid or I'm in need of great ilumination stuff.

I opy the news plugin to the plugin file.

Then on "Settings" i create a new section that I will call "News", section order 5, off and on.

Then I go back to "main" and I creat a new exhibit that I will call "What's new".

Sorry, where do I:

And "- 'hide' pages that you wish to display via simple news"

Sorry but there is something missing me.

Best

ivo_valadares / 2010-02-03 13:06:33   

Sorry, the website: Webpage

rickykappa / 2010-02-03 14:26:17   

hmmm... maybe you misunderstood the section order that you assigned (e.g. 5) with section_id number, which is given by the system.

ivo_valadares / 2010-02-03 14:33:00   

Ok, got it running. Kind of hard to understand the process or it's just me.

Thanks

markmark / 2010-02-28 15:12:31   

Hi there,

Not sure if this post concerns a simple news plugin that has been customized or something else entirely. All I want is this kind of format (taken from participants): http://www.frankselby.com/current-exhibitions/

I can't simply ask the person directly as his friend "dr_kuga" (http://www.indexhibit.org/forum/thread/6030/) made the site.

I tried to get news plugin working but failed. But I anyway don't want the date entry or blog look. Looking for very common system for displaying news - i.e. text, pic and dotted line to separate projects, as I scroll down.

Also, I need to be able to have more than 6 entries which is a simple news plugin limitation.

Anybody have any ideas?

...would be very grateful:)

richardn / 2010-02-28 16:26:11   

It might be easiest to just create an exhibit and type the simple HTML into indexhibit's text editor.

markmark / 2010-02-28 16:40:05   

Hi Richard, thanks for your reply. Whew... I somehow thought this might be a rather common layout wish! I have very little experience with coding and the exhibit text window appears not to allow much in the way of image place setting. Do you mean something like this:
Event 1
texttext
html code for image location
----------------------
Event 2
texttext
html for image location

thanks!

richardn / 2010-02-28 17:01:41   

Yes, that's what I mean. Just copy/paste the code of the Selby site, and replace with your images and your text. You'll need to change 'Process HTML' in your settings to 'off'. I can understand your reluctance to using code, but I think in this case it might be the simplest solution.

markmark / 2010-02-28 18:19:14   

My goodness, that simple, I could have thought of that;) I will try with each entry as a whole, starting with

and ending with
and hopefully that does the trick.

Will report back on success, for any others in future.

Thanks for that!

Mark

markmark / 2010-02-28 18:20:45   

oh, I see the code didn't show. I meant starting with br and ending with br

thinkround / 2010-03-01 09:56:36   

I made a little variation on the simple news plugin, it now supports teasers. Read more here:
http://www.indexhibit.org/forum/thread/7781/

markmark / 2010-03-02 18:12:34   

hi thinkround,

thanks! i have not tried any of this or richard's previous suggestion as i got stuck into other website bits. will check yours out too though. i guess by "teaser" you mean some small flyer type image.

any examples out there of your plugin variation would be great;)

thanks again.

markmark / 2010-03-02 18:21:23   

ps. i am hoping to use this not just for a "news" idea but also for an indexhibit "exhibition" that would hold more than one project that one could scroll through. so there would be larger images involved too.

thinkround / 2010-03-03 08:16:03   

@markmark

what youre trying to do won't be easy, as the images are not included in the post by default so you'd have to hack them in, and you might have to delve a bit into the code to find out how to do that.
Furthermore once you've done that you might get conflicting #img tags (every exhibition has a img id tag and every id can only occur once on a page) which would cause your page not to validate anymore and cause unpredictable results in IE.

What I mean with teaser is part or snippet of the text or an alternative text to introduce the content of the page before you read the whole bit.

markmark / 2010-03-07 15:58:30   

Hi thinkround and Richard,

Thanks for latest post thinkround. Yes, I have just tried with the images and it's not working. I compared my html with that of indexhibit participant who managed it http://www.frankselby.com/current-exhibitions/ - yet still no luck. My site: http://www.markschreiber.org/index.php?/disc/discography/

Surprised so few others have wanted this too. Anybody with ideas much appreciated. Failing that perhaps the best idea is if someone would kindly send me dr_kuga forum member email address as he actually succeeded for the selby website mentioned above.

Thanks!

markmark / 2010-03-07 15:59:55   

Edited by Vaska: sorry, we aren't sharing peoples email addresses.

Vaska A / 2010-03-07 16:07:41   

Looking back on this plugin...I made it too simple...should have had more features.

orionrush / 2010-06-23 21:42:28   

Hi y'all

Im working on a site for my partner and I'd like to use the simple news on the main page.
I seem to have it working as expected, though I've run into a bizarre FF snag.

What I've noticed is that Windows FireFox reads the headline link as giberish.
http://stillstatic.nfshost.com/
I did make some minor changes to the plugin outline below, but these dont seem to be the culprit. Perhaps someone could shed some light here. It seems like the browser isn't reading the $page[title] output as utf-8.

Here's a snapshot of the problem:
http://stillstatic.nfshost.com/snapshot.png

I've only done two things:
Basically I wraped the headline links in h3 tags - as it seemed appropriate possibly more seo friendly.

  1. I also commented out line 42 <blockquote>// silly bug where text processing add paragraph tags about <plug:.../></blockquote>$s = preg_replace(array('/^<p>/i', '/</p>$/i'), array('', ''), trim($s));

I was having all sorts of trouble validating the page until I realised this line was stripping out the first <p> and the other errors were cascading. Will this cause me problems elsewhere?

Many thanks to anyone for their thoughts

bigjust / 2010-07-31 01:43:06   

Quick question about news plug-in.

Anyone have luck making it go horizontal?

I've dug around in the plug-in enough to think that adding a line that wraps each post in a div(fixed width?) that we could then float left via css might work?

Any thoughts or ideas are welcome as well as PHP snippets.

Thanks!

Stephenk / 2010-09-09 13:52:02   

Hi

Couple of questions – I've installed this on my page – am I right in thinking that each new news item appears as a new page on the "Exhibits: Main" page? Could your news section not end up being massive if you blog regularly?

rickykappa / 2010-09-09 14:21:59   

yes and yes (there is a limit you can set in the plugin)

lawchit / 2010-10-24 01:10:22   

I tried following rickykappa's instructions in the previous page, but all I get under my NEWS section are two different exhibitions.

What am I doing wrong!?

http://www.illtellyoulater.com/

lawchit / 2010-10-24 01:10:52   

I tried following rickykappa's instructions in the previous page, but all I get under my NEWS section are two different exhibitions.

What am I doing wrong!?

http://www.illtellyoulater.com/

rickykappa / 2010-10-25 23:47:21   

well... good news lately ;-)

jonnoh / 2011-01-06 18:42:04   

Hey Guys, I'm having some trouble with this plug in.
Basically i want my home page to be my news page much the same as this page www.drunkpark.com (i guess he has used simple news).

I'm a little confused as to where the code sits and which articles are hidden, published etc.

My site is www.jonnohowell.com

I have read through all the comments on this forum but keep getting stuck. Does simple news also require the iframe plug in?

Regards
J

pam / 2011-02-09 09:03:21   

Hello everyone,
I'm having exactly the same problem that jonnoh has.
Here is my website ; http://itinerairebaroque.com/2011
I want this adress to point directly to the news "ACTUALITES"
But strangely, only part of it (a video) appears.
It's all fine here though : http://itinerairebaroque.com/2011/index.php?/actualites/
I don't know if it's clear enough, but I would greatly appreciate some help there.
Thanks.
Pam.

rickykappa / 2011-02-09 09:20:02   

not sure what you're doing there, but surely I can't find the link back to indexhibit... did you read the forum rules?

pam / 2011-02-09 09:55:28   

I did, the site is not finished, it's only a draft, a work in progress. Indexhibit will be mentionned of course, I haven't done the credits page yet.

To summarize, I would like this to appear :

http://itinerairebaroque.com/2011/index.php?/actualites/

When we arrive on the main page here :

http://itinerairebaroque.com/2011

Cheers,

Pam.

pam / 2011-02-09 15:14:05   

Hello again,
the credits page is now done, mentionning indexhibit.
Do you think you can help me out?
That would be wonderful.
Cheers,
Pam.

rickykappa / 2011-02-10 04:21:13   

hi pam, long time ago I've posted this, maybe you didn't see it... if you follow the steps you should be able to set up your news but if you get stuck on a specific step will be easier to solve it if we use it as a reference.
however be aware that the plugin can't deal automatically with images and/or videos, you will need to write html directly in the text box of each exhibit/new.
hope it makes sense...
;-)
ps: reading through the thread I've realized that I've never posted before my working example, it's limited to the 3 last news with a link to the full news archive: here

mstiel / 2011-02-11 10:35:56   

Ive been trying to find the link to download the plugin, but cant find it anywhere. It looks like it was there, but its not anymore. Can anybody help me please.

rickykappa / 2011-02-11 10:46:33   

where did you look for it?! it's still here
;-)

This thread has been closed, thank you.