Page 1 of 3
does such a plugin exist? (news send in by users)
Posted: Fri Dec 09, 2005 5:30 pm
by bailey87
i need a plugin (for a underpage/lower surface of my website) with that every user can send in news which are moderated. But these news should NOT to see on the mainpage seperate at a lower surface...
does such a plugin exist?
Posted: Fri Dec 09, 2005 7:59 pm
by jerwarren
What you can do is disable the ability for users to Publish, rather set them for Draft. Then you can look at all the drafts and moderate them, setting them to publish when you approve them.
Alternately, you could use the News Box plugin to create a box down below, and set your users group to allow them to only publish to the special newsbox category.
Posted: Fri Dec 09, 2005 8:23 pm
by judebert
See, I knew this Newsbox thing would come in handy for someone else eventually. :)
Neat idea. I've got my own blog set up so users can submit news, but it must be moderated. I like putting the user news in a separate Newsbox, and since it supports multiple categories, I could even open up more than one topic.
Posted: Fri Dec 09, 2005 8:44 pm
by jerwarren
judebert, will you post the URL to your News Box using blog so bailey can see what it looks like? (and so I don't have to dig through the forum again to find it for myself)
Posted: Fri Dec 09, 2005 9:05 pm
by Col. Kurtz
http://www.s9y.org/forums/viewtopic.php ... ht=newsbox
come on theres a search option in this forum! its even linked twice in the header!
Posted: Fri Dec 09, 2005 9:50 pm
by Guest
thank you ...but i have seen that the plugin must have the version 1.0 of serendipity, but i can´t see that version anywhere...
Posted: Fri Dec 09, 2005 10:05 pm
by Col. Kurtz
1.0 is not released yet, but you can try the 1.0 alpha test version (usually those versions run very stable, never had trouble with any of em), download em here
http://www.s9y.org/12.html (labeled Fetch a snapshot (1.0 development))
Posted: Sat Dec 10, 2005 9:26 am
by bailey87
i have installed it but i think thats not that what i´m looking for. i want that this plugin is show on a lower surface of my webpage...
i have created some lower surfaces with the wrapURL plugin;)
Posted: Sat Dec 10, 2005 5:05 pm
by judebert
You mean like a lower layer, as in a CSS layer? Or are you thinking "lower on the page than the entries?" The first will require adding CSS for .newsbox and .newsbox_container in your styles.css; the second can be done by configuring the Newsbox placement for "Bottom of Entries".
Posted: Sat Dec 10, 2005 8:18 pm
by garvinhicking
Bailey: You can create a special category, and then only the new members you add via the adduser plugin shall have write access to that single category. Set the adduser members to only be able to post "DRAFT" entries, then you can moderate those.
However hiding those entries on the startpage might be complicated. I think there is a hidecategory plugin for that, but I don't know about it. What you're wanting to do is very special, that might involve coding own plugins.
The easiest way would be to install a second serendipity version, which lists those special entries, and then you link to a seperate serendipity version (with the same template!) for those entries.
Regards,
Garvin
Posted: Sat Dec 10, 2005 10:05 pm
by garvinhicking
Maybe this was a bit too short, so here's a more verbose instruction:
1. Upgrade to serendipity 1.0-alpha1 nightly which will be created tomorrow. It contains a change you will need later on.
2. Install the plugin "User Self-Registration" (in german "Registrierung neuer User").
3. Create a usergroup called "Free Editors". Give it only the permissions you think they will need.
4. Go to configure the category you want your free editors to be able to post in (like "Free News" - if you haven't created that category yet, create it now). There, set the "Write" permission to include the usergroup "Free Editors".
5. Go to configure the User Self-Registraion sidebar plugin. Set the option "Allow to publish entries" to "No". This way, your users will only be able to post draft entries.
6. Next, install the plugin "Start Page Category" ("Kategorie als Startseite" in German"). Pay attention that you'll install version 1.1 of that plugin, which I've just committed. It might take 48 hours until it's avalabile through spartacus. This plugin will allow you to hide the "Free News" category on the startpage.
7. Configure the "Start Page Category" plugin. Enter the category ID ( you can find that in the admin panel within the links) inside the field "Initial hide category". This will then take care that entries from that category will not be shown on your default page.
8. Edit your index.tpl template or create a HTML nugget plugin where you enter the link to your "Free News" category. That will be a link like "index.php?serendipity[category]=X", where X is the category ID.
Now you should be finished. New users can register within the sidebar plugin, and they can log in to your serendipity installation to post news. You can review and publish them, and then they will not show up on the startpage, but only when you choose the "Free News" category.
Best regards,
Garvin
Posted: Fri Dec 23, 2005 10:36 am
by bailey87
thank you garvin,
but where do i find the plugin "User Self-Registration" (in german "Registrierung neuer User") and the plugin "Start Page Category" ("Kategorie als Startseite" in German")... i have looked everywhere but i can´t find it...
Posted: Fri Dec 23, 2005 11:57 am
by garvinhicking
User Self-Registration is both an Event and a Sidebar plugin in the Spartacus repository. If you've installed the Spartacus plugin, both are available to you.
Both can also be fetched via CVS or via a mirror download. See
www.s9y.org in the plugin section for the links.
Best regards and have a nice christmas,
Garvin
Posted: Fri Dec 23, 2005 12:34 pm
by bailey87
i would like to install the plugin "user-self registration" but if i do this, this erros appears:
DEBUG: ERROR: XML tree did not contain requested plugin:
Array ( [0] => Array ( [tag] => packages [attributes] => [value] => [children] => Array ( ) ) ) Fehler: serendipity_event_adduser:32102c6cf988ad1752d0f2486fa18c9b (serendipity_event_adduser)
DEBUG: Plugin serendipity_event_adduser:32102c6cf988ad1752d0f2486fa18c9b not an object: .
Input: Array ( [adminModule] => plugins [pluginPath] => serendipity_event_adduser [install_plugin] => serendipity_event_adduser [spartacus_fetch] => event [action] => [adminAction] => ) .
Please report this bug. This error can happen if a plugin was not properly downloaded (check your plugins directory if the requested plugin was downloaded) or the inclusion of a file failed (permissions?)
Backtrace:
Installing plugin: Array ( [0] => serendipity_event_adduser [1] => [2] => event [3] => 0 [4] => serendipity_event_adduser )
INSERT INTO serendipity_plugins (name, sort_order, placement, authorid, path) values ('serendipity_event_adduser:32102c6cf988ad1752d0f2486fa18c9b', 19, 'event', '0', 'serendipity_event_adduser')
No valid path/filename found. Aborting.
Classname serendipity_event_adduser still does not exist. Aborting.
Loading plugin failed painfully. File not found?
No valid path/filename found. Aborting.
Classname serendipity_event_adduser still does not exist. Aborting.
Fatal error: Call to a member function on a non-object in /www/htdocs/[Haupt]/news/include/admin/plugins.inc.php on line 847
Posted: Fri Dec 23, 2005 1:04 pm
by garvinhicking
It seems your templates_c directory has permission problems:
Versuche URL package_event_de.xml zu öffnen...
163780 bytes von obiger URL geladen. Speichere Inhalt als /www/htdocs/w0062283//news/templates_c/package_event_de.xml...
Datei /www/htdocs/w0062283//news/templates_c/package_event_de.xml kann nicht geschrieben werden.
Look and see why that file cannot be created; check if the permissions are all set properly.
Regards and have a nice christmas
Garvin