Search Results for 'code'
-
AuthorSearch Results
-
May 9, 2014 at 4:37 am #146091
In reply to: Missing Topic Intro
Stephen Edgar
KeymasterOK but the ticket is:-
“Allow Moderators and Keymasters to see private topic content from users”
… and strictly this issue is the converse, are you sure it’s the same problem?
I am pretty sure it is the same problem… If the plugin you are using marks the post ‘private’ (you can confirm this by looking at the post in the
wp_poststable, if thepost_statusfor the topic isprivatethen this is the same issue.Not a definitive guide but if you are logged in and you are the topic author who authored that topic I expect you will find that they can see both the topic content and the follow up reply.
May 9, 2014 at 3:51 am #146085In reply to: Profile redirect
Robin W
ModeratorI presume you mean the profile in the toolbar?
If so, I turn the toolbar off for all users apart from admin. It is ugly and takes away from your theme.
You can then put it as a menu item see
for details
May 8, 2014 at 8:27 pm #146074In reply to: SMF Import to bbPress
Stephen Edgar
Keymaster@landshark I wouldn’t say you were being ignored, we are all volunteers here and if and when people have the time to help others they do, myself included.
What is the BBCode for images on your SMF forum?
bbPress converts these default BBCode
[img]to `<img src=”…”>
[img]http://www.google.com/intl/en_ALL/images/logo.gif[/img]
[img=http://www.google.com/intl/en_ALL/images/logo.gif]
If you have any custom BBCodes this will not work and you could either fix this in your SMF forum before importing or if your comfortable with MySQL you could update these in your database directly.May 8, 2014 at 8:05 pm #146072In reply to: Two different sidebars in bbpress?
Stephen Edgar
KeymasterTry making a single sidebar eg
sidebar-bbpress.phpand call that from yourbbpress.phpfile and use bbPress conditionalseg
<?php if ( bbp_is_single_forum() || bbp_is_single_topic() || bbp_is_single_reply() ) : ?> ...primary sidebar code here... <?php else : ?> ...secondary sidebar code here... <?php endif; ?>May 8, 2014 at 2:26 pm #146066Topic: Widgets disappeared
in forum TroubleshootingBeethovenWC
ParticipantHello.
I made some changes in localisation (via Codestyling Localization plugin) and suddenly disappeared all my BBPress widgets from administrator’s widget menu.
Please help.
May 8, 2014 at 8:29 am #146047In reply to: Manually Add Users to a Forum
familylawboard
ParticipantUnites States and it’s territories and then one for “international” to start with.. so I’m looking at 57ish. If I get lots of members outside of the US I would eventually split the international section up as well (I don’t necessarily foresee this). I’m looking into doing what I need with s2member conditionals now. I’ll have to have people choose their state, then generate different paypal buttons for each one so they’ll get a proper s2member conditional and then I’ll set up a forum page that uses shortcode conditionals to show them just the forum I want them to see. I’m not sure this will integrate perfectly with my bbpress/buddypress setup (I’m concerned about the activity pages and such) but we’ll see. I’ll definitely watch for updates to your plugin–it sounds perfect for when it’s got an unlimited number of groups.
May 8, 2014 at 7:28 am #145995Stephen Edgar
KeymasterThe bbPress shortcodes are:
[bbp-login] – Display the login screen.
[bbp-register] – Display the register screen.
[bbp-lost-pass] – Display the lost password screen.I suspect some of your issues are more WordPress related rather than specificly bbPress
May 8, 2014 at 3:01 am #145983Robin W
ModeratorHave you tried copying and renaming your full width page template as per
May 7, 2014 at 10:37 pm #145969In reply to: Forum Page not working
Stephen Edgar
Keymaster@buzzybee24 In your WordPress theme folder eg \wp-content\themes\mytheme
Look for a file named
page.phpand make a copy of this file and rename it tobbpress.phpMay 7, 2014 at 7:43 pm #145962In reply to: Avatars not displaying in forum replies?
theENiGMAman
ParticipantThanks @robin-w it is in fact a theme issue, I’m now guessing there is some snippet of code which i’ll have to insert into the theme, does anyone know by chance which code snippet is required, or have a link to another thread on here to help my boneheaded self out – thanks again for all your help 😀
May 7, 2014 at 1:35 pm #145947In reply to: Per Forum Permissions by Group
Robin W
Moderatorok thanks – I can only assume that this is related to how wamp deals with local urls, as I can neither see how the code could get to that stage, nor can I replicate on-line.
However leave it with me, and I’ll see if I can add some code that checks to see if it looks like a url.
If you leave these both blank, does it go to a login or 404 page as it should?
May 7, 2014 at 1:10 pm #145945Topic: Custom lost password after email confirmation received.
in forum InstallationJBBoY
ParticipantHi community,
I’m trying to redirect all the register steps out of wp-admin or wp-login.php to finally hide completely wp-admin section to users. Since now I’ve succeed with registration and field errors, but now I’m trying to do the same with the help of [lost-password].
The shortcode above works properly but the problem comes when an email with the /wp-login.php?action=rp&key=Y4I9GCCGagXxiaWk&login=my_user redirects the user to the wp-admin/wp-login area. This area has two fields “New password” and “Confirm new password”. Is there a shortcode who shows the same two fields in a custom page without the need of use wp-admin/wp-login area?
Thank you in advance for your help and time.
May 7, 2014 at 6:44 am #145928In reply to: How to disable profile functionality?
Robin W
ModeratorMaybe not the most elegant, but this is quick and easy and should do it
In you theme, create a folder called ‘bbpress’ eg
wp-content/themes/your-theme-name/bbpress
then create a file called
content-single-user.php
into that put the following code
<?php /** * Single User Content Part * * @package bbPress * @subpackage Theme */ ?> <div id="bbpress-forums"> <?php echo 'Sorry access not permitted' ; ?> </div>then save this file to the bbpress folder you created above
If you want to completely hide the page, you could just put say your homepage url into the echo line and they would just be taken to the homepage.
May 7, 2014 at 4:15 am #145926In reply to: I downloaded a theme, now what..?
May 6, 2014 at 9:55 pm #145922In reply to: Invisible text box for post entry
Homika
ParticipantI found this one: https://wordpress.org/support/topic/javascript-error-on-pages-without-sharebar
The hack proposed in that topic solved my issue which was caused by JS error. Hoping that plugin will be fixed at some point, so I don’t need to hack into its code with every update…May 6, 2014 at 4:50 am #145891In reply to: Forum Page not working
Stephen Edgar
KeymasterThere are no issues using bbPress 2.5.3 and WordPress 3.9 they are 100% compatible.
Any issues will be as @phpnukes points out theme issues or plugin conflicts.
I suspect your issue @buzzybee24 is indeed a theme issue, check your themes faq and/or support sites for information on using your theme with bbPress v2.x. If you can’t find anything most likely you will need to make a copy of your themes
page.phpfile and rename it tobbpress.phpin your theme folder.@phpnukes Your issue will be a plugin conflict as to why some of the items are missing in the dashboard.
May 6, 2014 at 3:58 am #145888In reply to: Per Forum Permissions by Group
Robin W
Moderatorgreat – thank you – I will update the code to stop the error for future users !
May 6, 2014 at 3:11 am #145878In reply to: How to Change Background Color/Image of Forum…
Robin W
Moderatorok, just because it was annoying me, I looked further
you should have a folder in your theme called forums which has a number of .css files in it.
As far as I can work out, somewhere you can set up schemes for your forums within this these, or another plugin, and you have selected theme 4?
Anyway two .css files are active
in http://www.betatestarena.com/forums/
the page is using
/forums/#4.css as it’s style file
This has
body.it-background { }ie not set, but uses
body.custom-background { background-attachment: fixed; background-color: #000000; background-image: url("http://www.betatestarena.com/wp-content/uploads/2014/05/Background.png"); background-position: center top; background-repeat: repeat-x; }to give you the background color
In your other link – http://www.betatestarena.com/forum/announcements/
the page is using
/forums/ammouncements/#4.css as its style file
which has
body.it-background { background-image: none !important; } body.it-background { background-color: #D2D2D8 !important; }on lines 760 and 761
which set the off-white color.
so play with these settings to get what you want.
May 5, 2014 at 6:25 pm #145859In reply to: How to redirect away from bbpress profile
laternastudio
ParticipantFor future readers, I was able to accomplish the redirect with this simple line of code:
add_filter( 'bbp_pre_get_user_profile_url', function() { return get_bloginfo('url').'/profile'; });Very simple, really!
You can also change the default url for favorites and subscriptions by doing this:
// Replace the default link for the favorites add_filter( 'bbp_get_favorites_permalink', function() { return get_bloginfo('url').'/profile/forum-favorites'; }); // Replace the default link for subscriptions add_filter( 'bbp_get_subscriptions_permalink', function() { return get_bloginfo('url').'/profile/forum-subscriptions'; });Of course, if you’re using pre PHP 5.3.1 (or are developing a plugin) you’ll need to create actual functions rather than using anonymous functions.
May 5, 2014 at 2:06 pm #145849In reply to: Forumpost answers ugly and deformes whole forum
Robin W
ModeratorAs I think you have guessed as you posted a while ago on the Emphaino wordpress support site, this is a theme issue.
I can only suggest you try a basic bbpress page to see if this will display sufficiently well to fit in with your theme.
So create a file called bbpress.php and into this drop the following code
<?php get_header(); ?> <div id="container"> <div id="content" role="main"> <?php /* Run the loop to output the page. * If you want to overload this in a child theme then include a file * called loop-page.php and that will be used instead. */ get_template_part( 'loop', 'page' ); ?> </div><!-- #content --> </div><!-- #container --> <?php get_sidebar(); ?> <?php get_footer(); ?>Then save this file in the root of your theme.
bbpress will then use this file instead of your theme’s page file for the display of bbpress pages.
Give it a go, and if it fixes the problem come back and let us know. If it doesn’t then you will need to do some styling, and that will take some research to fix !
May 5, 2014 at 1:52 pm #145848In reply to: Change Site roles & forum roles for all users
Robin W
ModeratorWithout using code for 21K users, I can get it to 42 quick actions – or the same action 42 times !NOW be careful – make sure you know who you want to be different – eg administrators, as if you bulk change and then log out without changing back, then you may lose admin access – and then you’ll need to use phpmyadmin using nasty sql stuff to correct this.So start by making a list of users with admin, or other wordpress roles you’ll want to be different – write these names onto a post it note and stick this to your screen so you won’t forget !!!!
Then go intoDashboard>users>all usersAt the top right of the page you see ‘screen options’ click this and typically you’ll see a part that says20 users applyChange this to 999 users and click the apply box.This will then display 999 users at a time, so you can bulk change 999 in one go.Then next to the ‘username’ heading you’ll see a tick box which is the ‘select all’ option, click this and it will select all 999 of page 1 usersAbove this you’ll see a ‘bulk actions’ and then the bits we want to the right of that – the ability to change the wordpress and forum roles.So having ticked to select all the 999 users displayed on page 1, click the ‘change role to’ and select the subscriber role, and then the change box, and hey presto all 999 are now subscribers.Tick the ‘select all’ again, and select the bbpress participant role, and change that.so now all page 1 users are correctly set.Now select page 2 on the right just below the bulk change forum role and repeat !So for each page (21 or 22 of them) you doSelect page
click ‘the select all’ box,
click forum to ‘subscriber’ and click change
click ‘the select all’ box,
click role to ‘particpant’ and click change
select next pageTHEN!!!!!!!!!!!!!!!!!!!!!!!!!! CHANGE THE ADMINS BACK BEFORE LOGGING OUT !!!!!!!!!!!!!!!!!!Probably taken me longer to type these instructions than for you to execute them !Mod Note: I edited your post Robin 😉 Cheers, Stephen
May 5, 2014 at 11:45 am #145841siobhan61
ParticipantThanks Stephen,
Yes, it is weird! The permalink remedy didn’t work but thanks for responding. I think what I’ll do is make note of any code changes I’ve made and then uninstall and reinstall both bbpress and tweaks. There may be some conflict in there that I can’t see — I started this project a few months ago and went away from it for awhile.
cheers, Cheryl
May 5, 2014 at 10:07 am #145839Topic: Change Site roles & forum roles for all users
in forum Requests & Feedbackmshafshak
Participanti have 21k users that have site roles “none” and empty forum roles thats maybe coz ijust shfted from a joomla website into wordpress & bbpress. I want to make the site role ‘subscriber’ and forum role ‘participant’ to all users how can this be done with writing a code ??
May 3, 2014 at 9:01 pm #145811In reply to: Problems marking topic as private?
Stephen Edgar
KeymasterThe patch should work fine for any user with the capability
read_private_replieswhich includes the included bbPressKeymasterandModerator. Are you sure the user/role you are using has theread_private_repliescapability?Install this plugin and navigate to the users profile in the WordPress dashboard to confirm the role and capability of a user.
May 3, 2014 at 6:30 pm #145807In reply to: Problems marking topic as private?
mlocke90
ParticipantShould this patch allow anyone who has the read_private_replies cap to see topic content? or just the Admin / keymaster?
I applied the code and it fixed it for admin/keymasters but not for a custom role with read_private_replies cap.
-
AuthorSearch Results