Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2000
Posts: 1,290
Addict
Addict
Offline
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
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";
}


Last edited by J.C.; 11/15/2006 8:04 PM.

- Custom Web Development
http://www.JCSWebDev.com
Sponsored Links
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 wink

What does the above do? Would a simple 'if usergroup = xxx { style=hidden }' or something similar do the job?


- Allen wavey
- What Drives You?
Joined: Aug 2000
Posts: 1,290
Addict
Addict
Offline
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


- Custom Web Development
http://www.JCSWebDev.com
Joined: Aug 2000
Posts: 1,290
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,290
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


Last edited by J.C.; 11/16/2006 4:06 PM.

- Custom Web Development
http://www.JCSWebDev.com

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)