Search Results for 'code'
-
Search Results
-
If I attach a redirect_to parameter to the wp-login.php it will redirect to the topic.
But if I use my custom logon page that uses the defined shortcode it will not redirect. It seems the query parameters are stripped.
Please advise.
I’ve set up some FAQs as topics in a closed forum and would like to re-order them. I came across this code:
//* Change sort order of Topics within a specified bbpress forum function my_custom_display_topic_index_query ($args) { $thisforumid = bbp_get_forum_id(); if($thisforumid == 43135) { $args['orderby'] = 'date'; $args['order'] = 'ASC'; } return $args; } add_filter('bbp_before_has_topics_parse_args', 'my_custom_display_topic_index_query ' );… but when I added it to my functions.php file it hid all the topics (even though at forum archive level it displayed the correct number of topics in the topic count column). Removing it returned my topics.
Any pointers?
Topic: Register Redirection Woes
I have something funny going on.
I have this code running as a snippet:
// Redirect Registration Page function my_registration_page_redirect() { global $pagenow; // Standard Registration Redirect if ( (strtolower($pagenow) == 'wp-login.php') && (strtolower($_GET['action']) == 'register') ) { wp_redirect( home_url('/register/') ); } // Redirection after successful registration if ( (strtolower($pagenow) == 'wp-login.php') && (strtolower($_GET['checkemail']) == 'registered') ) { wp_redirect( home_url('/registration-complete/') ); } } add_filter( 'init', 'my_registration_page_redirect' );Now, I start a browser and go to my website:
I scroll to the bottom and I see my existing username and password in the login box (but not logged in).
I hit the Register button and it goes to my registration form.
I fill it in and tick the recaptcha and hit the register button.
There is a momentary delay and it just moves to the stbndard wp-login.php page with the existing username and password prefilled. I get no emails to the new account i filled in the form.
So, I hit back in my browser and my new account is filled in the form. I tick the recaptcha again and hit register again. This tie, after a delay, it takes me to my registration complete page and I do indeed get the email re: password and account activation.
I thought I had understood the registry redirection correctly so why do I get the initial issue? It has happened twice for me now.
I am trying to make up my own topic description/summary area, so I would like to display the current number of favourites and subscriptions the current topic has.
I have done successfully some other part of the area
<?php !bbp_show_lead_topic() ? bbp_topic_reply_count() : bbp_topic_post_count(); // Display No. of replies in current topic ?> <?php bbp_topic_voice_count(); //Display No of Users in current topic ?> <?php bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id(), 'type' => 'avatar', 'size' => 20 ) ); //Display Last Reply User ?> <?php bbp_topic_freshness_link(); //Display Last Reply Time ?>So I currently want a function that will display the number of favourites(priority) and subscriptions(not much priority).
Thanking you in anticipation of any working response.
I want to use the [bbp-topic-index] shortcode, however I really want to filter by A) Public Forums, and/or B) certain forums.
When you use the topic-index shortcode, it spits out topics regardless of the forum. The problem with this is that I use BuddyPress and there are groups with private forms. I don’t want the topic-index shortcode to display these private forums.
Now, I could use the [bbp-single-forum id=$forum_id] shortcode. The problem with this, however, is that it will display ALL of the topics for that forum. Now, I COULD hide everything after the first 15 or so topics with CSS, but this is a pretty terrible solution because 1) a boatload of topics are still going to (unnecessarily) be part of the HTML markup and widespread use of display:none is bad for SEO.
Any ideas?
Hello, on the list of forum topics avatery are visible, how can I hide or delete them. I just need a username without these pictures.
I don’t know where to turn it on or how to enable it, even by editing the forum file code
My forum page https://infomiasto.eu/forum/tematy/rozmowy/