View Single PM

Started by SleePy, November 11, 2006, 11:56:55 AM

Previous topic - Next topic

SleePy

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.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

sparky33

#41
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.
www.dublinforums.org

www.renaultforums.co

SleePy

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.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

sparky33

Nice one, easy fix, I'll remember this one for the future, the mod text for some reason appeared after the ?>
www.dublinforums.org

www.renaultforums.co

Chapaev

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.

SleePy

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.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

spaceman

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!:)

SleePy

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.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

kamili34

Thanks work great. I need it.  :P

w0nder

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?

SleePy

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.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

w0nder

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?

SleePy

Thats just the way SMF is setup, I believe this is changed in 2.0 but I don't remember.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

w0nder

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?

SleePy

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.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

w0nder

Uff. Will take time to write it.
I was hoping there's some mod that does that

goofyboy

#56
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 ;)


SleePy

w0nder, Ask in mod requests for such a mod.

goofyboy, thank you.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Robi052

QuoteThe package you tried to upload either is not a valid package or has become corrupted.

Using SMF 1.1.3

SleePy

Try another browser to download the file and upload the mod or even try from the package server to get the mod.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Advertisement: