Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 31,826 through 31,850 (of 32,431 total)
  • Author
    Search Results
  • #52168
    Null
    Member

    This doesn’t work cause $userid isn’t defined (i want to put this in front-page.php)

    Got this:

    <?php printf(__('%1$s - <a href="%2$s">%3$s</a>'), get_topic_time(), get_user_profile_link($userid), get_topic_author()) ?>

    All is in a for each loop, i get the author but no link to his profile :(

    #52323
    spencerp
    Member

    IMHO, the best thing to do first is, make sure you’ve imported the phpBB stuff, into a fresh bbpress install, that doesn’t have the integration with WordPress.. then, integrate it with WordPress.. =/

    As is now, *some* people are still having problems with the bbpress+wordpress integratation deal.. again, IMHO.. I would just play it safe, by doing the phpBB (import) to a normal bbpress install first.. then go from there.. ?

    Trent, what do you think?

    spencerp

    #52322
    rablake
    Member

    I’ve got my bbpress install (just a simple thing to test with) integrated into my WordPress database. I’d like to be able to import selectively for testing but no screw everything up — is that possible? I note that the script calls for importing into a FRESH NEW bbpress install. :)

    #52242
    spencerp
    Member

    Alright, I had first tried those TWO files you had sent me in the email, and those didn’t work. But, checked this thread and downloaded the PM_Trent_version, and everything seems to be working just fine! :);)

    However, when clicking on the “PM This User” link, under someone else’s name, other then me.. I get taken to the send this user a PM page, without errors.. but!

    I’m getting the header image showing at bottom of page with this message under it “You can’t look at this message! It doesn’t belong to you!” (I know you’re not supposed to send one to yourself, but.. just wondering why that header would still be down there though, if it’s being sent to someone else..? =/ )

    And this happens, (for example) when clicking on “PM This User” link under Trent’s name in a thread he replied in:

    http://spencerp.net/forums/topic/2?replies=4#post-23

    Go to there, those that have joined my forums can try it once.. and see what I’m talking about. Maybe there’s an extra header call, that we could maybe skip having or something..?

    Other then that, Trent’s PM version seems to be working just fine! Thanks Trent! :) ;)

    spencerp

    #52071

    In reply to: Simply doesn’t work

    I am having the same problem.. I have followed the FAQ Permalinks and still cannot get it to work.

    I have set $bb->mod_rewrite = true;

    I have tried writting my .htaccess with:

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /

    Options +MultiViews

    </IfModule>

    I have also tried what was outputed from the “bb-admin/rewrite-rules.php”:

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /

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

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

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

    RewriteRule ^topic/([0-9]+)$ /topic.php?id=$1 [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/([0-9]+)/page/([0-9]+)$ /profile.php?id=$1&page=$2 [L,QSA]

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

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

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

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

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

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

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

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

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

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

    </IfModule>

    In either case I get a 404 error so i set $bb->mod_rewrite = false; until I can get this resolved.

    #50146
    Trent Adams
    Member

    You want all the tags the same size? That is what the second code you have means. I guess it doesn’t like having tags all the same size. For reference, check out:

    https://bbpress.org/forums/topic/67?replies=5#post-295

    Trent

    #52240
    Trent Adams
    Member

    Ok…I fixed the other errors (still waiting for Ardenfrost to see if they will work or if there is a better way), but I can’t get rid of the following error when I post or reply:

    bbPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '19:54:11' at line 1]

    SELECT * FROM bb_privatemessages WHERE id_sender = 14 AND created_on = 2006-12-09 19:54:11

    Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/forum/bb-includes/db.php:147) in /var/www/html/forum/bb-includes/pluggable.php on line 160

    The error is generated from the following code in the plugin itself:

    function pm_new_message( $id_receiver, $id_sender, $pmtitle, $message ){

    global $bbdb, $bb_table_prefix;

    $created_on = bb_current_time('mysql');

    $bbdb->query("INSERT INTO ".$bb_table_prefix."privatemessages

    (id_sender, id_receiver, pmtitle, message, created_on)

    VALUES

    ('$id_sender', '$id_receiver', '$pmtitle', '$message','$created_on')");

    $rmess = $bbdb->get_row("SELECT * FROM ".$bb_table_prefix."privatemessages WHERE id_sender = $id_sender AND created_on = $created_on");

    return $rmess->pm_id;

    }

    I would ask anyone that might have an idea for me here to let me know. It doesn’t have a problem with the bb_current_time for posting normally, so I can’t understand why it doesn’t like the timestamp on this one. I have mySQL 4.1.21.

    Anyone?

    #52378
    spencerp
    Member

    Oh sweet!! I’ll have to check this one out then, probably after I get that Private Message plugin working.. lol! ;) :)

    spencerp

    #52239
    spencerp
    Member

    Hahaha, no wonder you weren’t saying anything on Gtalk lmao. And yah, I didn’t get an email yet, so it must be that 40 minute deal again hahaha. Alright man, I look for your email then.. ;)

    spencerp

    #52237
    spencerp
    Member

    UPDATE: I’m getting the same errors as Trent had mentioned above sigh. The “solution” you posted above, didn’t seem to correct anything, but.. I could have done it wrong though.. =/

    If you want too, maybe join my board, and check em out..

    http://spencerp.net/forums/

    Also, when in a thread, and clicking the “PM This User” link, it spits out this database error message “

    bbPress database error: [Table ‘mydatabase_name.bb_users’ doesn’t exist]

    SELECT * FROM bb_users WHERE ID = 1

    Any thoughts on this.. by the way, my board is basically setup like Trent’s board..

    spencerp

    #52236
    spencerp
    Member

    I haven’t tested this yet, but I just downloaded it now, and will be willing to try that “solution” there ardentfrost.. ;) :) I’ll report back with any “problems”, or what not.. ;)

    spencerp

    #52235
    ardentfrost
    Member

    try to split the lines. do this:

    $user = bb_get_user( $pmmessage->id_sender);

    $userlogin = $user->user_login;

    Don’t know if that’ll work or not, but it’s worth a try. Let me know, I’ll make the change to the release if it does.

    But I’m out of town til Sunday. So when I get back, I’ll see about it.

    #52233
    Trent Adams
    Member

    So far……

    I noticed that there are some places where bb_users are called and for some of us that use wp_users, we will get some errors. I found this in message.php so far.

    When I sent my first message, I got this error:

    bbPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '23:45:07' at line 1]

    SELECT * FROM bb_privatemessages WHERE id_sender = 14 AND created_on = 2006-12-08 23:45:07

    Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/forum/bb-includes/db.php:147) in /var/www/html/forum/bb-includes/pluggable.php on line 160

    I found an error in /my-templates/postmsg.php on line 8:

    Parse error: parse error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /var/www/html/forum/my-templates/postmsg.php on line 8

    Still working on those right now……

    Trent

    #52231
    spencerp
    Member

    WOW! Awesome, thank you so much ardentfrost! I’ll download it soon, and add it to my forums then. ;) :)

    spencerp

    #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

Viewing 25 results - 31,826 through 31,850 (of 32,431 total)
Skip to toolbar