Log in

View Full Version : two things


Chadi
03-12-2005, 01:12 PM
<a href="http://www.talkjesus.com/index.php?" target="_blank">http://www.talkjesus.com/index.php?</a>

I would like to reduce the font size on the right column but not sure what section it would be in main css. Could someone please tell me?

The shoutbox...how can I make it so that it only appears to registered logged in users and not to guest visitors?

Thank you.

Chadi
03-13-2005, 05:15 PM
http://www.talkjesus.com/index.php?

I would like to reduce the font size on the right column but not sure what section it would be in main css. Could someone please tell me?

The shoutbox...how can I make it so that it only appears to registered logged in users and not to guest visitors?

Thank you.
Anyone can help please?

neocorteqz
03-13-2005, 06:08 PM
with a conditional you can make it so your shoutbox is viewable to members.


<if condition="is_member_of($bbuserinfo,X,Y,Z)">
Shoutbox code
</if>

Where X,Y,Z = the usergroupid of your registered usergroups.

Chadi
03-13-2005, 06:10 PM
Thanks. How do I know the ID of the groups? I want it to be viewable to all groups except banned of course.

neocorteqz
03-13-2005, 06:14 PM
Thanks. How do I know the ID of the groups? I want it to be viewable to all groups except banned of course.
to your usergroup manager, You should see the usergroup id of each in there.

AdminCP > Usergroups > Usergroup Manager

But the vBull defaults are
6 For admins
5 For Super Mods
7 For Mods
2 For Registered

Non Registered / COPPA
4 For COPPA
1 For Unregistered/Not Logged in
3 For Users Awaiting Email Confirmation

Chadi
03-13-2005, 06:26 PM
weird..it works but half/half. I am the admin of course, and I cannot see the conditional field (text input field of shoutbox) even though I am in fact logged in.

It works for those who are not logged in though which is good but why not me?

<if condition="is_member_of($bbuserinfo,2,3,4,5,6,7)">

Admin is ID 6 so it shoudl work

neocorteqz
03-13-2005, 06:40 PM
Are you using additional usergroups for people as well?

those usergroupid's will need to be included.

edit:

is that shoutbox anything posted on this site? or is it a separate script?

You could always try the other conditional.


<if condition="$bbuserinfo[usergroupid] == X OR $bbuserinfo[usergroupid] == Y">


If you need to add more just make sure you follow the same format as in the example.

Chadi
03-13-2005, 06:42 PM
i excluded only banned usergroup and unregistered/not logged in because I do not want these two groups to be able to post in the shoutbox.

neocorteqz
03-13-2005, 06:47 PM
i excluded only banned usergroup and unregistered/not logged in because I do not want these two groups to be able to post in the shoutbox.
ok, try this


<if condition="is_member_of($bbuserinfo,1)">
You must be registered to use the shoutbox

<else />

Shoutbox Code
</if>


that should exclude non registered members from seeing it, and will tell them they must be registered.

edit: you will have to do this for each Style unless it's a Child style using the templates of the parent style.

Chadi
03-13-2005, 07:38 PM
Works :) Thank you

neocorteqz
03-13-2005, 07:50 PM
Works :) Thank you
Great, now all we have left is the first part of your question.

Which part of the test do you want smaller?

The last post section?

Chadi
06-15-2005, 12:16 AM
Great, now all we have left is the first part of your question.

Which part of the test do you want smaller?

The last post section?
<if condition="is_member_of($bbuserinfo,array(1,3,4,8))">

This doesn't work. I tried a tets user (COPPA) and unregistered user, both showed ability to type text. These group ID numbers are correct however

neocorteqz
06-15-2005, 09:58 AM
<if condition="is_member_of($bbuserinfo,array(1,3,4,8))">

This doesn't work. I tried a tets user (COPPA) and unregistered user, both showed ability to type text. These group ID numbers are correct however
that should be


<if condition="is_member_of($bbuserinfo,1,3,4,8)">

Chadi
06-15-2005, 10:23 AM
that should be


<if condition="is_member_of($bbuserinfo,1,3,4,8)">

Yes I have that also, doesn't work oddly