Search Results for 'code'
-
AuthorSearch Results
-
September 24, 2015 at 1:13 pm #167035
In reply to: Sidebar Help
Robkk
ModeratorDo you want full width forums and just the sidebar placed under the forums??
If you do remove this part of the CSS code.
.bbpress .sidebar { width: 0; display: none; }i can tell you are also using a full width template from your theme, and of course that will hide the sidebar.
September 24, 2015 at 1:03 pm #167033In reply to: Modify forum index page and some
Robkk
ModeratorRight after this in the code.
<?php echo do_shortcode("[bbp-login]"); ?>Just add any additional forms you want using similar code like this. Or just add any html links to the pages.
<?php echo do_shortcode("[bbp-register]"); ?>If you need to style them better add a custom class around them.
September 24, 2015 at 12:58 pm #167032In reply to: Modify forum index page and some
mica123
ParticipantThank you so much both of you – that’s very helpful indeed. I will now have to try and position it on one line. I hope I’ll manage it although it is not easy at all – @dannyfoo you seem to have managed it. Is there any way to add Register and Lost password to the code? Many thanks – I was getting really desperate.
September 24, 2015 at 12:57 pm #167031In reply to: Removing author name in freshness column
Robkk
ModeratorIt is in
loop-single-topic.phpandloop-single-forum.php.In the files you will see something similar to this. In this example I am editing the loop-single-topic.php file.
<span class="bbp-topic-freshness-author"> <?php bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id(), 'size' => 14 ) ); ?></span>Change it to something like this. You see I just added the extra attribute.
'type' => 'avatar'<span class="bbp-topic-freshness-author"> <?php bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id(), 'size' => 14 , 'type' => 'avatar' ) ); ?> </span>September 24, 2015 at 12:45 pm #167030In reply to: BBPress Pulling From Single rather than Page/Index?
Robkk
ModeratorYou can create a bbpress.php file in your theme to avoid issues like that.
September 24, 2015 at 12:42 pm #167029In reply to: Modify forum index page and some
Robkk
ModeratorPlace something like this in content-forum-archive.php if you copied it into your child theme to display the login form above the forum archive. You can also place it above single forums by adding this exact code into content-single-forum.php and for topics in content-single-topic.php.
<?php if ( !is_user_logged_in() ) : ?> <div class="bbp-forum-login-form"> <?php echo do_shortcode("[bbp-login]"); ?> </div> <?php endif; ?>September 24, 2015 at 12:26 pm #167028In reply to: Sidebar Help
wesphily
ParticipantRobkk,
Thanks for that. It fixed the space issue. Now I have to figure out how to get a sidebar working.
I have been trying to do this by going to the page labelled “forums” that has the index shortcode in it and then adding a sidebar that I have created. I then added widgets to that sidebar. I have also tried content aware and bbpress wp tweak. I still can’t get a sidebar to show on the bbpress page. I can get it to show on any other page.September 24, 2015 at 10:49 am #167027In reply to: Modify forum index page and some
Danny
Participant@mica123 Placing the login form above on the main Forums page created in your WordPress is easy.
- Edit your WP page containing [bbp-forum-index]
- Include [bbp-login] above that line
- Update the page
And the login form will show above your forum index.
I’ve not fully experimented placing the login above all the forum pages. Though I think it’s very much possible, and the answer may lie in other forum topics.
What I could share though is I tried adding
<?php echo do_shortcode("[bbp-login]"); ?>to loop-forums.php and loop-topics.php but it didn’t work.What happened was the list of forums and topics disappeared.
I hope this was helpful.
September 24, 2015 at 7:10 am #167021In reply to: CSS Questions – Borders and Width
aaron2310
ParticipantPlace the CSS code I gave you your child themes stylesheet or in a separate custom css plugin.
Hi Rob, it is my theme’s style sheet with changed colour code and it’s not styling.
The /forums page looks fine now, now it is only the single forums pages. Clear any cache to see if that could fix anything.
The index was fine – I assume because I filled in description and it’s filled out. Specific board indexes don’t fill to 100% nor do thread pages without much written in the posts.
September 24, 2015 at 6:15 am #167019Topic: Add replies (or topic) count to menu
in forum Troubleshootingproject_subdomain
ParticipantI’d like to display the count of all existing replies for one topic like
“Topic name One (56)”
where 56 is the amount of replies.Is
bbp_forum_reply_count()correct for this?How could I get the count to a specific menu which had been created through the backend’s design->menu,
when the menu ID is 2 and the menu item ID of Topic name One is 11 and of Topic name Two is 22?Many thanks for any help!
September 23, 2015 at 10:26 pm #167014In reply to: No Content Area in WP 4.3.1
Robkk
ModeratorDid you try some troubleshooting first? Check to see if it works fine in a default theme. If it still does not work in a default theme, try to see if a plugin could be causing the issue also by doing the listed steps for troubleshooting a plugin issue.
Plugin/Theme updates could cause an issue to pop up without it previously being there before.
September 23, 2015 at 10:15 pm #167013In reply to: Html tags showing up in topics & replies
Robkk
ModeratorThe enable tinymce visual tab plugin just uses the exact same code in here.
I do not think cache could cause an issue like this.
It is something that slipped my mind, but it is most likely that paragraph tags are considered restricted HTML for some reason.
Use and edit this function in the plugin below to your liking.
https://gist.github.com/ntwb/7797990
You will most likely need to add this to make it work for participants.
//paragraph 'p' => array( 'class' => true, ),Admins/Keymasters can post unrestricted HTML because they have the capability to do so.
September 23, 2015 at 10:06 pm #167012In reply to: Reinstall BB presss and clean up all topics, how?
Robkk
ModeratorThe only table I think bbPress creates is the one for importing forums/keeping extra imported forum data. Most of the data bbPress has are stored in WordPress tables, but all that data should be gone if you ran the reset forums tools(well except the forum roles).
If you are looking to delete users you can go into Users > All Users in the WordPress backend and then start bulk deleting users.
September 23, 2015 at 8:06 pm #167007In reply to: Html tags showing up in topics & replies
Bet Hannon
ParticipantYep, while it doesn’t do it when I post, it does print the
<p> tagsfor at least some users–and that part is weird. It looks like this:<p>I completely support a focus on...I have the plugin “bbPress Enable TinyMCE Visual Tab” running. I haven’t been able to test yet, but the client really does need that full visual editor for their users, so I hope it’s not that.
I did double-check the plain text filter. Maybe there was a caching issue with respect to the filter? I emptied all the caches just to be sure.
September 23, 2015 at 6:17 pm #167002In reply to: Few questions about BBPress
Robkk
ModeratorNevermind I think you have to update to 4x, the other importer is for a much older version of vBull.
Make sure to have a backup saved before doing an import. You may try doing a backup on a test server also.
https://codex.bbpress.org/import-forums/vbulletin
September 23, 2015 at 6:06 pm #167000In reply to: Remove underline in forum display page
Robkk
ModeratorThe links are like this because that is how it is in your theme.
You can try this custom css to remove the underline. Place the custom css in your child themes custom css or anywhere else you can place custom css like a plugin or theme.
.bbpress .post-content a { text-decoration: none !important; }September 23, 2015 at 6:00 pm #166999In reply to: Reinstall BB presss and clean up all topics, how?
Robkk
ModeratorYou should be able to delete any imported users.
If it is a test server, I guess you can always manually delete data using phpMyAdmin and start fresh.
September 23, 2015 at 5:41 pm #166994In reply to: forums redirected to 404 page
UgoDimma
Participant@Robkk
Thanks for your support.
I finally addeddefine( 'WP_DEBUG', true);in my wp-config.php, and I am getting this error report;Notice: bbp_setup_current_user was called <stromg>incorrectly. The current user is being initialized without using $wp->inot(). Please see debugging in WordPress forore onformation. (This message was added in version 2
3.) In ******\blessed\wp-includes a functions.php on line 3622Notice: the called constructor method for WP_Widget is deprecated since version 4.3.0! Use
__construction()
Instead. In ******\blessed\wp-includes\functioms.php on lime 3457Please am sorry to bore you this time again, am not good incoding, how can I resolve this issues
September 23, 2015 at 5:28 pm #166991In reply to: Some startup help in designing my own theme?
Robkk
ModeratorYeah the code doesn’t really work well.
You can try to create your own new-topic post class though.
If you come up with anything just post your result on this topic.
September 23, 2015 at 4:00 pm #166988In reply to: CSS Questions – Borders and Width
Robkk
ModeratorPlace the CSS code I gave you your child themes stylesheet or in a separate custom css plugin.
The /forums page looks fine now, now it is only the single forums pages. Clear any cache to see if that could fix anything.
September 23, 2015 at 3:15 pm #166982In reply to: Sidebar Help
Robkk
ModeratorTry to see that you are placing widgets in the right sidebar for it to show on the bbPress pages.
IF you want full-width forums.
Try this custom CSS to see if it fixes the empty space and makes your forums actually full width. Place the custom css in your child themes style.css file or in a custom css plugin.
.bbpress .sidebar { width: 0; display: none; } .bbpress .postcontent { width: 100%; }September 23, 2015 at 2:49 pm #166979In reply to: Nothing happens after install
Robkk
ModeratorThis has happened to a couple users before, so it may be a bug in bbPress that needs to be reported now.
Just to make sure that it is just bbPress causing the issue.
Make sure you have already done most of these troubleshooting steps. Also try in a different browser and see if it helps any.
And please answer these questions also.
Is this a single site installation or multisite?
If it is a multisite installation, what is your current user role Admin or Super Admin?After all this I have to collect all the topics on here about the issue in the last year.
September 23, 2015 at 2:39 pm #166978In reply to: forums redirected to 404 page
Robkk
ModeratorDid you try refreshing your permalinks??
Also make sure it is not a plugin conflicting with bbPress or your current theme/a code snippet in your theme causing the issue also.
September 22, 2015 at 4:29 pm #166962In reply to: Divi theme and reply threading issue
Robkk
ModeratorI just split your reply into a new topic because your reply is very specific with using the divi theme and reply threading feature in bbPress.
I am aware of this issue. There is a conflict with a script in the Divi Theme some
custom-js.jsscript that holds carousel/slider javascripts and it is conflicting with bbPress’s reply threading.A simple and fast fix, I guess would be to de-enqueue the script on any bbPress related pages.
Contact Divi Support first about the issue to see if they have a fix handy or are aware of the issue.
September 22, 2015 at 2:23 pm #166960Topic: Allowing Participants to post “unrestricted HTML”
in forum Installationthunksalot
ParticipantI have a private WordPress community in which I am not concerned about members posting malicious code. The site is a dues-paying professional networking site and the profession is non-techie, so it would be really odd for someone to get malicious on it, and I have back-ups I can restore with were that to happen. That said, I don’t want to make everyone an Administrator because that gives users control over other people’s content, which I don’t want to give them. I just want to give all Participants the ability to paste unrestricted HTML content so that they can copy and paste from Word or a website and have it come through looking just fine, the way I can as an Admin with the “unrestricted HTML” permission. How can I achieve this?
-
AuthorSearch Results