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

   Turning off signature lines for non paid members.. to Del.icio.us Add to del.icio.us
  Digg Turning off signature lines for non paid members.. Digg it
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: 25411
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 12
Gizmo 10
S7ARBVCK 2
Cambridge 1
Murphdog 1
MattUK 1
Kevin H 1
Who's Online
1 Registered (mikey81), 26 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
BeyondCompare v3.00
by blaaskaak
Yesterday at 02:46 PM
Noob - need help, or a reality check!
by Gizmo
09/04/08 03:21 AM
Here I am! Rock me like a Hurricane!
by AllenAyres
09/02/08 03:05 PM
[7.x] Generic Page Outside of forum directory
by Gizmo
08/30/08 05:43 PM
Team UBBDev Rides Again!
by Gizmo
08/28/08 11:45 PM
Multiple Identity Detector
by MattUK
08/28/08 04:10 PM
[7.3.x] ubb.links
by AllenAyres
08/26/08 09:57 AM
New Mods
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
[7.x] Generic Page Outside of forum directory
by
01/14/07 10:58 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
veedubb8, twentyseven, Claus1, welcomeback1, Paug
13327 Registered Users

 

 

 
fusionbb message board php hacks