Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Turning off "first posts are subject to administrator approval before being displayed" message
Avatar
gorky5
Member
Free Members
sp_UserOfflineSmall Offline
Sep 29, 2014 - 9:51 am

But I'm not interested in changing the text! I just want it to disappear once a user has had one message approved. It seems more sensible than to have it there permanently.

Shall I assume that it's not possible? I feel like I'm going round in circles here.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 29, 2014 - 9:56 am

no, its not built into core to have that check made... never been asked for in almost 10 years...

but its possible for you to add those checks yourself in the theme template files I mentioned...  any php code there is valid... so run a date check, number of posts user has made, etc before setting that string...

at the airport about to board a plane so cannot give you specific example, but perhaps can from hotel room tonight...

Avatar
gorky5
Member
Free Members
sp_UserOfflineSmall Offline
Sep 29, 2014 - 10:30 am

Thanks Mr Papa. I've looked at those php files and found the warning text. I'm not sure how to run checks for number of posts made etc, so if you could give some examples I'd appreciate it.

Here's the line in question:

'labelModerateOnce' => __sp('NOTE: first posts are subject to administrator approval before being displayed'),

I realise I can just delete the warning text altogether, which might be easier.

FWIW, someone else sent me a PM saying they'd like to know the answer to this query too, so I'm certainly not the first to wonder. Is it worth building the option into the SP core in a future release, rather than having to hack theme template files?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 29, 2014 - 9:01 pm

okay, lets assume you want to show it until a user has posted 1 time... something like this for new topics in spForumView.php

after the $addTopicForm variable declaration

global $spThisUser;
$string = ($spThisUser->posts >= 1) ? '' : 'NOTE: first posts are subject to administrator approval before being displayed';
$addTopicForm['labelModerateOnce'] = $string;

so the message will appear to users until they have one approved post....

Avatar
gorky5
Member
Free Members
sp_UserOfflineSmall Offline
Sep 30, 2014 - 6:29 am

I couldn't get those lines to work. They might work for new forum members who are awaiting a first post approval, but long-term members (who don't have any approved posts, since I've just turned on first-post moderation) were still seeing the warning.

In the end I just deleted the text, which seemed like the easiest solution. Thanks for your time.

Avatar
neto
Member
sp_UserOfflineSmall Offline
Sep 30, 2014 - 8:10 am

I like the idea Gorky5 asked about.. displaying that message to a user with hundreds of posts would be nice to avoid..

I searched the Simple Press folder for spForumView.php and got 2 results sp-forum-view-class.php and sp-forum-view-functions.php

Is it one of these two - if so which one? and if not in which folder is spForumView.php located?

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Sep 30, 2014 - 8:17 am

Hey neto,

You should find spForumView.php in your themes folder, not the core:

sp-resources > forum-themes > yourtheme > templates 

Avatar
neto
Member
sp_UserOfflineSmall Offline
Sep 30, 2014 - 8:55 am

Would this be correct? I set it at 5 posts - renamed the file so I could keep the original in case I need it.

sp-mod.pngImage Enlarger

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Sep 30, 2014 - 3:45 pm

Looks good neto, have you given it a try?

Avatar
neto
Member
sp_UserOfflineSmall Offline
Sep 30, 2014 - 3:51 pm

Not yet  

 "measure twice, cut once"

I wanted to make sure I had the code in the right place in the file before trying it.

Thanks

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625