Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 31,851 through 31,875 (of 32,294 total)
  • Author
    Search Results
  • #51949
    Trent Adams
    Member

    It isn’t put in as an option, (though it would be easy to do), but all it really is, is adding SQL statement to exclude a forum. Maybe a guy should put a plugin code option for number of posts displayed as well as excluding a forum.

    Trent

    #51948
    Atsutane
    Member

    Glad to see someone is using my plugin :) The plugin has been listed before but it gone now, thank’s for re-posting it.

    Maybe u can send me the fix and i add it into the plugin.

    #51842
    spencerp
    Member

    Anyone? Do you think we can get the “file changes” or whatever, to be able to display [Resolved], by the thread’s title, that are marked Resolved? Just was wondering.. ;) :)

    I noticed this in: formatting-functions.php near the end, for [Closed]..

    function closed_title( $title ) {

    global $topic;

    if ( '0' === $topic->topic_open )

    return sprintf(__('[closed] %s'), $title);

    return $title;

    }

    Maybe if there’s a way to add one for [Resolved]… ? lol!!

    spencerp

    #51910

    In reply to: Help with a plugin

    spencerp
    Member

    so1o, you’re awesome! Thanks alot!

    In /index.php, made it like this:

    $topics = get_latest_topics(0,1,3,4,’2′);

    Now the ones from the “Blog Article Discussion” forum, are NOT showing in the “Latest Discussion” section.. :) ;) Thanks again!

    However.. when I did try that plugin option, it deleted ALL the threads, except for the Blog Article Discussion posts.. but, I think that’s because I used the wrong id for the forum.. lol..

    When hovering over the “Blog Article Discussion” forum, it shows as “3” being the “id”.. but, in the admin control panel.. I assigned “2” for it.. so, that’s what the problem was.. Anyway.. she’s working now! Thanks again!!

    spencerp

    #51909

    In reply to: Help with a plugin

    so1o
    Participant

    Spencer

    two ways..

    1) edit /index.php

    change line 12 to

    $topics = get_latest_topics(0,1,'x');

    where x is the forum id of the ‘Blog Article Discussions’ forum

    2) plugin

    create a file named my-own-blog-forum-filter.php plugin in the my-plugins directory.. or any name you want.. and have the following code in it

    <?php

    function my_frontpage_forum_filter($where) {

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

    }

    add_filter('get_latest_topics_where', 'my_frontpage_forum_filter');

    ?>

    again replace x with the forum id that you need

    #51908

    In reply to: Help with a plugin

    spencerp
    Member

    ardentfrost, maybe you can help me..? I’m using the bbPress Post (0.02) by mByte, and with his plugin.. I had made a forum for the blog posts to show up, however.. I would like to make the blog posts, stay ONLY IN the “Blog Article Discussions” forum..

    Instead of them showing up in the “Latest Discussions” part of the forums index page.. And just have ONLY the threads made in the forums, show in the “Latest Discussions” section of the forum.. Is there maybe something that could be done for this?

    I’m basically asking to exclude one of the forums, from the “Latest Discussions” section. Thanks in advanced.. :) ;)

    spencerp

    #51281
    BrendonKoz
    Member

    Since Ahni was interested, and I’ve been itching to do a conversion script to see how easy/hard it can be, I figured I’d chime in. I’m not familiar with either application’s inner workings, but looking at a database and comparing — now that I can get into! :P

    So, technically, I’m only interested to do a direct convert based on what he wants, if I get around to it at all (don’t want to make any promises here). Anyone else would be more than welcome to modify whatever code I write later on. I can make it publically available. Should be pretty simple, I would think.

    #50837

    In reply to: Error for tags.php

    so1o
    Participant

    double check the $bb->domain and $bb->path variables..

    make sure you have the latest code..

    disable any plugins you have… specially if they have a filter applied to bb_tags.php

    also do you have custom templates or have you modified templates..

    #51916
    spencerp
    Member

    Trent, you’re so awesome!! After talking with Trent on GoogleTalk, he has helped me get this problem squashed! And, I had to slap myself twice, because I didn’t upload the bbPress Integration plugin, to my wp-content/plugins folder…

    Thanks again for letting me know that Trent.. as well as the cookiedomain settings you gave above! ;) :)

    spencerp

    #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.

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