Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 31,976 through 32,000 (of 32,410 total)
  • Author
    Search Results
  • #51659

    Ok, i gave it another try.

    Could you please try it? … On my site it works perfectly. I donno where the problem could come from.

    I wont give up till it works :D

    #51918
    so1o
    Participant

    try this

    <div class="the_content">

    <?php $blogposts = get_thread( $topic->topic_id); ?>

    <?php echo $blogposts[0]->post_text; ?>

    </div>

    #50410

    In reply to: Importing from vanilla

    ehm … i think with a lot of work it should be doable to grab the rss-feed, re-format it and put it into the bbpress database … but i can’t do that :-D

    #51657

    Maybe you were too fast for me to upload the new one =)

    Do you use permalinks? I only tried it without.

    For me it works (see on my demo-board).

    #51407

    It’s your choice where you put ‘show_online_users()’ in your template. I suggest the following way if you use default theme:

    – open bb-templates/front-page.php

    – search for line 5 – 8:

    <div id="hottags">

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

    <p class="frontpageheatmap"><?php tag_heat_map(); ?>

    </div>

    – replace with:

    <div id="hottags">

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

    <p class="frontpageheatmap"><?php tag_heat_map(); ?>

    <h2><?php _e('Online'); ?></h2>

    <?php show_online_users(); ?>

    </div>

    – save as my-templates/front-page.php

    I’ll fix the database setup and some other things as fast as i can =)

    #edit: new version up, feel free to try it out

    #51915
    Trent Adams
    Member

    One thing I did extra Spencer was add the cookie information for my domain in config.php in bbPress.

    $bb->cookiedomain = '.trentadams.ca';

    $bb->cookiepath = '/';

    Maybe try that. As well, I am sure you have it already, but wp_home and wp_siteurl can’t have slashes at the end of each of them.

    The bbpress-integration plugin in WordPress. All I did was edit the option to have bb_ as the prefix and even though it was listed already, I always save the option again. Superstition I guess.

    The WordPress-integration plugin was just thrown in my-plugins/ forlder in bbPress. It just works.

    Can you give me anything else that might help you with this one?

    Trent

    #51920
    Trent Adams
    Member

    The profile link comes up when you are logged in. Therefore, the code is in bb-templates/login.php and bb-templates/login-form.php. They could be in my-templates/ if you edited them.

    If you are talking about the code for when you view a user, the “Profile Edit Favorites” link then this is the code for profile.php in the same template directory:

    <?php elseif ( $user_id == $bb_current_user->ID ) : ?>

    <p><?php printf(__('This is how your profile appears to a fellow logged in member, you may <a href="%1$s">edit this information</a>. You can also <a href="%2$s">manage your favorites</a> and subscribe to your favorites’ <a href="%3$s"><abbr title="Really Simple Syndication">RSS</abbr> feed</a>'), get_profile_tab_link( $user_id, 'edit' ), get_favorites_link(), get_favorites_rss_link()) ?></p>

    <?php endif; ?>

    The tags are arranged vertically and I don’t know how difficult it is to change that. You could move the tags code to the bottom of the post and under the reply box, but if that isn’t what you want and want to limit to 10 tags, it might require a core hack or plugin. Neither that I can help with, sorry.

    Limiting users with tagging is not something bbPress is setup to do because unless the user is marked by the system as BOZO, all members are treated equal for simplicity reasons.

    Trent

    #51269
    so1o
    Participant

    with the change set 554 you can now create a function to sort the tags in array as you like and add a filter to sort_tag_heat_map

    add_filter('sort_tag_heat_map', 'your_custom_sorting_function')

    #1034
    pontus
    Member

    I have worked on my forum for some time: http://www.crazy-media.com/bbpress/

    Well, i guess i messed something up, the “profile” menu that used to appear at the top-right corner disappeared. Anyone know how to cal the function?

    One other, not releated, problem is that if you tag a forum to much the post disappear longer and longer down the screen. Do anybody know how to limit the tags shown at a topic to maby 10. And is it any way to disallow unregister users to add and remove tags? Some idiots “may” remove every tag and add something like “hitler and anal sex i greate” like 200 times… :-?

    #1033

    I’d like to change the profile page to look more like a blog, so I want to have the user’s info on the left and the topics that they’ve started listed down the right complete with text and a link to the topic to read the comments (replies). Right now I’m stuck on how to show the text of the topic post. Here’s what I’ve got so far:

    <?php foreach ($threads as $topic) : ?>

    <div class="post">

    <h2 class="posttitle">

    <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a>

    </h2>

    <p class="postmeta"><?php printf(__('posted %s ago'), get_topic_start_time()); ?>

    <div class="the_content">

    <?php post_text(); ?>

    </div>

    </div>

    <?php endforeach; ?>

    but post_text() just returns the text of the first topic for all the topics, instead of each topic showing the text that it’s supposed to.

    Thanks for any help…

    (by topic, I mean the first post of a thread – just so we’re clear)

    #846

    I’ve just installed bbforum to test and play around with, but have hit a niggling problem – I hope people can help.

    In the breadcrumb navigation for tags, urls of this forum work:

    http://www.learning2goblog.org/bbforum/tags.php?tag=bbpress

    but if I click onto the “Tags” link in the breadcrumb navigation (i.e. I open

    http://www.learning2goblog.org/bbforum/tags.php), the page does not load, and in Firefox I get the message


    The page isn’t redirecting properly

    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

    * This problem can sometimes be caused by disabling or refusing to accept cookies.


    Has anyone else experienced this problem? I’m using the latest version of bbforum, no permalinks.

    Thanks for any help you can give.

    #1032
    spencerp
    Member

    As I had said in my blog post, I have those plugins up and running, but.. the problem is that those that register on the bbPress forums, are not able to post comments on my blog, as their username..? =/

    Plugins are:

    WordPress Integration (0.7)

    bbPress Integration (0.72)

    Display-Name

    bbPress Post (0.02)

    It’s not pulling their email address, and their nicknames have to be assigned by me, in the blog’s control panel, under USERS? =/ I’d hate to have to edit each USER on my blog, so they can post as their “nickname or username”.. rather then “Anonymous”..

    Anyone with suggestions, and so forth?

    spencerp

    #51406
    topiq
    Member

    i have a slight problem…

    i added the entry to my DB by hand but then i dont know where exactly i should exactly add the code…

    thx for your help!

    #51906

    In reply to: bug

    Trent Adams
    Member

    It would be a bug with the default template because it isn’t wide enough for the username, but not bbPress. I could suggest a fix for this, but it would only be widening the left portion and decreasing the right portion of the template. Simple change to the style.css file.

    Strange, I wondered about this as well :-)

    #51757
    Trent Adams
    Member

    I found a topic by searching for:

    bb_get_user needs a numeric ID

    That brought up another post where there was a quick fix for the profile page. Maybe that one can help you?

    Trent

    #51912
    piper5ul
    Member

    My bad. resolved it –

    https://bbpress.org/documentation/faq/#pretty-permalinks

    I had enabled pretty permalinks but had no .htaccess file.

    in the /forums/ directory I created a .htaccess file and added the line

    Options +MultiViews

    as per instructions and it worked like a charm.

    #1030

    Topic: Help with a plugin

    in forum Plugins
    ardentfrost
    Member

    I wanted a way to let the topics listed under “Latest Discussion” expire after a while (eg., no longer show up if there has been no activity after a week), so I wrote this little plugin which works alright, except it messes up the forums. Each forum, when clicked, shows all posts no matter what forum they’re in.

    Any help would be appreciated. This is a simple script, I just copied the $where code from functions.php and added the filter, then added my “expire after 7 days” addition. Any help would be appreciated, I’m probably just not seeing something simple.

    function get_where_plugin() {

    $forum = (int) $forum;

    $where = 'WHERE topic_status = 0';

    if ( $forum )

    $where .= " AND forum_id = $forum ";

    if ( !empty( $exclude ) )

    $where .= " AND forum_id NOT IN ('$exclude') ";

    if ( is_front() )

    $where .= " AND topic_sticky <> 2 AND SUBDATE(NOW(), INTERVAL 7 DAY) < topic_time "; // 2nd part is my addition

    elseif ( is_forum() || is_view() )

    $where .= " AND topic_sticky = 0 ";

    return $where;

    }

    add_filter ( 'get_latest_topics_where', 'get_where_plugin' );

    To see how it’s misbehaving, you can go to http://www.rayd.org/forums/ and just click on either forum (General Chat or New Forum Discussion) and see that both contain the same data. However, it’s working great on the front page.

    #50407

    In reply to: Importing from vanilla

    bruz
    Member

    Same over here – I need a convertor to switch… really can’t do this by hand :-)

    #51654
    Trent Adams
    Member

    This plugin is causing me some errors. It has to do with the portion of the plugin:

    extra_profile_info

    Not sure why, but it kills me registration on the forum. Instead of the ‘register’ button, it spits out the following error:

    bb_get_user needs a numeric ID

    If goes back to working if I delete the plugin. Could you maybe take a look into this one?

    Thanks,

    Trent

    #51895

    OK sorted it out and yes – as you guessed it was my fault! As usual :)

    I’d pasted the Akismet key into config.php but because it previously defaulted to false I ommited to add quotes around it which it needed. Add the quotes and it installed.

    I’m probably not the first with this one and almost certainly wont be the last!

    Thanks for your time and effort.

    #49739

    In reply to: Email subscription

    #51144

    In reply to: Private Forum script

    Trent Adams
    Member

    Good thinking. Using the logged in status natural to bbPress to do this. Just looking at the code it would work, but I will test this out on my dev forum and report back as well. I could see this expanded into a plugin very easily….

    Trent

    #51887
    spencerp
    Member

    Nevermind! I figured it out, whooami had made some changes to a couple files, to help fight off spammers.. The changes were made to the theme’s comments.php file, and the wp-comments-post.php file.. except when I had upgraded the blog to 2.1 alpha3, I didn’t re-add those changes to the 2.1 alpha3 wp-comments-post.php file..

    All is good now!! =)

    spencerp

    #907
    #51885
    spencerp
    Member

    UPDATE: Maybe Trent might know the answer to this one, but.. when trying to post a comment (while I’m logged in, not sure about others that are not though), it spits the following Error: “Error: please type a comment.”

    If you want, please feel free to try it here:

    http://www.spencerp.net/id/334#respond

    If anyone has any suggestions, please let me know, ok? Thanks for your time! ;) =)

    spencerp

    P.S. OR, aren’t you supposed to have the “comments link” on there..? =/

Viewing 25 results - 31,976 through 32,000 (of 32,410 total)
Skip to toolbar