Forums » Announcements

Plugin: Simple News

Vaska A
UNITED STATES
2007-06-24 15:07:07
Permalink Post
 

This is the first official 'plugin' for Indexhibit. There are already a small collection of them that will be released over time.

Plugin: Simple News

It creates a news/blog-like output of information within a single page. You will see a publish date and a link to the actual page.

Installation:

Download the 'plugin.simple_news.php.zip' file to your desktop and unzip. Upload the 'plugin.simple_news.php' file to your site/ndxz-studio/site/plugin folder.

On the page you wish to display your news, insert this code into the text area:

<plug:simple_news number />

'Number' will represent the section where you will place your news pages. You can get this by looking up the section information and checking the 'id' in the url.

When you publish a news page:

Before you publish the news page be sure to 'hide' the page - you will find the hide functionality in your page settings. When the page is hidden it will not appear in your Index list but it will appear on the news page.

Exhibit images do not work with the simple news plugin.

metel_hands
UNITED STATES
2007-06-25 19:23:12
Permalink Post
 

Vaska do you have an example (a visual) around of this plugn in action?
I tried it out but nothing happend?

Vaska A
UNITED STATES
2007-06-25 19:29:15
Permalink Post
 

--

metel_hands
UNITED STATES
2007-06-26 01:14:45
Permalink Post
 

Bingo. thank you

Vaska A
UNITED STATES
2007-07-15 11:16:48
Permalink Post
 

Updated...works now with systems that have mod_rewrite disabled.

Vaska A
UNITED STATES
2007-07-15 11:57:02
Permalink Post
 

Demo Page (at the Indexhibit demo site)

Joana
UNITED KINGDOM
2007-07-19 13:06:54
Permalink Post
 

Hey I tried to access my plug in folder under this:
http://joananiemeyer.com/ndxz-studio/site/plugin/
and i get this message...
No direct script access allowed

What am i doing wrong?

Vaska A
UNITED STATES
2007-07-19 13:31:24
Permalink Post
 

You don't bring it up that way...what are you trying to do?

Joana
UNITED KINGDOM
2007-07-19 16:52:06
Permalink Post
 

i want to install the plugin

Vaska A
UNITED STATES
2007-07-19 18:02:46
Permalink Post
 

Download the 'plugin.simple_news.php.zip' file to your desktop and unzip. Upload the 'plugin.simple_news.php' file to your website/ndxz-studio/site/plugin folder.

Suprb
SWEDEN
2007-07-20 19:04:35
Permalink Post
 

The date thingie doesn't work.
As soon as I wake up every morning, all my news posts has the same date (as of today).

Vaska A
UNITED STATES
2007-07-20 23:49:26
Permalink Post
 

I thought I updated that? Didn't I? When did you download it?

Suprb
SWEDEN
2007-07-21 10:29:05
Permalink Post
 

Hmm... 4-5 days ago.

Vaska A
UNITED STATES
2007-07-21 11:26:21
Permalink Post
 

Suprb...I don't understand what you are getting at.

goneone
CANADA
2007-07-21 23:30:42
Permalink Post
 

hey Vaska,

I tried to install this and it's not working for me.

i put the plug in in the correct folder path (pluggins)

i copy this code in to a news page i created under my info section.

i put this code on the news page:

now here is where i get stuck. i do not understand when you can say you can get the number from the URL. is it the URL where the news page is created... for me i see id=32. so do i put the "id" parte, or just the 32.

so then in my text area on the news page, i have this

from here under Additional Settings, i set the "Hide Page from Index" to off.

now if i followed your instructions correctly, i should be able to post news and it will be displayed with a link, date and time. am i doing this in the news page, so the most top area of the text area always has the plug in call?

let me know what i am missing.
thanks man.

Vaska A
UNITED STATES
2007-07-21 23:58:19
Permalink Post
 

It's not right. You only need the number. But, you need to go into "Settings"...then choose the section you want and get the id from there. If it's the "info" section, the id is probably 1.

Suprb
SWEDEN
2007-07-22 08:14:29
Permalink Post
 
Suprb...I don't understand what you are getting at.

I downloaded the News plugin that is listed under Downloads 5-6 days ago.

I installed it and every post had the same date.

I opened the source file and added "pdate" at the "$pages = $OBJ->db->fetchArray" string and now it works.

mejo
UNITED KINGDOM
2007-07-23 13:13:41
Permalink Post
 

