Search Results for 'code'
-
AuthorSearch Results
-
July 12, 2014 at 7:45 am #149067
In reply to: Allow HTML tags in Post for All Users
Stephen Edgar
KeymasterYou shouldn’t really be letting users add styles, you should have your theme do that, that said., just add a new section for the
ptag andstylewithinplike so:// Paragraph 'p' => array( 'style' => true, ),July 12, 2014 at 6:45 am #149062In reply to: BBPress advise wanted
Stephen Edgar
KeymasterCool, most of things you mention can be done, some are ready to go, others need a few tweaks and custom PHP code to achieve the results.
1. create login in the wp home page for BBpress
Create a WordPress page, set that as your home page, add the bbPress login/register shortcodes
2. allow only offline registered members to be registered as BBpress users
Not quite sure what you mean here, you can set your forums to ‘private’ so only logged in registered members can see or use the forums.
3. enable/disable users, and hence their profiles
This is more of a WordPress question than bbPress, if the member has an active and valid WordPress account then they can login. If you want to remove the user and their associated profile then you’d delete the actual WordPress user which inherently flows down to bbPress.
4. allow users to create profiles with their filmography and perhaps a vimeo embed or two
With a few minor tweaks/customisations you could achieve this, you may also want to take a look at BuddyPress’ Extended profiles which will let you do this also.
5. can users have simple URLs for their profiles, like perhaps example.com/username?
Yep, this is built in, here’s yours here on bbpress.org https://bbpress.org/forums/profile/parambyte/
July 12, 2014 at 6:28 am #149059In reply to: Allow HTML tags in Post for All Users
Stephen Edgar
KeymasterClick the ‘download gist’ link, it will download a zip archive, unzip it and use FTP to upload the plugin to your WordPress plugins folder, typically
/wp-cntent/pluginsEdit: Or go to ‘Plugins’ -> ‘Add new’ -> ‘Upload’ and you can then upload it directly.
July 12, 2014 at 6:10 am #149053In reply to: Deep integration (old bbpress) and empty wp_head
Stephen Edgar
KeymasterI have hardly dug into bbPress 1.x and am not familiar with the code base at all.
How about grab the latest bbPress v1.2 and create a test/demo site on your local PC with a backup your database, things should theoretically work though you ‘d have to make sure the database upgrade routine was triggered of course.
That should then give you a working version with your database to then start comparing the base code of your test site vs your live site.
That said, what is stopping you from upgrading? I am presuming here that there is something stopping you from installing WordPress and upgrading bbPress 1.x to the v2.x plugin?
July 12, 2014 at 5:59 am #149051In reply to: Allow HTML tags in Post for All Users
Stephen Edgar
KeymasterGrab this custom plugin from here https://gist.github.com/ntwb/7797990
You will need to change one part of it though:
From:
// Span 'span' => array( 'class' => true, ),To:
// Span 'span' => array( 'class' => true, 'style' => true, ),That will then modify the allowed tag
spanto also includestyleinside the span.July 12, 2014 at 5:12 am #149043In reply to: Custom user administration page
Stephen Edgar
KeymasterCreate a page or two and use the bbPress shortcodes
https://codex.bbpress.org/shortcodes/
https://codex.bbpress.org/widgets/July 12, 2014 at 5:09 am #149042In reply to: Migration from bbpress?
Stephen Edgar
KeymasterThat is up to the the forum software you choose to use, all our source code is open source and any forum software package is free to create an import tool to import from bbPress, we do the same, we import from many forum packages but it is up to each application to add support if they want new customers to be able to import from bbPress, I know a few of the common ones do.
July 12, 2014 at 4:55 am #149040In reply to: Crayon Syntax Highlighter not working / tags issue
Stephen Edgar
KeymasterI just had a play with this and you are correct, it works for administrators/keymasters but not standard ‘participants’ or ‘anonymous’ users.
Grab this custom KSES plugin I have here https://gist.github.com/ntwb/7797990
I just added
classto to thepresection as that is where the issue is,preis allowed but<pre class="whatever">is not.Double check any of the other allowed tags and/or remove ones you don’t want/need.
Edit: I just double checked against the default bbPress allowed tags and all are there, you may or may not want the table sections, up to you. I also made a note to add
classas an allowed tag ofprefor bbPress core, I can’t think of a reason for us not to add this by default.July 12, 2014 at 4:02 am #149038In reply to: phpBB Import Error(s)
Stephen Edgar
KeymasterI added support for the anonymous/deleted phpBB user topics and replies, just finalizing all of this for the any other forums that also have this feature, SMF, Drupal, Vanilla.
For the redirects I need to find a workaround to have WordPress correctly verify that
viewtopic.php?f=3&t=9is a valid URL, if we can do that then redirects could be included for imported forums and that would be awesome.July 12, 2014 at 3:29 am #149037In reply to: Reduce size of embed Media
Stephen Edgar
Keymaster@leonyipa Don’t get you bb’s confused, what you wrote way up there and quoted here:
And I paste the code into: /public_html/wp-content/themes/bp-default/functions.php
That is the BuddyPress Theme ‘BP Default’, nothing to do with bbPress so make sure you are updating the correct files π
July 12, 2014 at 2:43 am #149031In reply to: How do I add a sidebar to all topics pages?
Robin W
Moderatorhave both of you been through
come back if you need further help.
July 12, 2014 at 2:41 am #149030In reply to: No sidebar in BBpress WP Tweaks
Robin W
Moderator@obinyc sorry missed this post
try
<?php get_sidebar(); ?>
lots of different boats, and yours is probably not the same.
Do you have a sidebar at all showing?
Have you followedCome back if you need further help
July 12, 2014 at 2:26 am #149020In reply to: Remove Breadcrumbs
Robin W
Moderatorok
the answer is :
How to do it :
July 12, 2014 at 2:26 am #149017In reply to: disabling breadcrumbs
Robin W
Moderatorok
the answer is :
How to do it :
July 11, 2014 at 11:48 am #148989SeeingBlueS2
ParticipantOk so I played around with lines 807 and made it match what line 1157 looked like.
This is line 1157:$author_link = bbp_get_reply_author_link( array( 'post_id' => $reply_id, 'type' => 'both', 'size' => 14 ) );
Then I moved line 1152$reply_id = bbp_get_reply_id( $widget_query->post->ID );between lines 802 & 803 thinking this might work and it doesn’t make any difference which was confusing to me.. What am I doing wrong?July 11, 2014 at 10:33 am #148988In reply to: Reduce size of embed Media
Robkk
Moderatorto test out the code make pictures really small and add important
#bbpress-forums div.bbp-topic-content img, #bbpress-forums div.bbp-reply-content img { max-width: 100px!important; max-height: 50px!important; }but you could also send me a link to a forum post with a picture too
July 11, 2014 at 10:21 am #148987Topic: Allow HTML tags in Post for All Users
in forum TroubleshootingLeonyipa
ParticipantHow to allow all users to use HTML codes, because at the moment, only keymaster can have access to all HTML tags.
I would like to allow user to use this code:
//<span style=”font-size: 36pt; font-family: impact, chicago;”>Pademelon</span><span style=”font-size: 36pt; font-family: impact, chicago;”>Pademelon</span>
July 11, 2014 at 10:18 am #148986In reply to: Reduce size of embed Media
Leonyipa
Participantyes, but it doesn’t work π
I also found the code is in
/public_html/wp-content/plugins/bbpress/templates/default/css/bbpress.cssI directly change the number of
#bbpress-forums div.bbp-topic-content img,
#bbpress-forums div.bbp-reply-content img {
max-width: 100%;
}
However, no matter what number I change to, it still doesnβt work.
The width of the image still remain 100%July 11, 2014 at 8:17 am #148984In reply to: Reduce size of embed Media
Robkk
Moderatorchange the numbers to whatever you want
#bbpress-forums div.bbp-reply-content img, #bbpress-forums div.bbp-topic-content img { max-width: 500px; max-height:250px; height: auto; }you add this into anywhere where you can have custom css
in bbpress.css in your child theme(you copy the original in your child theme)
in your child themes css stylesheet
the jetpack plugin module custom css
a standalone custom css pluginJuly 11, 2014 at 3:20 am #148973In reply to: Simple Layout
Robin W
Moderatorok, several ways you could do this, the best I know is
https://wordpress.org/plugins/display-posts-shortcode/
just create a page called anything and put the code on it.
you’ll be looking for a custom post type of topic.
see https://github.com/billerickson/display-posts-shortcode/wiki for the arguments you can use
you can then determine exactly what you display
but something like
[display-posts post_type=”topic” posts_per_page=”15″]
would give a simple list of 15 clickable topic titles per page.
July 10, 2014 at 6:59 pm #148961In reply to: Troubleshooting a WordPress page titled 'forums'
Stephen Edgar
KeymasterOoops, missed the 2.3.2 π
I should have said in my previous reply, any conflicting permalinks ‘except’ a page titled
forums, indeed using a page titledforumswith a shortcode should work just fine.As you have changed the slug on that conflicting page now could you try creating a new page
forumsand adding whatever shortcode your using to it, what happens?Note: I’m splitting this topic to it’s own also as this is a different issue from the original topic.
July 10, 2014 at 6:20 pm #148959In reply to: Need to change the color of hyperlinks
Robkk
Moderatorwell you should change your sitewide hyperlink color because you want people to see links you post.
for topics
a.bbp-topic-permalink { color:#222; }for forums
a.bbp-forum-title { color:#222; }July 10, 2014 at 6:16 pm #148958In reply to: Troubleshooting a WordPress page titled 'forums'
Paul
ParticipantHi Stephen, my upgrade was 2.3.2 to 2.5.4 not 2.5.3 to 2.5.3.
You were correct, thank you. The problem was caused by a permalink conflict. The page I am using the shortcode had the slug
forums. Changing the slug to something else so it was not the same as the slug used by Forum Root (or visa versa) resolved the issue.The question remains though, why is this a problem with this version of bbpress over the older version I was using?
July 10, 2014 at 6:04 pm #148953In reply to: Need to change the color of hyperlinks
Robkk
Moderatorok this changes the style of all the links on your site so it is not white (i copied googles link color)
a { color: #3a84df; }a:hover { color: #3a84df; text:decoration: underline; }you add this into anywhere where you can have custom css
in your child themes css stylesheet
the jetpack plugin module custom css
a standalone custom css pluginJuly 10, 2014 at 5:51 pm #148951In reply to: Need to change the color of hyperlinks
Robkk
Moderatora { color: #676768; }try that
-
AuthorSearch Results