SimplePortal

Support => English Support => Topic started by: DarkMere on June 11, 2014, 02:26:19 PM

Title: Recent Image Attachments section, unwanted images
Post by: DarkMere on June 11, 2014, 02:26:19 PM
I have a feeling that there is not going to be an easy answer to this problem, but if I don't ask I won't find out.

We have a section on the forum where members have to have digitally signed that they are over 18 in order to gain access. Its not a pornographic section, but we are open to members as young as 13 and we have this section if anyone feels that a subject or images should not be shared with someone of this age group. As you might have already guessed, the problem has arisen that if a member posts an image to the over 18's section that image is also displayed on the 'Recent Image Attachments' section of the portal page. I really don't want to lose that section of the portal because I think its a great idea, but cannot think of a way around it.

Anyone any ideas? 
Title: Re: Recent Image Attachments section, unwanted images
Post by: AngelinaBelle on June 12, 2014, 02:19:18 PM
This would require some customization.

Just as the BoardNews block has a parameter for choosing which boards the topics come from, this block could have a parameter for limiting which boards the attachments come from.

Please have a look at the recent attachments block in PortalBlocks.php and come back here with any questions.  What I hope is that a dev can get back to you with the easy way to do this.
Title: Re: Recent Image Attachments section, unwanted images
Post by: DarkMere on June 12, 2014, 09:06:49 PM
Thank you for getting back to me.

The way the BoardNews works would be perfect.

Sorry if I am asking a very naive question, but where to I find PortalBlocks.php? I have done a search for this and I find many references to the name but not the actual code.
Title: Re: Recent Image Attachments section, unwanted images
Post by: AngelinaBelle on June 14, 2014, 06:53:37 AM
This is a file name in your Sources directory.
Title: Re: Recent Image Attachments section, unwanted images
Post by: DarkMere on June 14, 2014, 04:32:05 PM
Ahhh, understood.

I will find both the recent attachments function and the board news function and see if I can figure out how to adapt the required part from the news function and add it to the image attachment.

Thanks
Title: Re: Recent Image Attachments section, unwanted images
Post by: DarkMere on June 24, 2014, 07:29:56 PM
Sorry to say its all over my head, so I think it better if I post it as a feature request on the other board  ;)
Title: Re: Recent Image Attachments section, unwanted images
Post by: AngelinaBelle on June 26, 2014, 09:40:29 AM
I will move this to the customization board, in the hopes that you might attract some help over there.

Good Luck!
SimplePortal 2.3.8 © 2008-2024, SimplePortal