Hi Vaska,

Downloaded and using the news feature. Good work. I was to back date some news is that possible with this version?

Many tanks,

Will

Vaska A
UNITED STATES
2007-07-23 14:47:47
Permalink Post
 

Not really. But, if you aren't afraid of PHPMyAdmin you could go in an manually adjust the pdate cells to suit your needs.

mejo
UNITED KINGDOM
2007-07-27 11:41:56
Permalink Post
 

What about a basic comments form for the news/"blog" feature...?

Vaska A
UNITED STATES
2007-07-27 13:13:38
Permalink Post
 

Sure. Go ahead and develop that and release it back to everybody open source.

Vaska A
UNITED STATES
2007-07-27 13:55:40
Permalink Post
 

You know, that is also why I released the "Iframed" plugin. You can install WP or TextPattern or whatever...and them simply display them in an iframe on your site.

The plans to do a blog module are more or less dead now. Don't have time for it.

And besides, I still don't see a need for commenting on a portfolio website.

nils
GERMANY
2007-08-19 19:37:19
Permalink Post
 

How can I limit the entries per page?

Vaska A
UNITED STATES
2007-08-19 22:21:22
Permalink Post
 

Yes, we need to add this...soon...there will be a bunch of updates to many things...and Flickr. ;)

Let's see if I can post all of this...lines 12-25...


function simple_news($id=0, $limit=6) { $OBJ =&#38; get_instance(); global $rs;

if ($id == 0) return;

$pages = $OBJ->db->fetchArray("SELECT user_format, user_offset, url, title, content, pdate
FROM ".PX."objects
INNER JOIN ".PX."users
WHERE status = 1
AND hidden = 1
AND section_id = '$id'
ORDER BY ord ASC, pdate DESC
LIMIT 0,$limit");

Then your plugin would look like:


<plug:simple_news 5,6 />

First one being the section...second one being the number of entries to show (will always take the most recent $limit entries.

Vaska A
UNITED STATES
2007-08-19 22:22:10
Permalink Post
 

Blorb...

I just uploaded an updated version that has the limit in there (it's in the downloads now). You can change the value in the plugin if you want, but it's default is 6.

;)

nils
GERMANY
2007-08-20 08:56:39
Permalink Post
 

... works perfect! Thanks Vask!

o.
CANADA
2007-08-30 07:11:34
Permalink Post
 

Great app. thanks Vaska et al.

Quick question about the news plugin... I read the above but am unsure what exactly happens when you pass the default limit of 6 entries. Does your earliest news entry disappear from the page?

If so, what is a good way of keeping past entries available without having an enormously long scrolling page ...to use the archive plugin? Is that its purpose?

My apologies if the answers to these questions are obvious. I'm just trying to understand the logistics of these 2 plugins. Cheers.

Vaska A
UNITED STATES
2007-08-30 07:45:18
Permalink Post
 

1. Yes, it disappears.
2. Perhaps the archive plugin?

In another week I'll be putting in some serious time on Indehxibit...dealing with this plugin and some surprises as well (one of which will resolve this too).

;)

andw55
UNITED STATES
2007-11-28 17:34:49
Permalink Post
 

(probably i am just missing something obvious) -> Where is the link to download it?

Vaska A
UNITED STATES
2007-11-28 19:55:02
Permalink Post
 

Download page.

zm
UNITED STATES
2007-11-30 18:38:21
Permalink Post
 

Vaska—And besides, I still don't see a need for commenting on a portfolio website.

i gotta agree with you on this...

indexhibit is like a your sketch pad in art class, we all have the same sketch pad, its what's on your sketch pad, your artwork, expressions, emotions, etc...

no one wants to read your diary aka blog

IMO keep indexhibit as simple as possible with as much focus on the art work, and not on theweb experience

Tarsh
AUSTRALIA
2007-12-24 18:16:54
Permalink Post
 

I agree with zm for my use personally, but having some options available may widen the user base and be of more use to others.

stuttter
IRELAND
2008-01-28 14:17:00
Permalink Post
 

hi (first post)
firstly wanted to say how great indexhibit is and thanks for putting it together.

question, is there a way of bringing thumbnails into simple news?

thanks

Vaska A
UNITED STATES
2008-01-28 14:58:08
Permalink Post
 

No. It would cause a whole mess of problemms...the simple news plugin might be discontinued soon though as we have a simple blog module coming along now.

stuttter
IRELAND
2008-01-28 15:57:48
Permalink Post
 

thanks for getting back so quickly.

will we be able to add pics in the simple blog module?

also (don't want to sound pushy) do you have a possible release date?

cheers

Santi
FINLAND
2008-02-12 19:59:53
Permalink Post
 

i really seem stupid, but where the hell do i download this?

Vaska A
UNITED STATES
2008-02-12 21:17:40
Permalink Post
 

From the download page.

EnglishMack
UNITED KINGDOM
2008-02-14 23:59:01
Permalink Post
 

Hello Vaska, first of all - thanks for the time you put into this.

Basically my problem is that when I make a news post, it always double posts, as an example..

new

would end up looking like..

post number one
14 February 2008

new

» Permalink

new

--

Any idea's what I may be doing wrong here ? I followed everything to the letter..

Thanks,
M

EnglishMack
UNITED KINGDOM
2008-02-17 00:20:12
Permalink Post
 

Hello Vaska.

I have followed all the steps but it doesn't seem to be working?

Is there anything that's commonly missed by people?

m9dfukc
GERMANY
2008-02-18 13:31:42
Permalink Post
 

hi Vaska,

I don't get it - where can I download your simple news plugin? seems that i need glasses :)

simon
BELGIUM
2008-02-18 13:41:33
Permalink Post
 

on the downloads page,
it's the last one ;)

m9dfukc
GERMANY
2008-02-18 14:12:50
Permalink Post
 

ah ok,nice
much thanks

mortenengel
DENMARK
2010-01-09 12:55:08
Permalink Post
 

Hi,
Where in myphpadmin is it possible to change the date of an entry?

ps
ISRAEL
2010-01-09 17:42:06
Permalink Post
 

look for ndxz_objects..
I don't know what happens to the order of things if you change it though, so good luck mate! :)

cheers

mortenengel
DENMARK
2010-01-09 19:19:04
Permalink Post
 

thanks ps,
but I think it's a bit too technical for me. Afraid to mess anything up.

AandM
CANADA
2010-01-13 00:47:40
Permalink Post
 

Hi,

I have the same problem as EnglishMack. The text I entered as news repeats under the permalink. Also, all new posts get grouped into the same news section (no new date or post).

What have I done wrong?

Here is my site: LINK

rickykappa A
ITALY
2010-01-14 18:21:18
Permalink Post
 

Hello!
It seemed quite simple, but I was always missing the point... I've finally found out how to make it work, and thought to add a post to the forum, to explain how to use simple_news plugin to other folks so dummy as I am ;-)
So here's a step by step chronicle:
1. I assume the plugin is already in the correct folder, as the first step of Vaska's top post
2. so what I want to get is a NEWS section, therefore I go to Exhibits admin > Settings > Create new section
3. create a NEWS section, in my case I've set the Projects Section to Off > press Update
4. take note of the section id number at the end of the url in the browser address field, that's the number I need later
5. now in the main settings window I want to create a > new exhibit, which I assign to the NEWS section (obviously that's my choice, I'm only reporting what I did)
6. editing this exhibit: this will be the news container page, here must paste the code

  1. <plug:simple_news section_id_number />

, where section_id_number is that in step #4
7. save and publish the exhibit
8. back to the main settings window > create a > new page (the Exhibition Name will be the post's title) > assign to the NEWS section
9. editing this exhibit (this will be the first new posted): write here the post, click on the Additional Settings in the right bottom corner > "Hide Page from Index" set to Off > Save and publish
10. done, only need to repeat step 9 for every new post

Be aware that this worked for me as my indexhibit site is organized by sections, so I don't know how different is the process if you've got chronological order.
I hope this can help...

AandM
CANADA
2010-01-14 23:19:11
Permalink Post
 

Yeah!

Thanks so much. Worked perfectly!

matthewrp
UNITED KINGDOM
2010-01-17 20:45:47
Permalink Post
 

rickykappa-could you please post your url? I followed the steps but the news feed was just like having another 'projects' section, i thought it would be like a micro-blog?

thanks for the explanation!

rickykappa A
ITALY
2010-01-18 16:11:31
Permalink Post
 

hi matthew, sorry but I'm still playing in the backstage, for some reasons -too long to explain- I'm not going to publish my url for some time, my apologies...
but in the other hand the link alex provided before my post is perfectly working! ;-)

Showing 1 - 50 of 111 posts in Forum > Announcements > Plugin: Simple News