HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Welcome greeting (guest/member) seperation

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#83024 (In Topic #17286)
Avatar

Fan in action

I propose you make it easier to seperate the welcome greeting into one for logged-in members, and another for guests. I accomplished this task by clearing out the welcome greeting altogether, and instead included my greetings into the language slots for global.ini 's WELCOME, and WELCOME_BACK respectivly.

But for future developers, I think this could be made into a configuration option to make it much simpler.

Back to the top
 
Posted
Rating:
#83027
Avatar

Community saint

A mechanism to do this already exists. Use the 'if_in_group' feature, e.g.

[if_in_group="1"]{+START,BOX,Visitors,100%,curved} [block]main_greeting[/block] {+END}[/if_in_group] [if_in_group="2,3,4,5,6,7,8,9,10,11,12,13"]{+START,BOX,Members,100%,curved}[block]main_greeting[/block] {+END}[/if_in_group]


That's my code, but you can adjust it to suit your needs. Remember that in ocPortal 'Guests/Visitors' are always a '1', 'Admin' a '2', and all the others follow meekly … !!

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#83028
Avatar

Fan in action

Thanks Fletch. Leave it to me to do it the hard way. lol
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: