Author Topic: Only visible to a certain group.  (Read 5185 times)

0 Members and 1 Guest are viewing this topic.

Offline steveeyes

  • Full Member
  • ***
  • Posts: 177
    • View Profile
Only visible to a certain group.
« on: May 01, 2005, 05:19:37 AM »
Hi all

I have been using 4images as my gallery for quite some time now. I think it is a wonderful program. Over time I added mods from the forum to improve it. There is one situation that I wish I knew how to improve and if there is a mod for it, I don't know which one it is. If you don't mind, need to give you some background:

1. I own a dating site and charge male members to join to get the ladies contact information (ladies can join for free). If you look at my site (http://www.filipinaeyes.com/4imges) you will notice under the ladies thumbnail is an ID. For example Koko-549.

2. The guy has to write down the ID of the ladies he likes and I provide him with a special link to look up the contact information for the ladies. He has to leave 4 images to go to this contact page.

3. My wish would be this. The guy could somehow have access to the ladies contact information in the ladies description. This contact information would only be visible to male members when they log in (only members  have log in codes and members include both  ladies who join for free and gentlemen who pay for membership).  It can't be visible to lady members or I would have guys sending a fake picture as a lady to join for free so they could get access to the ladies contact information.

4. Of course every ladies' contact information is different...so I would want to put her contact information  in her description, visible only when male members log in and then they would not have to leave 4images to get the ladies contact info.

I know anything is possible (as Chris would say), but is this reasonably feasible in 4images or is there already a mod for this. I'm also open for any other suggestions. I just don't have the PHP knowledge so I keep digging through the forum hoping to find the answers. Any feed back or thoughts would be appreciated.

Thanks

Steve

p.s. Chris's mod for making certain text visible when you log in doesn't work for this idea. In other words, the ladies would also have access to the contact information and again, this would be a problem. It has to be so only a certain group can see the text. I have two groups for my site. One goup is called lady members and the other group is called male members. It is the male member group that can only be able to see the text when they  log in, not the lady member group. Also, I don't think Chri's mod would work by me typing in the code in the description. Agin, any ideas at all would be appreciated. I'm using 7.1.

thanks


Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Only visible to a certain group.
« Reply #1 on: May 01, 2005, 05:27:03 AM »
how about u create two member groups "male" and "female" and set all your categories (or atleast the ones with profiles) to "private", then set needed member group permissions to allow veiw specific categories?

(unless I missunderstood the concept of how its working on your site...)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline steveeyes

  • Full Member
  • ***
  • Posts: 177
    • View Profile
Re: Only visible to a certain group.
« Reply #2 on: May 01, 2005, 06:29:41 AM »
I think I follow what you are saying Vono, but that won't work if I understand what you are telling. You are saying to create a male group and under permissions to set the View Category to Private. However, I want both ladies and gentleman visitors to be able to view the pictures (I have pictures broken down into categories by age group). It's important that visitors see the ladies pictures because that is what makes them want to join ... they see a lady or ladies they like and they join to get the contact info. So visitors being able to see the categories of lady pictures is an important selling point.

The ladies that send the pictures to me, need to see the pictures also. That is how I get updates. They see their pix or description and send me an email and say, "hey I want to change that"

Lastly male members who join obviously want to see the pictures.

From the above 3 groups....visitors (could be both male and female), lady members and male members, only male members who join need the contact information, but all three need to see the cateogory or pictures of the ladies for various reasons (before anyone says anything, I didn't actually create a group called visitors, but I believe you get the concept). I was hoping there was a way to make it so only certain information was visbile to a particular group in the  description below the picture.  Any other thoughts.

I apologize, Vono, if I didn't understand your post as is and for my lack of explaining my need well.

Steve.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Only visible to a certain group.
« Reply #3 on: May 01, 2005, 06:38:59 AM »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline steveeyes

  • Full Member
  • ***
  • Posts: 177
    • View Profile
Re: Only visible to a certain group.
« Reply #4 on: May 01, 2005, 08:43:37 PM »
Thanks again, Vono, for your quick reply. Sorry I didn't get back to you last night but kids started screaming.

Ok Vono, I added the codes per your reference to Jan's code. All seem to go smooth. Than I got to this part in following the code:


Quote
Now you can use the following in your templates

Code:
{if is_in_group_photographer}
  This text is for photographers only
{endif is_in_group_photographer

I have two questions.

First: Is Jan saying I have to implement this code in evrry template or would I just put it in the details temlate since I want the ladies address be visible in the description? Not sure which template to put it in so I'm trying to figure it out which one and where.

Second. Not sure this still solves my problem but it may still be useful. For example. If I put the above code in my details.html template, than when the photogarpher group logs in they will see in the description "This text is for photographers only" This text would be the same for every description yet, I wanted to be able to put in the description each ladies address which would be different for each lady.

So, lady one in her description she may have Miss Susie Luce, 22 Spring Ave, Lock Haven, Pa 16822 and Lady two would have her address in her description which would be Miss Liza Heart, 14 Smith Ave, Tuxon, Il 17733 and so on. Again, I only wanted this to be visible when male members logged in.

Does Jan Script/Mod do this for me and I'm just not seeing how it works?  To bad you couldn't type the code directly in the description and change the text/address for each member, but I see Jan told you that couldn't be done.

Again, am I missing something Vono? Or am I right in thinkingl the text I put in the template will be the same text for each description?

Thanks again...you have been great.