Search Results for 'code'
-
AuthorSearch Results
-
September 23, 2015 at 10:15 pm #167013
In 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?
September 22, 2015 at 7:53 am #166953In reply to: CSS Questions – Borders and Width
aaron2310
ParticipantThanks for the reply Robkk.
#bbpress-forums li.bbp-header,
#bbpress-forums li.bbp-footer {
border-top: 1px solid #eee;
}#bbpress-forums li.bbp-body ul.forum,
#bbpress-forums li.bbp-body ul.topic {
border-top: 1px solid #eee;
}I’ve changed the hex code and added it to my style sheet but it doesn’t seem to be working. Do I want to edit the actual bbpress style directly?
Second question is tough for me to try to find what is causing the issue.
DId you do anything to make /forums page any different from your other pages??
Nope. It’s the same theme.
September 22, 2015 at 7:49 am #166952In reply to: CSS Questions – Borders and Width
Robkk
ModeratorI think these are the borders the plugin is missing the ability to customize.
#bbpress-forums li.bbp-header, #bbpress-forums li.bbp-footer { border-top: 1px solid #eee; } #bbpress-forums li.bbp-body ul.forum, #bbpress-forums li.bbp-body ul.topic { border-top: 1px solid #eee; }Second question is tough for me to try to find what is causing the issue.
DId you do anything to make /forums page any different from your other pages??
September 21, 2015 at 5:11 pm #166941In reply to: Profanity filter
Robkk
ModeratorI do not use the plugin, I just found it in the WordPress repository.
The plugin author has been active in the support forums in the past few weeks, so I assume people are using it still and with at least most with the latest version of WordPress.
You can contact the plugin author in their support forums if you have any concerns with the plugin working with the latest version of WordPress.
If a bbPress post contains a word that you put in the comment blacklist, the topic or reply will be marked as pending, and will be pending until moderation approval.
The plugin I linked to just replaces profanity words you list with characters such as ***
September 21, 2015 at 3:17 pm #166939In reply to: Some startup help in designing my own theme?
Robkk
ModeratorWhich one did you link me?
Robin’s plugin for just bbPress fields.
What I did, which seems to work fine for now…
Yeah I told you the WordPress code would work. If you want cleaner templates you may nee to use the hook.
bbp_theme_after_reply_author_detailsI might be saying very stupid things here (gotta learn some way), but I tried changing bbp_theme_before_topic_title to bbp_topic_class which is what my inexperienced self thought would do the trick, but it didn’t.
Oh, you are trying to make a post class. You can try this to see if it adds a new-topic post class to any new topics. I haven’t tested this though.
add_filter( 'bbp_get_topic_class','rkk_unread_topic' ); function rkk_unread_topic($classes) { $offset = 60*60*1; if ( get_post_time() > date('U') - $offset ) { $classes[] = 'new-topic'; return $classes; } }September 21, 2015 at 3:06 pm #166938In reply to: Html tags showing up in topics & replies
Robkk
ModeratorDoes it actually print the paragraph tags??
This is for any new topic/reply right??
You might possibly see if this is a plugin issue, maybe something that modifies Tinymce somehow?
You can also check to see if it is a theme issue also, or a possible code snippet in a child theme.September 21, 2015 at 9:11 am #166932In reply to: Phpbb imort
Stephen Edgar
KeymasterSounds like the issue I’ve got documented on the codex here:
September 20, 2015 at 10:59 am #166917In reply to: Some startup help in designing my own theme?
tkse
ParticipantThere is a plugin Robin made that can basically do that. There is also a different plugin for displaying BuddyPress profile fields
Which one did you link me? What I did, which seems to work fine for now is simply check for the_author_meta and display it if there’s anything there. I placed it within loop-single-reply.php without issues.
<div class="bbp-reply-author"> <?php do_action( 'bbp_theme_before_reply_author_details' ); ?> <?php bbp_reply_author_link( array( 'sep' => '<br />', 'show_role' => true ) ); ?> <?php if ( bbp_is_user_keymaster() ) : ?> <?php do_action( 'bbp_theme_before_reply_author_admin_details' ); ?> <div class="bbp-reply-ip"><?php bbp_author_ip( bbp_get_reply_id() ); ?></div> <?php do_action( 'bbp_theme_after_reply_author_admin_details' ); ?> <?php endif; ?> <?php do_action( 'bbp_theme_after_reply_author_details' ); ?> <?php if(get_the_author_meta('twitter')): ?> <p>Twitter: <?php the_author_meta('twitter'); ?></p> <?php else: // do nothing endif; ?> </div><!-- .bbp-reply-author -->Yeah you do not have to leave the [status] and just leave the classes there so you can style with just CSS.
I can’t completely grasp what you’re saying here. Say if I wanna add the class “new-topic” instead of a “new” label. What would I change here?
function rk_new_topics() { $offset = 60*60*1; if ( get_post_time() > date('U') - $offset ) echo '<span class="new">[New]</span>'; } add_action( 'bbp_theme_before_topic_title', 'rk_new_topics' );I might be saying very stupid things here (gotta learn some way), but I tried changing bbp_theme_before_topic_title to bbp_topic_class which is what my inexperienced self thought would do the trick, but it didn’t.
September 20, 2015 at 10:58 am #166916In reply to: Set featured image for bbpress forum posts
yoshimitsu1234
ParticipantI tried various permutations and combinations. Following codes worked for me.
add_theme_support( 'post-thumbnails', array( 'post', 'forum', 'topic' ) ); add_post_type_support('post', 'thumbnail'); add_post_type_support('forum', 'thumbnail'); add_post_type_support('topic', 'thumbnail');September 20, 2015 at 10:34 am #166915In reply to: Some startup help in designing my own theme?
Robkk
ModeratorThe custom profile fields, what exactly do they do? I get that I can now add my Twitter handle from profile settings, but it’s not displayed anywhere on the site.
Yeah you have to manually place the any extra fields you want on the frontend of the user profile and and place the code in the template user-profile.php, that should be in your child theme for easy customization.
in user-profile.php you will already see an example of the user’s description field being displayed, and you would need to do some of the same procedure.
<?php if ( bbp_get_displayed_user_field( 'twitter' ) ) : ?> <p class="bbp-user-twitter"> <a href="<?php bbp_displayed_user_field( 'twitter' ); ?>" title="<?php bbp_displayed_user_field( 'display_name' ); ?>'s Twitter" rel="nofollow"> <?php bbp_displayed_user_field( 'twitter' ); ?> </a> </p> <?php endif; ?>I will probably put an example for user’s to place the links on their profile templates later on that guide.
I would love for it to be displayed beneath my avatar and username phpBB-style in topics, or at least on my visible forum profile.
Yep, there is a way to that too. I can’t remember much but I think it just involves a hook to place the data. There is a plugin Robin made that can basically do that. There is also a different plugin for displaying BuddyPress profile fields. You can dig around the plugins code if you want to see how he did it.
https://wordpress.org/plugins/bbp-profile-information/
This doable? Obviously I can’t use the_author_meta() in bbpress, so…
I think it is possible to just use the WordPress code with bbPress. bbPress is just a plugin of WordPress now.
Also, instead of adding labels to certain topics. Can I add classes so I can do changes in CSS?
Yeah you do not have to leave the [status] and just leave the classes there so you can style with just CSS.
September 20, 2015 at 9:11 am #166911In reply to: Some startup help in designing my own theme?
tkse
ParticipantThis works nicely. Sorry to bug you so much.
The custom profile fields, what exactly do they do? I get that I can now add my Twitter handle from profile settings, but it’s not displayed anywhere on the site. I would love for it to be displayed beneath my avatar and username phpBB-style in topics, or at least on my visible forum profile. This doable? Obviously I can’t use the_author_meta() in bbpress, so…
Also, instead of adding labels to certain topics. Can I add classes so I can do changes in CSS?
Thanks! 🙂
September 19, 2015 at 10:36 pm #166907In reply to: Few questions about BBPress
Robkk
ModeratorPretty permalinks should work fine in bbPress if you have set up the permalinks to use the post name structure in Settings > Permalinks.
https://codex.wordpress.org/Settings_Permalinks_Screen
I don’t think it would be a step backwards, I am not sure all that the vbSEO plugin did SEO wise, but I bet there is a WordPress plugin that works fine with bbPress.
There are two different vBull converters, vBulletin and vBulletin3. The last one is what you would want to use.
-
AuthorSearch Results