php forum
php mysql forum
php mysql smarty
 
Topic Options
#311979 - 11/15/06 07:03 PM Turning off signature lines for non paid members..
J.C. Offline
Addict

Registered: 08/11/00
Posts: 1551
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";
    }  




Edited by J.C. (11/15/06 07:04 PM)
_________________________
- Groupee Moderator
- Custom Web Development
http://www.JCSWebDev.com

Top
#311992 - 11/16/06 10:19 AM Re: Turning off signature lines for non paid members.. [Re: J.C.]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25366
Loc: Texas
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?

Top
#311993 - 11/16/06 12:12 PM Re: Turning off signature lines for non paid members.. [Re: AllenAyres]
J.C. Offline
Addict

Registered: 08/11/00
Posts: 1551
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
_________________________
- Groupee Moderator
- Custom Web Development
http://www.JCSWebDev.com

Top
#311996 - 11/16/06 03:06 PM Re: Turning off signature lines for non paid membe [Re: J.C.]
J.C. Offline
Addict

Registered: 08/11/00
Posts: 1551
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



Edited by J.C. (11/16/06 03:06 PM)
_________________________
- Groupee Moderator
- Custom Web Development
http://www.JCSWebDev.com

Top


Moderator:  Ian_W 
Top Posters Last 30 Days
AllenAyres 82
Gizmo 29
sirdude 25
Zarzal 23
blaaskaak 12
swebs 6
willing 5
Who's Online
1 Registered (M4D), 34 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
User Authentication Class
by sirdude
Today at 06:11 PM
Multiple Identity Detector
by Myke
Today at 05:45 AM
FlashChat with UBB.Threads 7.0.2
by Gizmo
Today at 12:30 AM
Nice Ajax Chat
by Thelockman
07/06/08 09:07 AM
[7.x] UBB.Post Templates v0.1
by sirdude
07/05/08 12:48 PM
Team UBBDev Rides Again!
by AllenAyres
07/04/08 10:56 PM
[7.3.x] ubb.links
by AllenAyres
07/03/08 06:15 PM
New Mods
Protect users emails
by Basil Fawlty
06/29/08 08:44 AM
[7.3.x] Scheduled board close for backup
by blaaskaak
06/26/08 04:01 AM
[7.3+] CustomTag - Audo Embedding
by Gizmo
06/24/08 07:52 PM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.3] Dissallow quotes more then 3 levels deep
by blaaskaak
06/09/08 09:01 AM
Newest Members
nunny, lpzie, DoubleDutch, ryzilla, M4D
13305 Registered Users

 

 

 
fusionbb message board php hacks