Forums » Announcements

Plugin: Simple News

  • Pages:
  • 1
  • 2
puppiepoppy
CHINA
2010-01-18 17:33:34
Permalink Post
 

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
ITALY
2010-01-18 18:17:47
Permalink Post
 

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

guilhem
ANDORRA
2010-01-19 17:57:30
Permalink Post
 

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
ITALY
2010-01-20 12:50:34
Permalink Post
 

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
ANDORRA
2010-01-20 13:21:47
Permalink Post
 

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
ANDORRA
2010-01-20 13:24:05
Permalink Post
 

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
ANDORRA
2010-01-20 13:26:01
Permalink Post
 

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
ANDORRA
2010-01-20 13:27:02
Permalink Post
 

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

rickykappa
ITALY
2010-01-20 14:59:38
Permalink Post
 

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
UNITED KINGDOM
2010-01-21 09:42:26
Permalink Post
 

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
UNITED KINGDOM
2010-01-26 03:28:34
Permalink Post
 

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
ITALY
2010-01-26 09:55:46
Permalink Post
 

@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
UNITED KINGDOM
2010-01-26 11:36:09
Permalink Post
 

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
ITALY
2010-01-28 14:44:46
Permalink Post
 

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
ITALY
2010-01-28 14:56:38
Permalink Post
 

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
ITALY
2010-01-28 16:15:13
Permalink Post
 

GRAZIE!

jooordi
NETHERLANDS
2010-01-30 10:38:40
Permalink Post
 

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
ITALY
2010-01-30 10:49:57
Permalink Post
 

@ 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
SPAIN
2010-02-03 12:57:18
Permalink Post
 

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
SPAIN
2010-02-03 13:06:33
Permalink Post
 

Sorry, the website: Webpage

rickykappa
ITALY
2010-02-03 14:26:17
Permalink Post
 

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
SPAIN
2010-02-03 14:33:00
Permalink Post
 

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

Thanks

markmark
GERMANY
2010-02-28 15:12:31
Permalink Post
 

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
UNITED KINGDOM
2010-02-28 16:26:11
Permalink Post
 

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

markmark
GERMANY
2010-02-28 16:40:05
Permalink Post
 

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
UNITED KINGDOM
2010-02-28 17:01:41
Permalink Post
 

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
GERMANY
2010-02-28 18:19:14
Permalink Post
 

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
GERMANY
2010-02-28 18:20:45
Permalink Post
 

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

thinkround
AUSTRALIA
2010-03-01 09:56:36
Permalink Post
 

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
GERMANY
2010-03-02 18:12:34
Permalink Post
 

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
GERMANY
2010-03-02 18:21:23
Permalink Post
 

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
AUSTRALIA
2010-03-03 08:16:03
Permalink Post
 

@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
GERMANY
2010-03-07 15:58:30
Permalink Post
 

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
GERMANY
2010-03-07 15:59:55
Permalink Post
 

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

Vaska A
I WROTE THIS
2010-03-07 16:07:41
Permalink Post
 

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

orionrush
UNITED KINGDOM
2010-06-23 21:42:28
Permalink Post
 

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
UNITED STATES
2010-07-31 01:43:06
Permalink Post
 

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!

Showing 26 - 62 of 87 posts in Forum > Announcements > Plugin: Simple News
 
  • Pages:
  • 1
  • 2

You need to be logged in to post.