SimplePortal

Customization => Blocks and Modifications => Block Requests => Topic started by: Hoodie on April 20, 2013, 02:07:45 PM

Title: Custom Message Block
Post by: Hoodie on April 20, 2013, 02:07:45 PM
Haven't found this requested anywhere so I thought that I would request it.

I run a clan website and when new members join, they have hardly any access to the site.  Now, when they get approved they are asked to join a specific clan (out of 8).  They get their access once confirmed that they have joined.  I want to put the approval message directly on the front page in a block so that they can see it next time they log in.

I was trying to find a way to write a custom message to the user and then be able to pull that message into a block but I don't see a mod that would do this on SMF.  If anyone knows of an easy way to do this, that would be awesome.

The other way I was thinking is to send them a PM through the regular system.  Then display the most recent PM in a block on the front page.  This would work IMO but once that person gets a new PM, it would disappear so it isn't failsafe and I wanted a place for a custom message just for this purpose to go.

Any help is appreciated.
Title: Re: Custom Message Block
Post by: Chen Zhen on May 01, 2013, 04:12:00 PM
Hoodie,

  If I understand correctly you want a message to be displayed to members that have been added to a new membergroup. Do you also want that message to disappear after a preset amount of time or time they have been logged in?

 I can write something that will do this for you when I have some spare time in the next few days.
What is the member group id# that you are displaying this data for?
Hover over the membergroup in the admin and look at the url info to get that specific id#.
Title: Re: Custom Message Block
Post by: [SiNaN] on May 01, 2013, 07:14:27 PM
I think you can use Custom Permission set to achieve this. But what exactly do you mean by "once they are approved"? Is that membership approval or group request approval? Can you describe (step by step) what a user has to do to become a full member and at which exact stage you want this message displayed?
Title: Re: Custom Message Block
Post by: Hoodie on May 13, 2013, 03:29:47 PM
I think you can use Custom Permission set to achieve this. But what exactly do you mean by "once they are approved"? Is that membership approval or group request approval? Can you describe (step by step) what a user has to do to become a full member and at which exact stage you want this message displayed?


Two ways I guess this could be done:


Only issue I see with the third route is that I have 10 different clans under this "family" and a membergroup for each clan.  A way I was thinking to fix that is to put the message that I want displayed to be written in the description of the membergroup and to display that information in a block based on the membergroup the member is placed in.

I honestly think that the second way is the easiest way to complete this and doesn't change the way we are currently doing things.  Only issue is that it will be pointless if they receive another PM and it then gets erased from the front page.
Title: Re: Custom Message Block
Post by: Hoodie on May 23, 2013, 03:39:56 PM
So I think was revisiting this and thought to just do the personal message way.  Should be the easiest way to get the job done.  Anyone know how to make the most recent personal message display in a block?
SimplePortal 2.3.8 © 2008-2024, SimplePortal