• Welcome to Simple Machines Community Forum. Please login or sign up.
January 22, 2022, 05:19:23 AM

News:

Join the Facebook Fan Page.


Drafts

Started by live627, June 24, 2008, 01:11:04 PM

Previous topic - Next topic

jossanaijr

Did not understand: link for the blog?  This is draft mod and after installation you need to give permission to members to use it.

Charles Hill

Quote from: chrisb on June 28, 2008, 06:51:42 PM
Hi

We have installed this on version 1.1.5 and then applied this to the packages and when we goto find the link for the blog, we are unable to find it at all showing up, is there are reason why this might not work on a fresh install, also we are using the default template as well. what could be causing these issues.



This mod is separate from my blog mod.

weightman

Although I don't feel up to trying to install this right now due to the number of mods installed I have, the likelihood of many manual edits being have to made, and the coming upgrades to 2.0 and 2.0 mod updates, I think this or some variation of user/moderator/admin rough drafts should be a base feature of 2.0 at all costs.

Cheers

Cal O'Shaw

Hi,

My test users really like the drafts feature (judging by the size of the file savings when I optimise the tables :) ).

Any chance the next release will include an indicator in member profiles when they have one or more drafts pending?  Whether the link is in bold, or a number (3), or number and max (3 of 10), or in the page header (You have 3 of a maximum 10 drafts pending), any are fine, just something to remind people they have drafts pending.

Admin info such as "xx drafts pending for yy members" is a "nice to have" but not really needed.  As long as members know they have drafts pending.

Grazie!

Cal

ilikeitalot

I've got a problem.  Whenever I click Save as Draft, it creates a NEW draft, even if one already exists for that post.  Then when I finally submit the post, the drafts are not deleted.  I installed this mod manually, so maybe I messed up somewhere.  Just wanted to make sure this isn't happening to everyone else.

weightman

I changed my mind and installed this mod since it looked just so totally cool, and it is totally cool! Everything seems to be working great but I got this error in my log when I ran it through its paces. I think it happened when I posted the draft from my profile. I have many other mods installed including the topic description mod which it looks is causing this conflict and being bridged with Mambo through Orstio's bridge. Thank you very much for this great mod and any info on this would be great.

http://weightliftingexchange.com/smf/index.php?option=com_smf&Itemid=39&action=profile;sa=showDrafts;u=9;sesc;postDraft=1

8: Undefined index: description
File: /home/notrealname/public_html/smf/Sources/Subs-Post.php
Line: 1537

Lines 1532-1539
// Insert the post. -Topic description MOD- query modified
db_query("
INSERT INTO {$db_prefix}messages
(ID_BOARD, ID_TOPIC, ID_MEMBER, subject, description, body, posterName, posterEmail, posterTime,
posterIP, smileysEnabled, modifiedName, icon)
VALUES ($topicOptions[board], $topicOptions[id], $posterOptions[id], SUBSTRING('$msgOptions[subject]', 1, 255), SUBSTRING('$msgOptions[description]', 1, 255), SUBSTRING('$msgOptions[body]', 1, 65534), SUBSTRING('$posterOptions[name]', 1, 255), SUBSTRING('$posterOptions[email]', 1, 255), " . time() . ",
SUBSTRING('$posterOptions[ip]', 1, 255), " . ($msgOptions['smileys_enabled'] ? '1' : '0') . ", '', SUBSTRING('$msgOptions[icon]', 1, 16))", __FILE__, __LINE__);
$msgOptions['id'] = db_insert_id();

Charles Hill

Quote from: ilikeitalot on June 30, 2008, 12:18:26 PM
I've got a problem.  Whenever I click Save as Draft, it creates a NEW draft, even if one already exists for that post.  Then when I finally submit the post, the drafts are not deleted.  I installed this mod manually, so maybe I messed up somewhere.  Just wanted to make sure this isn't happening to everyone else.
Ya you must have missed something in Post.php.  Check the install.xml file for the edits made to Post.php and make sure you have them all and in the right places.

@weightman...

It sounds like the topic description mod is causing a problem here.  If you could also post for me the part of your Post.template.php (default theme) that shows the input field for the topic description, I think I can add the necessary code to the drafts mod to make it work for those who are using the topic description mod.


weightman

Charles, this what you need? Thanks very much!

Lines 447-457 of Post.template.php:

<!-- //-Topic description MOD- Start -->
', (!empty($context['is_first_post']) ?
'<tr>
<td align="right" style="font-weight: bold;" id="caption_description">
'. $txt['topic_description']. ':
</td>
<td>
<input type="text" name="description" value="'. $context['description'] .'" tabindex="'. $context['tabindex']++. '" size="80" maxlength="80" />
</td>
</tr>':'<input type="hidden" name="description" value="" readonly />') ,'
<!-- //-Topic description MOD- End -->

Charles Hill

Yes that works thanks :)

