Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2000
Posts: 1,290
J
J.C. Offline OP
Addict
OP Offline
Addict
J
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 7:04 PM.

- Custom Web Development
http://www.JCSWebDev.com
Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
Offline
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
J
J.C. Offline OP
Addict
OP Offline
Addict
J
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
J
J.C. Offline OP
Addict
OP Offline
Addict
J
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 3: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
badfrog
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
Forum Statistics
Forums63
Topics37,557
Posts293,856
Members13,847
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,819
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 70
Gizmo 16
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2021 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Snapshot build 20210915)
Responsive Width:

PHP: 7.3.29 Page Time: 0.009s Queries: 23 (0.004s) Memory: 0.7982 MB (Peak: 0.8378 MB) Data Comp: Zlib Server Time: 2021-12-06 15:36:50 UTC
Valid HTML 5 and Valid CSS