Message Icon (lock)

Started by qubbah, October 14, 2009, 12:04:04 PM

Previous topic - Next topic

qubbah

Is there any mod -or can make it- that the message icon is lock and using only the first message icon to whole posting in that topic?

Sorck

Do you want it so there is no choice as what a user would like as the message icon? If so then would you like it permission based, and which SMF version are you using?

See the atatchement for what I'm talking about (dropdown selection for message icons)

qubbah

Quote from: Colonel Sorck on October 14, 2009, 12:20:30 PM
Do you want it so there is no choice as what a user would like as the message icon? If so then would you like it permission based, and which SMF version are you using?

See the atatchement for what I'm talking about (dropdown selection for message icons)

I think not at all.. but i want only (dropdown selection for message icons) can aplly in topic starter.

Sorck

So you only want message icons to be chosen in the 1st post then (not subsequent posts)?

qubbah

Quote from: Colonel Sorck on October 14, 2009, 01:13:07 PM
So you only want message icons to be chosen in the 1st post then (not subsequent posts)?
yes.. only in first msg wrote/starter.

Sorck

I think this could be done then, which version of SMF are you using though?
I'll have a quick look at making this mod, it shouldn't involve too much work :)

qubbah

Quote from: Colonel Sorck on October 14, 2009, 03:55:32 PM
I think this could be done then, which version of SMF are you using though?
I'll have a quick look at making this mod, it shouldn't involve too much work :)

ok... smf version 1.1.9

Arantor

Please note that 1.1.9 has a security vulnerability and you should upgrade to 1.1.10 at your earliest convenience.

Sorck

Quote from: qubbah on October 14, 2009, 04:23:55 PM
Quote from: Colonel Sorck on October 14, 2009, 03:55:32 PM
I think this could be done then, which version of SMF are you using though?
I'll have a quick look at making this mod, it shouldn't involve too much work :)

ok... smf version 1.1.9

Security issues aside, I believe 1.1.9 is nie on identical to 1.1.10 so i shouldn't have any problems designing what you'd like :)

Arantor

Indeed, it is security issues. I don't think they'd be an issue here but watch out for the package manager...

qubbah

yes... i think there no problem.. coz i will update later...

steveb72

Quote from: Colonel Sorck on October 14, 2009, 04:48:19 PM
Security issues aside, I believe 1.1.9 is nie on identical to 1.1.10 so i shouldn't have any problems designing what you'd like :)

This is exactly what I'm after too.  Any luck on creating the mod for this?  A mod that does this would make my year!

Sorck

Quote from: steveb72 on October 21, 2009, 05:54:04 AM
Quote from: Colonel Sorck on October 14, 2009, 04:48:19 PM
Security issues aside, I believe 1.1.9 is nie on identical to 1.1.10 so i shouldn't have any problems designing what you'd like :)

This is exactly what I'm after too.  Any luck on creating the mod for this?  A mod that does this would make my year!

I had a look but No matter how much i thought about it i wasn't sure how to allow it for the topic starter but not for anyone else. Would it be allright if it did appear as an option but didn't display on-screen for all but the 1st post? (this would be a lot easier to script)

steveb72

Just so long as when a member posts a reply to a topic the message icon for that post is always the same as the one on the topic starter.   eg. If qubbah had started this topic using the "thumb up" message icon, every reply would always have the "thumb up" message icon.

Is that something you could do?

qubbah

Quote from: steveb72 on October 21, 2009, 12:39:14 PM
Just so long as when a member posts a reply to a topic the message icon for that post is always the same as the one on the topic starter.   eg. If qubbah had started this topic using the "thumb up" message icon, every reply would always have the "thumb up" message icon.

Is that something you could do? yes.. thats what i mean..

Sorck

I'm saying that i can make it so that the icon doesn't appear on any post other than that of the topic starters. (Is this close enough?)

steveb72

I don't think that would do the trick to be honest.

Can anyone else help out here?

qubbah

Quote from: Colonel Sorck on October 21, 2009, 02:15:49 PM
I'm saying that i can make it so that the icon doesn't appear on any post other than that of the topic starters. (Is this close enough?)
yer . this what i means

Sorck

#18
Quote from: qubbah on October 23, 2009, 01:08:07 PM
Quote from: Colonel Sorck on October 21, 2009, 02:15:49 PM
I'm saying that i can make it so that the icon doesn't appear on any post other than that of the topic starters. (Is this close enough?)
yer . this what i means
I'll just give you the modding instructions (It'll be manual instructions as my xml modification file skills are very limited ;))
EDIT: Just tested and It still shows the message icons, I think my IF statement is incorrect :-\
Find:
echo '
<div id="forumposts" class="tborder">
<h3 class="catbg3">
<img src="', $settings['images_url'], '/topic/', $context['class'], '.gif" align="bottom" alt="" />

