TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,993
  • Total Topics: 21,324
  • Online today: 285
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 296
  • Total: 297
  • lurkalot

Make Article Show for only Ungrouped Members

Started by aabean, November 26, 2007, 03:32:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

aabean

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.

TimUSA

#1
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>';
}

This website is proudly hosted on Crocweb Cloud Website Hosting.