Welcome to Geeklog, Anonymous Saturday, November 30 2024 @ 12:37 am EST
Geeklog Forums
User submitting images with story
Status: offline
holla
Forum User
Newbie
Registered: 03/06/05
Posts: 9
Location:Ouray Colorado
Why can't a user submit images with a story?
I looked through config.php, these forum postings, admin/story/storyeditor.php and submit.php. There's not a place for user submission of images in submit.php or submit/submitstory.thtml.
Am I missing something here? Does someone have a hack for submit.php and submit/submitstory.thtml that allows this?
Thanks,
Craig
I looked through config.php, these forum postings, admin/story/storyeditor.php and submit.php. There's not a place for user submission of images in submit.php or submit/submitstory.thtml.
Am I missing something here? Does someone have a hack for submit.php and submit/submitstory.thtml that allows this?
Thanks,
Craig
14
17
Quote
Status: offline
kingsley
Forum User
Junior
Registered: 03/17/05
Posts: 29
OK I am a relative noob to GL but the solution we plan to implement for this is to set up a group called "members" that will have story.edit authority. This lets any user that belongs to that group have all the functions for submitting a story.
Of course we are going to limit this to paying members of our group/club so the number of users affected is small and generally easy to manage. The one issue that I am trying to work through now is that by default the permissions for the story are set to Group Edit so a user would have to unselect that in order to restrict other members from editing their story. I would prefer that this was unselected by default. I am pretty sure I can do that I just havn't dug deep enough yet.
Of course we are going to limit this to paying members of our group/club so the number of users affected is small and generally easy to manage. The one issue that I am trying to work through now is that by default the permissions for the story are set to Group Edit so a user would have to unselect that in order to restrict other members from editing their story. I would prefer that this was unselected by default. I am pretty sure I can do that I just havn't dug deep enough yet.
9
13
Quote
Status: offline
beewee
Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
Well, the code is in the Admin's story editor, i.e. in admin/story.php
Forgive me, I'm a PHP newbie, but do you mean I could replace the code to submit a story in submit.php with the code from admin/story.php ?
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
11
11
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by beewee: do you mean I could replace the code to submit a story in submit.php with the code from admin/story.php ?
No. You could probably lift some code (for the actual image upload and scaling) from admin/story.php, but it certainly requires changes and some new code to make it work in submit.php
bye, Dirk
15
11
Quote
WarpGate
Anonymous
Has anyone achieved a hack to achieve this ? that they could share, I'd like to let users add stories with images (but i would want story admins to approve befor eit went live)
Standard stories but with a single image, no dates, just a story and an image, then the story admins would see the new story and have to appove it or reject it before it went live
Cheers
Standard stories but with a single image, no dates, just a story and an image, then the story admins would see the new story and have to appove it or reject it before it went live
Cheers
10
13
Quote
Status: offline
Svobi
Forum User
Newbie
Registered: 05/31/05
Posts: 2
Hiyas...
I want exactly the same - spoke with Dirk in teh german board about that stuff.
I'm not really a php guru neither a geeklog one, but I worked a bit on the User editor: copied and edited some code.
So far I managed to give the public (of course tuned & expanded *g*) editor a second text input field like the admin editor has: Intro- and Bodytext. I made some changes to the code and added a field in the DB - this works great so far.
Next step was to implement the file upload and image inclusion stuff. I copied the code from the admin-story.php to the user-submission.php as good as I could. Of course edited the user-editor-template. I turned on debugging, put in a direct submission button to avoid the preview-error-bug and after selecting one file to upload, the debug shows me the name of the file - but it didn't upload it. So I guess I'm not far away from the final result but I need some help here since I'm stuck. I *guess* it's only the call for the upload-function or something like that, but after several hours I really can't find it.
So if anyone has some knowledge of php & geeklog (editor) code, I'm willing to give him full access to my test-system where he can view and play with my edited code. If it work's finally and I can follow the step's I can put stuff together for everyone to use it.
Feel free to contact me
I want exactly the same - spoke with Dirk in teh german board about that stuff.
I'm not really a php guru neither a geeklog one, but I worked a bit on the User editor: copied and edited some code.
So far I managed to give the public (of course tuned & expanded *g*) editor a second text input field like the admin editor has: Intro- and Bodytext. I made some changes to the code and added a field in the DB - this works great so far.
Next step was to implement the file upload and image inclusion stuff. I copied the code from the admin-story.php to the user-submission.php as good as I could. Of course edited the user-editor-template. I turned on debugging, put in a direct submission button to avoid the preview-error-bug and after selecting one file to upload, the debug shows me the name of the file - but it didn't upload it. So I guess I'm not far away from the final result but I need some help here since I'm stuck. I *guess* it's only the call for the upload-function or something like that, but after several hours I really can't find it.
So if anyone has some knowledge of php & geeklog (editor) code, I'm willing to give him full access to my test-system where he can view and play with my edited code. If it work's finally and I can follow the step's I can put stuff together for everyone to use it.
Feel free to contact me
11
11
Quote
All times are EST. The time is now 12:37 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content