UBB.Dev
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
Code

// 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";
}

hmm.. if he's using 6.5.2 he has more issues than unpaid signatures wink

What does the above do? Would a simple 'if usergroup = xxx { style=hidden }' or something similar do the job?
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
Posted By: J.C. Re: Turning off signature lines for non paid membe - 11/16/2006 11:06 PM
check my logic..

I'm thinking this might work, but do not wish to take chances lol

Code
	
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

© UBB.Developers