Author Topic: Nudity Toggle in the User's Control panel  (Read 9965 times)

0 Members and 1 Guest are viewing this topic.

Offline LadyCherry

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
Nudity Toggle in the User's Control panel
« on: June 24, 2005, 07:02:06 PM »
I allready have a field in the 4images_images table that says nudity. When people add an image they select nudity in the member_uploadimage.html then it shows under the thumbnail saying: Warning nudity.

This is what I need::
1) Create a field in the 4images_images table called nudity --Done--
2) In the members_uploadimage.html create a radio selection yes or no that the image they are uploading contains nudity. --Done--
3) To create a field in the USERS table that says nudity. --Done--
4) in the user's control panel create a radio field that says yes or no to nudity. (this allows the user to decide if they want to see nudity or not) --Done--
5) In the search.php file create a statement that will not display nude images if the User has selected not to view nude images. But display nude images if the user selected to view them.

I have allready Done Steps 1 - 4
But I have no idea how to do step 5 What the wording of the code would be. All I know is I want it to be..
Something like:

Code: [Select]
If 4images_images nudity field = 1(image contain nudity) and Users_table nudity field = 0 (Do not show nudity in control panel selected)
then
do not display this image in the thumbnails of the search.


Can anyone help me with this at all? Please I would even donate to your paypal account if you can help me!

Thanks for your time!

-Lady Cherry

_____________________________________________________________________________________________


I allready haben auffangen in der Tabelle 4images_images, die
Nacktheit sagt. Wenn Leute ein Bild addieren, wählen sie Nacktheit im
member_uploadimage vor.HTML, sich dann, das es unter dem thumbnail Saying zeigt: Warnende Nacktheit.

Dieses ist, was ich: benötige:
1) verursachen auffangen in der Tabelle 4images_images, die die
Nacktheit genannt wird -- erfolgt --
2) im members_uploadimage.HTML verursachen eine Radiovorwähler ja oder kein, der das Bild, das
sie hochladen, Nacktheit enthält. -- getan --
3) auffangen in der Anwendertabelle verursachen, die
Nacktheit sagt. -- getan --
4) in der verkleidung des Benutzers Steuerstellen einen Radio
auffangen her, der ja oder nicht zur Nacktheit sagt. (dieses erlaubt dem Benutzer, zu entscheiden, wenn sie Nacktheit sehen
möchten oder nicht) -- getan --
5) in der Suche.php Akte verursachen eine Aussage, die nicht nude Bilder anzeigt, wenn
der Benutzer, um vorgewählt hat nude Bilder nicht anzusehen. Aber Anzeige nude Bilder wenn der Benutzer vorgewählt, sie anzusehen.

Ich habe allready erfolgte Schritte 1 - 4
Aber ich habe keine Idee, wie man zu Schritt 5 tut, was der
Wording des Codes sein würde. Aller, den ich weiß, ist ich wünschen es sein.
Etwas mögen:

Code: [Select]
If fangen 4images_images Nacktheit = 1(image
enthalten Nacktheit) auf und Users_table Nacktheit fangen = 0
auf (zeigen Sie Nacktheit nicht in der vorgewählten
Steuerverkleidung)
dann
zeigen Sie nicht dieses Bild in den thumbnails der Suche an.

Kann jemand mir mit diesem an allen helfen? Bitte würde ich sogar zu Ihrem paypal Konto spenden, wenn Sie mir
helfen können!
Dank während Ihrer Zeit!
-Lady Cherry

Offline marod0er

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: Nudity Toggle in the User's Control panel
« Reply #1 on: June 24, 2005, 08:38:17 PM »
I would like to know this as well.
Greetz: Lasse

Offline LadyCherry

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
Re: Nudity Toggle in the User's Control panel
« Reply #2 on: July 06, 2005, 10:49:13 PM »
Can anyone please help with this?

I would really appreciate it!

Thanks
-Lady Cherry

TheOracle

  • Guest
Re: Nudity Toggle in the User's Control panel
« Reply #3 on: July 07, 2005, 09:22:52 PM »
Quote

5) In the search.php file create a statement that will not display nude images if the User has selected not to view nude images. But display nude images if the user selected to view them.


You'd need to set a standard prefix name for your nudity images. Otherwise, how would 4images handle your images between non-nudity and nudity ? ;)

For example, you could always set a prefix like :

- nude_yourimagename

This way, in your search.php file, you could make an additional codings regarding this prefix on each of the SQL SELECT statement. To do so, I'd recommend to set an additional SQL Statement with ' left join ' from your WORDLIST_TABLE to your USERS_TABLE (selects the user's preference from the additional_user_fields column first, then limits the results).

Offline LadyCherry

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
Re: Nudity Toggle in the User's Control panel
« Reply #4 on: July 12, 2005, 12:54:03 AM »
Hi TheOracle
That would be good for a non mysql/php solution.

I wanted one where the User can select if they wanted to view nudity or not in thier control panel and it would store thier settings in the user table.

Also the php script would check the 4images_images table if the image contains nudity or not.

Does anyone know have a solution for this?

any help is appreciated!

-Lady Cherry

TheOracle

  • Guest
Re: Nudity Toggle in the User's Control panel
« Reply #5 on: July 12, 2005, 12:56:57 AM »
Quote

Also the php script would check the 4images_images table if the image contains nudity or not.


But here, the question still remains. Another solution would be by image description. Althought, I do not know if 4images's search routines involves queries by image description.

Offline LadyCherry

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
Re: Nudity Toggle in the User's Control panel
« Reply #6 on: August 04, 2005, 04:26:22 PM »
Can anyone give a solution that uses the MySQL tables?

(I do not want to use the search field for what im trying to accomplish)

Thank you
-Lady Cherry

Offline WhiteRabbit

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: Nudity Toggle in the User's Control panel
« Reply #7 on: August 09, 2005, 06:35:34 PM »
Look at my tutorial:

http://www.4homepages.de/forum/index.php?topic=9148.0

If you want to show the images that contains a 0 on "nudity" field, you should see my last comment on the tut.

Best regards.
WR.

Offline LadyCherry

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
Re: Nudity Toggle in the User's Control panel
« Reply #8 on: August 30, 2005, 06:28:48 PM »
Hey WhiteRabbit,

I will try your tutorial tonight.

My question is how do you incorperate that search with a users setting in the users control panel?

I want the user to be able to check nudity or No Nudity and any of thier searches will not show nudity if they select not to in thier user control Panel.

Thanks
-Lady Cherry

Offline WhiteRabbit

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: Nudity Toggle in the User's Control panel
« Reply #9 on: August 31, 2005, 08:43:26 PM »
Hello again:

If you are a mid-skilled PHP coder, isn't very hard.

You should look on search.php , and change the SQL querys, by adding this after the last double quote:

Code: [Select]
($user_info['user_nudity'] == 0) ? ."AND i.image_nudity = 0" : ."";
I didn't have time to find the lines where you have to do it... I assume that you can find those by yourself. Where I put image_nudity, you should use your image table's field name for nudity control.

Hope it helps.

Best regards.
WR.




Offline LadyCherry

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
Re: Nudity Toggle in the User's Control panel
« Reply #10 on: February 02, 2006, 08:46:14 PM »

Im toying around and I have tried to input that line with no luck any ideas where abouts it would go?

Thanks for your time, im kinda a noob as far as this goes.

Thanks

-Lady Cherry

 

Post your comments here