Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 12,976 through 13,000 (of 32,503 total)
  • Author
    Search Results
  • wiste
    Participant

    Thanks, I didn’t realize I could do that. I’ve only been using bbPress for about a week so I’m not sure I’m an authority. I spent the morning working it out and figured I could save someone else the frustration. I will take a look at updating the codex when I get some spare time, but if anyone wants to take this info and add it before I get to it feel free.

    Stephen Edgar
    Keymaster

    Thanks for this πŸ™‚

    Any chance you’d be able to update the codex so it isn’t out of date?
    https://codex.bbpress.org/step-by-step-guide-to-creating-a-custom-bbpress-theme/

    (You login with your normal wordpress.org/bbpress.org username & password as anyone can edit the codex)

    #140988
    Subtopic
    Participant

    Your good haha. So is there any code I can add to make it resize as a general value?

    #140987
    Stephen Edgar
    Keymaster

    It looks like your theme is forcing all avatars to be 40px x 40px also from a quick look at your CSS.

    .avatar{border:5px solid #d5cba4;margin-bottom:-15px;margin-right:10px;width:40px;height:40px}

    #140979
    Shawn74
    Participant

    Solved:

    I declared as Avatar then i used this code inside theme’s function php file:

    
    add_post_type_support('forum', array('thumbnail'));
    
    function ks_forum_icons() {
    	if ( 'forum' == get_post_type() ) {
    		global $post;
    	    if ( has_post_thumbnail($post->ID) )
    	    	echo get_the_post_thumbnail($post->ID,'thumbnail',array('class' => 'alignleft forum-icon'));
    	 }
    }
    add_action('bbp_theme_before_forum_title','ks_forum_icons');
    

    Then i changed the img.avatar style (hope to have not changed anithing else…)

    Source:
    http://www.kristarella.com/2013/04/bbpress-forum-icons/

    wiste
    Participant

    The codex page for this is outdated and a lot of the threads are for older versions so here is a version for WP 3.8, bbPress 2.5.2.

    Resources

    Here are the pages from which I pieced this together.

    http://codex.bbpress.org/step-by-step-guide-to-creating-a-custom-bbpress-theme/
    http://codex.wordpress.org/Child_Themes
    http://op111.net/53/
    http://perishablepress.com/bbpress-theme-template-files/
    http://www.hongkiat.com/blog/wordpress-child-themes-dev/

    WordPress Child Themes – What, Why & How

    Initial Setup

    Install WordPress and bbPress.

    Step #1: Create a child theme of your WordPress theme.

    Even though what you’re wanting to change is bbPress and not your WordPress, there are not separate themes for plugins, so you need to create a child theme of whatever WordPress theme you are using to have a place to put the bbPress plugin child theme files. This will ensure that any updates to bbPress or your WordPress theme will not overwrite your changes. Here is how you create a child theme:

    1. FTP to your website
    2. Go to ../wp-content/themes
    3. Create a new folder for your child theme. Name it yourtheme-child for the sake of organization.
    4. Create a new file called style.css and add the below, changing the valuesto the value for your child theme. The critical fields are Theme Name, Template, and the the parent theme directory name (which should be the same as “Template”) in the @import. Everything else is used by wordpress.org for categorizing templates so don’t stress if you don’t know what to put there:

    /*
     Theme Name: Your Theme Name Child
     Theme URI: Your website if you don't intend to publish a separate site just for your theme
     Description: A brief description of your child theme
     Author: your name
     Author URI: your website
     Template: parent-theme-directory
     Version: 1.0.0
     Tags:  whatever tags you might want to use for your child theme
    */
    
    @import url("../parent-theme-directory/style.css");
    
    /* =Theme customization starts here
    -------------------------------------------------------------- */

    5. FTP your newly created style.css to ../wp-content/themes/yourtheme-child

    Step #2: Add your bbPress Child Theme files to your WordPress Child Theme

    1. Create a folder called “bbpress” on your local machine.
    2. FTP to ../wp-content/plugins/bbpress/templates
    3. Download the contents of the “Default” folder to the “bbpress” folder on your local machine
    4. Edit the files you want to change for bbPress (see bbpress-theme-template-files link under resources above).
    5. Delete any files you haven’t changed. You can skip this step if it’s confusing, but you should try to only upload files you’ve changed.
    6. FTP to ../wp/content/themes/yourtheme-child
    7. Create a folder called “bbpress” inside yourtheme-child
    8. Copy the contents of the “bbpress” folder in your local machine to the “bbpress” folder inside your child theme folder.

    Step #3: Activate your Child Theme

    Once you have created your child theme and made changes to the bbPress files in the child theme, you need to activate the child theme in order to see the changes on your site.

    1. Log into your WordPress admin panel
    2. Go to Appearance -> Themes
    3. Find your child theme. It would be the same as the “Theme Name” you gave it in the first line of the style.css you created in Step 1.
    4. Click “live preview” and make sure nothing has gone horribly wrong.
    5. Activate the child theme.

    Since you didn’t change any files from your wordpress theme, the theme for the site will be inherited from the parent theme so the only changes you should see are the changes you made to the bbpress files that you uploaded to your child theme. The only problem I encountered was that because it was a new theme, my custom “header top menu” was not associated with the theme, so I just had to go into the menu and check the box to tell it to use that custom menu as the header menu.

    #140976
    Shawn74
    Participant

    P.s. the working code (at least for me) is the one posted by @aashepaa

    Thanks again…

    #140975
    Shawn74
    Participant

    Hello,
    thanks for the tip, it’s working perfectly…now i have a picture before the Forum Title…excatly what i need…

    Anyway i need to know how to edit it’s CSS style…

    I’m using Firebug and i was able to edit the CSS style for the topic’s thumbnails to get identical as the buddypress one…with a circle box as border…
    You should see here hxxp://www.thepanicroom.it/forum/forum/panics-room-forum/

    Unfortunately when i analyze the picture your code added, i have no idea on how to find a CSS line to modify…i get only html div span body etc etc

    I tried to change the class name to ‘Thumbnail’ and i got a perfect thumbnail…. i changed it to Avatar but no result…i also declred it exactly like the Buddypress do…but nothing to do, the picture come back to the default one…

    Please sorry for my really wild and bad english πŸ™‚

    Thank you so much…

    #140971
    Grant Palin
    Participant

    I’ve run the repair tool with the recommended option, and resaved the permalinks. No change – both the edit and merge links go to a ‘page not found’ error. Both are going through the [topic slug]/edit/ path – [topic slug]/edit/?action=merge for the merge link.

    Something else I’ve tries is to create a dummy account at the moderator level, and attempted editing and merging topics. Same issue, both at the moderator and keymaster levels. Same problem with the edit link on replies too.

    If it would help any, I can provide a link to the forum in question.

    Stephen Edgar
    Keymaster

    You should use define(β€˜WPLANG’, β€˜ar’); as both WordPress & bbPress Arabic translations use ar

    https://translate.wordpress.org/projects/bbpress/dev/ar/default
    https://translate.wordpress.org/projects/wp/dev/ar/default

    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.

    #140954
    Stephen Edgar
    Keymaster

    How’d you go?

    If you’ve had no luck see the following article section where it gives you details to add a plugin from a .zip file (the .zip file you can get from the above GitHub link to the plugin ‘Download Zip).

    ‘Install a Plugin using Upload Method in WordPress Admin Panel’

    Surprisingly this method isn’t outlined in the WordPress Codex here (it should be) https://codex.wordpress.org/Managing_Plugins#Installing_Plugins

    #140953
    artkahlich
    Participant

    Regarding the current Forum subscriptions:
    1. Do they apply only to the current forum, or to sub-forums as well? I am seeing behavior that a subscription to a forum does ”’not”’ subscribe you to all sub-forums as well. Will I and all my moderators have to go and subscribe to each sub-forum in the entire forum tree?
    2. Do they apply only to new topics? Or to ask another way, do they also apply to all of a forum’s existing topic replies? Here again, I am seeing behavior that leads me to believe that I will only get a single new topic notification, but I will have to go and ”’manually subscribe”’ to each individual topic if I want to see replies to that topic. For administrators and moderators this would be nastily inconvenient behavior.

    The wording at https://codex.bbpress.org/forum-settings/ for precisely what subscriptions do appears ambiguous to me in these areas.

    Even though RSS for the entire forum is currently implemented, I still have a great interest in a simple email subscription that is equivalent. Simply put, the reason is simplicity for my users, moderators, etc., as well as for me as an administrator/implementer. While I can setup something using the RSS feed that would generate email notifications to all my moderators, I don’t want to for a variety of reasons including time to implement and potential security holes.

    A thought: you may decide to implement both “forum local” and “forum with sub-forums” subscriptions. When unsubscribed, the links would display as:
    ”’Subscribe”’ – if there are no sub-forums
    ”’Subscribe with sub-forums”’ – if there are sub-forums (the default)
    ”’Subscribe without sub-forums”’ – if there are sub-forums (user selectable)
    where the ”’without sub-forums”’ versus ”’with sub-forums”’ are 2 faces of a toggle link (similar to your Subscribe/Unsubscribe toggle link) controlling what the ”’Subscribe”’ link in fact subscribes the user to.

    If you choose to implement only a single behavior for forum subscriptions, I am ”’strongly”’ in favor of including all sub-forum new topics and replies. I can see every bbPress site administrator and forum moderator wanting this functionality.

    I also think it extremely counter intuitive to not include existing topic replies in a forum subscription. I hope you do already, but I have not experimented with it enough to know precisely how the forum subscriptions behave.

    NB: The “unsubscribe” bug may have clouded my observations of real forum subscription behavior.

    #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/

    #140949
    Stephen Edgar
    Keymaster

    It is already translatable, see https://codex.bbpress.org/bbpress-in-your-language/ to download or add translations for your language.

    #140947

    In reply to: YouTube Embed Issue

    Stephen Edgar
    Keymaster

    You need to make sure embeds are enabled for both bbPress & WordPress

    Auto-embed Links
    Enable forum participants to embed links from YouTube, Twitter, and others by simply pasting a link into their topic or reply. This is done using the WordPress oEmbed API. More information and a full list of supported sites can be found on the Embed Codex page.

    https://codex.bbpress.org/forum-settings/ https://codex.wordpress.org/Embeds

    You could enable Featured Images for your theme and bbPress and also display the actual image just as the site you link to does (at the left of the topic/post)

    Find out if your theme supports ‘Featured Images’ and if so then enabling them in some customized bbPress templates would mirror that same look. πŸ™‚

    https://codex.wordpress.org/Post_Thumbnails

    #140945

    In reply to: bbPress Language Pack?

    Stephen Edgar
    Keymaster

    What language are you looking for?

    Maybe this will help https://codex.bbpress.org/bbpress-in-your-language/

    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/

    Stephen Edgar
    Keymaster

    Forum Prefix – Used to enable forum prefixing with the Forums base slug in Archive Slugs

    Eg. Using bbpress.org as an example, this forum ‘Troubleshooting’ uses the slug https://bbpress.org/forums/forum/troubleshooting/ if you disable the prefix it would use https://bbpress.org/forum/troubleshooting/ instead, it removes the forums part of the slug.

    Stephen Edgar
    Keymaster

    Make a copy of Twenty Thirteen’s page.php in the theme directory and rename it to bbpress.php.

    Does that work?

    #140939

    In reply to: Static For Disclaimer

    Stephen Edgar
    Keymaster

    I’d suggest you create a WordPress page and use the shortcode [bbp-forum-index] and then after that short code at your disclaimer text and style accordingly.

    #140938
    Stephen Edgar
    Keymaster

    What happens when you copy the Twenty Fourteen page.php template as bbPress.php in the theme folder and visit http://example.com/forums ?

    #140934
    artkahlich
    Participant

    So let me restate what you found to work:

    1. When creating a menu item for forums, do NOT use the automatically available permalink that ends in “/forums/”
    2. Instead, create a page that has the shortcode [bbp-forum-index] in the body. There could also then be other content or links in the body.
    3. Make sure the page you created does NOT have a permalink that ends in “/forums/”. In my case I had a page Title of “Forums”, but I changed the permalink to end with “/allforums/”.

    I did this on my site and it now works on my Android smart phone.

    This weirdness needs to be either fixed or on the bbPress FAQ.

    #140930

    In reply to: Static For Disclaimer

    gerardyap
    Participant

    Lynqoid,

    the BB Press is running under a wordpress theme.

    The above code to be added onto the plugin >bbPRess >Edit ?

    Can I paste the code mentioned below

    .forum-disclaimer { display:none; }
    .bbpress .forum-Disclaimer
    Please take note that this forum responses are for your reference only. Members are not related to any companies and they did it out of voluntarily based on their usage or experienced told by others. Therefore, MJ HUB Pte Ltd and members will not be held responsible on the accuracy of the information being provided in this forum. For affirmation, please contact main supplier on your doubts. { display:block; }

    brunodavid
    Participant

    Hi

    How can I translate the ‘Search’ string in the Search Box at content-archive-forum.php:

    <div id="bbpress-forums">
    
    	<?php if ( bbp_allow_search() ) : ?>
    
    		<div class="bbp-search-form">
    
    			<?php bbp_get_template_part( 'form', 'search' ); ?>
    
    		</div>

    I want to translate it to my website language but I can’t really find the file to modify…

    Thanks for the support

Viewing 25 results - 12,976 through 13,000 (of 32,503 total)
Skip to toolbar