Link to Mod (http://mods.simplemachines.org/index.php?mod=535)
Rate this Mod (http://mods.simplemachines.org/index.php?action=review;sa=add;mod=535)
This Mod Allows you to view a Single Personal Message in Your Personal Messages.
To use click the Subject link and be taken to the that PM and have it displayed Only.
To Disable the messages from showing while in a folder (not viewing a PM) go to Admin -> Features and Options
and Check: Enable Single Personal Message View
Version 1.0
! Release
Another great mod.
Installed fine, works fine.
Don't forget to enable it in the adminpanel though or it won't work right.
The mod you have requested has not been approved yet for downloads.
Quote from: danskmacabre on November 11, 2006, 04:09:09 PM
Another great mod.
Installed fine, works fine.
Don't forget to enable it in the adminpanel though or it won't work right.
Yea I added that as an option incase you don't want to hide the messages.. Thought it would give more users functionality to choose. I like it to view all but a single is nice for the very long pms you get :P
Quote from: Assistance on November 11, 2006, 06:30:19 PM
The mod you have requested has not been approved yet for downloads.
Please force refresh the page and download. If that doesn't work contact a SMF team member and they will try to fix the issue.
How do I display the "short-list" of PM's in the Inbox while viewing the single PM? So I can click a new one without having to go back to inbox and pick a new one.
This mod is something I've been wanting for awhile since I'm still on dial-up and waiting for 20 messages to load every time can be a drag.
But I get an error when I tried to install it on 1.1 RC3 with security update
1. Execute Modification ./Sources/PersonalMessage.php Test successful
2. Execute Modification ./Sources/ModSettings.php Test failed
3. Execute Modification ./Themes/default/PersonalMessage.template.php Test successful
4. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
This is a test board so it is running a goodly number of mods
1. LiveJournal Mod 1.0 [ Uninstall ] [ List Files ] [ Delete ]
2. Country Flags 1.0.1 [ Uninstall ] [ List Files ] [ Delete ]
3. Custom Profile Field Mod 3.15 [ Uninstall ] [ List Files ] [ Delete ]
4. SMF Shoutbox 1.15 [ Uninstall ] [ List Files ] [ Delete ]
5. SMF Gallery Lite 1.6.5 [ Uninstall ] [ List Files ] [ Delete ]
6. Simple Blog 1.4 [ Uninstall ] [ List Files ] [ Delete ]
7. View Single PM 1.4 [ Apply Mod ] [ List Files ] [ Delete ]
8. Thank You Mod 1.0.3 [ Uninstall ] [ List Files ] [ Delete ]
9. cbi, 0.5 0.5 [ Uninstall ] [ List Files ] [ Delete ]
10. Board Viewers Mod 1.0 [ Uninstall ] [ List Files ] [ Delete ]
11. SMF Staff Page 1.3 [ Uninstall ] [ List Files ] [ Delete ]
12. Profile Comments 1.2.1 [ Uninstall ] [ List Files ] [ Delete ]
13. SMF Links 1.5 [ Uninstall ] [ List Files ] [ Delete ]
Thanks
Quote from: Greengoat on November 12, 2006, 11:17:25 AM
This mod is something I've been wanting for awhile since I'm still on dial-up and waiting for 20 messages to load every time can be a drag.
But I get an error when I tried to install it on 1.1 RC3 with security update
There is only a small amount of text added to that file, which you can do manually:
Look for:
// Reporting of personal messages?
array('check', 'enableReportPM'),
array('int', 'max_pm_recipients'),
And add after:
array('check', 'enableSinglePM'),
Quote from: Tam on November 12, 2006, 09:04:52 AM
How do I display the "short-list" of PM's in the Inbox while viewing the single PM? So I can click a new one without having to go back to inbox and pick a new one.
Well.. You can change it really quick..
Open: /Themes/Default/PersonalMessage.php
And just to make it an easy edit going to change an if statement..
Find:
if(!isset($_GET['p']))
Replace:
if(1)
So it always returns true and shows the short list..
I will add this as an option in a update..Edit..
While Messing with it to do this it only shows that single pm anyways.. Since the way I had it show the Single PM without to much Theme edits I edited the mysql statement.. So that will not help
Wouldn't do much to show it. Would only show that single PM anyways.. :(..
Quote from: Greengoat on November 12, 2006, 11:17:25 AM
This mod is something I've been wanting for awhile since I'm still on dial-up and waiting for 20 messages to load every time can be a drag.
But I get an error when I tried to install it on 1.1 RC3 with security update
1. Execute Modification ./Sources/PersonalMessage.php Test successful
2. Execute Modification ./Sources/ModSettings.php Test failed
3. Execute Modification ./Themes/default/PersonalMessage.template.php Test successful
4. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
This is a test board so it is running a goodly number of mods
1. LiveJournal Mod 1.0 [ Uninstall ] [ List Files ] [ Delete ]
2. Country Flags 1.0.1 [ Uninstall ] [ List Files ] [ Delete ]
3. Custom Profile Field Mod 3.15 [ Uninstall ] [ List Files ] [ Delete ]
4. SMF Shoutbox 1.15 [ Uninstall ] [ List Files ] [ Delete ]
5. SMF Gallery Lite 1.6.5 [ Uninstall ] [ List Files ] [ Delete ]
6. Simple Blog 1.4 [ Uninstall ] [ List Files ] [ Delete ]
7. View Single PM 1.4 [ Apply Mod ] [ List Files ] [ Delete ]
8. Thank You Mod 1.0.3 [ Uninstall ] [ List Files ] [ Delete ]
9. cbi, 0.5 0.5 [ Uninstall ] [ List Files ] [ Delete ]
10. Board Viewers Mod 1.0 [ Uninstall ] [ List Files ] [ Delete ]
11. SMF Staff Page 1.3 [ Uninstall ] [ List Files ] [ Delete ]
12. Profile Comments 1.2.1 [ Uninstall ] [ List Files ] [ Delete ]
13. SMF Links 1.5 [ Uninstall ] [ List Files ] [ Delete ]
Thanks
Another Mod has edited the ModSettings.php file and edited what I was trying to use..
Could you check through those mods and see which ones edit the ModSettings.php
You can do this by either by going to List Files and then clicking the .xml or .mod file and browsing it looking for something that has ModSetting.php (Find works ok).
Or you can Click Uninstall and just look at it and see if it wants to edit the ModSettings.php file then click back and check next..
But thanks for showing that.. I see an error in the version number display (bad coping ;D )
As a Note.
My mod is looking for this in ModSetting.php
// Reporting of personal messages?
array('check', 'enableReportPM'),
array('int', 'max_pm_recipients'),
Going to change that to a smaller search for the next version. Didn't know of any mods that edited the person messages in ModSettings.php so I didn't think of that..
The staff page mod alters the modsettings.php.
And when you said "I see an error in the version number display (bad coping Grin )" was that referring to the view single pm version?
Still going through and found the board viewers mod also changed it.
Yea.. I used the same files from another one of my mod.. Just edited.. :P
just downloaded staff page mod and What the staff page mod edits is shouldn't be affecting the installation of my mod..
Do you got any other mods that edit this file or is it the only one? If you want you can post the ModSettings.php and I will make the change myself or
Open ModSettings.php and follow what Tam said..
Quote from: Tam on November 12, 2006, 12:18:15 PM
Look for:
// Reporting of personal messages?
array('check', 'enableReportPM'),
array('int', 'max_pm_recipients'),
And add after: array('check', 'enableSinglePM'),
Edit.. Just saw you post.. Give me a min to look at board viewers
Edit2..
Board Viewers shouldn't be affecting you either.. It edits the same place as staff mod..
Thank you mod, simple blog, smf shoutbox, custom profile settings, and country flags all edit the modsettings.php.
Quote from: SleePy on November 12, 2006, 01:03:46 PM
Yea.. I used the same files from another one of my mod.. Just edited.. :P
just downloaded staff page mod and What the staff page mod edits is shouldn't be affecting the installation of my mod..
Do you got any other mods that edit this file or is it the only one? If you want you can post the ModSettings.php and I will make the change myself or
Open ModSettings.php and follow what Tam said..
Quote from: Tam on November 12, 2006, 12:18:15 PM
Look for:
// Reporting of personal messages?
array('check', 'enableReportPM'),
array('int', 'max_pm_recipients'),
And add after: array('check', 'enableSinglePM'),
Edit.. Just saw you post.. Give me a min to look at board viewers
I could, but it's a test forum so would the change be similar to the main board assuming I don't install all of the above mods?
BTW thanks for the quick responses. ILI
Well heck, I can alter it, I was more interested in getting the info you requested back out asap.
Well I found the spot, but mine is slightly different
Quote// Reporting of personal messages?
array('check', 'enableReportPM'),
'',
// Show flags
array('select', 'country_flag_ask', array($txt['country_flag_disabled'], $txt['country_flag_profile'], $txt['country_flag_registration'], $txt['country_flag_both'])),
array('check', 'country_flag_required'),
array('check', 'country_flag_show'),
array('int', 'max_pm_recipients'),
);
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=basic');
loadUserSettings();
writeLog();
}
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=basic';
$context['settings_title'] = $txt['mods_cat_features'];
prepareDBSettingContext($config_vars);
}
function ModifyLayoutSettings()
lol.. Ok..
Well Finally Found it..
CountryFlags by Jay was the mod that edited the area I did..
He shouldn't of edited there or the way he did because it breaks up the pm section into two as it is.. I will have to remind him of this so he can get it fixed in a future release..
I placed the needed code below the array('int', 'max_pm_recipients'), line. It shows the option in the admin panel but still lists multiple pms in message area.
Did you check the box and then try..
The option there just hides all pms while not viewing any pm. So it just shows the Short list..
Edit--
Jay Just told me he will update when he gets time... So hes aware of this..
:doh that wasn't it. The mod was working just fine I was seeing a couple pm topics but not the actual message.
Works perfectly thanks for the help. Nice mod, very helpful.
I have a question regarding what you said about the info from the flag mod, should I cut and paste that stuff somewhere else or are there other parts of the mod that require those lines to be were they are?
Nothing like answering questions about other peoples mods. ;)
not sure if I fully understand you..
but if you want to fix the minor typo jay made just do this
Open: ModSettings.php
Find:
'',
// Reporting of personal messages?
array('check', 'enableReportPM'),
'',
// Show flags
array('select', 'country_flag_ask', array($txt['country_flag_disabled'], $txt['country_flag_profile'], $txt['country_flag_registration'], $txt['country_flag_both'])),
array('check', 'country_flag_required'),
array('check', 'country_flag_show'),
array('int', 'max_pm_recipients'),
array('check', 'enableSinglePM'),
Replace:
'',
// Show flags
array('select', 'country_flag_ask', array($txt['country_flag_disabled'], $txt['country_flag_profile'], $txt['country_flag_registration'], $txt['country_flag_both'])),
array('check', 'country_flag_required'),
array('check', 'country_flag_show'),
'',
// Reporting of personal messages?
array('check', 'enableReportPM'),
array('int', 'max_pm_recipients'),
array('check', 'enableSinglePM'),
That should fix any sorting problems on the Features and Settings page..
But I let jay know about what his mod did and He told me he will update it when he gets time. Hes busy. But he knows about it so it will be fixed when he gets the time to.
;)
Cool, thanks again. I'll edit that file just for GPs'.
Do you have any plans on extending this mod? Like displaying the list of PMs above (or under) while viewing a single PM, like I described in a previous post. Being able to add "Next" and "Previous"-links to the pm-view would be great as well.
Not at the moment. Doing that would require me to have to rewrite a big section of the mod. Since my mod really focuses on editing the mysql command I would have to change so much to do that. So at the moment I do not plan for it.
I've a very big problem. If I upload the package from the admin panel I can't access to the package area! I have to remove tha package with an FTP client and it works! Every time I upload the package I can't access to the package area of the admin panel and I have to remove the package from /Packages
Anyone had this problem?
Sounds like the package is corrupted. Try to download it again using another browser...
Quote from: SleePy on December 06, 2006, 05:57:29 PM
Sounds like the package is corrupted. Try to download it again using another browser...
OK. I tried to redownload and now it works.
THX! ;D
hi, i uploaded the package and enabled the single pm in the admin panel. but when i click on a PM, it just refreshes the page and doesnt show the message...
i went and manually modified the files according to the xml file...but it still doesnt work :( please help!
When it Refreshes does it still show the Personal Messages below or are they hidden? Same with the Message list..
nope, just the message List shows.
Do you have any errors in the error log?
I am unable to reproduce the error though
1.1 Final Fresh install
-> Sent a few Test PMs to self
-> Installed SinglePM 1.1b
-> Enabled Option in Features and Options
-> Went to PM and Viewed just fine.
Did I miss something you did that I didn't?
hmm ill try uninstalling it and installing it again. thanks for your help :)
Worked fine. Thanks~
Great mod, works fine on 1.1.1... thanks!
Not working fine for me on 1.1.1 this is the message on top of my forum now:
//View Single PM $txt['singlepm_prange'] = 'Parameter p out of range. Please Go back and try again'; $txt['singlepm_vmsg'] = 'Viewing Message #'; $txt['enableSinglePM'] = 'Enable Single Personal Message View.';
Help!
Disregard my post above, I just uninstalled the mod and uploaded the backup of my modifications.english.php
Where you able to get it working again?
The problem was that there was blank lines at the end of your modifications.english.php so when SMF modifed the file and followed the commands to add it to the end It couldnt find the ?> so it just added it.
You just need to move those lines above the ?> and remove any blank lines after ?> and it will fix it and any other mods you install.
I've longed for a mod like this :) Oddly enough, I've never seen it..The title threw me off imagining it would be similar to "View single post" (Enter to a specific post, and it only shows that post..).
Thanks again :)
Quote from: Coldfx on January 30, 2007, 11:41:50 PM
I've longed for a mod like this :) Oddly enough, I've never seen it..The title threw me off imagining it would be similar to "View single post" (Enter to a specific post, and it only shows that post..).
Thanks again :)
well it does the same function. Viewing a single personal message or viewing a single post. Its the same thing. Just like Viewing a single category.
Quote//View Single PM $txt['singlepm_prange'] = 'Parameter p out of range. Please Go back and try again'; $txt['singlepm_vmsg'] = 'Viewing Message #'; $txt['enableSinglePM'] = 'Enable Single Personal Message View.';
I have this, I have uninstalled and deleted the mod and it doesn't go away.
open Modifications.english.php in /Themes/default/languages
And remove those lines or move the ?> to the very last line to stop them from showing if you want to install and use the mod again.
SMF 1.1.1 TinyPortal v0.9.7 Default theme to install and test.
Just installed this mod, and whilst it is only showing the PM clicked on, I have this error at the top of the page:
//View Single PM $txt['singlepm_prange'] = 'Parameter p out of range. Please Go back and try again'; $txt['singlepm_vmsg'] = 'Viewing Message #'; $txt['enableSinglePM'] = 'Enable Single Personal Message View.';
Just uninstalled and the error is still displayed at the top of the page and it has enlarged my display fonts.
that is a error in which SMF finds blank spaces in the modifications.english.php at the end. So using the search that I did to find the end of the file causes this
It is really simple to fix. Open that file and find the ?> and move it to the very end of the file with no spaces or nothing after it.
Nice one, easy fix, I'll remember this one for the future, the mod text for some reason appeared after the ?>
I've translated it to russian. I'm not sure cause I'm new in SMF, that's why I'm sorry if you possibly can find some errors.
Quote from: Chapaev on February 22, 2007, 06:53:51 AM
I've translated it to russian. I'm not sure cause I'm new in SMF, that's why I'm sorry if you possibly can find some errors.
Thank you. I am Updating my mod with the russian-utf8 language files in place
No other noted changes where made since 1.1b so you do not need to update.
Hi there, I installed this mod fine, only one problem: All new messages are marked READ and are not shown as BOLD in the Inbox.
Any way to make new messages shown as BOLD with View Single PM mod? Thanks!:)
Well once you view a PM once it is no longer new.
This mod doesn't modify the Template system looks but just how many PMS to show at once.
Thanks work great. I need it. :P
Have a problem
My default sort mode for pm list is date-desc
So mod uses that numeration for messages
But when I sort by title and press on first message it gives me first message by datesort
Can that be solved?
Looks like sort isn't being carried over
Open Sources/PersonalMessage.php
Find:
$output['p'] = $scripturl . '?action=pm;f=' . $context['folder'] . ';l=' . $context['current_label_id'] . ';p=' . $counter;
Replace:
$output['p'] = $scripturl . '?action=pm;f=' . $context['folder'] . ';l=' . $context['current_label_id'] . ';p=' . $counter . (isset($_REQUEST['sort']) ? ';sort=' . $_REQUEST['sort'] : '');
I will fix this in a few days and update it.
Thanks, it works perfect!
Have one more question, but that might be not regarding this MOD.
Is there a way to make SMF not mark messages read until I open their text, so I can see in PM list which messages are read and which are not?
Thats just the way SMF is setup, I believe this is changed in 2.0 but I don't remember.
I hope there can be a way
But then (as far as I understand) we'll have to add a field to messages table and maintain read/unread and amounts of messages too?
yes, you would in some way need to track if they read it or not. I don't remember if there is or not in SMF 1.1.
Uff. Will take time to write it.
I was hoping there's some mod that does that
I've translated it to dutch.
I'm not good whith the code so i put it on the place where the english is.
The rules you don't get it's dutch ;)
w0nder, Ask in mod requests for such a mod.
goofyboy, thank you.
QuoteThe package you tried to upload either is not a valid package or has become corrupted.
Using SMF 1.1.3
Try another browser to download the file and upload the mod or even try from the package server to get the mod.
Sleepy,
Just wanted to thank you for this code... When I first got SMF I was real unhappy to see the way the PMs were displayed.... this is exactly what I was looking for...
I found this thread looking for a solution to the "Marked Read" problem... and now I understand that it is the core software that causes that.
Thank you for your time on a very useful mod.
Quote from: SleePy on August 13, 2007, 04:08:05 PM
Try another browser to download the file and upload the mod or even try from the package server to get the mod.
try and with opera and download and install from admin panel/packages but same error message
Are you using 1.3? or 1.2?
I repacked 1.3 and replaced it with what is on the mods page. So give that new one a try.
SMF 1.1.3. Now try again but same error. Other mods working fine.
I was talking about Mod version.
I released View Single PM 1.3 the other day but left 1.2 incase of problems with 1.3
1.3 .... download again mod
Lets try this. Download the mod. Decompress it then recompress it (either with zip or tar.gz)
Download mod, unpack and then compress to zip file. That get error. Then compress uncompressed folder to tar.gz and that working. Thanks
I wanted to look at this a little closer because I see some people out there have the same concern as I do about the messages getting automatically marked as read...
I noticed that in PersonalMessage.php around line 372 there is the following code.
// Mark all messages as read if in the inbox.
if ($context['folder'] != 'outbox' && !empty($context['labels'][(int) $context['current_label_id']]['unread_messages']))
markMessages(null, $context['current_label_id']);
}
If you comment that code out then it no longer automatically marks the PMs as read when you are on the page that lists the PMs.... Now we have the problem of how to mark an individual PM as read.
I see that the following code is the end of the code to post a single message...
$counter++;
// View Single PM to work correctly we have to add it after the counter had its addition to it..
$output['p'] = $scripturl . '?action=pm;f=' . $context['folder'] . ';l=' . $context['current_label_id'] . ';p=' . $counter;
return $output;
}
Is there a way that we can do something here to mark only that individual message as read?
I just cant understand why we can mark all messages as read but cant seem to mark only one as read. Maybe I am trying to go into something I should not?
This would then only leave the problem of the icon on the main listing... but that is a minor compared to this...
Thank YOU.... works gooood :) m happy :)
I get these 2 errors:
8: Undefined index: current_topic
File: /home/midwesta/public_html/Themes/default/PersonalMessage.template.php (folder sub template - eval?)
Line: 306
8: Undefined index: current_topic
File: /home/midwesta/public_html/Themes/default/PersonalMessage.template.php (folder sub template - eval?)
Line: 307
I looked in personalmessage.template.php and all strings are there.
What gives?
My mod doesn't add any current_topic strings to the PersonalMessage.template.php
You do have eval on, so lets shut it off incase it is lieing to us ;)
Run This query In phpMyAdmin (What is phpMyAdmin? (http://www.simplemachines.org/community/index.php?topic=21919.0))
REPLACE INTO smf_settings VALUES ('disableTemplateEval', 1);
Quote from: SleePy on November 25, 2007, 01:36:45 PM
My mod doesn't add any current_topic strings to the PersonalMessage.template.php
You do have eval on, so lets shut it off incase it is lieing to us ;)
Run This query In phpMyAdmin (What is phpMyAdmin? (http://www.simplemachines.org/community/index.php?topic=21919.0))
REPLACE INTO smf_settings VALUES ('disableTemplateEval', 1);
Hmm. Still same errors coming up.
Are you sure its the exact same error? It might be slightly different with a different file perhaps.
Can you attach the file? While my mod didn't add this, we can figure out which one did.
Here you go...
Do you have a karma mod installed?
Such as Karma Description?
I see that the line around it has this
// Is this user allowed to modify this member's karma?
if ($message['member']['karma']['allow'])
echo '
<div align="', $karmaButtonAlign, '">
<a href="', $scripturl, '?action=modifykarma;sa=applaud;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.' . $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '"><img src="' . $settings['images_url'] . '/', $modSettings['karmaApplaudImage'], '" alt="', $modSettings['karmaApplaudLabel'], '" title="', $modSettings['karmaApplaudLabel'], '" border="0" /></a>
<a href="', $scripturl, '?action=modifykarma;sa=smite;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '"><img src="' . $settings['images_url'] . '/', $modSettings['karmaSmiteImage'], '" alt="', $modSettings['karmaSmiteLabel'], '" title="', $modSettings['karmaSmiteLabel'], '" border="0" /></a><br />
</div>';
Which is from another mod.
Quote from: SleePy on November 26, 2007, 01:51:36 AM
Do you have a karma mod installed?
Such as Karma Description?
I see that the line around it has this
// Is this user allowed to modify this member's karma?
if ($message['member']['karma']['allow'])
echo '
<div align="', $karmaButtonAlign, '">
<a href="', $scripturl, '?action=modifykarma;sa=applaud;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.' . $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '"><img src="' . $settings['images_url'] . '/', $modSettings['karmaApplaudImage'], '" alt="', $modSettings['karmaApplaudLabel'], '" title="', $modSettings['karmaApplaudLabel'], '" border="0" /></a>
<a href="', $scripturl, '?action=modifykarma;sa=smite;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '"><img src="' . $settings['images_url'] . '/', $modSettings['karmaSmiteImage'], '" alt="', $modSettings['karmaSmiteLabel'], '" title="', $modSettings['karmaSmiteLabel'], '" border="0" /></a><br />
</div>';
Which is from another mod.
Yeah,is it because the last line is twice?
There not the same. They are familiar though.
You should go ask the mod author for the Karma Description Mod. Since this mod appears to be the cause of it at the moment.
This mod seems incompatible with Theme Blue LT.
Is the mod suppose to be Theme Specific?
This modification makes a few edits to the PersonalMessage.template.php.
These changes couldn't be avoided sadly :)
You can use Daniels Package Parser mod and only look at theme edits. Then apply these changes manually. I run a copy of his parser at my own site for convince :P http://sleepycode.com/PackageParser/index.php
If you still need help I can help you make these changes.
I Installd a new forum and i want to use the single pm.
Only in the errorlog the next error is on screen.
http://www.bordie.nl/smf/index.php?action=pm;f=inbox;l=-1;p=2
8: Undefined index: singlepm_vmsg
Bestand: D:\www\bordie.nl\www\smf\Sources\PersonalMessage.php
Regel: 378
The install was succesfull but this is the error after it.
can some one help me?
Are you using a non english language?
Most mods only install for english. This one does install for english utf-8 and turkish utf-8 though.
i use a dutch language.
i will look if i can make a dutch language file :)
the download file is corrupt i believe from the recent crash...can you reupload it?
QuoteThe package you tried to upload either is not a valid package or has become corrupted.
I am building a new smf site and finding this is an issue with many of the mods.
Thank you for saying something, I knew there was something I missed last night when I updated all my mods for 2.0 beta 2. Since this mod is a feature in 2.0 I didn't have a need to update it ;)
The package you tried to upload either is not a valid package or has become corrupted.
Have you cleared your cache?
Have you tried to download and upload through different ways/browsers?
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
i get the same message :(
nice mod thanks, installed and working at 100% :P
Quote from: PanesarV on January 26, 2008, 04:36:33 PM
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Quote from: 2pac on January 26, 2008, 06:25:48 PM
i get the same message :(
What version shows at the bottom of the forum?
Do you know what modifications to do in order to (when your mod is enable) just count a pm as read when you click on it(view single pm) and not put the number of unread messages at 0 when entering to the pm page?
thanks again for the mod
Well SMF does store how many unread pms you have, so checking to see if its new and then only change that when you read it shouldn't be to hard.
At the moment though I am not planning on any new features to this mod since it is a default features in 2.0 (and 2.0 does this)
Quote from: SleePy on January 29, 2008, 10:19:56 PM
Well SMF does store how many unread pms you have, so checking to see if its new and then only change that when you read it shouldn't be to hard.
At the moment though I am not planning on any new features to this mod since it is a default features in 2.0 (and 2.0 does this)
ok, thanks for the reply
awsome mod...only makes sense this way! :)
I have a problem, please, can you help me?
Quote from: -!¦[·ÃNÐ¥·]¦!- on March 01, 2008, 11:50:44 AM
In our community are experiencing an error because I tried installing View Single PM mod yesterday, but it was corrupt. So I uninstalled and cleaned every archive with the SMF Package Parser.
Now, when we want to delete a PM: Session verification failed. Please try again. And when we try view any PM: Fatal error: Call to undefined function: create_button() in /home/pupddco/public_html/foro/Sources/Load.php(1726) : eval()'d code on line 248
(http://i28.tinypic.com/ojf7n6.jpg)
This happens to all members (admin, normal user) with IE, Firefox or Opera.
I replaced /public_html/foro/Sources/Load.php, /public_html/foro/Sources/PersonalMessage.php and /public_html/foro/Themes/default/PersonalMessage.template.php with new files but not worked.
I have this packages:
1. PM On Registration 1.0.2
2. Load Standard Language 1.0.1
3. Avatars at Index Mod 1.4
4. SMF 1.0.11 / 1.1.3 Update 1.1
5. Password Protect Boards 0.1
6. Board Viewers 0.6
7. View Only Boards 1.0
8. Users Online Today Mod 1.4.0
9. Spoiler Show And Hide 1.0.2
10. YouTube BBC Tag (XHTML Compliant) 1.0
11. BBCode Bar For Signature 1.3
12. SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update 1.0
13. SMF 1.1.2 Update Package 1.1.2
14. SMF 1.1.1 Update Package 1.1.1
15. Auto Email Inactive Ordinary Users 1.2
16. Hide SMF Version 1.0
17. Profile User Action 1.1
18. Reg Bar 1.0.1
19. Display Age and Location next to posts 1.0
1. Country Flags 1.1.1
2. Cats Avatars 1.1.2
3. Anime Avatars 2.0
4. 3D ART Avatars 1.1
5. Dogs Avatars 1.1.2
And this is my error log:
-!¦[•ÃNÐ¥•]¦!- Hoy a las 00:30:06 201.250.102.1 a70f60a5d82c561e4a83c83d441a6fff
http://www.pupdd.com.ar/foro/index.php?action=pm;f=outbox;l=-1;p=250
8: Undefined index: singlepm_vmsg
Archivo: /home/pupddco/public_html/foro/Sources/PersonalMessage.php
Línea: 378
I feel very bad, I want to fix it :( If someone could help me with this that would be fantastic.
EDIT: RESOLVED!
Do you get this on the default theme?
Just tried this. While it is fantastic, the PM display boxes are a little bit broken. For instance, if I have this enabled, then what will happen is that if you try and sort by Date, Subject or From (either in ascending/descending order) then it will work, but the links will treat it as if it's going by Date from Oldest to Newest, and I can't seem to find the cause of this. If there's any way to fix this...
Well I do not modify the urls so this is odd why it happens.. It seems the descending setting is empty :|
Hi
I got a problem - in personal messages, when you press "Search Messages"
When you get the Search Results and then click on the found PM, then it just goes back to the inbox, not the found message
Ahh, it doesn't seem that search has the correct pm url..
Will fix sometime this weekend.
8: Undefined index: singlepm_vmsg
******: /home/*****/******/html/for/Sources/PersonalMessage.php
Line: 378
and this line says: 'name' => $txt['singlepm_vmsg'] . $context['sl-singlepm']
i have the same problem - and a little group of our users can't receive personalmessages
Are you missing the language string entries?
This mod doesn't touch how users send or receive pms.
It simply changes the format to only show a single message at a time.
Quote from: SleePy on April 21, 2008, 10:43:08 PM
Are you missing the language string entries?
This mod doesn't touch how users send or receive pms.
It simply changes the format to only show a single message at a time.
ok, how can i fix it for german language
the receiving problem should i find at another thread
thx Jessi
There is no language strings for german
If you open the Modifications.english.php in your /Themes/default/languages folder you will see a small group (3) of language strings with a comment above them saying:
// View Single PM
Copy those to your Modifications.german.php (Modifications.german_utf8 if you are using utf8).
You can then change those into their german equivalents
What do i have to add to this cause i am getting a error, my board is ran in german and i would kill for this mod!
1. Modifikation ausführen ./Sources/PersonalMessage.php Erfolgreich
2. Modifikation ausführen ./Sources/ModSettings.php Erfolgreich
3. Modifikation ausführen ./Themes/default/PersonalMessage.template.php Fehler <---- here is my error
4. Modifikation ausführen ./Themes/default/languages/Modifications.english.php Erfolgreich
5. Modifikation ausführen ./Themes/default/languages/Modifications.english-utf8.php Erfolgreich
6. Modifikation ausführen ./Themes/default/languages/Modifications.dutch.php Überspringe Datei
7. Modifikation ausführen ./Themes/default/languages/Modifications.russian-utf8.php Überspringe Datei
Template Parse Error!
Ein Problem trat beim Laden des /Themes/default/PersonalMessage.template.php Templates oder der Sprachdatei auf. Bitte überprüfen Sie die Syntax und versuchen Sie es erneut. Bitte beachten Sie, dass einzelne Anführungszeichen (') oft mit einem Slash (\) auskommentiert werden müssen. Um nähere Informationen von PHP zu diesem Fehler zu erhalten, versuchen Sie die Seite direkt aufzurufen.
Sie können auch versuchen, die Seite zu aktualisieren oder das Standard-Theme zu benutzen.
Parse error: syntax error, unexpected $end in .../Themes/default/PersonalMessage.template.php on line 1384
1375: </tr>
1376: <tr class="windowbg">
1377: <td align="center">
1378: <br /><a href="', $scripturl, '?action=pm;l=', $context['current_label_id'], '">', $txt['pm_report_return'], '</a>
1379: </td>
1380: </tr>
1381: </table>';
1382: }
1383:
1384: ?>
1385:
1386:
this is where i am getting my error, i guess cause i cant even open PNs
Quote from: SleePy on April 10, 2008, 10:04:02 PM
Ahh, it doesn't seem that search has the correct pm url..
Will fix sometime this weekend.
Any fix yet ? ;-)
fals,
No.. I got busy through the weekends :|
I don't know if I will have much time to get working on this, I haven't been paying much attention to adding features to my mods the past the few weeks.
e30Birdy,
You shouldn't of performed the install as the test failed.
Can you attach your PersonalMessage.template.php
I for one would like to see a fix to this mod.
I find it one of the best mods out there.
here ya go
Is that the modified one? I get no errors with that file
Quote
The-SleePy-Laptop:~ jeremy$ php -l ~/Downloads/PersonalMessage.template.php
No syntax errors detected in ~/Downloads/PersonalMessage.template.php
Is it because i am using a different theme and german language?
Are you still getting it then?
This mod only installs for the default theme file so you need the one out of the /Themes/default folder.
here is the one out of the default theme? Will it be possible to use it for my theme i am using?
Those files are not modified?
Did you uninstall the mod?
I needed the modified ones to see why that error occurs.
okay i reinstalled it
this one should work
Thanks for all the help sleepy but i still get all the messages at once. i just made a test account to check it out!
Did you enable the option in your Features and configuration to hide the pms?
okay finally figured it out, its working now! Thanks again! Pain getting support in english and trying to do it in german
I get the following error message at the top of my forum:
// View Single PM $txt['singlepm_prange'] = 'Parameter p out of range. Please Go back and try again'; $txt['singlepm_vmsg'] = 'Viewing Message #'; $txt['enableSinglePM'] = 'Enable Single Personal Message View.';
And I get this message above my PM box:
form action="http://www.mysite.com/forums/index.php?action=pm;sa=pmactions;f=inbox;start=0" method="post" accept-charset="ISO-8859-1" name="pmFolder">
Any ideas. By the way I suck at hand coding so I may have made an error. I opened in package parser and followed the instructions the best I could
Open Modifications.english.php in /Themes/default/languages
Find the ?>
Move this to the very end of the file making sure there is no returns or spaces after it.
Save the file and it should all be good :)
Sleepy, is there a reason the package manager does not recognize the file and install automatically?
Just asking.
I had used it until I had to have a forum rebuild earlier in the month.
Now it wont even install
It should still work. Make sure the file you got isn't corrupted. Try a different method to download and upload the file (this ensures that the ways you downloaded/uploaded it are not an issue).
Quote from: SleePy on May 15, 2008, 12:31:46 AM
It should still work. Make sure the file you got isn't corrupted. Try a different method to download and upload the file (this ensures that the ways you downloaded/uploaded it are not an issue).
I just downloaded a new copy off the SMF Mods site and get this error message when I try to upload it via the package manager.
An Error Has Occurred!
The package you tried to upload either is not a valid package or has become corrupted.
I am thinking the download on the site is corrupted somehow
What version of smf are you using?
SMF 1.1.4
I got the same error message. I'm running 1.1.5 :)
Does this one work?
Nope
I will probably try to manually install again
Well that is odd..
Its only looking for one small string in that file and I made sure it was correct :|
Are you sure it was that file that failed?
Not sure
I downloaded with IE, Firefox and Safari. Tried to install with all three through the package manager.
Each time I get the not valid message.
Mind sending me some admin/ftp info so I can look personally?
A reminder about admin / ftp passwords etc. (http://www.simplemachines.org/community/index.php?topic=87130.0)
Info sent
If you need anything else do not hesitate to ask
How is that?
You have quiet a few mods installed. I don't know if its the cause of it.
I had to manually upload it and then access it via the url to get it to install (and then modify a file so it would install around another mod that edited that same line in that personal messages template).
Ehh. Still not working properly. I still see all my PM's in a row unde the screen that shows the subject/sender/etc.
Dont worry about it. Thanks for your help.
Theres a single settting in Features and options for it.
I went both ways with the view single pm and made it so you could view them all at once while still only being able to choose one at a time or that you have to click each one to read them.
Gotcha. Thanks for the help. Your efforts are appreciated. :)
One more questions Sleepy. I had to re-install a backup of the forum. I re-installed the mod by hand.
It works, however in the admin panel I see the checkbox for single messages but I dont see the "Check for Single Messages" or whatever it said before(I forgot, sorry).
Any ideas.
Are you sure you edited the templates?
Quote from: SleePy on May 16, 2008, 10:58:34 PM
Are you sure you edited the templates?
Yeah. I have the checkbox just not the string of words in front of it
Mod works fine just am missing that string in the admin panel in front of the checkbox.
Any idea which file or string of code I should look at to make sure it is right?
Got it.
Thanks for the help SleePy
Hello,
I am trying to install on 1.1.5 and getting a message it fails on the PersonalMessage.template.php.
The only MOD that I have that seems the likely culprit is vReportBoard, which changes Report To Moderator alerts from PMs to topics in a board.
Should I try uninstalling vReportBoard, then installing View Single PM, then install vReportBoard? Or is there a way to have the two coexist?
Thanks for all your help on the various mods available here!
Regards,
Cal
If the vReportBoard mod will uninstall cleanly you can try to uninstall it then install this mod and finally reinstall the vReportBoard mod.
If not, manual installation will be needed.
Hello,
Thank you for the quick reply. Unfortunately, uninstalling vReportBoard didn't solve it (and I had to tinker with its package-info.xml, adding 1.1.5 to the list of supported versions. I had installed it under 1.1.4 a few weeks ago).
After uninstalling, I tried to install View Single PM and it still doesn't like the PersonalMessage.template.php.
I have never dealt xml or php (although I did create similar editing functions in PL/1 and REXX years ago), and as near as I can tell there are 4 operations performed on the file. Is there a way to tell what is tripping up the package manager? Would a copy of my PersonalMessage.template.php help (assuming you would be open to doing so)?
Many thanks (even if direct assistance isn't possible)
Cal
Can you attach the PersonalMessages.template.php file then?
Hello,
Certainly, here it is. Thank you very much!
Try this one.
There wasn't anything wrong that I could see. But hopefully I fixed any broken line returns.
Hello,
Thank you. I uploaded your copy into my forum, overwriting the copy there and tried again. Unfortunately it failed again.
Are there any other options for trying to install it? Any other actions I should try from this side?
Grazie,
Cal
Ok,
Give the one I just uploaded to the mod page a try.
I think if found that issue.
http://custom.simplemachines.org/mods/index.php?mod=535
I was going to try to fix the search in this release. But looking at search and how I currently am doing the single pms, it isn't possible. So I am thinking this won't be fixed :| Not to much of a worry of getting it since SMF 2.0 will have it already.
That fixed it!
Thank you so very much! Really appreciate it!
Regards,
Cal
Hello again,
Like the mod, but some users would reallyt like to be able to view a single PM and then hit [NEXT] or [PREVIOUS] buttons, rather than having to go back up and scroll down to find the next one.
Is there any chance you could add that ability?
Grazie,
Cal
god sent! been needing this one! perfect install, perfect funtion! thanks!
Spanish and Spanish_es (works also on utf8 files)
<file name="$themedir/languages/Modifications.spanish.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[
//View Single PM
$txt['singlepm_prange'] = 'Parámetro p fuera de rango. Vuelve atrás y prueba de nuevo';
$txt['singlepm_vmsg'] = 'Viendo mensaje #';
$txt['enableSinglePM'] = 'Activar Single Personal Message View.';
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.spanish_es.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[
//View Single PM
$txt['singlepm_prange'] = 'Parámetro p fuera de rango. Vuelve atrás y prueba de nuevo';
$txt['singlepm_vmsg'] = 'Viendo mensaje #';
$txt['enableSinglePM'] = 'Activar Single Personal Message View.';
]]></add>
</operation>
</file>
thank you Mskina,
Since this is now a feature in 2.0, I am not actively developing this mod any more.
Will this work whit 2.x?
And if not, will it do in the future?
This is built into SMF 2.0 and it has much better options and usability in it :D
oh, sry.
I'm planing to upgrade to 2.0, and havn't tested it yet, so I didn't know that..
We do run 2.0 here if you want to take a peak at how it has changed :)
Yes, I know that ;)
Just haven't checked everything yet.
Bu tany way I've installed 2.0 on a test site now :)
This mod is not properly integrated in 2.0. I can not find any place where I can set a single PM view as default for all users. This feature seems to be only accessible from every individual user profile page, which is inadequate. If someone knows a solution, please share.
hello guys why is telling me
This is an outdated mod that is no longer supported by its author. Use at your own risk
Still works great in 1.1.17
Quote from: SleePy on August 18, 2008, 01:50:08 PM
thank you Mskina,
Since this is now a feature in 2.0, I am not actively developing this mod any more.
Since 2.0 is still considered beta, and just a "Release Candidate," will this mod at least be keeping up with the latest versions in the 1.1.x tree, such as the current 1.1.9?
Thanks!
1.1.10 killed this mod. Is there any way to fix it?
Bump. Can anyone help me.
This MOD is really useful, please make it compatible with the 2.0 brach!!
Bumping again.
Quote from: Claine on July 21, 2009, 09:34:51 PM
Bumping again.
Claine, I've not installed this mod, but, right away, I can see that at least one of the files it uses was updated by the upgrade to 1.1.0. I think if you just follow the instructions for this mod's manual parsing, it will restore the mod's function.
ETA: In the news and announcements thread about the upgrade, you will find the link to a page for manually parsing from 1.1.9 to 1.1.0, There, you can see which files were involved and compare them to this mod's parsed files. I do see that the Source/PersonalMessage.php is common between the two.
Crap, cannot upload the SinglePM1.4.tgz to my 1.1.11 forum
getting this error message: An Error Has Occurred!
The package you tried to upload either is not a valid package or has become corrupted.
Phat,
As the message says, the file is most likely corrupt. I have not changed that package in ages, so it isn't the package itself. This means that the download was corrupted or the upload was corrupted.
Hi Sleepy, can you upgrade this mod with the feature: "PM subject characters is Bold before PM read, after click and reading subject characters will be normal, so that member know whether the message is read."
Hello,
I am not supporting this mod for updates or new features. This mod is a default feature in 2.0 with better features including the one you mentioned.
Quote from: SleePy on February 20, 2010, 09:31:14 PM
Hello,
I am not supporting this mod for updates or new features. This mod is a default feature in 2.0 with better features including the one you mentioned.
But not included in smf 1.1.11
I was getting the corrupt/valid error message as well but i believe i fixed it as i managed to install the mod.
- Extract the files.
- Open package-info.xml
- At the <install for=""> and <uninstall for=""> bits replace the numbers inside the quotation marks with 1.1.11
- Then repackage it as a .zip and upload it.
Don't know if it was just luck but it did solve the problem for me.
is this complatible with RC3? I need it :-\
Um... view single PM is built into SMF 2.0, you can view individual PMs as a preference option!
Hi, I can't find where to set this in SMF 2.0... Tried Admin panel > Features and options.
Tried My Messages > Change Settings...
No luck! :(
Thanks,
Jason
Bump.
Profile > Modify profile > personal messaging
Quote from: emanuele on September 18, 2011, 05:43:26 AM
Profile > Modify profile > personal messaging
How can I make this default for everyone? I don't want to modify every single forum profile manually, it'd take ages.
Honestly I don't know if it is possible to set for all the members from the admin panel...
Quote from: emanuele on September 19, 2011, 06:17:48 PM
Honestly I don't know if it is possible to set for all the members from the admin panel...
Well thanks for trying, it is odd that SMF 2.0 final doesn't have it when early editions of 2.0 had it.. :o
If it was in previous versions then most likely it there also in 2.0.
I've never used it on previous so maybe I missed it in 2.0. ;)
Where it was in the previous version?
Well...this is becoming an SMF 2.0 support topic... :P
Quote from: emanuele on September 21, 2011, 03:35:03 AM
If it was in previous versions then most likely it there also in 2.0.
I've never used it on previous so maybe I missed it in 2.0. ;)
Where it was in the previous version?
Well...this is becoming an SMF 2.0 support topic... :P
Quote from: This Mod's download pageSMF 2.0
=======
To those wondering where this mod is. Single PM actually is integrated into 2.0 and has had features added to it.
If you go to "My Messages" -> "Change Settings"
You can change "Display personal messages:" to "One at a time"
You lost me...
Quote from: żεχเ๏ภ on September 18, 2011, 04:38:17 PM
How can I make this default for everyone? I don't want to modify every single forum profile manually, it'd take ages.
But what you quoted from the mod's page is the personal setting, that is equivalent to what I wrote:
Quote from: emanuele on September 18, 2011, 05:43:26 AM
Profile > Modify profile > personal messaging
but it's not a way to change the setting for all your users...
The only way I can think to change the setting to all the other user is change it in the database, but right now I can't verify.
Quote from: emanuele on September 23, 2011, 04:23:22 AM
You lost me...
Quote from: żεχเ๏ภ on September 18, 2011, 04:38:17 PM
How can I make this default for everyone? I don't want to modify every single forum profile manually, it'd take ages.
But what you quoted from the mod's page is the personal setting, that is equivalent to what I wrote:
Quote from: emanuele on September 18, 2011, 05:43:26 AM
Profile > Modify profile > personal messaging
but it's not a way to change the setting for all your users...
The only way I can think to change the setting to all the other user is change it in the database, but right now I can't verify.
If only I knew what table :(
{db_prefix}members: column "pm_prefs".
value => effect
0 => All at once
1 => One at a time
2 => As a conversation (that in 2.0 is in my opinion the best option and works best with "Save a copy of each personal message in my sent items by default.", you can change it for all your members from the members options page in your admin panel).
Quote from: emanuele on September 24, 2011, 09:55:19 AM
{db_prefix}members: column "pm_prefs".
value => effect
0 => All at once
1 => One at a time
2 => As a conversation (that in 2.0 is in my opinion the best option and works best with "Save a copy of each personal message in my sent items by default.", you can change it for all your members from the members options page in your admin panel).
Thanks chum, still wished you could set it by default, oh well. I'll take what I can get. ;)