Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 201
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 247
Total: 247

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

0 Members and 2 Guests are viewing this topic.

Offline Sockratease

  • Member
  • *
  • Posts: 14
    • 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: 16436
    • 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 https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/
Optimistic Optimistic x 1 View List

Offline Sockratease

  • Member
  • *
  • Posts: 14
    • 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: 16436
    • 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 https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/
Love Love x 1 View List

Offline Sockratease

  • Member
  • *
  • Posts: 14
    • 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: 16436
    • 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 https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/
Like Like x 1 View List

Offline Sockratease

  • Member
  • *
  • Posts: 14
    • 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: 16436
    • 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 https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/
Optimistic Optimistic x 1 View List

Offline Sockratease

  • Member
  • *
  • Posts: 14
    • 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

Offline Sockratease

  • Member
  • *
  • Posts: 14
    • View Profile
    • Fractal Forums
Re: Mature Images - Issue With Generated Threads
« Reply #9 on: August 27, 2017, 04:49:15 am »
Thanks for the tip!

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

...Again, thanks for the pointer!  I may be able to make it work the way I'd like now!

OK, there was a lot to do before our public beta starts next week, and I did play with this trying various configurations  (only 1 of which broke the gallery!)  (Don't worry, I back up every file I tweak and restore that after I fail) but I was unable to display the "mature.gif" image in the generated threads, or just display no image but include the link and author's description.

So before settling for a solution that does prevent images with the mature option checked from being posted in the forum but does not create a thread, I figured I'd ask one final time.

I greatly appreciate the code you posted, but my inexperience with php and css and basically most of the "New Ways" of creating websites has kept me from figuring out this particular answer on my own.

If you have time, I would greatly appreciate the old "Find *existing code* and Replace With *new code*" format for where to place the code snippet you offered.

Please forgive my ignorance of coding.  I made websites a long time ago, so know some basics, but I missed the whole introduction of css and html5 so I am literally just guessing on a lot of things.  I have good luck about half the time, but unfortunately this is the other half of the time and I am running out of time.

Again - we have an acceptable solution already and I appreciate you helping stop threads from mature images all together, but it falls short in that it would be ideal if we could generate threads with either the mature image warning or just no image at all.  The threads show forum users that a new image has been posted and is a good thing to have for all images, even those images we should not display without the Mature Image filter in place.

Thanks for any further help you can offer.
Life Is Complex - It Has Real And Imaginary Components

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
3709 Views
Last post September 17, 2011, 06:05:10 pm
by VividViews
5 Replies
5247 Views
Last post May 30, 2014, 10:54:03 am
by SMFHacks
1 Replies
4044 Views
Last post May 28, 2015, 10:36:31 pm
by SMFHacks
5 Replies
3263 Views
Last post February 12, 2017, 07:30:16 am
by SMFHacks
2 Replies
2272 Views
Last post September 09, 2017, 06:40:12 pm
by Sockratease

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal