The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
What I want is for some of my members, those who are on my SETI@home team, to have a link to my SETI@home page somewhere in their post. I think it would be cool/neat to have it in the author info area (the left column), right above their registration date.
I tried this with a custom user profile field, and I edited the appropriate template so it shows up in the right spot. But they can edit the contents of the field. This I do not want, because I only want one thing displayed, and only for the certain members. Non-team-members were putting silly stuff in the field, etc. So now I'm thinking I can make a custom user group (i.e., like Registered or Moderator), called SETI Group Members. I can manually add people to this group. I'm thinking there must be some kind of way the board, when displaying posts, can check to see if the member is a member of that group, and if so, to put this link above the registration date. I've already made the group; now I just need to know how to make the checking part, and include the link in that spot. Any help, please?
|
|
#2
|
|||
|
|||
|
Code:
if ($post[usergroup] == XX) {
$setilink = "your/url/here";
} else {
$setilink ="";
}
|
|
#3
|
|||
|
|||
|
I just thought of something. I'm on the SETI team, as are moderators and regular members. Obviously, we all can't be part of the same user group. If I add multiple user groups, like SETI_Admin, SETI_Mod, SETI_SuperMod, and SETI_Member, how would the above little code be made to check all those groups?
And assuming I correctly set permissions for each group, would putting a Moderator in another group have any effect on his/her abilities? |
|
#4
|
|||
|
|||
|
Or is there maybe a better way to do this? I could make a new field in the user table, and if I manually set the value to 1 for someone, the link would show up. This is probably the best way.
But I don't know how to write the part...the same part, that checks the value to see if it's 1 or not. |
|
#5
|
|||
|
|||
|
Code:
if ($post[seti] == 1) {
$setilink = "<a href=http://your.com/url/here/>SETI member</a>";
} else {
$setilink = "";
}
|
|
#6
|
|||
|
|||
|
OK, thanks! Two questions:
1. Does it matter where in showthread.php I put this code? 2. What is the syntax of a query I could issue to the db through phpMyAdmin to change the value for a member? |
|
#7
|
|||
|
|||
|
1. Find
Code:
if ($post[aim]!="") {
eval("\$post[aimicon] = \"".gettemplate("aim")."\";");
} else {
$post[aim]="";
}
2. Code:
UPDATE user SET seti='1' WHERE userid='XX' HTH. |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|