Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 17,201 through 17,225 (of 32,501 total)
  • Author
    Search Results
  • #110231

    Copy and paste the code you need into a custom widget like you were doing initially.

    #40590
    surrealalien
    Member

    Hey, pretty simple question, is it possible to use the PHP template codes within WordPress themes? If so, how?

    Also, how about tags inside posts/pages within WordPress, is that possible?

    Thanks.

    #106139
    Hard Seat Sleeper
    Participant

    Here are the steps I just took to install bbpress on a wp install and get a child theme started so I can develop with it. It assumes you have a mirror of your site files on your computer HD. Hopefully it will help someone.

    1) Install plugin on live site.

    2) Download

    /wp-content/plugins/bbpress/bbp-themes/bbp-twentyten

    to your computer, and copy folder and contents to

    /wp-content/themes/

    rename the folder if you want, so you have

    /wp-content/themes/newchildtheme/

    3) turn this into a child theme:

    https://codex.wordpress.org/Child_Themes

    (basically, add a “Template: ” parameter)

    4) Upload this new child theme to your server

    5) In the parent theme, add

    add_theme_support( ‘bbpress’ );

    to functions.php

    5) Upload functions.php to server

    6) Go to

    /wp-admin/themes.php?activated=true

    on your site and activate your child theme

    #40586
    stober
    Member

    Hey guys,

    I’m searching for an option to remove the sidebar from all subpages (topics, posts…).

    On my main forum page is no sidebar, because I use a template there, but on every other page there is a sidebar. Hope you understand what I mean. Just have a look here:

    http://www.abi13-ass.de/?page_id=127

    I tried a few things but nothing worked.

    I hope one can help me :)

    Greetings

    #110230
    shooo
    Member

    oO last replies are on ligne 749 no?

    but thank you, i change ligne 750

    <div id="lastreply">

    <?php while ( bbp_replies() ) : bbp_the_reply(); ?>

    <div class="post">
    <h4>

    <?php
    $author_link = bbp_get_reply_author_link( array( 'type' => 'both', 'size' => 60 ) );
    $reply_link = '' . bbp_get_reply_topic_title() . '';

    /* translators: bbpress replies widget: 1: reply author, 2: reply link, 3: reply date, 4: reply time */

    printf( _x( $show_date == 'on' ? '%1$s on %2$s, %3$s, %4$s' : '%1$s on %2$s', 'widgets', 'bbpress' ), $author_link, $reply_link, get_the_date(), get_the_time() );
    ?>

    </h4>
    <?php the_excerpt(); ?>

    </div><!-- fin de post -->

    <?php endwhile; ?>

    </div><!-- fin du last reply-->

    and it’s ok :) but I am afraid that the next bbpress update overwrites the change

    thx a lot for your help :)

    #40568
    dreamgrowers
    Member

    How do I password protect a Category? I would like to simply have a single password for a category.

    So for example Category 1 is Public, but Category 2 requires the password, “secretcode45”

    I’m sure this is a simple thing I’m overlooking, but thanks for any help!

    #110229
    Anointed
    Participant

    That is exactly why I mentioned the widget file. If you look closely at the code you will see that the widget code actually does use the wordpress loop.

    Check out line 542 where the arguments for the loop are set followed by a standard WordPress loop format. While the terminology is a little different, the concept of bbPress loops and WordPress loops is exactly the same.

    #110228
    shooo
    Member

    Thank you for your answer,

    But I can’t integrate the widget as I wish in my design.

    Indeed, I can’t integrate the excerpt of the replies, I can’t properly control the CSS and I can’t (of course) include the latest comments in the last forums’ replies.

    I started by looking at the widget code by default, but I can’t decrypt properly.

    query_posts is very simple and I usually use it in my templates; is much more customizable.

    #110227
    Anointed
    Participant

    the bbPress plugin comes with 2 widgets already. You can have both the most recent topics and most recent replies, plus a few others.

    If you are trying to build a custom widget, then look at the bbPress widget code file to see how it is done. It will help a lot.

    #40579
    shooo
    Member

    hello,

    I try desperately to create some kind of widget for my blog with last forum entries .

    I think query_posts was indicated because it is simple and effective.

    here is the code I use to fully control the design of my widget.

    <div id=”lastreply”>

    <?php

    query_posts(“post_type=reply”);

    while (have_posts()) : the_post();

    ?>

    <div class=”post”>

    <div class=”thumb”><?php echo get_avatar( get_the_author_id() , 60 ); ?></div>

    <h4>” rel=”bookmark”><?php the_title(); ?></h4>

    <small>De <?php the_author_posts_link(); ?> <span class=”red”>♥</span> <span class=”tag”><?php the_tags(‘#’,’, #’); ?></span></small>

    <?php the_excerpt(); ?>

    </div><!– fin de post –>

    <?php endwhile; ?>

    </div><!– last reply–>

    I have 3 problems so that my poor php skills prevents me to solve.

    1 / the title is not good, it starts with “reply to” it would have been clearer to the title of the topic directly.

    2 / the link isn’t the link to topic but the link for the answer!

    3 / but it’s going to be warmer, I wish to join the last replies to the last comment into a single widget, except that query_posts doesn’t work with the comments ^ ^

    would you have a little time to devote to my request? Thank you in advance.

    #100814

    In reply to: Where is the importer?

    citizenkeith
    Participant

    I’m getting the same errors that scribu described. I added his code to the config file, and I’m still getting that error.

    bbpress 1.1 and latest bbpress plugin (as of today).

    Standard integration, all plugins off and themes set to default.

    #105914

    In reply to: Where is the importer?

    citizenkeith
    Participant

    I’m getting the same errors that scribu described. I added his code to the config file, and I’m still getting that error.

    bbpress 1.1 and latest bbpress plugin (as of today).

    Standard integration, all plugins off and themes set to default.

    #110161

    In reply to: bbPress 2.0 Post Sync?

    L Croonquist
    Member

    Actually I totally got it :)

    I think bbPress is getting easier to use in later iterations or something (I wouldn’t want to attribute it to my skillful coding).

    It’s in a dev environment or I would shoot you guy the URL to check it out….

    Glad I went this route from the onset versus other choices to persue.

    RTBOP

    #110021
    Anointed
    Participant

    Did you ask Chris about the problem?

    As he is the author of Thesis, and a fantastic coder, I am sure that he has a simple solution.

    #40558
    niqlaz
    Member

    I installed Buddypress. Everything works great.

    I also installed the group forum in the buddypress settings panel. But than i realized it isn’t realy a public forum.

    So i installed the wide one (bbpress 2.0) actived the plugin, i can make forums, topics, reply in the dashboard. but i cannot view them on the website.

    I can go to a recent topic but i only see the Title of the topic and the message. I don’t see icons, no forum table, nothing. (see link below)

    http://www.joeristallaert.be/comm/forums/forum/testing-new-forum/

    Do i need to create pages? if so, what kind of content/code i need to insert.

    I also don’t understand the settings : Archive Slugs and single slugs. what do in need to fill in, in those fields.

    I tried changing permalinks, but i can’t otherwise my full buddypress won’t work.

    btw It should work with my Theme. Because the official Demo of this theme bbpress is integrated.

    Thank you.

    #40553
    sandmkt
    Member

    I’ve read all of the posts I can find about the issue with the attachments plugin on GoDaddy hosting, but I still have not been able to resolve it.

    I have the bb-attachments folder in my HTML root (because i can’t put it higher on GoDaddy).

    I changed the permissions to 777.

    I added the bb-attachments table in the database.

    I changed the path to: $bb_attachments=”D:Hosting5654851htmlbb-attachments\”;

    (I have also tried several other paths, none of which worked)

    When I upload an attachment (even a blank .txt file), it posts my comment but no attachment. No error message displays.

    HELP!

    brianhorn
    Member

    The main thing that is gone, is the formating of the content in the page. No line breaks:

    http://realestateauthority.net/about-us/

    ..and the images have some code around them too:

    http://realestateauthority.net/jamaica/jamaica-real-estate/

    Any idea how to fix this?

    #110140

    anointed – What plugins are you running?

    If it’s working on some and not on others, the odds are plugins are to blame :/

    #110184
    Anointed
    Participant

    That is all set in the root bbpress.php plugin file.

    I have never even thought about changing those locations, and I don’t think it is currently possible without hacking the heck out of the plugin as I see the dirs hardcoded throughout.

    Frankly, as they are internal links within the bbpress plugin, I can’t personally see any reason that I would ever want to change them, but whatever the reason that’s your business.

    I’m no developer, but I seriously doubt it’ll happen. JJ would have to speak to that… way out of my league.

    #110186
    Anointed
    Participant

    In loop-single-forum I use:

    <?php bbp_author_link( array( 'post_id' => bbp_get_forum_last_active_id(), 'type' => name ) ); ?>

    #110183
    Anointed
    Participant

    I took a quick peek at your link. Honestly I do not see anything at all which would cause the spacing like that.. it is very strange.

    One place you might try asking is over at css-tricks, as they have a great forum for css issues and Chris is a genious at that kind of stuff.

    As to removing the info boxes:

    Unless you have manually replicated all of the bbPress templates and added them manually to your theme, then you are actually using the bbPress twentyten theme templates. (they are found inside the bbPress plugin folder)

    In there you will find files like content-single-forum.php, content-single-topic.php, etc..

    In those templates are functions like:

    <?php bbp_single_forum_description(); ?>, <?php bbp_single_topic_description(); ?>, etc...

    Those are the functions used to output the information blocks. You would need to remove those lines from the files in order to get rid of the boxes.

    **Now obviously if you modify those files, then you will loose your changes every time you update bbPress, not advised….

    Instead check out the theme compatibility thread in the forums here to learn how to make child themes so you can make changes without loosing those changes.

    Or.. you can always take the ‘easy’ way out and simply add some css rules to your stylesheet to hide them. Not at all elegant but effective.

    .div.bbp-template-notice.info { display: none; }

    #40533
    ChrisOGwynne
    Participant

    <?php user_favorites_link(); ?>

    I can’t find the direct text in order to change what this says? Any assistance.

    Thanks

    #40532
    ChrisOGwynne
    Participant

    On the front page you havee

    Started By
    Chris
    7 hours

    The username however isn’t linked. Is there any tag which will link the post starters name?

    #110096

    In reply to: 'Before' pagination?

    Anointed
    Participant

    Maybe this will explain it a little better:

    <?php _e( 'Pages: ', 'wptumble' ); ?> <?php bbp_forum_pagination_links(); ?>

    That basically adds ‘Pages:’ right before the page links. The ‘downside’ is that ‘Pages:’ is output to the browser even if there are no links available.

    what I am trying to do is something like:

    <?php bbp_forum_pagination_links('before_links' => 'Pages:'); ?>

    #110095

    In reply to: 'Before' pagination?

    amirsaam
    Member

    In the Standalone I jus use this <?php bb_latest_topics_pages(); ?> for what you wanted :) Maybe you can use it by changing bb_ to bbp_ like something else that it worked!

Viewing 25 results - 17,201 through 17,225 (of 32,501 total)
Skip to toolbar