Search Results for 'test'
-
AuthorSearch Results
-
October 18, 2015 at 11:40 am #167987
Robkk
ModeratorGood find on this bug, and thanks for posting your temporary solution. I tried the solution and it works for most of the replies, while I was testing I got some that seemed to not work and it went to the wrong post still.
The error is not only present in the replies created section in your forum profile but also if you click the post id next to a reply (#1234), you might be directed to the wrong reply.
I tried this on the latest dev version of 2.6 and this issue is not present.
October 17, 2015 at 2:21 pm #167961In reply to: When I deactivate bbPress, I cannot log in
Robkk
ModeratorYou unable to remove it because of some error, or you do not want to remove it??
I cannot really test the optimizepress plugin since it is a premium plugin.
October 15, 2015 at 5:37 pm #167888gperez-tl
ParticipantI think this works:
add_filter('bbp_get_reply_position', 'lugpa_get_reply_position', 10, 3); function lugpa_get_reply_position($reply_position, $reply_id, $topic_id){ if(empty($topic_id)) $topic_id = bbp_get_reply_topic_id ($reply_id); $numReplies = bbp_get_topic_reply_count($topic_id); return ($numReplies+1) - $reply_position; // plus one because of thread description }I’m not sure about the +1 but it works. I tested this with first and last comment of a given page.
October 14, 2015 at 4:06 pm #167827In reply to: You must be logged in to reply to this topic
Pascal Casier
ModeratorSo they were the same…
The only option I see is to really insist with your current provider, sorry for not being able of more help.
For the application caching, a lot of pages exist, like http://www.sitepoint.com/common-pitfalls-avoid-using-html5-application-cache/BEFORE DOING THE NEXT LINES, MAKE SURE YOU HAVE DIRECT ACCESS TO YOUR FILES ON THE SERVER IN CASE IT GOES WRONG.
Just a test to see if it helps, can you go in your dashboard, ‘Appearance > Editor’, choose on the right the ‘Header’ (header.php) file and when the file opens, find somewhere the <head> tag and copy the following lines just below :<meta http-equiv="cache-control" content="max-age=0" /> <meta http-equiv="cache-control" content="no-cache" /> <meta http-equiv="expires" content="0" /> <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" /> <meta http-equiv="pragma" content="no-cache" />If it helps, it could be a workaround for now, but you should not keep this forever.
Keep subscription to this topic. If I find something else, I’ll post it here, but for now I have no clue.
Pascal.
October 14, 2015 at 3:36 pm #167826In reply to: You must be logged in to reply to this topic
mica123
ParticipantYes, I copied everything – www folder plus database to the other provider and used the same theme responsive. Not sure what you mean options? I just used everything that was copied over, so the same options must have been set. I’ll delete the test topics and the login.
My provider doesn’t understand what I am talking about, so I am having a hard time to convince them that there is something wrong – so far I have not succeeded because they keep saying that they can create topics in some forums and some they can’t. I keep explaining to them that it depends on which page they saw before logging in. I am really desperate.
What would be the meaning of ‘applicationcache’?
Also, everything is normal on my local computer in xampp – I use exactly the same what I have on the live site.October 14, 2015 at 3:28 pm #167825In reply to: You must be logged in to reply to this topic
Pascal Casier
ModeratorHi mica123,
I logged-in, played around and got indeed the same effect like you described.
I check your installation configuration and it seems all normal.Can you confirm that when you tested it on the other provider, you had the same theme (responsive) installed there ? And the same options set ? Because I see in some javascript that the theme is talking about ‘applicationcache’.
Please delete the test topics/replies and the login you created for me.
Pascal.
October 14, 2015 at 2:31 pm #167823In reply to: Search function not showing results
Robkk
Moderator(I am not sure how to turn off the theme to test this fault with a bundled theme like Twenty Twelve…
Go to Appearance > THemes and activate a theme like twenty twelve temporarily.
Also I think some other user has had the exact same issue with PMP Pro, I wonder if using the plugin could cause an issue.
I will test to see if it is causing the issue.
October 14, 2015 at 12:35 pm #167820In reply to: You must be logged in to reply to this topic
mica123
ParticipantI did more network testing on my bad site via the web developer.
All other pages display the following:
Response header:
main site url:
Cache Control: max-age=3600
bbpress:
Cache-control:max-age=2592000Request headers:
main site url:
Cache-control: max-age=0
bbpress:
Cache-control:max-age=0After login:
After login:
wp.login:
Cache-control:no-cache, must-revalidate, max-age=0Without refreshing the page
bbpress:
Cache-control: max-age=2592000 –On refreshing the page
bbpress:
max-age=2592000The information for bbpress does not change at all.
This is different from the results gleaned from my good site as I reported earlier:
bbpress
cache control: max-age=2592000, public, proxy-revalidate, public, proxy-revalidate, must-revalidate
Cache control: max-age=0After login:
Response header:
Cache control: no-cache, must-revalidate, max-age=0So would this indicate that all is not well on my webhost provider’s server
regarding cache even if they say that it is not enabled?October 14, 2015 at 12:17 pm #167819In reply to: Cannot search Forum Category Titles
ShawnSauce
ParticipantI did a bit more testing and found that when logged in as admin, the search works exactly as expected, but if I am logged in as a regular member, the search does behave differently.
I have a forum called Jazz Lovers
with a topic with jazz in the content.If I search the forum as admin, results for forum titles show up as well as results matching topic content and titles. However, if I am logged in as a normal user, I cannot receive results for forum titles.
October 14, 2015 at 9:29 am #167807Topic: Search function not showing results
in forum TroubleshootingJLicata
ParticipantHi all. I am running WP 4.3.1, bbPress 2.5.8 and a custom theme at http://www.skywayacquisition.com. (I am not sure how to turn off the theme to test this fault with a bundled theme like Twenty Twelve…)
My forum is on a membership access site through Paid Memberships Pro.
In my forum, when doing a search in the forum area, the function recognizes that there are results, and says something like “Viewing 3 results – 1 through 3 (of 3 total)” and then shows me the “author” and “search results” headers and footers, but no content in between.
Can anyone help in a way a relative novice can relate?
If need be, and someone can help me understand, I can create an account to allow visibility to the site so you can see the actual situation.
October 13, 2015 at 9:34 pm #167790Topic: Advertica Lite Theme > CSS issues with forum replies
in forum Themeszbgc
ParticipantHi all,
Running WP 4.3.1 and BBPress 2.5.8
The issue: Forum replies appear above forum content in this theme (have tested using vanilla 2015 theme and there’s no problem). The partial solution is to play with CSS.
I’ve got a CSS plugin (Simple Custom CSS) and making changes in there, and I’ve managed to get the reply content to appear in almost the right place using:
ul.forums li {position: relative;}However, this means the content appears above the bb-reply-header DIV.
Any help appreciated 🙂
Thanks
L.
October 13, 2015 at 5:16 pm #167781In reply to: You must be logged in to reply to this topic
Robkk
ModeratorYou need to start seeing if other parts of your site is being cached and it is not just the bbPress portions, if it the bbPress portions make sure to see if it is just you must be logged in notice or other areas like the user’s profile pages to see if it is related to @gperez-tl’s issue.
You may need to create me a test user account so that I can confirm of the issue you are getting, and to also test other areas the cache issue might be present.
October 13, 2015 at 5:09 pm #167780In reply to: Possible issue untrashing topics
Robkk
ModeratorThe fix will make it into 2.6 or earlier I bet.
Haven’t tested the latest patch but I can assume that the issue could be resolved.
October 13, 2015 at 5:03 pm #167779In reply to: Strange cache issues (in profile and topic count)
Robkk
ModeratorPost the code you are using for the custom howdy message in the toolbar. I do not think this would cause an issue but just double checking.
Do the same thing with the profile menu items code.
Just know that you said these were bbPress’s issue although the menu system and the WordPress toolbar are both part of WordPress. The registered menu and menu location are your theme. I do not know how bbPress could cause an issue with this.
So, (visiting any author’s profile and) clicking on some of these items will show the author’s data, while clicking in others will retrieve current user profile data or something.
Wait so clicking on anyone’s frontend forum profile could show the current users profile for some reason, or is it just the menu links as you stated.
You did not edit the user profile templates heavily? you said you are receiving issues with users profiles.
IF you haven’t already try to track down what is causing the issues you are getting. Since you have a custom theme see if the issue persists in a default theme like twenty twelve, deactivate all plugins but bbPress.
Your profile pages shouldn’t just be magically be cached by bbPress.
You may need to create me a test user account so that I can confirm of the issue you are getting, and to also test other areas the cache issue might be present.
October 13, 2015 at 2:32 pm #167771In reply to: Strange cache issues (in profile and topic count)
mica123
ParticipantI really wouldn’t know how to do this in my case.
All I can say is that I copied all of my WordPress and database to another site to test it there and I have absolutely no problems there. If I don’t get anywhere with my webhost, I’ll probably have to find another webhost – but I don’t really want to go down that route.October 13, 2015 at 1:48 pm #167768In reply to: Strange cache issues (in profile and topic count)
mica123
ParticipantThanks for letting me know. I won’t attempt anything like that.
Yes, reloading the page helps but it is not a solution for users who log in
and then find they are not logged in unless they refresh the page.
I am currently trying to convince my webhost that all is not well –
they don’t seem to understand what I am talking about. Have you tried the
Network tool for Response headers in Web developer on FireFox? It should
show you if the page is really not cached. My test shows that the page
is cached even if my webhost says that no caching is enabled.October 13, 2015 at 11:25 am #167760In reply to: BBPress Front-End Add Forum
Pascal Casier
ModeratorTechnically possible as Robkk indicates, ok, but just make sure to keep it under control.
I’m not sure what maximum number of forums has been tested for visualization and handling inside the different shortcodes and functions.Pascal.
October 12, 2015 at 10:58 pm #167732In reply to: How do I display the current users username?
Robkk
ModeratorI just split your reply into a topic so that you can have your own topic about this.
Please do not bump topics, especially topics that are about 8 years old.
If you are using the latest bbPress plugin.
To get the user’s username use
<?php global $current_user; get_currentuserinfo(); echo $current_user->user_login; ?>https://codex.wordpress.org/Function_Reference/get_currentuserinfo
You can also just use the WordPress toolbar.
October 12, 2015 at 10:30 pm #167730In reply to: Cannot login to bbPress forum
Robkk
ModeratorWhere do I add those lines of code?
It is CSS put it in your child themes style.css file, a custom css plugin, or anywhere you can put custom css.
I assume you want me to edit one of the PHP files
No, never edit the plugin core files, unless you are 100% sure you know what you are doing. Since you are a novice, just do not do it.
I don’t know what “multisite” is.
Since you do not know what it is, I am going to assume you do not have it. You do not need it to solve this issue so no need to install any plugins, just curious if you have it. I see it is probably that you have a test enviroment of WordPress because you are planning on migrating to a WordPress/bbPress install from phpBB.
Yes, your deleteme user does appear in the Users list.
Does it have the Participant forum role too?
Alright, so I assume you’re talking about Peter’s Login Redirect plugin, and I assume I’ll need to edit the settings under Settings -> Login/logout redirects, correct?
You seem to be getting that together. Not sure why you are redirecting to the forums especially a specific forum, but yeah you got it.
I created a test Subscriber user, which in fact is redirected upon logging in, but isn’t logged in (of course that code you recommended still needs added in).
The code I gave you helped remove the bullet list displaying in your forums.
Again thank you for trying to help Robkk, but I would definitely like it if you could be a bit more descriptive in what I need to do to fix this login problem
We still have to troubleshoot what is causing the user to not seem to be have access to the forums.
Try some of these troubleshooting steps listed in this guide to see if it could be theme/custom theme related like if you copied the bbPress customizable templates into your child theme and edited them and messed something up on accident, check to see if a plugin could be causing an issue, you can check to see if caching could be an issue by flushing cache from your site, if you edited the bbPress and ever do not remember what you edited you can reinstall a fresh version of the plugin to see if it fixes the issue also.
Do not just go deleting cache files from WordPress or code in bbPress.
October 12, 2015 at 11:19 am #167721In reply to: Bulk-move bbPress topics
Pascal Casier
ModeratorVery first version of my plugin uploaded in the WP queue today. Will report here when you can start testing.
October 12, 2015 at 9:19 am #167720In reply to: Bulk-move bbPress topics
Mei Ling
ParticipantHello,
We have done this… we are still testing it. Be careful use VPS:
<?php
/**
* Now that you have your custom column, it’s bulk/quick edit showtime!
* The filters are ‘bulk_edit_custom_box’ and ‘quick_edit_custom_box’. Both filters
* pass the same 2 arguments: the $column_name (a string) and the $post_type (a string).
*
* Your data’s form fields will obviously vary so customize at will. For this example,
* we’re using an input. Also take note of the css classes on the <fieldset> and <div>.
* There are a few other options like ‘inline-edit-col-left’ and ‘inline-edit-col-center’
* for the fieldset and ‘inline-edit-col’ for the div. I recommend studying the WordPress
* bulk and quick edit HTML to see the best way to layout your custom fields.
*/
add_action( ‘bulk_edit_custom_box’, ‘manage_wp_posts_be_qe_bulk_quick_edit_custom_box’, 10, 2 );
//add_action( ‘quick_edit_custom_box’, ‘manage_wp_posts_be_qe_bulk_quick_edit_custom_box’, 10, 2 );
function manage_wp_posts_be_qe_bulk_quick_edit_custom_box( $column_name, $post_type ) {switch ( $post_type ) {
case ‘topic’:
switch( $column_name ) {
case ‘bbp_topic_forum’:
?><fieldset class=”inline-edit-col-left”>
<div class=”inline-edit-col”>
<label>
<span class=”title”>Deplacer dans le forum</span>
<span class=”input-text-wrap”>
<select name=”deplacer”>
<option value=”Null”></option>
<?php /* recuperation des forums “forum” */
$args = array(
// ‘post_parent__not_in’=> array( 0 ) ,
‘post_type’ => ‘forum’
);
$forums = new WP_Query( $args );
// boucle de test affiche en debug id et titre forum
if ( $forums->have_posts() ) {
while ( $forums->have_posts() ) {
$forums->the_post();
echo ‘<option value=”‘.$forums->post->ID.'”>’.get_the_title() . ‘</option>’ ;
}
}
wp_reset_postdata();?></select>
</span>
</label>
</div>
</fieldset><?php
break;
}
break;
}
}/**
* When you click ‘Quick Edit’, you may have noticed that your form fields are not populated.
* WordPress adds one ‘Quick Edit’ row which moves around for each post so the information cannot
* be pre-populated. It has to be populated with JavaScript on a per-post ‘click Quick Edit’ basis.
*
* WordPress has an inline edit post function that populates all of their default quick edit fields
* so we want to hook into this function, in a sense, to make sure our JavaScript code is run when
* needed. We will ‘copy’ the WP function, ‘overwrite’ the WP function so we’re hooked in, ‘call’
* the original WP function (via our copy) so WordPress is not left hanging, and then run our code.
*
* Remember where we wrapped our column data in a <div> in Step 2? This is where it comes in handy,
* allowing our Javascript to retrieve the data by the <div>’s element ID to populate our form field.
* There are other methods to retrieve your data that involve AJAX but this route is the simplest.
*
* Don’t forget to enqueue your script and make sure it’s dependent on WordPress’s ‘inline-edit-post’ file.
* Since we’ll be using the jQuery library, we need to make sure ‘jquery’ is loaded as well.
*
* I have provided several scenarios for where you’ve placed this code. Simply uncomment the scenario
* you’re using. For all scenarios, make sure your javascript file is in the same folder as your code.
*/
add_action( ‘admin_print_scripts-edit.php’, ‘manage_wp_posts_be_qe_enqueue_admin_scripts’ );
function manage_wp_posts_be_qe_enqueue_admin_scripts() {// if code is in theme functions.php file
wp_enqueue_script( ‘manage-wp-posts-using-bulk-quick-edit’, trailingslashit( get_bloginfo( ‘stylesheet_directory’ ) ) . ‘js/bulk_quick_edit.js’, array( ‘jquery’, ‘inline-edit-post’ ), ”, true );// if using code as plugin
//wp_enqueue_script( ‘manage-wp-posts-using-bulk-quick-edit’, trailingslashit( plugin_dir_url( __FILE__ ) ) . ‘js/bulk_quick_edit.js’, array( ‘jquery’, ‘inline-edit-post’ ), ”, true );}
add_action( ‘save_post’, ‘save_deplacer’);
function save_deplacer() {
global $wpdb;if( $_GET[‘post_type’]=’topic’ && $_GET[‘bulk_edit’]=’Mettre à jour’){
$post_ids= $_GET[‘post’];
$forum_id = $_GET[‘deplacer’];
foreach($post_ids as $post_id){$wpdb->query(“UPDATE $wpdb->posts SET post_parent = $forum_id WHERE ID = $post_id “);
}
}
}
/*echo ‘'; print_r($post_type); echo '
‘;
die();Array
(
[s] =>
[post_status] => all
[post_type] => topic
[_wpnonce] => dcfdf56a2d
[_wp_http_referer] => /public/wptest/wp-admin/edit.php?post_type=topic&paged=1
[action] => edit
[m] => 0
[bbp_forum_id] =>
[paged] => 1
[mode] => excerpt
[_status] => -1
[tax_input] => Array
(
[topic-tag] =>
)[Deplacer] => 39
[bulk_edit] => Mettre à jour
[post_view] => excerpt
[screen] => edit-topic
[post] => Array
(
[0] => 43
[1] => 41
)[action2] => -1
)*//**
* Step 3: display an admin notice on the Posts page after deplacer
*/
add_action(‘admin_notices’, ‘custom_bulk_admin_notices’);
function custom_bulk_admin_notices() {
global $post_type, $pagenow ;if( $_GET[‘post_type’]=’topic’ && $_GET[‘bulk_edit’]=’Mettre à jour’){
$messages = array();
$messages[] = bbp_admin_repair_forum_meta();
$messages[] = bbp_admin_repair_topic_meta();
$messages[] = bbp_admin_repair_freshness();
$messages[] = bbp_admin_repair_reply_menu_order();
$messages[] = bbp_admin_repair_forum_topic_count();
$messages[] = bbp_admin_repair_forum_reply_count();
$messages[] = bbp_admin_repair_topic_reply_count();
$messages[] = bbp_admin_repair_topic_voice_count();
$messages[] = bbp_admin_repair_user_topic_count();
$messages[] = bbp_admin_repair_user_reply_count();//if($pagenow == ‘edit.php’ && $post_type == ‘topic’ && isset($_GET[‘deplacer’])) {
$messageori = sprintf( _n( ‘Topic déplacé.’, ‘%s topics déplacés.’, $_REQUEST[‘deplacer’] ), number_format_i18n( $_REQUEST[‘deplacer’] ) );
foreach ($messages as $message){
echo'<div class=\”updated\”><p>’.$message[1].'</p></div>’;
}
echo “<div class=\”updated\”><p>{$messageori}</p></div>”;
}
}?>
October 12, 2015 at 7:00 am #167716In reply to: You must be logged in to reply to this topic
mica123
ParticipantI did more testing, this time I looked at response headers following instructions from this article. I am not sure if this is the right course of action but if you could bear with me could you perhaps have a look at the results below? The first part is from my good site and the second part is from the problematic site:
My good site results:
Response headers:
cache control: max-age=0
Request headers:
cache control: “max-age=0”bbpress
Response headers:
cache control: max-age=2592000, public, proxy-revalidate, public, proxy-revalidate, must-revalidate
Cache control: max-age=0After login:
Response header:
Cache control: no-cache, must-revalidate, max-age=0My bad site results:
Response headers:
Cache control: max-age=3600
Request header:
Cache control: max-age=0bbpress:
Response headers:
Cache control: max-age=2592000
Request header:
Cache control: max-age=0After successful login response header says:
Cache control: no-cache, must-revalidate, max-age=0However, clicking on page that was viewed before login,
response header says:
Cache control: max-age=3600October 12, 2015 at 5:31 am #167715In reply to: Cannot login to bbPress forum
names_are_useless
ParticipantThank you for trying to help Robkk.
Where do I add those lines of code? I assume you want me to edit one of the PHP files (click “Edit” for bbPress plugin). I just tried adding it to “bbpress/bbpress.php” (since its the first php file that comes up) at the end of the file. I received a “Parse error: syntax error, unexpected ‘-‘, expecting ‘(‘ in /var/www/vhosts/laysofalthas.com/epochgames/wordpress/wp-content/plugins/bbpress/bbpress.php on line 933”. There’s a bunch of other php files, and I have no idea where I’m supposed to put that code snippet (novice here), so I’m just going to delete that code and wait for further instructions.
I don’t know what “multisite” is. Looking through the plugin list, I see several (Multisite Toolbar Additions, Multisite Global Search, etc). Would you recommend I add one of them? Can you give me the specific name of one?
Alright, so how can I fix it so “yoursite.com/wordpress/wp-login.php” leads to “yoursite.com/wp-login.php” instead?
Yes, your deleteme user does appear in the Users list.
Alright, so I assume you’re talking about Peter’s Login Redirect plugin, and I assume I’ll need to edit the settings under Settings -> Login/logout redirects, correct? I have now set the “administrator” role to go to the URL “yoursite.com/wordpress/wp-admin/” and it works perfectly, so thank you. I have also set it so Subscribers are redirected to “http://epochgames.co.uk/forums/forum/test/” when they login. I created a test Subscriber user, which in fact is redirected upon logging in, but isn’t logged in (of course that code you recommended still needs added in). Can’t say I’m overjoyed that I have to change the URL to the forums every time I want to login as an administrator account, but at least I can get to the Dashboard now without having to memorize the URL.
Again thank you for trying to help Robkk, but I would definitely like it if you could be a bit more descriptive in what I need to do to fix this login problem. I am very much a novice still with WordPress.
October 11, 2015 at 12:46 pm #167707In reply to: Cannot login to bbPress forum
Robkk
ModeratorThis fixes the list issue.
#bbpress-forums li { list-style: none !important; }I created a user called “deleteme” and I see the issue you are talking about.
Do you have multisite enabled or at least a subsite for testing.
the wp-login.php page leads to yoursite.com/wordpress/wp-login.php instead of just yoursite.com/wp-login.php.
Check it out right now to see if I am even a user to just the yoursite.com site. If I am see that I am even have a forum role like participant.
The redirect to the home page is because of some piece of code in bbPress for the frontend login forms. You can easily fix this by setting it where Admins can go the Admin and other users redirect to the home page using the plugin you have already installed.
October 11, 2015 at 10:56 am #167703mvaneijgen
ParticipantI have a small problem. I want to show the most popular topcis on my home page, but now I am running for a while and this feature is kinda killing my SEO performance. This is because there is one topic fairly popular on my forum and has been for over a few months now and because this is represented on the home page Google has picked up on it and this topic is showing up in most of my test search results.
Now I still want to have this feature, but make it a bit more fair for the other topcis and show the most popular topcis that has stated in the previous few days (lets say 30). Is there a shortcode/feature or function that could achieve this?
-
AuthorSearch Results