TinyPortal

Development => Support => Topic started by: aabean on November 26, 2007, 03:32:32 PM

Title: Make Article Show for only Ungrouped Members
Post by: aabean on November 26, 2007, 03:32:32 PM
I'd like to have an article appear at the top of the front page notifying only ungrouped memerbers to contact me in order to be placed in the correct membergroup.

I've tried creating a block, linking it to that article, and then only showing it to the Ungrouped Members membergroup, but the formatting looks poor.

Is there a way to do this successfully?

I'm using TP 0.9.8 and SMF 1.1.4

Thanks for your responses, in advance.
Title: Re: Make Article Show for only Ungrouped Members
Post by: TimUSA on November 26, 2007, 04:55:46 PM
The only way I think you can do this is with a php article

Example:

global $scripturl, $user_info;

if (count(array_intersect(array(1,9,10,11,12,13), $user_info['groups'])))
{
echo '<p>The password for AYC events is <b>1234</b> (lowercase)</p>';
}

else
{
echo '<p>To obtain the AYC racing password please complete the <a href="', $scripturl, '?page=70">Racing Fleet Application</a>.</p>';
}