|
|
Joined: Aug 2000
Posts: 1,290
Addict
|
Addict
Joined: Aug 2000
Posts: 1,290 |
I have a client that has specific group titles for paid members (he is using 6.5.2). I'd like to have it so they get sig lines and unpaid do not. Any ideas? I thought I had it figured but it's not working properly. *snarf* He has this mod in place (in showflat.php) if it helps // Figure out what to display based on their groups if (preg_match("/-56-/",$postergroup)) { // adjust this group number if needed $postrow[$i]['GroupName'] = "title1"; } if (preg_match("/-57-/",$postergroup)) { // adjust this group number if needed $postrow[$i]['GroupName'] = "title2"; } if (preg_match("/-58-/",$postergroup)) { // adjust this group number if needed $postrow[$i]['GroupName'] = "title3"; } if (preg_match("/-59-/",$postergroup)) { // adjust this group number if needed $postrow[$i]['GroupName'] = "title4"; } if (preg_match("/-60-/",$postergroup)) { // adjust this group number if needed $postrow[$i]['GroupName'] = "Paid Member"; } if (preg_match("/-13-/",$postergroup)) { // adjust this group number if needed $postrow[$i]['GroupName'] = "title5"; } if (preg_match("/-11-/",$postergroup)) { // adjust this group number if needed $postrow[$i]['GroupName'] = "title6"; } if (preg_match("/-8-/",$postergroup)) { // adjust this group number if needed $postrow[$i]['GroupName'] = "title7"; } if (preg_match("/-61-/",$postergroup)) { // adjust this group number if needed $postrow[$i]['GroupName'] = "title8"; }
Last edited by J.C.; 11/15/2006 8:04 PM.
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
hmm.. if he's using 6.5.2 he has more issues than unpaid signatures  What does the above do? Would a simple 'if usergroup = xxx { style=hidden }' or something similar do the job?
|
|
|
|
Joined: Aug 2000
Posts: 1,290
Addict
|
Addict
Joined: Aug 2000
Posts: 1,290 |
Yeah I'm trying the display: none route, but need a value to key on. The usergroup thing sounds doable, just need to get it figured.. lol
|
|
|
|
Joined: Aug 2000
Posts: 1,290
Addict
|
Addict
Joined: Aug 2000
Posts: 1,290 |
check my logic.. I'm thinking this might work, but do not wish to take chances lol if (preg_match("/-56-/",$postergroup)) { // adjust this group number if needed $signature_display = ""; } else { $signature_display = "display: none;"; }
then have <style type="text/css">
.signature-display { $signature_display }
</style>
in the template, showflat.tmpl
Last edited by J.C.; 11/16/2006 4:06 PM.
|
|
|
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.
|
|
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|