Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 24,276 through 24,300 (of 32,570 total)
  • Author
    Search Results
  • #65190
    Detective
    Member

    New version 1.2.

    Now it doesn’t require template edits :)

    kickerman360
    Member
    <td class="num">
    <?php
    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;
    }
    ?>
    </td>

    Nemphtis
    Member

    I’ve been using phpBB3 up until yesterday when it decided to go crazy for no reason and die. It was a good chance to change to bbPress as I had been considering it for a while. I’m loving the idea of users tagging topics but I can’t seem to find a way to edit tags like you can in WordPress’ control panel. I’m a bit of a perfectionist and people are creating tags with wrong capitalisation so any new tags that have correct capitalisation are automatically converted to the original incorrect form. Are there any plugins out for editing bbPress tags, or any way I can quickly modify them without a plugin? :)

    #75701
    kickerman360
    Member

    Make sure you have inserted the code.

    Refer to the installation notes you should have got with your download.

    #72362

    In reply to: Bulgarian translation

    Благодаря за корекциите :)

    [залепена] ми харесва

    а на българските форуми на wordpress.org е използвано [важно], което носи повече смисъл, макар да е разлино от [sticky]

    “Your attempt to … has failed.” – за превода на тези фрази се водих от превода в WordPress, за да е един и същ стандарта

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

Viewing 25 results - 24,276 through 24,300 (of 32,570 total)
Skip to toolbar