I'll tack that onto v1.05.

ilikeitalot

Quote from: Charles Hill on June 30, 2008, 06:31:15 PM
Quote from: ilikeitalot on June 30, 2008, 12:18:26 PM
I've got a problem.  Whenever I click Save as Draft, it creates a NEW draft, even if one already exists for that post.  Then when I finally submit the post, the drafts are not deleted.  I installed this mod manually, so maybe I messed up somewhere.  Just wanted to make sure this isn't happening to everyone else.
Ya you must have missed something in Post.php.  Check the install.xml file for the edits made to Post.php and make sure you have them all and in the right places.

Yep, you were correct.  I redid the changes to Post.php and all is well.  Thank you!

Afro

Great mod, works straight on my dilber theme.
Good job

Charles Hill

Just updated to v1.05.  Here are the changes/additions:

Added Brazilian translation
Additional post data now saved with drafts: blog categories, topic description.
Added counter to Show Drafts link in profile side window (only shows when count is greater than 0)

weightman

Thanks for the update to work with the topic description mod...works great! And the draft counter is a great addition as well!

Sudhakar Arjunan

Quote from: Charles Hill on July 04, 2008, 06:49:15 PM
Just updated to v1.05.  Here are the changes/additions:

Added Brazilian translation
Additional post data now saved with drafts: blog categories, topic description.
Added counter to Show Drafts link in profile side window (only shows when count is greater than 0)

hey Charles, nice updates.
i have already installed v1.03, and all users were already using Draft.
did i have to uninstall and reinstall to get this latest version work.

Help me Charles.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Charles Hill

Yes you will have to uninstall and then reinstall.  Don't worry, all the stuff in your database will be unchanged by the uninstall and reinstall.

Sudhakar Arjunan

Quote from: Charles Hill on July 05, 2008, 03:25:08 AM
Yes you will have to uninstall and then reinstall.  Don't worry, all the stuff in your database will be unchanged by the uninstall and reinstall.

Ok Charles, will do it right now.
Thanks and will report incase of any issue? Hope Strongly, it will not.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Charles Hill

You should probably download it again.  I left one bit out related to topic description mod compatibility and I think I forgot to update the zip archive to 1.05 anyways.  1.06 is correct.  Sorry about that.

Sudhakar Arjunan

Quote from: Charles Hill on July 05, 2008, 03:25:08 AM
Yes you will have to uninstall and then reinstall.  Don't worry, all the stuff in your database will be unchanged by the uninstall and reinstall.

Hey Charles,
You made this update so cool.

I have uninstalled and installed and now its working perfectly.

But i have two suggestions for you,

One - drafts_smf11x.zip - old & new file name or same. So i have to delete that package and reupload.
If i have some bugs in this update, then for time being i have to reupload the file and have to install it again , instead you could change the name of update.

Second - Updates : Additional post data now saved with drafts: blog categories, topic description.
Kindly Add Tags field also if possible.

And i have already asked to make the post saved every 2 minutes, and hope you have added it to your todo list.

Thanks for this Excellent Mod.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Sudhakar Arjunan

Quote from: Charles Hill on July 05, 2008, 03:41:36 AM
You should probably download it again.  I left one bit out related to topic description mod compatibility and I think I forgot to update the zip archive to 1.05 anyways.  1.06 is correct.  Sorry about that.

Just now done.
Anyhow, thank you for it Charles.
Will Delete and Reupload once.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Advertisement: