Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 21,826 through 21,850 (of 32,495 total)
  • Author
    Search Results
  • #33771
    chengdu-living
    Participant

    On the post page, it says

    Allowed markup: BBcode a blockquote code em strong ul ol li img font strike center u hr cite.
    You can also put code in between backtick characters.

    How can I remove this text? I checked bb-post.php but couldn’t figure it out.

    Thanks in advance!

    #81968

    In reply to: bbShowcase shut down?

    WP forums use bbpress. The Post form address is https://wordpress.org/support/bb-post.php for the Post button on WP forums. But for a guy who says Code is Poetry, it is really sad that he isn’t even allowing many people to participate actually. Last day I talked with a developer who has created many plugins for bbpress. He said Matt replied to his mail asking him to just stay on track, when he aksed about joining the bpress developers. Matt please shed some light. Should we continue using bbpress or do we need to find an alternative?

    #84950
    chengdu-living
    Participant

    That worked!

    Thank you so much for your help, Tom!!!

    :D :D :D

    #85622
    Kevin Ryman
    Participant

    I would also like to know this. :)

    #84949
    deadlyhifi
    Participant

    Try putting quotes around your address.

    i.e. sprintf($message, $user->user_login, $pass, "http://www.chengduliving.com/forum/")

    #33772
    Farhad
    Member

    Hello

    I want add a javascript menu in top of my forum

    I edit header.php file in template folder and add javascript code into this file, but nothing appear in forum

    Please help me how can add javascript menu in forum

    Thanks

    #85746
    wemaflo
    Member

    @etiviti It’s awesome :) I like it!

    #85901
    Kevin Ryman
    Participant

    Nice video, arpowers! I’m sure it will come in handy to many people! Keep up the good work! :)

    #84947
    chengdu-living
    Participant

    Thanks for your help Tom,

    How would I add my web address into that line? I tried the following but it gave me an error:

    sprintf($message, $user->user_login, $pass, http://www.chengduliving.com/forum/)

    Thanks!!

    #85883

    In reply to: licence agreement

    Kevin Ryman
    Participant

    Still works, I’m currently using it on my new site. After registering, users may review the TOS agreement at http://neodeviants.com/beta/forum/?terms-of-service=display :)

    #85876
    Kevin Ryman
    Participant

    Thanks Gautam! I haven’t try this plugin yet but I’ll keep updated. :)

    #33766

    Topic: Login Problem

    in forum Installation
    srganesan
    Member

    Hi Experts,

    I need single signin plugin for intergration with bbpress. i done my website using codeignitor , i installed bbpress seprately. i need single signon plugin with other than wordpress.

    I find most of saying for cookie and HTTP authentication problem

    Please help find out my problem.

    Some time it logged in partially. But i cant able to add new topic or reply the forum.

    i call this code outside of my site.

    $user = bb_login($useremail,$useremail,”);

    bb_safe_redirect( “/gbbpress/” );

    but it logged and i cant able reply or add new topic.

    Thank

    web

    #85888

    In reply to: how to move?

    Here the received code.

    front-page.php :

    <?php bb_get_header(); ?>

    <?php if ( bb_forums() ) : ?>

    <?php if ( $forums ) : ?>

    <?php endif; // $topics or $super_stickies ?>

    <h2><?php _e(‘Forums’); ?></h2>

    <table id=”forumlist”>

    <tr>

    <th><?php _e(‘Main Theme’); ?></th>

    <th><?php _e(‘Topics’); ?></th>

    <th><?php _e(‘Posts’); ?></th>

    </tr>

    <?php global $bb_forums_loop; ?>

    <?php while ( bb_forum() ) : ?>

    <?php if (bb_get_forum_is_category()) : ?>

    <tr<?php bb_forum_class(‘bb-category’); ?>>

    <td colspan=”3″><?php bb_forum_pad( ‘<div class=”nest”>’ ); ?>“><?php forum_name(); ?><?php forum_description( array( ‘before’ => ‘<small> – ‘, ‘after’ => ‘</small>’ ) ); ?><?php bb_forum_pad( ‘</div>’ ); ?></td>

    </tr>

    <?php continue; endif; ?>

    <?php if ($bb_forums_loop->walker->depth == 1) : ?>

    <tr<?php bb_forum_class(); ?>>

    <td><?php bb_forum_pad( ‘<div class=”nest”>’ ); ?>“><?php forum_name(); ?><?php forum_description( array( ‘before’ => ‘<small> – ‘, ‘after’ => ‘</small>’ ) ); ?><?php bb_forum_pad( ‘</div>’ ); ?></td>

    <td class=”num”><?php forum_topics(); ?></td>

    <td class=”num”><?php forum_posts(); ?></td>

    </tr>

    <?php endif; ?>

    <?php endwhile; ?>

    </table>

    <h2><?php _e(‘Latest Discussions’); ?></h2>

    <table id=”latest”>

    <tr>

    <th><?php _e(‘Topic’); ?> — <?php bb_new_topic_link(); ?></th>

    <th><?php _e(‘Posts’); ?></th>

    <!– <th><?php _e(‘Voices’); ?></th> –>

    <th><?php _e(‘Last Poster’); ?></th>

    <th><?php _e(‘Freshness’); ?></th>

    </tr>

    <?php if ( $super_stickies ) : foreach ( $super_stickies as $topic ) : ?>

    <tr<?php topic_class(); ?>>

    <td><?php bb_topic_labels(); ?> <big>“><?php topic_title(); ?></big><?php topic_page_links(); ?></td>

    <td class=”num”><?php topic_posts(); ?></td>

    <!– <td class=”num”><?php bb_topic_voices(); ?></td> –>

    <td class=”num”><?php topic_last_poster(); ?></td>

    <td class=”num”>“><?php topic_time(); ?></td>

    </tr>

    <?php endforeach; endif; // $super_stickies ?>

    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>

    <tr<?php topic_class(); ?>>

    <td><?php bb_topic_labels(); ?> “><?php topic_title(); ?><?php topic_page_links(); ?></td>

    <td class=”num”><?php topic_posts(); ?></td>

    <!– <td class=”num”><?php bb_topic_voices(); ?></td> –>

    <td class=”num”><?php topic_last_poster(); ?></td>

    <td class=”num”>“><?php topic_time(); ?></td>

    </tr>

    <?php endforeach; endif; // $topics ?>

    </table>

    <?php bb_latest_topics_pages( array( ‘before’ => ‘<div class=”nav”>’, ‘after’ => ‘</div>’ ) ); ?>

    <h2><?php _e(‘Hot Tags’); ?></h2>

    <p class=”frontpageheatmap”><?php bb_tag_heat_map(); ?></p>

    <?php if ( bb_is_user_logged_in() ) : ?>

    <div id=”viewdiv”>

    <h2><?php _e(‘Views’); ?></h2>

    <ul id=”views”>

    <?php foreach ( bb_get_views() as $the_view => $title ) : ?>

    <li class=”view”>“><?php view_name( $the_view ); ?>

    <?php endforeach; ?>

    </div>

    <?php endif; // bb_is_user_logged_in() ?>

    <?php else : // $forums ?>

    <div class=”bbcrumb”>“><?php bb_option(‘name’); ?> » <?php _e(‘Add New Topic’); ?></div>

    <?php post_form(); endif; // $forums ?>

    <?php bb_get_footer(); ?>

    #85887

    In reply to: how to move?

    The problem is resolved! =)

    #84946
    deadlyhifi
    Participant

    Have you looked at bb-includes/functions.bb-users.php?

    In

    function bb_send_pass( $user, $pass ) {
    if ( !$user = bb_get_user( $user ) )
    return false;

    $message = __("Your username is: %1$s nYour password is: %2$s nYou can now log in: %3$s nnEnjoy!");

    return bb_mail(
    bb_get_user_email( $user->ID ),
    bb_get_option('name') . ': ' . __('Password'),
    sprintf($message, $user->user_login, $pass, bb_get_uri(null, null, BB_URI_CONTEXT_TEXT))
    );
    }

    have you tried changing the bb_get_uri(null, null, BB_URI_CONTEXT_TEXT) to your web address?

    #85834

    In reply to: username function

    deadlyhifi
    Participant

    Have a look at bb-includes/functions.bb-template.php you’ll see the functions function get_post_author( $post_id = 0 ) and function post_author_link( $post_id = 0 ).

    You’ll need to recreate those in a plugin or in your functions file to use $user->user_login instead of $user->display_name.

    Have a look at profile.php in your theme to see how it is generated there. But remember that on post.php you’ll have to pass in the ID of the post to get the username otherwise you’ll be fetching details on the logged in user rather post author.

    I hope that helps, good luck.

    An easier way would be to take away the ability to allow change of display name. Then it will default to username anyway. Have a look at topic/help-with-basic-command-to-add-new-profile-fields if that’s the avenue you want to take. If you do, don’t forget to set everyones ‘nicename’ back to what their username is.

    #52921
    talatorre
    Member

    I am trying to integrate MediaWiki user authorization but after hours of searching I can’t find the code for AuthPress.php.

    http://spectaclar.org is no longer online. Can someone post the code here or link to a working site? If I can find the code I would love to resurrect this project; that is unless someone has a better way of creating a single sign on setup for WP, bbPress, and MediaWiki.

    Kevin Ryman
    Participant

    Thanks qayqay12! That worked! :)

    jdrancor
    Member

    Hi, I’m trying to list topics from the forum in a WP post. I’m wanting to just show the topics that have the same tags as the particular post that is being viewed.

    This is basically a display relevant posts. How can this be done? I’ve tried a bunch of PHP, but I’m not having luck navigating the codex between the two databases. I’ve mucked around alot, but I can’t get beyond the basic display the last 10 posts functionality.

    Here’s where I’m at: HELP?

    <?php

    global $wpdb;

    $query=”SELECT * FROM bb_topics WHERE topic_status=0 ORDER BY topic_time DESC LIMIT 10″;

    $results=$wpdb->get_results($query);

    foreach ($results as $result) {echo “

  • topic_id.”‘>”.$result->topic_title.”
  • “;}

    ?>

#85846
pagal
Participant

@ Gautam

it works :D

you are simply awesome…thanks dude… :-)

#85845
Gautam Gupta
Participant

@pagal

Where you have added that message, just before that add this:

<?php if ( !bb_is_user_logged_in() ) { ?>

And just after the message, add this:

<?php } ?>

#85512

In reply to: Toggle Forums

chrishajer
Participant

Right. The code can be improved. Please feel free to do so on your site. The owner of this site is not worried about it right now. There’s always room for improvement. Sometimes you need to just call it good and move forward.

#85511

In reply to: Toggle Forums

driz
Member

But that’s not the case with your code though.

#85743
wemaflo
Member

@Arturo:

That’s great! It would be very nice to release it in public ;) Thanks a lot!

#85742

Yeah! I just pointed it to be one of those things which need to be fixed.

Just get in touch with me when you release it. :)

Viewing 25 results - 21,826 through 21,850 (of 32,495 total)
Skip to toolbar