Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'codes'

Viewing 25 results - 901 through 925 (of 1,701 total)
  • Author
    Search Results
  • #140849
    Robin W
    Moderator

    If you want to create pages specifically to do things, then you can use shortcodes, the list of them is here

    https://codex.bbpress.org/shortcodes/

    so if you created a page and form instance put in the shortcode

    [bbp-login]
    

    you would have a page with a login.

    Above the shortcode you could put some rules, or tell people how to register etc.

    #140843
    5ngua
    Participant

    Hello,

    In the forum setting, it says:”Partner with a WordPress Page and use Shortcodes for more flexibility.”
    How can I do that?
    Thanks,

    #140749
    Stephen Edgar
    Keymaster

    Basically your users shouldn’t be logging into to backend in the first place, thus they should never see that to be even tempted.

    You can add a login widget to a sidebar or create a page with a shortcode, up to you which way depending on how you want your site to look etc.

    https://codex.bbpress.org/widgets/ https://codex.bbpress.org/shortcodes/

    #140740
    Stephen Edgar
    Keymaster

    If you want widgets above your topic list you will need a theme that supports putting a sidebar at the top of your page, otherwise will one of the shortcodes work?

    #140437
    kokocipher
    Participant

    could you share your code :3 ? Where do you copy the codes for the widgets?

    #140285

    In reply to: List Of Shortcodes

    ronthai
    Participant
    #140284

    Topic: List Of Shortcodes

    in forum Themes
    simon_loke
    Participant

    I need a list of shortcodes such as Profile edit,activity,user members and others..
    I want to have every shortcode to place different page.

    #140253
    Stephen Edgar
    Keymaster

    You can add some widgets to your side bar or shortcodes to a page

    https://codex.bbpress.org/shortcodes/ https://codex.bbpress.org/widgets/

    Also there are a few other docs on the codex worth looking at

    Codex

    #140250
    Stephen Edgar
    Keymaster

    I just updated that page to ‘Topics – How many topics to show per page’

    As to combining the ‘Forum Index with Topics by Freshness’ I’m not exactly sure what you mean by this, for example look at the following two pages here on bbpress.org

    https://bbpress.org/forums/forum/installation/ <- That’s the ‘Instalation’ forum 25 topics/page
    https://bbpress.org/forums/forum/troubleshooting/ <- That’s the ‘Troubleshooting’ forum 25 topics/page

    If you wanted to have something like below on a single page then you would have to customize your templates or use some shortcodes on your page to get the layout you want. It is quite doable but once you get 50 topics for example in a forum finding ‘Forum B’ or any other forums below that list will be extremely difficult.

      Forum A

    • Topic 1
    • Topic 2
    • Topic 3
    • … etc
      Forum B

    • Topic 1
    • Topic 2
    • Topic 3
    • … etc
    #140247
    ijourneaux
    Participant

    I have bbPress up and running but was wondering how I might be able to allow users to get an sms text message when there is a new forum post. I have played around with the WordPress Text message plugin but Wasn’t able to figure out a way to incert the codes onto the form pages.

    Ian

    #140177
    gijs5
    Participant

    Hi Stephan,

    The minibb database is 124 mb, so thats pretty big πŸ™‚
    The code is pretty ugly now, but maybe I’ll clean it up later. It’s pretty simular to yours.

    I used this in the callback_html function.
    return htmlspecialchars_decode(str_replace(array('$'), array('$'), $this->deCodeBB($field)), ENT_QUOTES);

    And I used the minibb deCodeBB function to form bbcodes:

    public function deCodeBB($msg) {
    
    	$pattern=array(); $replacement=array();
    
    	$pattern[]="/<img src=\"(.+?)\"([^\>]+)>/i";
    	$replacement[]="[img]\\1[/img]";
    
    	$pattern[]="/<a href=\"(.+?)\"([^\>]+)>(.+?)<\/a>/i";
    	$replacement[]="[url=\"\\1\"]\\3[/url]";
    
    	$pattern[]="/<[bB]>(.+?)<\/[bB]>/s";
    	$replacement[]="[b]\\1[/b]";
    
    	$pattern[]="/<[iI]>(.+?)<\/[iI]>/s";
    	$replacement[]="[i]\\1[/i]";
    
    	$pattern[]="/<[uU]>(.+?)<\/[uU]>/s";
    	$replacement[]="[u]\\1[/u]";
    
    	$pattern[]="/<font color=\"(#[A-F0-9]{6})\">(.+?)<\/font>/is";
    	$replacement[]='[font\\1]\\2[/font]';
    
    	$pattern[] = '/<div class=\"quote\"><div class=\"quoting\">Quoting: (.+?)<\/div><br>(.+?)<\/div>/is'; 
    	$replacement[] = "[quote=\\1]\\2[/quote]"; 
    
    	$pattern[] = '/<div class=\"quote\">(.+?)\<\/div>/is'; 
    	$replacement[] = "[quote]\\1[/quote]"; 
    
    	$pattern[] = '/<div class="codex">(.+?)\<\/div>/is';
    	$replacement[] = "[code]\\1[/code]"; 
    
    	/* YouTube code */
    	$pattern[]="/<object width=\"297\" height=\"245\"><param name=\"movie\" value=\"http:\/\/www\.youtube\.com\/v\/([a-zA-Z0-9-_]+)\"><\/param><param name=\"wmode\" value=\"transparent\"><\/param><embed src=\"http:\/\/www\.youtube\.com\/v\/([a-zA-Z0-9-_]+)\" type=\"application\/x-shockwave-flash\" wmode=\"transparent\" width=\"297\" height=\"245\"><\/embed><\/object>/i";
    	$replacement[]="[youtube=http://www.youtube.com/watch?v=\\1]";
    	/* --YouTube code */
    
    	$msg=preg_replace($pattern, $replacement, $msg);
    	$msg=str_replace ('<br>', "\n", $msg);
    	if(substr_count($msg, '[img\\2]')>0) $msg=str_replace('[img\\2]', '[img]', $msg);
    
    	if(function_exists('smileThis')) $msg=smileThis(FALSE,TRUE,$msg);
    
    	return $msg;
    }

    Hope this helps.

    Cheers.

    Stephen Edgar
    Keymaster

    You are going to have more issues than just search and search pagination if Premise is only detecting by forum category and/or post_parent in wp_postmeta.

    I expect you will also find them turn up via widgets, shortcodes and custom registered views.

    If Premise was detecting by each off bbPress’ post types, forum, topic and reply specifically rather than forum category alone you would find that it would also filter these results correctly from search also alleviating your pagination issue whilst also making sure they didn’t turn up in via widgets, shortcodes or custom views.

    #139789

    In reply to: Custom BBCodes?

    matrixino
    Participant

    The problem is I have some BBcodes with multiple vars like this:
    [table3]var1!var2!var3[table3]
    transforming in something like this:
    <table><tr><td>var1</td><td>var2</td><td>var3</td></tr></table>
    I can’t seem to achieve the same thing even if using grouping in regexp with (.*?) and then using $1, $2, $3 to get the texts in between the “!”.

    #139752
    Stephen Edgar
    Keymaster

    Firstly, thanks for the detailed report, it really helps πŸ™‚

    This is actually a known issue with moderators and the back end.

    The way around this is to use the [bbp-forum-form] shortcode, your moderator/s should have no problems creating new forums from a page setup with this shortcode.

    Tried editing role with Capability Manager Enhanced

    I am not familiar with this tool and it’s compatibility with bbPress.

    A great tool from @johnjamesjacoby is this one Advanced user capability editing for bbPress

    #139725

    In reply to: Custom BBCodes?

    Lynq
    Participant

    I know this could be tedious, but how about setting up some wordpress shortcodes for the relevant BBCodes?

    This could work: https://codex.wordpress.org/Shortcode_API

    Good luck!

    #139680
    matrixino
    Participant

    Hello, after importing from a phpBB forum where I had custom BBCodes I have the problem that they are not changed in actual html.
    I would like to know how can I implement such custom bbcodes in my bbpress installation.

    I did some tries making a custom plugin with something like this inside (this is just an example):

    function bb_table_replace( $text ) {
    $text = preg_replace('/\[tabella\](.*?)\[\/tabella\]/ie', "<table>$1</table>", $text);
    return $text;
    }
    add_filter('bbp_get_reply_content', 'bb_table_replace');

    But I had no luck. It seems however to find my regexp pattern but its replace is wrong, it’s made after the matched pattern (adding to it, instead of replacing).

    Any help?

    #139349

    In reply to: change forum sidebar

    Robin W
    Moderator

    Ok.

    I’d suggest you create a page called “forums” and put the code

    [bbp-forum-index] in it

    You can then style this page to have no sidebar

    Otherwise with widget logic, you would still have a sidebar, but could alter what is displayed in forums and your blog. As stated above, just add a widget to your sidebar, and use the codes above in the widget logic box

    #139252
    cjcampbell121
    Participant

    When looking at the settings, I see that I can “customize” the forum index with shortcodes. I did that, and when its just its own page, then it works. When I try and change the settings to display that page as the forum index, it overwrites it with a weird looking search result instead of the index.

    All I want it to do is to display the forums that I have, and to be the forum link that is displayed when you go into a topic.

    Here is the default root:

    Here is the page with the shortcode (and not yet assigned to the forum root):

    Here is the forum root changed (with the same page):

    #139242

    In reply to: Pending Topics Show

    shearamariz
    Participant

    Oh.. I see.. I thought this was implemented already. Thank you for your help Stephen.
    I’ll paste my codes here if ever I made it. πŸ™‚

    #139238

    In reply to: Pending Topics Show

    Stephen Edgar
    Keymaster

    No, there isn’t, the shortcodes included with bbPress -> https://codex.bbpress.org/shortcodes/

    You can append ?view=all if you are a moderator or keymaster in various places though.
    http://example.com/forums/profile/username/topics?view=all
    http://example.com/forums/forum/myforum?view=all

    #139228
    Robin W
    Moderator

    Create a page, and put the following shortcode in it

    [bbp-forum-index]

    or if you want to get more specific then look at all the shortcodes

    https://codex.bbpress.org/shortcodes/

    #139140

    In reply to: Layout errors and 404

    Robin W
    Moderator

    Yes, create a page called say “foumsd2 and put the following shortcode in

    [bbp-forum-index]

    There’s a full list of shortcodes at

    https://codex.bbpress.org/shortcodes/

    #139135
    CouponCodePlugin
    Participant

    Hello, I have installed bbpress and added a forum and topic.
    WordPress and BBPress are both the latest version.

    The forum shows in a really odd way with items stacked on top of each other.
    http://imagphoto.com/forums/forum/new-forum/

    Secondly, the breadcrumb link to the forum results in a 404 http://imagphoto.com/forums/forum/
    Yet the parent link in the breadcrumb works http://imagphoto.com/forums/

    Is it possible to use pages and the shortcodes to have the forum within a page so that I can control the settings of the page and maybe dump the sidebar to see if that corrects the issue? I checked the documentation but could not see anything about this specific issue.

    Many thanks for your help πŸ™‚

    #138965
    Robin W
    Moderator

    ok, lets try doing a repair on the forums to see if they’ve lost the relationship somewhere
    Dashboard>tools>forums

    I’d work my way down the first 6 – maybe one at a time to ensure you don’t get hours of spinning discs.

    The code you provided to protect does have a section where it is working out whether to show a post, topic or reply, and the code for each is slightly different (starts at around line 40). I’m not good enough ton validate this code, but if you’re still stuck, always worth contacting the codes owner to see if they can help

    #138822
    RB2108
    Participant

    Hi .. As a volunteer, I’ve created and run a website for a local dental charity http://www.dentaid.org which uses WordPress and a custom theme. The charity have asked me whether its possible to add a forum within the existing site to allow the dental volunteers who go on organized trips to developing countries to get together before the expeditions and discuss topics, ask questions of the organizer etc. Clearly bbPress is a natural candidate for this but having spent a few hours searching the web, I’m not 100% sure of the right way to proceed (and of what I’ve read, there seems to be several different ways to implement bbPress .. maybe depending upon the level). I would like the forum to work as a self-contained subsystem within the existing web site with one entry URL (www.dentaid.org/forums) which can be added to the nav bar and maintaining the existing header/nav bar and footer, so using the one column full screen width content for bbPress. I think that bbPress will need it’s own styling as I’m sure that the existing style.css won’t be optimal for forums.

    I’ve tried putting bbpress shortcodes into new pages as recommended in some of the web articles but although it appears to work, the styling is not ideal and functionally it seems very basic. What I’m aiming for is to put something like the bbPress forum page that I’m using right now into the content of a page on our website while keeping the rest of the website exactly asis. (I would also like to allow new folks to register and/or existing users retrieve their lost passwords from within the bbPress ‘subsystem’ i.e. provide complete forum functionality from within the bbp system.

    Any help as to how I go about this would be much appreciated as the charity have decided that this is an urgent requirement for a trip to Uganda coming up soon and I don’t want to go off at a tangent and waste a whole load of time climbing the learning curve. At the moment, I’m confused as to whether I should be using widgets, creating child themes, using shortcodes with my own pages or anything else.

    Pointers to web pages, documents, videos or just some good old-fashioned advice will be very welcome.

    Thanks in anticipation.
    Ron

Viewing 25 results - 901 through 925 (of 1,701 total)
Skip to toolbar