Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 31,851 through 31,875 (of 32,467 total)
  • Author
    Search Results
  • #1087
    spencerp
    Member

    Was wondering if someone wouldn’t mind making up a plugin for Forum Catagory (blocks)..? Like phpBB has..

    Example:

    General (forum cat block 1) >

    –Latest news (forum under general cat)

    –General Discussions (forum under general cat)

    –Site Feedback (forum under general cat)

    Website Design (forum cat block 2) >

    –HTML Basics (forum under website design cat)

    –PHP Coding (forum under website design cat)

    –CSS (forum under website design cat)

    Is anyone up for doing this maybe? I think it would be nice to have this option though, rather then having ALL the forums listed under ONE Section only.. :) ;)

    spencerp

    #52256
    spencerp
    Member

    ardentfrost, you’re awesome! Thanks so much for getting that fixed for me! ;):)

    spencerp

    #52170
    Null
    Member

    Close but still not there. I had to add get_ infront of it in order to work. Now this works AS LONG AS you have no replies on your topic. I wanted to get the authors profile link and not all authors of every reply….

    I am making a list of posts on the front page that looks like this:

    Topic title – author – postst – last reply by

    To get the authors name i use: get_topic_author() this works and if i use:

    <?php printf(__('<a href="%2$s">%3$s</a>'), get_user_profile_link($topic->topic_last_poster), get_topic_author()) ?> it works and I get the authors profile link. But as soon as I get a reply, it will show the profile link of the last poster and not the author (while the author name stays correct).

    Things like: get_user_profile_link($topic->topic_author), get_topic_author() doesn’t work.

    So the author is the topic starter, not the last topic poster

    Null

    #52413

    Actually the h2 is the first place I went.

    I changed

    .topictitle{

    font-size: 26px;

    font-weight: normal;

    display: inline;

    }

    to

    .topictitle h2{

    font-size: 26px;

    font-weight: normal;

    display: inline; width:50%; min-width:300px;

    }

    This sort of fixed it, but then I lost control of the size for h2.

    Using the above code, the title fits, but the size of it was shrunk down too much. Adjusting the size back up didn’t resolve the issue. No matter what size I chose, the font for the title remained the same. This was a puzzling development. Anyone know why this would happen?

    #52254
    spencerp
    Member

    Hmm, first time I downloaded it, I was in Firefox, I just went there in IE6 this time, downloaded .73a, deleted the original PM files, uploaded fresh ones.. Still the same thing.. =/

    To see what I mean, maybe try registering on my board quick, and then try PM-ing Trent here?

    http://spencerp.net/forums/message?user=4

    spencerp

    /Again, all those other problems which were mentioned above, are gone, it’s just that database error showing yet..

    Yeppers, I uncommented out for the Post Count thingy.. ;):)

    I also did a hard clear of cache too. CTRL + F5

    #52253
    ardentfrost
    Member

    Also remember that you can go to postmsg.php and uncomment the lines for post count and/or avatar if you have those plugins I made installed :)

    #52252
    spencerp
    Member

    are you integrated spencer?

    Yuppers! :) (Sorry, forgot to add that in here..)

    Oh, ok. I will do that, and try again! ;):) I’ll report back here real soon..

    spencerp

    #52250
    spencerp
    Member

    YES! Thank you so much fixing this. ;) :) Everything seems to be fixed, however, I’m still getting this database error message above the forum header..

    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 = 2

    I’ve tried both versions of the plugin, redownloaded the original one, and then tried the .73a one.. same error message.. :(

    spencerp

    #50841

    In reply to: Error for tags.php

    ==================SOLUTION====================

    wow yes thank you I was having the same problem off of a fresh install. “browse tags” wouldn’t work.

    Added to .htaccess:

    AddType x-mapp-php5 .php

    Thank You!

    ==================SOLUTION====================

    #52249
    ardentfrost
    Member

    Yeah, thanks for helping me work through those few problems Trent (esp with your legacy version of php ;) ).

    WP Integration support is a big update for .73a, as well as the double header/footer fix.

    So, download away BBPress users! :)

    #52169
    Trent Adams
    Member

    This works on front-page.php:

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

    Trent

    #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

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