Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 11982
Latest: jonny88
New This Month: 8
New This Week: 3
New Today: 1
Stats
Total Posts: 38097
Total Topics: 6707
Most Online Today: 86
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 53
Total: 54

Author Topic: Mature Images - Issue With Generated Threads  (Read 397 times)

0 Members and 1 Guest are viewing this topic.

Offline Sockratease

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • Fractal Forums
Mature Images - Issue With Generated Threads
« on: July 30, 2017, 07:50:42 am »
Hi, I did a little research on an issue I'm having and it looks like it came up a few years ago as well, but I couldn't find if it ever got addressed.

http://www.smfhacks.com/index.php/topic,8297.msg35574.html#msg35574

I'll just quote that thread's first post since it states it so well:

I don't know if this is a bug, a missing feature or something I'm missing myself, but when a picture is marked as "Mature content", it is still visible in posts (if the option "create a post" is on).
Is there a way to prevent that ?

Did it ever make it to the To Do list?  Last post in that thread said you'd consider it.

If I missed it someplace, please point me there!

If it was forgotten, please reconsider adding it to the To Do list.

I'm setting up the Gallery on the upcoming 2nd version of FractalForums.  The .com is live, but the new domain is still in the works.  We got the Pro Gallery for there, and in setting it up I noticed the Mature option.  Not having that in our .com site always held me back - I'd love to have it on the new domain, but we will be making threads in the main forum from images posted, so it's kind of important if we are to allow Mature Content.

I know us perverts are often annoying, but  ...

It's Art!

Thanks for any feedback you may have on this issue.



EDIT - I just realized this may belong in Feature Requests!

If staff agree I don't mind it moving and being re-titled accordingly.



EDIT 2:  In what I hope is just a temporary work-around, I set up a "Naughty Images" category that does not generate threads.  Not the best way but a hold-over, I hope.

Obviously the thread is good publicity that a post happened, so I'd still like to see a way to omit the picture or substitute something generic if the Mature setting is chosen.
« Last Edit: July 30, 2017, 08:30:19 am by Sockratease »
Life Is Complex - It Has Real And Imaginary Components

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14116
    • View Profile
Re: Mature Images - Issue With Generated Threads
« Reply #1 on: July 30, 2017, 10:26:53 pm »
Hasn't been chagned

For a quick fix on just adding a picture you can change this line
On line 2651
Code: [Select]
if ($userid == 0 && $rowcat['id_board'] != 0 && $approved == 1)
To
Code: [Select]
if ($userid == 0 && $rowcat['id_board'] != 0 && $approved == 1 && $markmature == 0)
Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.
Optimistic Optimistic x 1 View List

Offline Sockratease

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • Fractal Forums
Re: Mature Images - Issue With Generated Threads
« Reply #2 on: July 31, 2017, 03:19:43 am »
Thanks for the reply and the code!

I'll give it a try.

Looking at that, I'm glad I didn't try it on my own.

I'm terrible with php   :-[

Again - Many thanks!



EDIT:

Sorry to be such an amateur, but  ...  what file am I editing?

I had a poke around so I could back up an original and try out the tweak, but I'm literally working blind.  No idea which file this code goes in!

I checked index.php because I'm clueless - obviously not that.

Tried a couple js files, but didn't find the right one.

Sorry to be clueless, but I am clueless!

Thanks for understanding...
« Last Edit: July 31, 2017, 03:31:46 am by Sockratease »
Life Is Complex - It Has Real And Imaginary Components

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14116
    • View Profile
Re: Mature Images - Issue With Generated Threads
« Reply #3 on: July 31, 2017, 09:44:23 am »
Sorry meant to say Sources/Gallery2.php
Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.
Love Love x 1 View List

Offline Sockratease

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • Fractal Forums
Re: Mature Images - Issue With Generated Threads
« Reply #4 on: July 31, 2017, 03:48:52 pm »
Many thanks!

That makes this much easier   ;D
Life Is Complex - It Has Real And Imaginary Components

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14116
    • View Profile
Re: Mature Images - Issue With Generated Threads
« Reply #5 on: July 31, 2017, 04:01:50 pm »
Glad to help
Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.
Like Like x 1 View List

Offline Sockratease

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • Fractal Forums
Re: Mature Images - Issue With Generated Threads
« Reply #6 on: July 31, 2017, 04:29:26 pm »
It's a good start, but all that does is stop the thread from being made.

I was hoping to allow the thread, but have no image  (or a generic image like the one that shows when a mature image is there but the user has not elected to see mature images).

Was that the functionality you intended?

Because I already made a Naughty Image category which does not generate threads.  So I may have misunderstood what this was supposed to do.

Maybe this does need a feature request?

Either way, it's a step up from requiring all naughty images to be in a single category, so thanks for that!

Maybe one day enough Naughty Minded People will clamor for this, and it will become standard   ::)

Thanks again for the help.  It is, indeed, an improvement.
Life Is Complex - It Has Real And Imaginary Components

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14116
    • View Profile
Re: Mature Images - Issue With Generated Threads
« Reply #7 on: July 31, 2017, 10:24:15 pm »
Yeah it won't post the topic.
Or you can add a check on the image line in the post to show mature.gif graphic instead of picture if mature.
Code: [Select]
'body' => '[b]' . $title . "[/b]\n\n[img$extraheightwidth]" . $modSettings['gallery_url']  . $extrafolder . $postimg . "[/img]$showpostlink\n\n$description",
Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.
Optimistic Optimistic x 1 View List

Offline Sockratease

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • Fractal Forums
Re: Mature Images - Issue With Generated Threads
« Reply #8 on: August 01, 2017, 04:48:33 am »
Thanks for the tip!

I'll try to figure out what to do exactly...

My guess is to add

Code: [Select]
1 && $markmature == 0
to the

Code: [Select]
"[/b]\n\n[img$extraheightwidth]"
string - somehow.

Maybe make the 1 into a zero?

I'll play around, but may need a little more specifics if I am to make this work   :-[

Again, thanks for the pointer!  I may be able to make it work the way I'd like now!
Life Is Complex - It Has Real And Imaginary Components

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
2958 Views
Last post September 23, 2008, 07:14:07 pm
by SMFHacks
2 Replies
1663 Views
Last post September 17, 2011, 06:05:10 pm
by VividViews
5 Replies
2957 Views
Last post May 30, 2014, 10:54:03 am
by SMFHacks
1 Replies
1892 Views
Last post May 28, 2015, 10:36:31 pm
by SMFHacks
5 Replies
1164 Views
Last post February 12, 2017, 07:30:16 am
by SMFHacks

+- Recent Topics

Advance Fake Users and Guests Online by jonny88
Today at 09:28:28 am

Purchase Notification Email to Store Admins by scso1502
August 18, 2017, 05:22:42 pm

Won't install in ShelfLife theme. No code matching "Find" code. by ted245
August 11, 2017, 10:12:59 am

Image Linking Codes section missing after install by ted245
August 11, 2017, 08:31:52 am

please i need a programmer who can build this exact forum using smf by horlique
August 07, 2017, 09:03:25 am

Are SMFHack mods compatible with SMF 2.1? by SMFHacks
August 06, 2017, 07:56:38 am

Allow user to customize username and password by SMFHacks
August 04, 2017, 12:22:53 pm

Reset gallery by SMFHacks
August 03, 2017, 11:04:39 am

Members Can't create a Category to upload photos to by SMFHacks
August 02, 2017, 05:07:03 pm

Only post in own galleries by SMFHacks
August 01, 2017, 12:12:36 pm

Powered by EzPortal