|
|
|
Joined: Apr 2001
Posts: 186
Member
|
Member
Joined: Apr 2001
Posts: 186 |
Once again, this doesnt work ;O) any help ;O) $query = " <br /> SELECT U_groups<br /> FROM {$config['tbprefix']}Users<br /> WHERE U_Number = '$User'<br /> ";<br /> if U_Groups ='-2-' {<br /> $html -> not_right("Du skal være medlem for at kunne skrive PM");<br /> } send private line 63
|
|
|
|
Joined: Apr 2002
Posts: 1,768
Addict
|
Addict
Joined: Apr 2002
Posts: 1,768 |
Please explain exactly what you're trying to do. I can't fix code if I don't know its purpose. 
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Maybe try this instead as there can be more than one group in that field: if (preg_match("/-2-/",$user['U_Groups'])) { 2 would be the moderator group.  5 would be the first custom group you add.
|
|
|
|
Joined: Apr 2001
Posts: 186
Member
|
Member
Joined: Apr 2001
Posts: 186 |
i am trying to get the send private to give an error message vhen people in group 2 tryes to send an PM.
(2 is just an example)
This to make the member benefits bigger on pay sites like mine.
thomas
|
|
|
|
Joined: Apr 2002
Posts: 1,768
Addict
|
Addict
Joined: Apr 2002
Posts: 1,768 |
[6.2.3] sendprivate.php Add U_Groups to existing authenticate call: $user = $userob -> authenticate("U_TextCols,U_TextRows,U_Preview[:"red"],U_Groups[/]"); Then add this: // Do not let users in group 2 send private messages. <br />if (strstr($user['U_Groups'], '-2-')) { <br /> $html -> not_right("Du skal være medlem for at kunne skrive PM"); <br />} Note that $html = new html must occur before $html->not_right().
|
|
|
|
Joined: Apr 2001
Posts: 186
Member
|
Member
Joined: Apr 2001
Posts: 186 |
work perfect ;O)
maby we should post a topic vith all paying sites hacks, f.eks 2 diffrent header / footer and so on
thomas ;O)
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
I have a mod posted here that allows certain groups to get different headers and footers. Thus paying members could avoid banner ads etc.. 
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|
|
|