Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 24,601 through 24,625 (of 32,432 total)
  • Author
    Search Results
  • #75140
    johnhiler
    Member

    Yes, you can integrate your user databases and then cookie integrate. :-)

    Two questions:

    * Do you want to combine your two user account systems? If so, how will you handle it when two accounts have the same name in each system?

    * What version of WordPress are you using?

    #75137
    bobbyh
    Member

    I think maybe it’s a bug? The code at line 657 is:

    return sprintf('<img src="$1%ssupport-forum-$2%s.png" alt="[$3%s]" title="[$3%s]" style="vertical-align:top; margin-right:0.3em; width:14px; height:14px; border-width:0;" />$4%s', $this->iconURI, 'sticky', __('sticky', 'support-forum'),$label);

    Instead of $ 1 % (added spaces so it’d render on bbpress) shouldn’t it be %1$? c.f. http://us3.php.net/manual/en/function.sprintf.php

    Likewise, replace all the other integers, e.g. it should be %2$.

    Oddly, this function was changed in 3.0.2.

    You can reverse the $ and % signs here and in the other function at line 680.

    #74728
    the_Wish
    Member

    This, however, is still true. Has anyone else encountered this trouble?

    Trying to determine if it’s a plugin in need of update, or if it’s an error on my part, or an actual issue in RC3.

    Ok, so I’ve just revisited the additional code issue for my forum and it is indeed the “Allow Images” Plugin that triggers this behaviour. Not only does it scramble your IMG codes, but all other codes as well. It didn’t do this up to RC1 though.

    It’s working now for me and I used the chance to also upgrade my custom theme to Kakumei RC3 Standards which, yes, involved the deactivation of the external Page Links plugin.

    Works good now.

    #73775
    bobbyh
    Member

    topic_tags() will invoke the topic-tags.php file in your template (or if that file doesn’t exist in your template, in the default template).

    At the bottom of the code in that template, there is a tag_form(); invocation. To not have the form appear, you could try invoking the rest of the code on that page (without that tag_form invocation).

    The “delete tag” link will appear as long as you are logged in as an admin. It won’t appear to most users when you’re not logged in. So you shouldn’t worry about that appearing. :-)

    Rhys Wynne
    Participant

    That was it!

    Thanks :)

    Rhys Wynne
    Participant

    Hi all!

    I’m upgrading a plugin to use the administration menus, rather than editing within the plugin itself. I have used admin functions before (such as add_action), but for the life of me I can’t figure out why I’m having problems adding it this time around.

    Basically, on activation of the following plugin I get a “this plugin has caused a fatal error” (but it is activated), and on deactivation I get “Warning: Cannot modify header information – headers already sent by (output started at /home/britain/public_html/forum/bb-plugins/top-posters-code.php:32) in /home/britain/public_html/forum/bb-includes/pluggable.php on line 232”.

    Here is the code

    <?php
    /*
    Plugin Name: Show Top Posters (backup)
    Plugin URI: http://www.gospelrhys.co.uk/bbpress-plugin-show-top-posters
    Description: Readers with the most postes are displayed on your bbpress forum, with their names (linked to their website if they provided one). Based on the <a href="http://www.pfadvice.com/wordpress-plugins/show-top-commentators/" target="_blank">Show Top Commenters</a> plugin for WordPress by <a href="http://www.savingadvice.com" target="_blank">Nate Sanden</a>
    Version: 1.2
    Author: Rhys Wynne
    Author URI: http://www.gospelrhys.co.uk
    */

    add_action('bb_admin-header.php', 'show_top_posters_admin_page_default');
    add_action('bb_admin_menu_generator', 'show_top_posters_add_admin_page');

    function show_top_posters_add_admin_page() {
    bb_admin_add_submenu(__('Show Top Posters'), 'use_keys', 'show_top_posters_admin_page');
    }

    function show_top_posters_admin_page_default() {
    echo "test";
    }

    function show_top_posters_admin_page() {
    echo "test";
    }

    function show_top_poster_text() {
    echo "test";
    }

    ?>

    Any suggestions?

    #75128
    Sam Bauers
    Participant

    You aren’t inside a function so there’s no need to globalise $bbdb.

    This will get you every user (including all meta) into the array $users:

    $user_ids = $bbdb->get_col( "SELECT ID FROM $bbdb->users WHERE user_status = 0 ORDER BY id;", 0 );
    $users = bb_get_user( $user_ids );
    print_r( $users );

    #75127
    chrishajer
    Participant

    Hopefully this is only a typo here, not in your actual code:

    global $bddb;

    Should be $bbdb.

    #75118
    chrishajer
    Participant

    I am guessing you need to change your

    RewriteBase

      from

    RewriteBase /

      to

    RewriteBase /forum/

    where forum is the name of your subfolder.

    #15111
    iang
    Member

    I want to display a list of all the users on my blog (wbs80.com) and their profile information.

    I have been looking at the bbpress code and trying several tests…but unfortunately without success.

    My approach is to get the list of profile keys, get the list of users and for each user display the username and profile information. The code segment that I have is:

    <?php

    require_once (‘../../bb-load.php’);

    global $bddb;

    $profile_keys = get_profile_info_keys();

    //print_r($profile_keys);

    $userinfo = $bbdb->get_results(“SELECT * FROM $bbdb->users WHERE user_status = 0 ORDER BY ‘ID'”);

    //print_r($userinfo);

    foreach ($userinfo as $key) {

    $metainfo = $bbdb->get_results(“SELECT * FROM $bbdb->usermeta WHERE user_id = $key->ID”);

    // ???

    }

    ?>

    I don’t know how to use the “profile_keys” value(s) to access the “metainfo” data structure and extract the data.

    Any help would be greatly appreciated!

    #75113

    In reply to: Logging Out Error?

    johnhiler
    Member

    This plugin should do something similar, and hopefully won’t give you any errors. :-)

    https://bbpress.org/plugins/topic/members-online/

    #75088
    Detective
    Member

    The .htaccess code redirects all POST requests to register.php to another url if the request doesn’t have a referer from my own forum.

    The code is originally from here: http://wpmututorials.com/how-to/spam-blogs-and-buddypress/

    #75117
    michael3185
    Member

    Ah, that I haven’t. I copied it into the folder. Mind you, it doesn’t seem to have anything defined in it which points to the old path. Here’s the content;

    Options -MultiViews

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^pm/?(.*)$ /my-plugins/bbpm/index.php?$1 [L]
    RewriteRule ^page/([0-9]+)/?$ /index.php?page=$1 [L,QSA]
    RewriteRule ^forum/([^/]+)/page/([0-9]+)/?$ /forum.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^forum/([^/]+)/?$ /forum.php?id=$1 [L,QSA]
    RewriteRule ^forum/?$ / [R=302,L,QSA]
    RewriteRule ^topic/([^/]+)/page/([0-9]+)/?$ /topic.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^topic/([^/]+)/?$ /topic.php?id=$1 [L,QSA]
    RewriteRule ^topic/?$ / [R=302,L,QSA]
    RewriteRule ^tags/([^/]+)/page/([0-9]+)/?$ /tags.php?tag=$1&page=$2 [L,QSA]
    RewriteRule ^tags/([^/]+)/?$ /tags.php?tag=$1 [L,QSA]
    RewriteRule ^tags/?$ /tags.php [L,QSA]
    RewriteRule ^profile/([^/]+)/page/([0-9]+)/?$ /profile.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^profile/([^/]+)/([^/]+)/?$ /profile.php?id=$1&tab=$2 [L,QSA]
    RewriteRule ^profile/([^/]+)/([^/]+)/page/([0-9]+)/?$ /profile.php?id=$1&tab=$2&page=$3 [L,QSA]
    RewriteRule ^profile/([^/]+)/?$ /profile.php?id=$1 [L,QSA]
    RewriteRule ^profile/?$ /profile.php [L,QSA]
    RewriteRule ^view/([^/]+)/page/([0-9]+)/?$ /view.php?view=$1&page=$2 [L,QSA]
    RewriteRule ^view/([^/]+)/?$ /view.php?view=$1 [L,QSA]
    RewriteRule ^rss/?$ /rss.php [L,QSA]
    RewriteRule ^rss/topics/?$ /rss.php?topics=1 [L,QSA]
    RewriteRule ^rss/forum/([^/]+)/?$ /rss.php?forum=$1 [L,QSA]
    RewriteRule ^rss/forum/([^/]+)/topics/?$ /rss.php?forum=$1&topics=1 [L,QSA]
    RewriteRule ^rss/topic/([^/]+)/?$ /rss.php?topic=$1 [L,QSA]
    RewriteRule ^rss/tags/([^/]+)/?$ /rss.php?tag=$1 [L,QSA]
    RewriteRule ^rss/tags/([^/]+)/topics/?$ /rss.php?tag=$1&topics=1 [L,QSA]
    RewriteRule ^rss/profile/([^/]+)/?$ /rss.php?profile=$1 [L,QSA]
    RewriteRule ^rss/view/([^/]+)/?$ /rss.php?view=$1 [L,QSA]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^.*$ /index.php [L]
    </IfModule>

    I have no idea what any of it does!

    #75124
    chrishajer
    Participant

    That table name looks wrong (based on the table name from the Simple Online List you posted in the other topic). What version of bbPress are you using and how are you getting the avatars to show? Plugin?

    monstet5_bbp01.bb_online

    Looks like monstet5_bbp01 is the database name, and bb_ is the table prefix, and online is the table name created by the Simple Online List?

    If that’s the case there, how do you have an options table here with no table prefix, just a database name?

    Unless you used bbp01. as your table prefix instead of bbp01_?

    chrishajer
    Participant

    Also, can you get phpinfo() for your server? Just put this into a file and call it up in a browser:

    <?php
    phpinfo();
    ?>

    If you save that as a file called info.php, you can load in your browser at http://www.example.com/info.php or http://www.example.com/bbpress/info.php depending on where you installed it.

    #75114
    johnhiler
    Member

    When you run this query, does your old URI show up anywhere?

    SELECT * FROM bb_topicmeta WHERE meta_key=’uri’

    As for the word “slugs”, I’m pretty sure it comes from typesetting. :-)

    http://en.wikipedia.org/wiki/Slug_(typesetting)

    #75033
    r-a-y
    Participant

    Hi Sam,

    Did the var_dump.

    Here’s the result:

    array(2) {
    [0]=>
    string(1) "2"
    [1]=>
    string(1) "1"
    }
    string(0) ""

    [EDIT]

    I should state that I forgot to clear the memcached service. How do I go about doing that?

    #75109
    _ck_
    Participant

    It sends all the invisible code before the webpage that your browser requires to understand the language, etc.

    In theory commenting it out is very bad but for some reason with bb-gzip it’s being triggered twice which should not happen and is bad. The fix I gave you is a lazy workaround for now until I have time to address it properly one day (and might need a completely different fix with bbPress 1.0.1 etc)

    Sam Bauers
    Participant

    The favourites RSS feed was always public, for some reason the page was made private in the past. We decided (me and mdawaffe) to just make it public from now on instead of getting rid of the RSS feed.

    If you don’t want it to be public then you’ll need to write some plugin code to make that happen, just remember to kill the RSS feed as well.

    #51708
    lemonade-joe
    Member

    Hi, I am trying to use this plugin on a site running in Slovak language, that means, I need to use special characters. I am not good with php, so forgive me, if am not technical enough :)

    The system e-mails (like registration) are working fine. However, when sending mail through Post Notification, the special characters are messed up.

    When I was checking the source code of the mails, I have discovered, that the registration mails contain the line “Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=”UTF-8″”.

    The Post Notification mails (also the Report Post plugin mails) do not contain any charset specification (the source code contains this: X-Amavis-Alert: BAD HEADER SECTION, Non-encoded 8-bit data (char C3 hex).

    Can that be the source of my problem, if yes, how can I solve it?

    #15104
    lemonade-joe
    Member

    Hi, I am trying to use Post Notification and Report Post plugins on a site running in Slovak language, that means, I need to use special characters. I am not good with php, so forgive me, if am not technical enough :)

    The system e-mails (like user registration) are working fine. However, when sending mail through Post Notification, or Report Post plugin, the special characters are messed up.

    When I was checking the source code of the mails, I have discovered, that the registration mails contain the line “Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=”UTF-8″”.

    The Post Notification mails (also the Report Post plugin mails) do not contain any charset specification (the source code contains this: X-Amavis-Alert: BAD HEADER SECTION, Non-encoded 8-bit data (char C3 hex).

    Can that be the source of my problem, if yes, how can I solve it?

    #75048
    Josh Leuze
    Member

    Thanks so much for the links Ipstenu!

    I figured if there was a way out of YAF, it would most likely be to phpBB. Surprised I didn’t find this in my own searches.

    If I can just get this data out of YAF, I think it will all be downhill from there :)

    #75107
    _ck_
    Participant

    Michael3185, something in your setup is causing bb_send_headers to be sent twice.

    Try commenting out line 10 in super-search-init.php

    // bb_send_headers();

    #75083
    Detective
    Member

    I also have this in my .htaccess:

    # BEGIN ANTISPAMBLOG REGISTRATION
    RewriteEngine On
    RewriteCond %{REQUEST_METHOD} POST
    RewriteCond %{REQUEST_URI} .register.php*
    RewriteCond %{HTTP_REFERER} !.*ryuuko.cl.* [OR]
    RewriteCond %{HTTP_USER_AGENT} ^$
    RewriteRule (.*) http://www.dii.uchile.cl/ [R=301,L]
    # END ANTISPAMBLOG REGISTRATION

    The dii.uchile.cl url is an internal joke :P

    #75030
    Sam Bauers
    Participant

    @r-a-y

    Can you please do a var_dump($cached_ids) so we can find out exactly what the value of $cached_ids is?

    Just before line 71 in that file would be the spot, before $_cached_ids = join( ',', array_map( 'intval', $cached_ids ) );

    It should output something useful to the screen.

Viewing 25 results - 24,601 through 24,625 (of 32,432 total)
Skip to toolbar