Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 1314
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


If you're interested in helping other members with support requests, consider joining the Community Support Helpers group.

Recent Image Attachments section, unwanted images

Started by DarkMere, June 11, 2014, 02:26:19 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

DarkMere

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? 

AngelinaBelle

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.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

DarkMere

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.

AngelinaBelle

This is a file name in your Sources directory.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

DarkMere

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

DarkMere

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  ;)

AngelinaBelle

I will move this to the customization board, in the hopes that you might attract some help over there.

Good Luck!
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?