Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 31,876 through 31,900 (of 32,467 total)
  • Author
    Search Results
  • #52320
    spencerp
    Member

    Nice job! This is awesome, thank you so much for sharing this, with everyone.. ;) :)

    spencerp

    #49422

    In reply to: Importing from phpBB

    Anonymous User 133554
    Inactive

    Hi,

    I enhaced the excellent Bruno Torres’ script and made it able to import bbCode, as well as to cleanly import topics marked as closed, sticky and announcements, as well as some other improvements and bugfixing.

    Have a look at this: https://bbpress.org/forums/topic/402

    #1079
    Anonymous User 133554
    Inactive

    Hi!

    I switched my site’s phpBB forum to bbPress, and I’ve released the script I used for this purpose under the terms of the GPL.

    It’s largely based on the excellent starting point from Bruno Torres, to which I added some new features — like bbCode conversion with clean XHTML 1.1 compliant output, smily to text transcription, and the ability to import topics marked as closed, sticky and announcements as such.

    I made also some little bugfixing, and the resulting script was able to cleanly import almost everything valuable from my old phpBB database.

    You can have a look here if interested: http://www.iteisa.com/phpbb2bbpress/

    Hope it helps to spread bbPress and web standards all around! ;-)

    #50144
    weirdtherapy
    Member

    thx for this thread – i have been searching too :)

    i don’t know if it might be useful but i don’t know why that happend so i just post it here:

    it now works with this code:

    <?php tag_heat_map( 10, 20, ‘px’, 20); ?>

    but before tried the same with:

    <?php tag_heat_map( 10, 26, ‘px’, 20); ?>

    same line – only one number different – and it showed 26px as minimum and one of the bigger ones had 42px size

    anyone knows why?

    I don’t know much about php and i can’t imagine how this could be a bug – but i don’t know how this can happen either

    #50189

    It appears to be an IE6 / CSS issue. The class works properly in Firefox, but as the original post notes, IE picks up the deleted.alt class as the alternate background color for listed forums, topics, and posts.

    I don’t believe IE6 recognizes hover attributes for anything but <a> elements. Someone with good CSS skills probably knows a hack.

    #52067

    In reply to: Simply doesn’t work

    Trent Adams
    Member

    Ok….try this as it must be in main .htaccess and not seperate.

    get rid of the .htaccess in bbpress directory and try this in .htaccess for wordpress.

    # BEGIN WordPress

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule . /index.php [L]

    # END WordPress

    RewriteBase /bbpress/

    RewriteRule ^forum/([0-9]+)/page/([0-9]+)$ /bbpress/forum.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^forum/([0-9]+)$ /bbpress/forum.php?id=$1 [L,QSA]

    RewriteRule ^topic/([0-9]+)/page/([0-9]+)$ /bbpress/topic.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^topic/([0-9]+)$ /bbpress/topic.php?id=$1 [L,QSA]

    RewriteRule ^tags/(.+)/page/([0-9]+)$ /bbpress/tags.php?tag=$1&page=$2 [L,QSA]

    RewriteRule ^tags/(.+)/?$ /bbpress/tags.php?tag=$1 [L,QSA]

    RewriteRule ^tags/?$ /bbpress/tags.php [L,QSA]

    RewriteRule ^profile/([0-9]+)/page/([0-9]+)$ /bbpress/profile.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^profile/([0-9]+)/([a-z]+)$ /bbpress/profile.php?id=$1&tab=$2 [L,QSA]

    RewriteRule ^profile/([0-9]+)/([a-z]+)/page/([0-9]+)$ /bbpress/profile.php?id=$1&tab=$2&page=$3 [L,QSA]

    RewriteRule ^profile/([0-9]+)$ /bbpress/profile.php?id=$1 [L,QSA]

    RewriteRule ^view/([a-z-]+)/page/([0-9]+)$ /bbpress/view.php?view=$1&page=$2 [L,QSA]

    RewriteRule ^view/([a-z-]+)$ /bbpress/view.php?view=$1 [L,QSA]

    RewriteRule ^rss/$ /bbpress/rss.php [L,QSA]

    RewriteRule ^rss/forum/([0-9]+)$ /bbpress/rss.php?forum=$1 [L,QSA]

    RewriteRule ^rss/topic/([0-9]+)$ /bbpress/rss.php?topic=$1 [L,QSA]

    RewriteRule ^rss/tags/([a-z]+)$ /bbpress/rss.php?tag=$1 [L,QSA]

    RewriteRule ^rss/profile/([0-9]+)$ /bbpress/rss.php?profile=$1 [L,QSA]

    </IfModule>

    Trent

    #51417

    ehm … sorry guys, i didn’t test the new function because i’m running mysql 4.0… on my site. I fixed the $bbdb and added the following config-var:

    $mysql41 = true;

    If you have any problems simply set to false and it should work well.

    Download here:

    http://la-school.com/2006/downloads/onlinelist_1_3.zip

    #49545
    pilkster
    Member

    OK, done :)

    #52065

    In reply to: Simply doesn’t work

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /bbpress/

    RewriteRule ^forum/([0-9]+)/page/([0-9]+)$ /bbpress/forum.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^forum/([0-9]+)$ /bbpress/forum.php?id=$1 [L,QSA]

    RewriteRule ^topic/([0-9]+)/page/([0-9]+)$ /bbpress/topic.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^topic/([0-9]+)$ /bbpress/topic.php?id=$1 [L,QSA]

    RewriteRule ^tags/(.+)/page/([0-9]+)$ /bbpress/tags.php?tag=$1&page=$2 [L,QSA]

    RewriteRule ^tags/(.+)/?$ /bbpress/tags.php?tag=$1 [L,QSA]

    RewriteRule ^tags/?$ /bbpress/tags.php [L,QSA]

    RewriteRule ^profile/([0-9]+)/page/([0-9]+)$ /bbpress/profile.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^profile/([0-9]+)/([a-z]+)$ /bbpress/profile.php?id=$1&tab=$2 [L,QSA]

    RewriteRule ^profile/([0-9]+)/([a-z]+)/page/([0-9]+)$ /bbpress/profile.php?id=$1&tab=$2&page=$3 [L,QSA]

    RewriteRule ^profile/([0-9]+)$ /bbpress/profile.php?id=$1 [L,QSA]

    RewriteRule ^view/([a-z-]+)/page/([0-9]+)$ /bbpress/view.php?view=$1&page=$2 [L,QSA]

    RewriteRule ^view/([a-z-]+)$ /bbpress/view.php?view=$1 [L,QSA]

    RewriteRule ^rss/$ /bbpress/rss.php [L,QSA]

    RewriteRule ^rss/forum/([0-9]+)$ /bbpress/rss.php?forum=$1 [L,QSA]

    RewriteRule ^rss/topic/([0-9]+)$ /bbpress/rss.php?topic=$1 [L,QSA]

    RewriteRule ^rss/tags/([a-z]+)$ /bbpress/rss.php?tag=$1 [L,QSA]

    RewriteRule ^rss/profile/([0-9]+)$ /bbpress/rss.php?profile=$1 [L,QSA]

    </IfModule>

    OK the above code is what I placed in HTACCESS, and I did as you suggested by uploading this file to my bbpress folder.

    I then logged back into my site and I am still getting the 404 errors

    Here is the actual error:

    The page you tried to access does not exist on this server. This page may not exist due to the following reasons:

    You are the owner of this web site and you have not uploaded (or incorrectly uploaded) your web site. For information on uploading your web site using FTP client software or web design software, click here for FTP Upload Information.

    The URL that you have entered in your browser is incorrect. Please re-enter the URL and try again.

    The Link that you clicked on incorrectly points to this page. Please contact the owner of this web site to inform them of this situation.

    #52184
    Trent Adams
    Member

    Try something like:

    #front-page #discussions {

    margin-left: 170px;

    margin-right: -20px;

    width: 420px;

    }

    #front-page #rightbar {

    margin-left: 590px;

    width: 150px;

    margin-right: -20px;

    }

    I haven’t tested this, but it would be easier to just keep moving them to the right I think.

    Trent

    #51414
    Trent Adams
    Member

    I am testing the new version. You should know that line 26 of the plugin has a syntax error that needs fixing. Change from:

    $bbdd->query

    to:

    $bbdb->query

    Trent

    #52182
    ardentfrost
    Member

    Not sure what you’re asking (the plugin has nothing to do with email addresses), but feel free to go to my forums and check it out. I need more testers anyway.

    I just did what the previous code was dictating a different way, so right now everything I’ve worked on is working.

    If you do come over and test it out, make a quick post in some thread (I suggest the one pertaining to this plugin) so that you don’t get deleted accidentally (we go through our memberlist daily to delete spam users)

    #1075
    ardentfrost
    Member

    For some reason, only the last filter is working. Here’s what it is:

    function get_pm_bb_location(){

    if ( bb_find_filename($_SERVER['PHP_SELF']) == 'pm.php' )

    return 'pm-page';

    }

    function is_pm() {

    if ('pm-page' == get_bb_location() )

    return true;

    else

    return false;

    }

    function get_mess_bb_location(){

    if ( bb_find_filename($_SERVER['PHP_SELF']) == 'message.php' )

    return 'message-page';

    }

    function is_message() {

    if ('message-page' == get_bb_location() )

    return true;

    else

    return false;

    }

    bb_add_filter('get_bb_location', 'get_mess_bb_location');

    bb_add_filter('get_bb_location', 'get_pm_bb_location');

    I swear they’re both the same. And whichever filter I put last works, and the other doesn’t.

    Also, what’s the deal? is bb_add_filter and add_filter the same damn thing? They both seem to be interchangable.

    I might just change the way I’m doing this. My current way is so beautiful though :(

    And for whoever sees what these functions would be used for, the answer to your question is this: I’m very close.

    #52167
    ardentfrost
    Member

    get_user_profile_link( $userid )

    Null
    Member

    Hi,

    With this I get the topic author name: get_topic_author(), but how do I get his profile link? get_topic_author_link() doesn’t work…

    Any ideas?

    thx

    #52141
    ardentfrost
    Member

    lol, nice ;)

    #51140
    spencerp
    Member

    Yeah, any word on this being “Updated”, or..? Just was curious.. ;) :)

    spencerp

    #49537
    Trent Adams
    Member

    Pilks,

    Just looking through the config file, everything looks good. I may try adding some cookie information into config.php

    $bb->cookiedomain = '.awspress.com';

    $bb->cookiepath = '/';

    As well, if you are not trying to load WP functions in bbPress, you probably can do without the:

    define('WP_BB', true);

    require_once('/home/xxxxxxx/public_html/wp-config.php');

    Maybe take it out and see if you can get it going and then add it in later. Let’s try it at the lowest common denominator….

    Trent

    #49536
    pilkster
    Member

    Hi Trent, thanks for the response :)

    After installing WP (via fantastico) I uploaded the bbpress files to /forums/, set up database&user, ran the bbpress install script.

    I then added the WP plugin as described above, activated it and configured it with bb_ (taken from my config.php).

    I added a directory /forums/my-plugins/ and put the described bbpress plugin in there (although I probably didnt need to as it is a fresh install)

    Below is my config.php that I edited as described (maybe I misunderstood somthing here?)

    Thanks again for your help…

    code

    <?php

    // ** MySQL settings ** //

    define(‘BBDB_NAME’, ‘xxxxxx_xxxx’); // The name of the database

    define(‘BBDB_USER’, ‘xxxxxxx_xxxxx’); // Your MySQL username

    define(‘BBDB_PASSWORD’, ‘xxxxx’); // …and password

    define(‘BBDB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value

    // Change the prefix if you want to have multiple forums in a single database.

    $bb_table_prefix = ‘bb_’; // Only letters, numbers and underscores please!

    // If your bbPress URL is http://bbpress.example.com/forums/ , the examples would be correct.

    // Adjust the domain and path to suit your actual URL.

    // Just the domain name; no directories or path. There should be no trailing slash here.

    $bb->domain = ‘http://awspress.com&#8217;; // Example: ‘http://bbpress.example.com&#8217;

    // There should be both a leading and trailing slash here. ‘/’ is fine if the site is in root.

    $bb->path = ‘/forums/’; // Example: ‘/forums/’

    // What are you going to call me?

    $bb->name = ‘Amazon plugin for WordPress’;

    // This must be set before running the install script.

    $bb->admin_email = ‘simon@xxxx.com’;

    // Set to true if you want pretty permalinks.

    $bb->mod_rewrite = true;

    // The number of topics that show on each page.

    $bb->page_topics = 30;

    // A user can edit a post for this many minutes after submitting.

    $bb->edit_lock = 60;

    // Your timezone offset. Example: -7 for Pacific Daylight Time.

    $bb->gmt_offset = 0;

    // Change this to localize bbPress. A corresponding MO file for the

    // chosen language must be installed to bb-includes/languages.

    // For example, install de.mo to bb-includes/languages and set BBLANG to ‘de’

    // to enable German language support.

    define(‘BBLANG’, ”);

    // Your Akismet Key. You do not need a key to run bbPress, but if you want to take advantage

    // of Akismet’s powerful spam blocking, you’ll need one. You can get an Akismet key at

    // http://wordpress.com/api-keys/

    $bb->akismet_key = ‘xxxx’;

    // The rest is only useful if you are integrating bbPress with WordPress.

    // If you’re not, just leave the rest as it is.

    $bb->wp_table_prefix = ‘wp_’; // WordPress table prefix. Example: ‘wp_’;

    $bb->wp_home = ‘http://awspress.com&#8217;; // WordPress – Options->General: Blog address (URL) // No trailing slash

    $bb->wp_siteurl = ‘http://awspress.com&#8217;; // WordPress – Options->General: WordPress address (URL) // No trailing slash

    define(‘WP_BB’, true);

    require_once(‘/home/xxxxxxx/public_html/wp-config.php’);

    /* Stop editing */

    define(‘BBPATH’, dirname(__FILE__) . ‘/’ );

    require_once( BBPATH . ‘bb-settings.php’ );

    ?>

    /code

    #52139
    Trent Adams
    Member

    That is where I got it from. Completely from Ardentfrost! :-)

    Trent

    #52137
    Trent Adams
    Member

    Try this code:

    <?php if (bb_current_user_can('edit_users')) : ?>

    *some code here*

    <?php endif; ?>

    #51878

    In reply to: Problem with my Domain

    Trent Adams
    Member

    Make sure your akismet line is:

    $bb->akismet_key = '40b50b4582b5';

    and not:

    $bb->akismet_key = 40b50b4582b5;

    Trent

    #52145
    Null
    Member

    Need more help, still cant get this. Cant get the menu it self working either (tried copying the code fromt this site and css, but it wont work).

    Thx

    #52163

    In reply to: get_row

    ardentfrost
    Member

    Hmm, when I logout and go to the same like with the afore mentioned output, it says this:

    Object id #22

    It seems to be doing this similarly to everyone else. Logged in it gives #6, logged out it gives #22. I never tell it to do anything, it must be get_row that’s doing it.

    Arrgghhhh

    #1071

    Topic: get_row

    in forum Troubleshooting
    ardentfrost
    Member

    Anyone know why when I use get_row it prints this

    Object id #6

    It fills my variable correctly, it just prints this and I don’t want it to :)

Viewing 25 results - 31,876 through 31,900 (of 32,467 total)
Skip to toolbar