News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Drafts

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

Previous topic - Next topic

jm_araujo

I'm using SMF 2.0.6.
There's a missing string in the language file:
$txt['permissiongroup_simple_drafts'] = 'Drafts';"
Without it in the simple view of permissions it won't show a title.

Also when you add the line to Profile.php:
$profile_areas['info']['areas']['show_drafts']['label'] = '<a href="' . $scripturl . '?action=profile;u=' . $memID . ';area=show_drafts">' . $txt['drafts'][2] . '</a> <span class="smalltext">(' . $num_drafts . ')</span>';

It should be:
$profile_areas['info']['areas']['show_drafts']['label'] = $txt['drafts'][2] . ' (' . $num_drafts . ')';

This way it displays much better in my forum.

Also had to change  in "Drafts.template.php":
"area=showdrafts" to "area=show_drafts
to be able to delete drafts as explained by msauser2

I also include a Portuguese (from Portugal) translation.

jm_araujo

And line 627 in Drafts.php should not be:
'topic' => $topic
but
'topic' => $topicOptions['id']

Or else you will get an error when posting a new topic from a draft.

(this one took a bit longer to find and solve)

KillerKeox

Sorry, I get an error, or is it normal  :P  ????

Nolt

Hello,

recently I've translated modification to polish language. File attached.

live627


sardonick007

Quote from: msauser2 on July 18, 2012, 05:11:46 PM
I also had the problem where the "Delete Drafts" button did not work.  (I'm using Drafts 2.0.1 with SMF 2.0.2.)  I fixed the problem by editing Themes/default/Drafts.template.php as follows:

  • Search for all occurrences of "area=showdrafts" (there should be two)
  • Change to "area=show_drafts"
Now it works!

Thank you for posting this. I just downloaded this mod today from the update of 24JAN2014 and it still had this "issue". Your post solved it for me. Thanks!!

sardonick007

Has anyone modified or found a way to not allow all members to see each others drafts? I'd like to allow my members to use the drafts mod but not be able to go to a profile and see how many drafts someone else has, or be able to view their drafts. Any ideas?

live627

I've just uploaded the 2.0.3 update which should fix that.

0patience

Quote from: live627 on January 25, 2014, 05:06:28 PM
I've just uploaded the 2.0.3 update which should fix that.
Using SMF 2.0.6
Just tried Drafts 2.0.3
When I install it and try to delete the drafts, it brings me back to the profile page.
If I click on the Show Drafts, the Draft is still there. I have to post the draft for it to clear it out of the list.

If you go to delete a member, you get an error
QuoteUnknown column 'id_member' in 'where clause'
File: /home/content/26/12305226/html/forum/Sources/Subs-Members.php
Line: 409
Uninstall Drafts and no error.

I'd really really like to use this mod, but the problems with it are hard to deal with.
Any advice would really be appreciated.

live627

Both bugs are fixed in 2.0.4.

Mumeishi

#310
Hi, I just installed your mod (2.04) with Package Manager into my forums and although it said it all went successfully, whenever I try to navigate to a new topic, reply, or the drafts page from my profile, the webpages don't load. Here's an example of the error when trying to post a New Topic:

QuoteThe webpage at [website]/forums/index.php?action=post;board=1.0 might be temporarily down or it may have moved permanently to a new web address.

Error code: ERR_CONTENT_DECODING_FAILED

Can you provide me with some assistance on how to fix this? I really want this draft functionality in our forums. It's a great mod, but I just can't get it to work. I'm no expert with this stuff either. These are my first forums.

Thanks in advance!

live627

This mod does not affect any output buffering.

Did that happen before you installed the mod?

Mumeishi

No, the forums were fine right before installing the package.

live627

I have no idea how to help you. You can try the other drafts mod.

FireDitto

Hi, I'm getting the following error:

QuoteTemplate Parse Error!
There was a problem loading the /Themes/default/Drafts.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
syntax error, unexpected T_STRING, expecting ',' or ';'

I'm currently still on 2.0.6
Drafts 2.0.4
Second Pass Weyr<br />An AU Pernse RPG<br /><br />SMF 2.0.6 with SP 2.3.5

live627

Disable template eval, then report back, m'kay..

emanuele

<td align="center">$context['page_ti$context['page_title']tle']
Copy&paste is evil, but testing is useful. :P


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

live627


FireDitto

Quote from: live627 on January 30, 2014, 04:31:04 AM
Disable template eval, then report back, m'kay..

I have no idea what you are talking about...
Second Pass Weyr<br />An AU Pernse RPG<br /><br />SMF 2.0.6 with SP 2.3.5

GamePersia

How to edit this line
"Your work has been saved as a draft."
when we save draft,..the line appears in left,...
so i want to modify this line,...
i want to bold this line and adjust it in center and also make it little big !!
Help Needed

Advertisement: