Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 24,151 through 24,175 (of 32,431 total)
  • Author
    Search Results
  • #76704

    In reply to: Forget Password link ?

    chrishajer
    Participant

    One subject per topic, please.

    To create a link to the lost password page, just use this URL and put it in your template file wherever you want to see it.

    <a href="http://www.example.com/bbpress/bb-login.php">Reset your password</a>

    Is it more complicated than that?

    #76730
    chrishajer
    Participant

    It looks to me like the link (only) is stored in the variable $src in the file bb-includes/functions.bb-pluggable.php line 928.

    $avatar = '<img alt="" src="' . $src . '" class="' . $class . '" style="height:' . $size . 'px; width:' . $size . 'px;" />';

    So, being that it’s in functions.bb-pluggable.php, I’d say you could probably come up with a plugin to return $src instead of $avatar, but I am unsure of how to do that right now. It’s available, we just need to figure out how to return it for you.

    #76779

    In reply to: Plugin custom pages

    yutt
    Member

    Alright, now I am having *serious* issues getting Rewrite Rules to work.

    I’ve done these dozens of times and they aren’t particular complicated, here is a brief example of what I am trying to do:

    RewriteBase /
    RewriteRule ^example/?$ /forum/bb-plugins/example/example.php [NC,L]
    </IfModule>

    Accessing ‘http://www.example.com/forum/bb-plugins/example/example.php&#8217; directly works perfectly. Accessing from ‘http://www.example.com/example&#8217; does a redirect to ‘http://www.example.com/forums&#8217;.

    There are NO other rewrite rules active. I even disabled those from bbpress to try to track down what is happening. But some sort of 302 redirect keeps occurring. Is bbpress triggering this internally somehow?

    #76778

    In reply to: Plugin custom pages

    yutt
    Member

    Okay, I ended up going a totally different route with this, I don’t know that it will work for everyone or if it is “proper”, but it works for me.

    my-plugin.php now has:

    include_once('my-plugin-core.php');
    include_once('../../bb-load.php');

    From there I check if the user is authenticated as an admin with:

    bb_ssl_redirect();
    bb_auth();

    After that I just call ‘my-function();’

    I will use mod_rewrite to make the URL less ridiculous.

    #20890

    Topic: Plugin custom pages

    in forum Plugins
    yutt
    Member

    Can plugins have their own standalone pages?

    I have a very basic plugin that attempts to do this, but it displays both my output, and then the entire index page below it. I suspect this has something to do with the ‘bb_get_location’ function, but I don’t know how to resolve it.

    my-plugin.php

    include_once(rtrim(dirname(__FILE__),' /\').'/my-plugin-core.php');
    if (isset($_GET['my-plugin'])) {
    add_action( 'bb_init', 'display_deals');
    }

    my-plugin-core.php

    echo "Example";

    Can someone tell me the proper way to do this? Do I need to link directly into the ‘/bb-plugins/my-plugin/’ directory?

    grassrootspa
    Member

    Thanks for your help, Detective. How would I implement your code with:

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

    Which is in Forum.php and Front-Page.php

    #76725

    It doesn’t look like bbPress has an extensive library of plugins like Word Press.

    bbPress JUST went live with the 1.x version. So yeah, there are few plugins. It’s a baby.

    Best is subjective. What do you need out of a forum? :)

    #74747

    Thanks for the link batrachoid… I’ll look around on there. :)

    #20512

    Hi there,

    I have a request from a user on my forums. I am running word press and bb press together. The user has an old account and would like to merge her newer account with the old account. I have no idea how to do this in phpmyadmin. If someone could possibly give me a detailed way on how to do this, that would be great. I am somewhat a noob to phpmyadmin. I know how to change display name/user names in phpmyadmin, etc but I have not done much else.

    Thanks,

    Adam :)

    #20482
    incirus
    Member

    Is there any way to get the image address of the avatar.

    What I mean is when I use bb_get_avatar( $user->ID) or post_author_avatar() I get the whole code like <img alt="" src="http://www.gravatar.com/avatar/d415555f00b204cfr535327e?s=80&d=identicon&r=g" class="avatar avatar-80 avatar-noemail" style="height:80px; width:80px;" />

    But all I need is the image address like http://www.gravatar.com/avatar/d415555f00b204cfr535327e?s=80&d=identicon&r=g

    djboddington
    Member

    wow thats good! Thanks for this :)

    #76701

    In reply to: Avatar Plugin Problems

    Can you link to the Avatars plug-in? I think there’s a few of them.

    I’m using Avatar Upload, and after some fiddling, it’s working great. :)

    I’m going to put in a standard disclaimer here: iframes are dangerous.

    Example: If someone manages to put in malicious code in a bbPress post and you edit it via the admin side using this plugin, it is possible you could bugger your WP install. Now it’s a slim possibility, but iframes are bad, evil and annoying and should be avoided if possible.

    Great idea for a plugin, use it responsibly, folks.

    #76394

    I’m not sure how I’d go about that, could somebody post a step by step tutorial? I’ve never dove this far into bbpress before.

    Thanks guys, I’d owe you one :)

    #52180
    anandasama
    Member

    I still dont know if you people managed to fix this but here is what worked for me after alot of trial and error:

    From the first-page:

    This code will generate a link to the original author’s profile and that one’s username.

    <a href="<?php user_profile_link(($topic->topic_poster)) ?>"><?php topic_author(); ?></a>

    And this code will make a link to the last user who posted and that one’s username.

    <a href="<?php user_profile_link($topic->topic_last_poster) ?>" class="latest-disc-last-poster"><?php topic_last_poster(); ?></a>

    Hope it helps!

    #72361

    In reply to: Bulgarian translation

    wiseacre
    Member

    Значи, не ми остана много време, но продължавам де … :) Намерих някои печатни грешки и неща, които ми се струва, че трябва да са малко по иначе.

    секудни – секунди

    пълен препратка – пълна препратка

    Ако позволиш да предложа следните промени

    месеци – месеца

    лепкава – залепена,закачена

    А следното общо предложение за превод е по-скоро въпрос на вкус (става и така и иначе) и лек келешлък от моя страна: ;)

    “Your attempt to … has failed.” – “… пропадна”

    Продължавам да ровя. Още веднъж – мерси за труда. :)

    Detective
    Member
    function gs_get_topic_last_poster_profile_link() {
    global $topic;
    if ($topic)
    return sprintf('<a href="%s">%s</a>', get_user_profile_link($topic->topic_last_poster), get_topic_last_poster($topic->topic_id));
    return false;
    }

    Ryan Hellyer
    Participant

    Thanks. I was considering making this exact plugin myself. Glad to see I don’t need to now :D

    #18819
    kevmartin
    Member

    I found some older posts about similar problems to this, but nothign that really helped, plus they were all for the 0.x versions and I am using 1.x which I am guessing may be different.

    I have combined bbpress and wordpress databases (WP 2.8) and all members have been set to inactive status. But I can’t find anything in Mysql to cause this, so can’t globally change them all to member status. They all seem to have the same bb_capabilities value as the couple of members who I have manually made to ‘member’ status, so that doesn’t help.

    And I have thousands of members so manually changing them all through the admin interface seems to be a nightmare.

    Can someone tell me what database fields to change to make a member to be a ‘member’ status please?

    Thanks.

    #74743

    Well iframes are, by their very nature, evil :/ I’ve never used that admin plugin, but I also don’t do a whole lot of embedding of Google Maps.

    #76287

    The plugin doesn’t add define('WP_AUTH_COOKIE_VERSION', 1); to your bb-config.php file. It’s very easy to miss that :)

    #75381

    In reply to: bbPress 1.0 released

    rtmsf
    Member

    Total newbie here, but I’m a blogger using WordPress 2.8.x who is thinking of adding a discussion forum to my site.

    I am NOT a coder whatsoever, so please keep that in mind when answering, although I do have a friend who is one but I would need to be conscientous about using his time.

    My question is whether bbPress 1.0 will easily integrate with WP 2.8.x as I have it currently configured. Obviously I’d want it to look similar to my site and have all the standard forum bells/whistles.

    If not, does anyone have any other suggestions? I just began researching forums today. I’ve come across IPB and phpBB as other options, but again, I have no idea how easy it would be to integrate those.

    Any help you can give would be GREATLY appreciated! Thanks.

    #18497
    #72360

    In reply to: Bulgarian translation

    Не държа – пропуснал съм няколко низа, в които го има, защото съм търсил за “впис”, а то имало и “впиш” тук-таме ;)

    Ще го оправя при следващото качване, когато трябва да завърша и на 100% превода.

    Аз го изпробвах веднъж от край до край, ама със сигурност има разни дребни неща :)

    #74864

    @Göran: It’s “great” that you have the same problem. Then it probably isn’t some server config hidden away somewhere and the problem will probably be solved pretty soon. ;-)

    Edit: Hm.. when i try to edit the languagefile with Poedit and choose to save it i get 3 fatal errors;

    23:04:20: F:Skrivbordetsv_SE.po:191: message catalog has plural form translations...
    23:04:20: F:Skrivbordetsv_SE.po:2: ...but header entry lacks a "plural=EXPRESSION" attribute
    23:04:20: F:Skrivbordetsv_SE.po:191: message catalog has plural form translations...
    23:04:20: F:Skrivbordetsv_SE.po:2: ...but header entry lacks a "nplurals=INTEGER" attribute
    23:04:20: F:Skrivbordetsv_SE.po:617: 'msgstr' is not a valid PHP format string, unlike 'msgid'. Reason: In the directive number 1, the character 'a' is not a valid conversion specifier.
    23:04:20: msgfmt: found 3 fatal errors

    Maybe it’s related?

    Update 2:

    Tried a Bulgarian translation and it did translate time. It must be something with 1.0+ that isn’t in 0.9 language wise.

Viewing 25 results - 24,151 through 24,175 (of 32,431 total)
Skip to toolbar