Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 19,851 through 19,875 (of 32,499 total)
  • Author
    Search Results
  • #101399

    In reply to: Design Saga

    looks pretty..

    good work man :D

    #35678
    KentonMr
    Member

    Looking for a simple way of turning off the way that the number of times a topic has been viewed from being appended to the topic title in the lists.

    I don’t wish to stop collection of this meta data just to stop it being displayed all over the place.

    The code looks like tangled spaghetti – I’m sure given a month or two I could fathom it out, but …

    Am I the only one that thinks it is untidy ?

    #96327

    In reply to: topic_tags()

    blahman29
    Member

    Thanks mr_pelle!

    Regarding bb_get_avatar(), it looks like you still need to have the users email to use it. Is there an easy way to grab the email of the current poster?

    I find solution to avatar here, https://bbpress.org/forums/topic/how-to-get-the-last-posts-avatar

    echo bb_get_avatar( get_post_author_id(), '70');

    It seems I need to echo it out.

    #101427

    In reply to: topic_tags()

    blahman29
    Member

    Thanks mr_pelle!

    Regarding bb_get_avatar(), it looks like you still need to have the users email to use it. Is there an easy way to grab the email of the current poster?

    I find solution to avatar here, https://bbpress.org/forums/topic/how-to-get-the-last-posts-avatar

    echo bb_get_avatar( get_post_author_id(), '70');

    It seems I need to echo it out.

    #96432
    Gautam Gupta
    Participant

    The bbPress development (a.k.a. trunk) version allows you to choose what that link should link to (profile or website). But as you’re using 1.0.2, you can change <?php post_author_link(); ?> to:

    <a href="<?php echo esc_attr( get_user_profile_link( get_post_author_id( $post_id ) ) ); ?>"><?php post_author( get_post_id() ); ?></a>

    That should probably work…

    #101532
    Gautam Gupta
    Participant

    The bbPress development (a.k.a. trunk) version allows you to choose what that link should link to (profile or website). But as you’re using 1.0.2, you can change <?php post_author_link(); ?> to:

    <a href="<?php echo esc_attr( get_user_profile_link( get_post_author_id( $post_id ) ) ); ?>"><?php post_author( get_post_id() ); ?></a>

    That should probably work…

    #35677
    auphoria
    Member

    At the moment, this code <?php post_author_link(); ?> links to the url that users type in, I have some linked to BP profile, some linked to their personal websites.

    Is there a way to replace this code to link to their bbpress profile?

    p.s. this is the link beneath user avatar.

    #94206
    Gautam Gupta
    Participant

    All you need to fix this is to have a display:inline; for the select box.

    #94205
    KentonMr
    Member

    I find all this SCN TRAC TRUNK all a bit gibberish and well beyond what I need to know.

    I find the version control of bbPress also confusing and always thought that the most stable version was on the main download page.

    The “bug” being discussed is not a show stopper (there are more irritating things) but it is fairly obvious in the code what is breaking this.

    Two things in functions.bb-template.php

    The use of <fieldset> and <div> inside the form – comment them out in bb_get_topic_move_dropdown() and add the lines

    $r .= bb_get_topic_delete_link($args);

    $r .= bb_get_topic_close_link($args);

    $r .= bb_get_topic_sticky_link($args);

    after the initial <form> line.

    commenting out the original lines in the bb_topic_admin() as

    // ‘delete’ => bb_get_topic_delete_link($args),

    // ‘close’ => bb_get_topic_close_link($args),

    // ‘sticky’ => bb_get_topic_sticky_link($args),

    This is by no means an elegant solution but it appears to work.

    I’m sure something more elegant could have been done in css.

    #94459
    Ryan Gannon
    Member

    I’ve been watching the action unfold on the trac… and in my spare time I also like to watch paint dry. But no, it’s great to see stuff happening. :)

    #94457

    (at least that is my understanding)

    Correct. Looking more like October 17 now, to be exact.

    On Sunday at WordCamp NYC I’ll be presenting a 5 minute lightning session on the plugins progress so far. Worked on it a little today, and will be doing more until then to have something presentable. :)

    #94248
    auphoria
    Member

    I’m using 1.0.2, I think the problem for me is because I use BBcode Buttons Toolbar

    #35642

    Topic: topic_tags()

    in forum Troubleshooting
    blahman29
    Member

    I’m trying to find this function cuz I need to change the HTML it outputs.

    According to this.. http://xref.yoast.com/bbtrunk/nav.html?_functions/index.html it should be located in includes/functions.bb-template.php but maybe that is a different version or something cuz I can’t find it.

    Does anyone know of some other sources of documentation where I can look up?

    Also, I am trying to setup gravatars for each post and grab the posters email something like this..

    <?php echo get_avatar( bb_get_user_email($bb_post->post_author), $size = '70'); ?>

    Does anyone know how to get the current posts author email?

    #96291

    In reply to: WP Nonce problem

    blahman29
    Member

    Sorry, I post this and I immediately find the solution here..

    http://phpxref.ftwr.co.uk/bbpress/nav.html?_functions/index.html

    I edited my code like this..

    <button id = 'postformsub' type = 'submit' name = 'Submit' tabindex = '4'></button>

    <?php bb_nonce_field( bb_is_topic() ? 'create-post_' . $topic->topic_id : 'create-topic' ); ?>
    <input type="hidden" value="/forum/topic.php?id=<?php echo get_forum_id(); ?>" name="_wp_http_referer">
    <input type="hidden" value="<?php echo get_forum_id(); ?>" name="topic_id">

    And it seems to work now. If anyone is making their own forms then try this solution out for nonce.

    #101391

    In reply to: WP Nonce problem

    blahman29
    Member

    Sorry, I post this and I immediately find the solution here..

    http://phpxref.ftwr.co.uk/bbpress/nav.html?_functions/index.html

    I edited my code like this..

    <button id = 'postformsub' type = 'submit' name = 'Submit' tabindex = '4'></button>

    <?php bb_nonce_field( bb_is_topic() ? 'create-post_' . $topic->topic_id : 'create-topic' ); ?>
    <input type="hidden" value="/forum/topic.php?id=<?php echo get_forum_id(); ?>" name="_wp_http_referer">
    <input type="hidden" value="<?php echo get_forum_id(); ?>" name="topic_id">

    And it seems to work now. If anyone is making their own forms then try this solution out for nonce.

    #35634

    Topic: WP Nonce problem

    in forum Themes
    blahman29
    Member

    Hey guys, first off thanks for this awesome forum solution!!

    I have been able to customize it pretty well with my wordpress installation, take a look here..

    http://www.designsaga.com/forum

    I am having some problems with nonce verification with my forms. I couldn’t find where the hidden form fields are being output so I was adding them in manually like this..

    <button id = 'postformsub' type = 'submit' name = 'Submit' tabindex = '4'></button>

    <?php if ( function_exists('wp_nonce_field') ) { wp_nonce_field('_wpnonce', '_wpnonce'); ?>
    <input type="hidden" value="/forum/topic.php?id=<?php echo get_forum_id(); ?>" name="_wp_http_referer">
    <input type="hidden" value="<?php echo get_forum_id(); ?>" name="topic_id">

    </form>

    The form was working great but after the nonce expired I keep getting this message when trying to submit the form..

    Your attempt to create this topic has failed.

    Please try again.

    Back to Support Forum.

    I’m just not sure what I should do.. any help is appreciated!

    Mealin
    Member

    Hi,

    I’ve some strange trouble with my bbpress forum (host with 000webhost) :

    Sometimes, after posting something i’m not able to join it again. Can’t access to it even if i empty cache, cookie …

    It go back normally few times after each times but it’s very very unpleasant…

    2 forum with the same issue and pretty much same plugins

    Allow Images

    BBcode Buttons Toolbar

    BBcode Lite

    bbPM

    bbPress Polls

    bbPress signatures

    bbPress Smilies

    bbPress Suite de la Modération

    bb Topic Views

    BBVideo

    Hidden Forums

    Hidden Forums Tag Filter

    Human Test for bbPress

    Live Comment Preview

    Post Count Plus – Dynamic.Titles & More!

    Post Notification

    Super Search

    Terms of Service

    Topic Icons

    Unread Posts

    Any ideas ?

    Ps : my english is ugly so if something isn’t understandable say it please ;-)

    #96006
    3sixty
    Member

    After reading the whole of that thread you linked, I think my use of “fork” was a poor choice of words. All I was trying to say is that the standalone code isn’t going away. It does seem from reading the thread that the intent (at least the original intent) was to officially release 1.1 as a “solid stand alone” (JJJ’s words).

    #101106
    3sixty
    Member

    After reading the whole of that thread you linked, I think my use of “fork” was a poor choice of words. All I was trying to say is that the standalone code isn’t going away. It does seem from reading the thread that the intent (at least the original intent) was to officially release 1.1 as a “solid stand alone” (JJJ’s words).

    #96005
    3sixty
    Member

    Thanks! Clearly, bbPress is officially going to be a plugin for WordPress going forward (but as you note, the code is there to fork for those who still want a standalone version).

    #101105
    3sixty
    Member

    Thanks! Clearly, bbPress is officially going to be a plugin for WordPress going forward (but as you note, the code is there to fork for those who still want a standalone version).

    #96127
    deadlyhifi
    Participant

    the bbPress community in a bit of a transition period while it gets rereleased as a WordPress plugin.

    But, yes you can put advertising on your site using OpenX – it would require editing your forum’s theme files by placing the code generated in OpenX in the spots you want them to appear.

    Any web developer/designer should be able to do quite easily.

    #101227
    deadlyhifi
    Participant

    the bbPress community in a bit of a transition period while it gets rereleased as a WordPress plugin.

    But, yes you can put advertising on your site using OpenX – it would require editing your forum’s theme files by placing the code generated in OpenX in the spots you want them to appear.

    Any web developer/designer should be able to do quite easily.

    #96284
    deadlyhifi
    Participant

    I’m running v1 so not sure if this works in 0.9 – but you follow the same pattern as WordPress.

    In your forum theme’s functions file deregister then register your new scrip.

    e.g.

    wp_deregister_script('jquery');
    wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js', false, '1.4.2', true);
    wp_enqueue_script('jquery');

    See https://codex.wordpress.org/Function_Reference/wp_enqueue_script for more details

    #101384
    deadlyhifi
    Participant

    I’m running v1 so not sure if this works in 0.9 – but you follow the same pattern as WordPress.

    In your forum theme’s functions file deregister then register your new scrip.

    e.g.

    wp_deregister_script('jquery');
    wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js', false, '1.4.2', true);
    wp_enqueue_script('jquery');

    See https://codex.wordpress.org/Function_Reference/wp_enqueue_script for more details

Viewing 25 results - 19,851 through 19,875 (of 32,499 total)
Skip to toolbar