Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 31,901 through 31,925 (of 32,522 total)
  • Author
    Search Results
  • #52449

    In reply to: 404 errors

    Trent Adams
    Member

    Personally, I have had issues with this as well. I would suggest creating a .htaccess file and place it in your bbpress root directory and only adding the following to it:

    Options +MultiViews

    That seems to work for most people. Try that first maybe? If not, maybe check what format you have in your WP .htaccess and try a combination of either the previous code or what rewrite-rules.php spits out for you.

    Thanks,

    Trent

    #52146
    Null
    Member

    Got a bit further, this is my menu code now:

    <div id="navigation">

    <ul id="menu">

    <!-- To show "current" on the home page -->

    <li<?php

    if ( is_front())

    {

    echo " id="current">";

    ?>

    <a href="about.php">About</a>

    <?php

    }

    ?></li>

    <!-- To show "current" on the forum page -->

    <li<?php

    if ( is_front())

    {

    echo " id="current">";

    ?>

    <a href="<?php option('uri'); ?>">Forums</a>

    <?php

    }

    ?></li>

    </ul>

    </div>

    I know with if ( is_front()) i determine that I am on the front-page, but how to call my About page? It’s called about.php.

    Sec when I am on the front page the Forums button is highlighted, but as soon as i go read a topic, the whole menu disappears. Why is that? the menu should stay and the forums button highlighted (cause I am still in tjhe forum)

    Some help plz

    #52442

    In reply to: blockquote?

    Trent Adams
    Member

    You should be able to change your style.css to reflect how you want your blockquote to work. I changed mine and see no problems with it. Take a look at:

    http://forum.trentadams.ca/topic.php?id=313&replies=1#post-483

    Used:

    blockquote {

    border-left: 1px solid #c00;

    border-right: 1px solid #c00;

    border-top: 1px solid #c00;

    border-bottom: 1px solid #c00;

    background: #fff;

    width: 300px;

    margin-left: 1.5em;

    padding: 5 5 5 5px;

    }

    Is that what you mean or could you give an example?

    Trent

    #51375

    In reply to: Plugin – Messengers

    topiq
    Member

    there are some SQL syntax errors. it works if u change the SQL query to this one:

    ALTER TABLE bb_users ADD user_icq VARCHAR( 255 ) NOT NULL AFTER user_email ;

    ALTER TABLE bb_users ADD user_aim VARCHAR( 255 ) NOT NULL AFTER user_icq ;

    ALTER TABLE bb_users ADD user_msn VARCHAR( 255 ) NOT NULL AFTER user_aim ;

    ALTER TABLE bb_users ADD user_yahoo VARCHAR( 255 ) NOT NULL AFTER user_msn ;

    ALTER TABLE bb_users ADD user_gtalk VARCHAR( 255 ) NOT NULL AFTER user_yahoo ;

    ALTER TABLE bb_users ADD user_jabber VARCHAR( 255 ) NOT NULL AFTER user_gtalk ;

    ALTER TABLE bb_users ADD user_skype VARCHAR( 255 ) NOT NULL AFTER user_jabber ;

    #1088

    Topic: blockquote?

    in forum Troubleshooting

    I don’t know if I’m missing something here or what, but when replying or posting, I see no difference if when I surround a block of text with <blockquote> or not…

    It’s a pain because there is no way to create line separation when posting… you can’t use <br> .. is there a way to customize the ‘Allowed tags’? Please help & thx in advance.

    -BHensley

    -http://Bakedlog.com

    #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

Viewing 25 results - 31,901 through 31,925 (of 32,522 total)
Skip to toolbar