Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 31,501 through 31,525 (of 32,468 total)
  • Author
    Search Results
  • #53310
    ardentfrost
    Member

    Hmm, I don’t think any bbpress functions are loaded when your WP is loaded is it? If not, then you’ll have to build the link from scratch. Link building in bbpress is one of those things you just gotta figure out from doing it a few times (and staring at core code).

    Since you’re doing it specifically for your forums, it doesn’t necessarily have to be in plugin form (which is preferable for me since I never made WP plugins). So I would do something like this:

    Look at the code used to get the logged in user’s name.

    Get the ID of that user anyway you can (you can search the db for the username or use a wp function that I don’t know about).

    Start the link formation like $link = “http://zenhelix.us.to/forums/profile/”

    Then you can either add the user ID directly to the end using a regular expression ( add a .$userid to the end of the previous line) or just do $link += $userid;

    Setup the link with the a href and all that junk.

    I wish I could give you more specific code, but like I said, I’ve never done much WP coding.

    #53308
    ardentfrost
    Member

    I didn’t know jack about much of this stuff 2 months ago. I had programmed before, but nothing super special (I did an RSS parser for me and my friends’ main webpage, rayd.org). I just kinda got ambitious with this stuff.

    Everything you need to know to do this stuff is in the core code (I’ve pulled so many stylistic and methodological things from preexisting code) and php.net. The only thing you need beyond that is ambition. Mine pretty much peeked when I did Private Messages. I can’t think of another project that will require that much work (though I’m sure there are, I just can’t think of any for now). :)

    #53306
    ardentfrost
    Member

    I never get annoyed :)

    I’ve been so busy at work I haven’t had a chance to update my PM plugin yet. It’s still next on my docket. I’ll add your request to my list of things to do.

    Last time I sat down to work on it, I was having trouble adding a user search feature… so there’s still that ;)

    #53305
    vaelrith
    Member

    Will do, I check artentfrost’s forums about every day for a new plugin :) I think he might get annoyed with my constant requesting and never posting anything else…

    BTW, good work on those plugins artentfrost :)

    #53304
    Trent Adams
    Member

    Since the paths of where to pull the information for the PM plugin are hardcoded for bbPress installs, I don’t know if it is possible. Maybe drop a line to Ardentfrost at:

    http://www.rayd.org/forums/topic/44

    Trent

    #53136
    ardentfrost
    Member

    $first_post = $bbdb->get_results("SELECT * FROM $bbdb->posts WHERE topic_id = $topic->topic_id AND post_position = 1");

    That will give you the post OBJECT… from there you can pull out the text like this:

    echo $first_post->post_text;

    Or since it seems you want to pull out just the first little bit, just use a php string function to make it look and act like you want it to.

    It’s not the most eloquent method, but it’s certainly simple.

    #1221
    ear1grey
    Member

    My bbpress forum is now averaging one registration spam per day – where a user registers, adds their pills or porn site details to the website field, then never visits again.

    Check your registrations guys ‘n’ gals, you may find you have a lot of unwanted members (*cough*) linked from your sites.

    I’m thinking it’s time registration requests went through Akismet – but for this to happen there would have to be a UI for spotting false positives.

    See also: Links to bozos and blocked users.

    #53266

    This means that we translators will soon have a branch for our locale also as in wp ? :)

    #52422
    spencerp
    Member

    Thanks pontus. ;) :) I might try this then. However, I’m not one for core edits really, but I might give it a go, unless of course Josh comes up with something soon!? :P

    *cough* I really would like to see this, maybe, implemented in the .80 version.. *cough* lol..

    spencerp

    #53215

    Maybe add

    <php header("Location: path/to/your/page"); ?>

    to the top of your bbpress registration template?

    Just a thought.

    #1216

    Topic: bbPress integration

    in forum Themes
    silkjaer
    Member

    I am working on a danish Wii-portal site, and I have chosen to use bbPress/WP to do the job.

    The site is not officially launched yet, but is available at wiinyt.dk/secret/. Check out the bbPress at wiinyt.dk/secret/forum/.

    Browsing the site on the Wii scales everything up to fit the television perfectly :)

    #51223

    In reply to: 0.74

    Null
    Member

    Major changes like….. ?????? PLZZZ tell :)

    #53229

    In reply to: tag.php access issue

    chrishajer
    Participant

    Is it possibly related to cookies and the domains they come from?

    This problem can sometimes be caused by

    disabling or refusing to accept cookies

    My error was with Firefox 1.5.0.7 on Linux. Maybe it’s just coincidental it went away when the scripts were parsed by PHP5.

    #53226

    In reply to: tag.php access issue

    chrishajer
    Participant

    They will not offer to support .htaccess, but that’s OK as long as they let you use it.

    Put that .htaccess (make sure it starts with a period) in your forum root, with the line:

    AddType x-mapp-php5 .php

    in it.

    Then, make sure it’s working. Create a file called phpinfo.php in your forum root. Put this into it:

    <?php

    phpinfo();

    ?>

    Then, access that URL http://www.yoursite.com/forum/phpinfo.php. The resultant page will have the PHP version at the top. You want to see PHP5.x.x there, not PHP4.x.x. Try it both with and without the .htaccess to see if it changes. If it’s already parsing php files as PHP5, then we have to dig into what’s not working. If php files are still being parsed as PHP4, the we need to figure out if the htaccess is working or not, or in the wrong location or something.

    #50148
    A1ex
    Member

    There is an error in /bb-includes/template-functions.php file .

    In that file find

    ($smallest + ($count/$fontstep)."$unit;'>$tag n";

    and replace it with:

    ($smallest + (($count-min($counts))/$fontstep))."$unit;'>$tag n";

    #53134
    phollo
    Member

    guys, any other suggestion? :s

    #1214

    I’m working on the spanish translation and I’m having a problem.

    syntax error, unexpected $end in /…/bb-includes/gettext.php(307) : eval()’d code on line 1

    The error really comes from this line of code:

    $posts = sprintf('%1$s %2$s', $post_num, __ngettext( 'post', 'posts', $post_num ));

    And I guess it has something to do with the plurals (post and posts). I’ve generated the po file using poEdit.

    Does anyone have an idea of how to solve this?

    #53224

    In reply to: tag.php access issue

    chrishajer
    Participant

    Adding this to the .htaccess in the forum root did it for me:

    AddType x-mapp-php5 .php

    Basically, you need PHP5 to prevent that redirect error. If your server has PHP5, then this will resolve the issue for you.

    This problem was mentioned and resolved here before:

    https://bbpress.org/forums/topic/354?replies=11#post-1748

    #53223

    In reply to: tag.php access issue

    What version of bbPress are you using?

    Do you have a .htaccess file in bbPress’ bb-templates/ directory?

    #53213

    Glad it works :)

    #52999
    ostlund
    Member

    In bb_press 0.74 you need to change “init” to “bb_init” on line 48. Like this:

    add_action(‘bb_init’, ‘online_update’);

    And then it works again. ;)

    #53208
    ardentfrost
    Member

    Man, looks like I’ll have to move to some better forum software in the year 6354 then :D

    #53212
    ardentfrost
    Member

    Same thing happened to me in one of mine. I was using get_header instead of bb_get_header. Silly mistakes are the worst when you need help finding them ;)

    #53210

    Try

    $topics = bb_top_topics();

    as your first line.

    #1211
    Geezerjim
    Participant

    I am looking for some help with the plugin bb-ratings. Specifically the functions bb_top_topics. From what I gather it returns an array of topics in descending order of the votes the topics have received. I took that information and put the following in my front page template: <?php bb_top_topics();

    foreach ($topics as $topic) : ?>

    <tr<?php alt_class('forum'); ?>>

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

    </td>

    <td class="num"><div class="rating-holder"><?php bb_rating();?>

    <span class="count"><?php bb_rating_count(); ?>

    The problem is that it does not display the topics in descending order, it just displays all of the most recent in the order they were entered.

    I know the plugin page (bbpress.org/plugins/) has this function working as it should be.

    Thanks in advance for any help.

Viewing 25 results - 31,501 through 31,525 (of 32,468 total)
Skip to toolbar