Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 15,801 through 15,825 (of 32,522 total)
  • Author
    Search Results
  • #115306
    Martin
    Participant

    Thanks Lynq.
    Hmm, tried creating new topic twice in last 12 hours and they’ve failed to appear so no idea what’s going on on these forums.

    Anyway, slightly different question. Any idea what file and location I need to insert code into so that something appears after the Topic and before the reply? I want to start inserting Ads in that location using Simple Ad Manager and have a code snippet I need to insert.

    Paul Bearne
    Member

    Hi Guys

    I am the author who looks after http://wordpress.org/extend/plugins/author-avatars and I have been asked to add the option to link to bbpress profile verse the wordpress profile

    Got my bit working

    untill I got to here

    if (function_exists('bb_get_profile_link')) {
        $link = bb_get_profile_link('id='.strval($user->user_id));
    }
    

    and found that I am get “undefined function bb_get_profile_link()” as this is a post/page and not a bbpress page so my guess that bbpress code is not loaded.

    So what is the best way to get the profile URL / load this function?

    Many thanks

    Paul

    • This topic was modified 14 years, 1 month ago by Paul Bearne. Reason: typo
    • This topic was modified 14 years, 1 month ago by Paul Bearne.
    #115289
    Lynq
    Participant

    Hey guys, I have been debugging a few issues with these functions so I am going to link to each of the functions below in pastebin, should be pretty good to go for copying across I believe.

    Custom bbp_list_forums function. http://pastebin.com/GLhCHYze

    Custom last poster block for forums. http://pastebin.com/8K0pkKs5

    Custom last poster block for topics. http://pastebin.com/FGptZmiQ

    Hope this helps, it is a little clearer on pastebin currently, the code block on bbpress.org likes to change my code for me! :p If you find any issues let me know and I will try and update this topic, also I will get the updates onto my own site.

    Good luck!

    • This reply was modified 14 years, 1 month ago by Lynq.
    • This reply was modified 14 years, 1 month ago by Lynq.
    #115287
    crazy-nomce
    Participant

    Bump, anyone?

    Btw, I fixed half of the hooks (I added the corresponding hooks into the bbpress theme on my own, and it works), but I have problem with the remaining three hooks which I didn’t fixed, and they are:

    add_filter( 'bp_get_the_topic_post_content', 'rfp_filter_rating_link', 3 ); 
    
    add_filter( 'bp_get_the_topic_post_css_class', 'rfp_alter_post_based_on_rating', 1, 1 );
    
    add_filter( 'bp_get_the_topic_post_poster_name', 'rfp_filter_poster_karma', 3 );
    

    Also, I cannot find anything for the variable $bbp,and the corresponding variables in bbpress which exist in buddypress: $topic_template and $forum_template.

    Thanks in advance!

    Edit: I forgot to mention that bbpress is updated to version 2.1. 🙂

    • This reply was modified 14 years, 1 month ago by crazy-nomce.
    #115282

    In reply to: Forum Title

    Superhearing
    Member

    oo nice, thanks, I got around it but creating a page named forum and adding the shortcode [bbp-forum-index]

    Modifying Page Title in Forums Archive

    Will look into your fix when when I have time, thanks 🙂

    #115280

    In reply to: Forum Title

    Lynq
    Participant

    This is probably because you have something like: the_title() inside your title tag in your theme?

    I had to have conditional title tags based on what post type I was looking at, check this out:

    http://pastebin.com/CW8WZDJH

    I am still having an issue with the code syntax highlighter, so I used pastebin.

    Good luck!

    #115277
    chuseestn
    Participant

    Les professionnels de formation adizero tissus intelligents ClimAdapt et accessoires très légers à créer de la lumière ou pas d’expérience d’équipements sportifs. Coupe Formotion CP et un design ergonomique, les vêtements et plus de confort. adizero miCoach système intelligent peut aussi être compatible avec l’usage commun peut être accélérée afin d’améliorer la performance sportive [url=http://www.addidasjeremyscottwings.com/chaussures-femme-adidas-adicolor-c-2_26.html]adicolor superstar[/url].

    Spinning produits de classe en tenant compte des changements climatiques extérieures, veste coupe-vent, chemise, pantalons et shorts et diverses avec des Adidas CLIMAPROOF veste coupe-vent du vent et de tissus a une protection UV + UPF50 fonction manches courtes T-shirt en tissu double, utilisez le maillage 3D et l'intérieur, la perméabilité serré, mais excellente. Deux utilisation de la couleur audacieuse de couleurs vives et appuyez sur la conception de la couleur et l'attention à un détail, la conception la poitrine unique de fermetures à glissière de ventilation, le dos des vêtements au fond de la conception de bord paquet avec une bande élastique spéciale, élastique interne contenant les détails du silicium de haute technologie . La conception collants à proximité de l'ajout de la qualité appropriée de la charge à protéger. 2 en 1 short en utilisant les principes de conception d'ingénierie, c?té amovible de la commodité de la multi-sport besoins [url=http://www.addidasjeremyscottwings.com/chaussures-femme-adidas-adicolor-c-2_26.html]adicolor adidas[/url].
    
    Produits d'entra?nement fitness de Escalade coupé les manches du traitement spécial con?u pour prévenir le soulèvement du bras sur l'ascenseur alors que le reste des plis du corps. L'utilisation des matériaux et CLIMALITE FlowMapping du corps aérodynamique de la lumière et a une perméabilité à l'air à 360 °. Tous doublée de polyester recyclé à 100%, et à travers le maillage 3D pour augmenter les performances de respirabilité. Série sur la formation Adidas, y compris une série de formation des hommes, des séries de formation des femmes, série pour enfants, et le adidas by Stella McCartney. Adidas s'est engagé à l'intérieur de remise en forme, de la danse, le yoga et une variété de vêtements de sport, chaussures et accessoires, non seulement l'intégration de nombreux éléments de la mode et Adidas pour améliorer la performance athlétique spécialement développé une technologie de pointe [url=http://www.addidasjeremyscottwings.com/chaussures-femme-adidas-adicolor-c-2_26.html]adidas superstar skate[/url].
    

    [url=http://www.addidasjeremyscottwings.com/basket-adidas-gazelle-2-034581-p-186.html][img]http://www.addidasjeremyscottwings.com/images/20120702191035/Basket-adidas-gazelle-2-034581_a_3_1.jpg[/img][/url]

    #115267
    Stephen Edgar
    Keymaster

    The theme you are using ‘Nexus’ thinks that /forums is a WordPress page when in fact it is not and is reading the ‘subheader’ in this case ‘Suggestions’ from the last custom post type.

    If you create a new WordPress page called ‘Forum’ and add the shortcode [bbp-forum-index] to this page and replace ‘Forums’ on your nav menu with the newly created ‘Forum’ page you should see the title now as ‘Forum’

    You could also ask for help over at the Nexus support forum http://wpadaptive.com/forum/categories/nexus

    #115259

    In reply to: 2.1 questions

    Stephen Edgar
    Keymaster

    — ‘Topics Replied To’ User Profile Empty?

    I don’t have or see a ‘Topics Replied To’ section under eg. /users/username, only ‘Subscribed Forum Topics’, ‘Favorite Forum Topics’ & ‘Forum Topics Created’…

    — The ‘recent replies’ widget indeed in the old version did include recent topics in its output. Much of the widget query code has been rewritten so I would say now that the widget works as per design 🙂

    I have created a ticket to enhance some of the widget options, if you have anything to add, please do.

    https://bbpress.trac.wordpress.org/ticket/1903

    #115245
    pimarts
    Participant

    Ok, a litle more info:

    I run a bbPress + BuddyPress installation. And I put that function in the functions.php file of my WordPress theme.

    It would remove the widgets inside. If needed you could remove the rest of the / entire sidebar with CSS. The advantage over a simple CSS hide is the fact that less code gets written to the browser / less code to download for the user.

    Aside from that I use it to put the login widget at the top of the forums (with CSS) and remove all the other widgets.

    #115206
    Bookkus
    Member

    Does anyone have any ideas?

    #115192
    pimarts
    Participant

    I posted this in another topic, this works for me:

    function disable_all_widgets( $sidebars_widgets ) {       
        if ( function_exists('is_bbpress') ) {
            if (is_bbpress()) {
                $sidebars_widgets = array(false);
                remove_all_actions('bp_register_widgets');
                unregister_sidebar( 'bp_core_widgets' );
            }
        }
        return $sidebars_widgets;
    }
    
    add_filter('sidebars_widgets', 'disable_all_widgets', 1, 1);
    

    But that’s because I haven’t looked into custom themes yet. Did everything with functions and CSS at the moment.

    #115168
    Parker
    Member

    Oh! I was able to figure out what was wrong. All I needed to do was move:

    ?>

    to the bottom of the bbPress settings.

    • This reply was modified 14 years, 1 month ago by Parker.
    • This reply was modified 14 years, 1 month ago by Parker.
    • This reply was modified 14 years, 1 month ago by Parker.
    • This reply was modified 14 years, 1 month ago by Parker.
    #115152
    Bookkus
    Member

    It’s just the shortcode forum when I post it into a page: http://www.bookkus.com/test-forum/

    If I use the other forum it looks like this: http://www.bookkus.com/forums-2/

    #115150
    Lynq
    Participant

    Oh wow umm,

    It looks as though there isn’t a lot of styling going on for your forum.

    Where did you get your bbpress.css file from? It looks really short compared the one I got originally.

    #115149
    Lynq
    Participant

    Hi there,

    I actually had this issue with my custom plugin, it turned out that a recent version of wordpress has tightened the security on plugins I believe, so if the plugins are not coded correctly then it will cause the issue you are describing.

    Have you updated all the plugins aswell?

    #115146
    Martin
    Participant

    Hi all,

    To help promote anonymous posters to post questions, I’d like to put up some sort of permanent notice information box above the forums to display said message.
    Any ideas what file/code I need to be playing with, as a start?

    #115139
    Bookkus
    Member

    I am having some trouble with the layout of my forum. Once I add the shortcode to a new page the layout goes very strange. I have tried going to full-width with no result.
    I am using custom community theme. My buddypress, wordpress, and bbpress are fully updated.

    http://www.bookkus.com/test-forum/

    Thanks in advance for your help.

    #115135
    DNBrawler
    Participant

    It’s calling JQuery scripts–the only one I could find is this one:wp_enqueue_script( 'bp-js', BP_PLUGIN_URL . '/bp-themes/bp-default/_inc/global.js', array( 'jquery' ) );
    I tried to implement the topic.js many times It’s just not working :/

    #115113
    DNBrawler
    Participant

    I’m stumped. lol

    Do I have to call the script? :L I have no idea.. what to do.

    I found this:

        if ( bbp_is_single_topic() )
            wp_enqueue_script( 'bbp_topic', $this->url . 'js/topic.js', array( 'wp-lists' ), $this->version, true );
    

    Am I close ? :/
    Okay now I do believe that my theme is causing the problem since I switched themes and it started to work. I have more work to do.

    • This reply was modified 14 years, 1 month ago by DNBrawler.
    • This reply was modified 14 years, 1 month ago by DNBrawler.
    • This reply was modified 14 years, 1 month ago by DNBrawler.
    #115112
    Lynq
    Participant

    It did the same again, I have had a couple of issues with the code button too!

    It is kind of a tricky to pick out a specific forum, you would need to do a little bit of coding to try and change the way your loop-topics loop works.

    You would need to be able to pass in an argument of something like $limit and then set the limit based on the forum id. Feels like a lot of work to me, but someone else might have a better idea.

    Sorry!

    #115109
    DNBrawler
    Participant

    Sorry must not have worked. Here it is again:

                             '_bbp_reply_count', 'meta_value' => '1', 'meta_compare' => ' 'date', 'show_stickies' => false ) ) ) : ?>
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
                    <!-- #topics-front -->
    

    “ EDIT: Now it’s deleting the content of the code sample. Here’s the link from pastebin. http://pastebin.com/3TLgVni2

    • This reply was modified 14 years, 1 month ago by DNBrawler.
    • This reply was modified 14 years, 1 month ago by DNBrawler.
    #115102
    Lynq
    Participant

    Hey DNBrawler,

    Your code got cut off 🙁 can you try posting it again and using the code button?

    #115100
    DNBrawler
    Participant

    I’m using a template to customize the number of posts on one of my pages. My default number of forum posts on one single page is 6. I want 15 to appear on a page so after noticing in the statistics template that the popular topics can show more than than the default setting I ventured to apply it to a single forum called from the forum id. Here’s the code:

    15, ‘post_parent’ => bbp_get_forum_id(568), ‘show_stickies’ => false ) ) ) : ?>

    My problem: The forums are only showing 16 unfortunately. My question: How do I limit the number of posts on individual pages?

    #115097

    In reply to: Reply Truncation

    Lynq
    Participant

    You have the following CSS on your site which is restricting the height of the replies.

    div.reply {
        height: 32px;
    }
    

    I didn’t search heavily, but it looks like it is coming directly from the page, I can’t find the stylesheet where that is coming from, good luck hunting!

Viewing 25 results - 15,801 through 15,825 (of 32,522 total)
Skip to toolbar