Search Results for 'code'
-
Search Results
-
I do not want anyone, including members, to be able to post topics on the frontend of the forum, just through backdoor. How do I remove that option? It appears the code is form-forum.php file but cannot determine what code I need to remove. What I have tried keeps giving me ‘page not found’.
Hi, good day!
How can we come up with a code so that moderators can only trash his OWN topic/reply but not those posted by others? i.e. to hide admin link “bin” for topic/reply posted by others but display “bin” for his own (as moderator) post.
Regards.
Topic: Change subscription text
Hi, I’m using the code below to change text of topic subscription link (referring to this topic)
add_filter ('bbp_before_get_topic_subscribe_link_parse_args' , 'change_topic_subscribe') ; function change_topic_subscribe ($args) { $args['subscribe'] = 'Subscribe to this topic' ; $args['unsubscribe'] = 'Unsubscribe' ; return $args ; }
But it does not work in forum subscription text:
add_filter ('bbp_before_get_forum_subscribe_link_parse_args' , 'change_forum_subscribe') ; function change_forum_subscribe ($args) { $args['subscribe'] = 'Subscribe to this forum' ; $args['unsubscribe'] = 'Unsubscribe' ; return $args ; }
Anyone can guide me on this?
Regards.
Topic: Custom fields in topic posts
I am wanting custom fields to show up when a user posts a topic in the forum. I am using ACF because it is suppose to be compatible with bbpress. The support team tells me I must contact bbpress for my current issue.
I have uses ACF plugin to create custom fields. On the backend the custom fields show up if a user posts a new topic in the backend. The custom fields do not show up if the user posts a new topic in the frontend. Even though the custom fields show up in the backend, when the user posts the topic, the custom fields do not show up in the frontend. (I know the following code is correct because the custom fields will show up on the page in the frontend.
Here is the code for the custom fields to display on front end:
echo ‘Anglers: ‘ .get_field( ‘anglers’ );
echo ‘<br>Catch Date: ‘ .get_field( ‘date’ );
echo ‘<br>Time of Day: ‘ .get_field( ‘time’ );Questions:
A. What bbpress file do I enter this into so it will show up on the frontend of a topic?
B. What bbpress file do I enter this into so it will show when a user posts a new topic on the frontend, not the backend?Topic: Trying to get off buddyboss
I am trying to move my site off Buddyboss back to buddypress and bbpress. I can’t get all my forums to show from my groups on my forums page. Also, it’s a bit strange that it will only post 8 forums on the page. I can get forums to show if I change the order of the forums in the forum list, but it will remove the last forum on the list so that there are only 8. Does anyone have any tips and resetting the code, core or getting it to work? It’s on a staging site so I can try different things. Any help is appreciated.