Replace
$is_first_post = !isset($is_first_post) ? true : false;
if($is_first_post){
echo '
<div id="forumposts" class="tborder">
<h3 class="catbg3">
<img src="', $settings['images_url'], '/topic/', $context['class'], '.gif" align="bottom" alt="" />
<span>', $txt['author'], '</span>
<span id="top_subject">', $txt['topic'], ': ', $context['subject'], ' &nbsp;(', $txt['read'], ' ', $context['num_views'], ' ', $txt['times'], ')</span>
</h3>';
}

      <span>', $txt['author'], '</span>
      <span id="top_subject">', $txt['topic'], ': ', $context['subject'], ' &nbsp;(', $txt['read'], ' ', $context['num_views'], ' ', $txt['times'], ')</span>
   </h3>';
[/code]

BTW, this should be modded in your theme(s) display.template.php files ;)

homer09001

im going to take a look at this i think it can be easily done in a way that is required

homer09001

Just looked at the code and have managed to successfully disable icons on replies only, will compile it into a package within the next 30 minutes

homer09001

#21
Ok finished here is the Package.

I have set it so icons are only available for selection when someone goes to post a new Thread, and they are available to admins at all times.

qubbah

#22
Quote from: homer09001 on October 23, 2009, 07:27:02 PM
Ok finished here is the Package.

I have set it so icons are only available for selection when someone goes to post a new Thread, and they are available to admins at all times.

yes.. very nice work. tq

but can it play with 1.1.10?

after install this... the msg icon go to the default icon/first icon in the dropdown icon list.. not same to the fisrt msg icon.

homer09001

#23
Not sure about cimpatibility will check later, I will make the changes to display original incon throughout the post later, as im off to work in 20 minutes

steveb72

Quote from: homer09001 on October 24, 2009, 03:30:14 AM
Not sure about cimpatibility will check later, I will make the changes to display original incon throughout the post later, as im off to work in 20 minutes

That is great!  I hope it works with 1.1.10 :-)

homer09001

I have got the mod working in 1.1.10 but i am unable at present to set the icon for all replies to that of the first post, i am continuing to see how i can make this possible so will keep you up to date.

Arantor

If this is related to your thread in Coding Discussion, your solution would be to modify loadMemberContext to override what icon gets attached.

homer09001

Arantor i uploaded the new package but the mod page says it has been removed from the Mod List?

Are you still able to approve it as it is or do i need to re submit it?

Arantor

Returned back to the mod queue :)

Will be reviewed as we have opportunity, may be a few days yet though.

homer09001

Brilliant, and thanks for your help on this mod, really appreciate it. ;)

homer09001

Would one of the Mod Verifiers mind taking a look at this as it still hasn't been verified?

Thanks.

Arantor

This one is still being discussed by the team.

homer09001


homer09001

This mod had now been Verified and can be downloaded:
http://www.simplemachines.org/community/index.php?topic=347286.0

Compatible with V1.1.10 and V2 RC1.2

Will look at modifying it to work with RC2 in the next couple of days.

steveb72

Brilliant!  Can't wait to see it in action....

homer09001

Register on my forum at http://dth-scripts.com for a demo, i have it installed on my forum currently.

qubbah

Quote from: homer09001 on November 10, 2009, 01:58:19 PM
Register on my forum at http://dth-scripts.com for a demo, i have it installed on my forum currently.

i think its still read the first post icon. there is only no option for regular member to choose new icon msg, but its still go to the first msg icon.

homer09001

Quote from: qubbah on November 12, 2009, 09:28:25 AM
Quote from: homer09001 on November 10, 2009, 01:58:19 PM
Register on my forum at http://dth-scripts.com for a demo, i have it installed on my forum currently.

i think its still read the first post icon. there is only no option for regular member to choose new icon msg, but its still go to the first msg icon.
Correct me if i'm wrong but isn't defaulting to the first post icon what you asked for here:

Quote from: qubbah on October 24, 2009, 01:51:44 AM
Quote from: homer09001 on October 23, 2009, 07:27:02 PM
Ok finished here is the Package.

I have set it so icons are only available for selection when someone goes to post a new Thread, and they are available to admins at all times.

yes.. very nice work. tq

but can it play with 1.1.10?

after install this... the msg icon go to the default icon/first icon in the dropdown icon list.. not same to the fisrt msg icon.

qubbah

sorry.. what i mean it.. when user reply using ajax post reply/quick reply.
this mod cannot make what we want to make it... when using quick reply. it reply with last msg icon.

qubbah

Quote from: qubbah on November 12, 2009, 09:46:57 AM
sorry.. what i mean it.. when user reply using ajax post reply/quick reply.
this mod cannot make what we want to make it... when using quick reply. it reply with last msg icon.

hope them mod reatorcan look this... tq

Advertisement: