Posted on: 03/24/08 04:24pm
By: fakestar
Hello,
I need a hack to allow registered users upload images to their stories.
Maybe a modified
admin/story.php?mode=edit to record in database
always as a draft can do the service.
what you guys think?
So...to moderate, i read the article, if i want approve, i leave the checkbox "draft" blank...
So if you're experienced php coder and geeklog user, the help is welcome.
Thanks
Re: submit.php hack
Posted on: 03/24/08 07:01pm
By: matthewcox
If I understand you correctly, this is built into geeklog.
Images are already allowed to be uploaded either through the images tab or the latest fckeditor that comes with Geeklog.
Then it's just a matter of enabling story submission queues in config.php
Text Formatted Code
// enable (set to 1) or disable (set to 0) submission queues:
$_CONF['storysubmission'] = 1;
This causes all story submissions to be approved by the admin first.
Re: submit.php hack
Posted on: 03/24/08 07:10pm
By: fakestar
Thanks for your reply.
What i want is allow to registered member (Not admins) upload images to their stories.
So i want to make a new php page with a form, title, topic, id...and let registered users upload images.
So in mysql query to insert values in database...the value to draft_flag will be '1'. (Drafted)...
But i need help on this
Re: submit.php hack
Posted on: 03/25/08 04:40pm
By: dewdoo
I would love to have this feature as well. At least with mediagallery members album. So members can use pics/movies etc from thier own Photo Album.
Re: submit.php hack
Posted on: 03/25/08 06:25pm
By: jmucchiello
You can do it with mediagallery already. You just can't do it all on one submission. If a user remembers to upload the pictures first, they can use autolinks in their story to include the pics with the story. I believe the autolink is [ media:media_id_number ] without the spaces around the square brackets.
Re: submit.php hack
Posted on: 03/26/08 01:00pm
By: dewdoo
for my average users using auto tag feature, this not a problem. For the 90% of the members it goes right over thier head. Honestly, all I need is to make this work is to have fckeditor just load a basic tools and MG browser. So, most of my users can just point and click. Just my coding skills to get this too work is very limited. But I can see, how this can help an average site.
Re: submit.php hack
Posted on: 03/26/08 02:51pm
By: jmucchiello
With the advanced editor, you can use the MG Browser plugin (a plugin for FCKEditor itself, not a GL plugin) to maybe make this easier. It adds an upload button to the FCKEditor that interacts with MG. Look for the browser plugin on gllabs.org.
Re: submit.php hack
Posted on: 08/01/08 12:17pm
By: ::Ben
To allow pictures to anonymous and Logged-in Users in submit story with FCKEditor see
this hack[*1] .
::Ben