Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'codes'

Viewing 25 results - 876 through 900 (of 1,687 total)
  • Author
    Search Results
  • #141141
    PCTP
    Participant

    I have the latest versions of WP & bbPress.

    Looking for short codes for “ACTIVITY” – “MEMBERS” – “GROUPS” to keep it private from the public. i.e., only those logged in will be able to view those three items on the home bar. http://www.PickensCountyTeaParty.com

    Thanks!

    #141097
    Oken
    Participant

    I was directed to this topic when I asked about the particular features this customization was said to have solved. I too have also tried to follow the directions and entered the codes from this post, but to no avail. I get the same crashed website.

    Here’s where I put each peace of code. Maybe someone can point out where I went all wrong.

    http://pastebin.com/GLhCHYze – I put this in my functions.php file.

    http://pastebin.com/8K0pkKs5 – I put this in my theme’s bbpress/loop-single-forum.php file.

    http://pastebin.com/FGptZmiQ – I put this in my theme’s bbpress/loop-single-topic.php file.

    As someone mentioned, The creator of this code seems to have a stand alone version of bbpress instead of the plugin type that I use with Buddypress. Perhaps this is why it hasn’t worked for a few folks. I’d be interested to hear from someone that has Buddypress installed on their copy of wordpress and have successfully been able to make the customization work for them in their template files. If we could hear how they went about installing the code, it might help out some that might be stuck.

    Many thanks in advance! πŸ™‚

    #141070
    piccart
    Participant

    Hello!

    I am using the default template of bbpress and I’d like to customize it

    My issue is divisible in 3 parts:

    1- I’d like to cut off the “add your reply form” from the bottom of the comments list
    2- I’d like to make a custom page with the form, which I’ve seen I can make with a shortcode
    3- I’ll need to build up a button “post reply” on the topic page, which I think it will have to pass to the form page a variable with the id of the topic, otherwise it won’t be possible for that form to append the reply to the correct topic, isn’t it?

    I think I’ve found where to cut off the displaying of the form but I’d like you to confirm before I make mess. is it in this file:
    bbpress/templates/default/bbpress/content-single-topic.php
    and if I’d like to cut off the form from the topics archive lists as well, the file should be this:
    bbpress/templates/default/bbpress/content-single-forum.php

    point 2 should be easy, but I am wondering how I’ll have to pass the variable of the topic which has to be commented.. anyone can explain me how this works?

    in point 3 I have no idea.. I’ve browsed millions of files today and found millions of functions and hooks so I don’t know which I have to use and how. by instance I’ve found a bb_get_forum_id() and a get_forum_id() and who knows if there are more similar that I’ve missed. which has to be used to retrive the current topic id? and how it has to be used?

    Thank you very much for reading this topic, I hope someone will help me.
    Cheers!
    Andrea

    #141035
    Stephen Edgar
    Keymaster

    Give this plugin a try πŸ™‚

    https://wordpress.org/plugins/bbpress2-shortcode-whitelist/

    This plugin is designed to safely allow bbcode shortcodes and other safe shortcodes to be embedded in bbpress topics and replies and also blog comments. You don’t wan’t users entering shortcodes such as [bbp-login] in the middle of their reply.

    #141010

    In reply to: YouTube Embed Issue

    Deaf_Guy
    Participant

    Hi – thanks for your reply. I know this is going to sound defeatist and lazy but I simply cannot believe that in this day and age of automation that BBP makes you have to do all of this technical stuff.

    I run a blog for my client that you can see here on non-hosted WP. They’re very happy with it:

    http://hissign.wordpress.com/

    You’ll see in the blog that it’s so easy for me to just plug a YTV video in there. So now my client wants a forum where they can allow others to post a wide variety of YouTube videos presented in ASL (like the example in the first post). But what’s mind blowing to me is when I set up BBPress, I’m amazed that this feature of embed is not right there and ready to go; but instead, I have to tweak and do all kinds of complex stuff like adding codes and stuff. Wow.

    I chose WP because the blog (not the forum) does all of this for you conveniently so I can do my job of publishing and not have to worry or figure out all of these codes and stuff. Why in the world would bbPress be completely different.

    Anyway, thanks for your help and I’m not really sure what to do at this point about my client’s forum needs.

    #141008
    Andreas
    Participant

    Hey,

    I use some other plugins providing shortcodes. The work fine on every page, but not in topics or response of the bbpress forum.

    For example this progress bar plugin
    http://wordpress.org/plugins/progress-bar/

    How can I add the function that the shortcodes will work in bbpress forums?

    Thanks for your help!

    focallocal
    Participant

    thanks very much.

    i’m not sure what i was doing wrong the last time i tried but the short codes did work perfectly for the individual thread this time.

    #140950
    Stephen Edgar
    Keymaster

    Have you tried using the single forum shortcodes for each forum you want on each page that you want a forum?

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

    Stephen Edgar
    Keymaster

    Shortcodes should do the trick as most things are covered by them.

    Eg. If you want to show a forum use the single forum shortcode, if you want to display a single topic with the replies use the single topic shortcode.

    BuddyPress is basically doing the same as the shortcodes and I’m not entirely sure what you mean by ‘i tired with shortcodes but that only seemed to give the headings’ unless you are using the wrong shortcode where for example [bbp-forum-index] rather than [bbp-single-forum id=$forum_id].

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

    #140877
    lantaarntje
    Participant

    Dear Stephen.

    That did the trick – i disabled WP United and topics has the right authors but other problems occur:

    * I can’t log out anymore – you can push the button logout but nothing happens. When you refresh – Login Screen appear. strange! – I use Buddpress & BBpress. Tempate Default Buddypress template. Before forum conversion did was still operating well.
    * When you make a reply to a topic – all the BBcodes buttons are gone.

    focallocal
    Participant

    Hi, is it at all possible to display an individual part of my forum on a different page?

    i want to be able to do exactly what buddypress does when they display bbpress categories as forums for their groups, and so i can have that category of the forum show up as an element in a custom made page.

    i tired with shortcodes but that only seemed to give the headings, i want the threads and comments from the forum to be usable from different pages in my site, exactly how buddypress allows users to access the forums in their groups.

    Any help would be amazing as i’ve been stuck on this for 2 weeks now and my project deadline is almost upon me.

    #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

Viewing 25 results - 876 through 900 (of 1,687 total)
Skip to toolbar