Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 20,001 through 20,025 (of 32,517 total)
  • Author
    Search Results
  • #86176
    mr_pelle
    Participant

    Ciao! =) Can you tell me what plugins do you have active in your forum, please?

    #35416

    Hello everyone,

    I followed these steps to integrate WordPress with bbPress. However, there appeared some errors that I could not fix.

    1. Since I am using the theme “Twenty Ten”, I tried to use the page template One column, no sidebar, but could not. Is there any way?
    2. The sidebar does not appear in your place.
    3. The footer in both WordPress and in bbPress, was disfigured. How can I fix it?
    4. The bbPress admin pages comes to a blank page.

    Here’s the sites: the blog, and the forum.

    Thanks for everything.

    Att;

    P.S.: Sorry for my terrible English… ;-)

    #76450
    Rich Pedley
    Member

    15th again! ;)

    Thanks for the update, and at least that gives me chance to finish off other things before I start playing with it!

    #35414
    wblogan
    Member

    The admin functions on the topic.php page (where one can delete, close, stick or move a post) takes up three lines. View source:

    <div class="admin">

    [Delete Entire Topic]

    [Close topic]

    [Stick topic (to front)]

    [<form id="topic-move" method="post" action="http://domain/bbpress/topic-move.php">

    <fieldset>

    <div>

    <input type="hidden" name="topic_id" value="5" />

    <label for="forum-id">Move to</label>

    <select name="forum_id" id="forum-id"">

    <option value="4"></option>

    <option value="1"></option>

    <option value="2"></option>

    <option value="3"></option>

    <option value="5" selected="selected"></option>

    </select>

    <input type="hidden" id="_wpnonce" name="_wpnonce" value="(number)" /><input type="submit" name="Submit" value="Move" />

    </div>

    </fieldset>

    </form>]</div>

    </div>

    The first line ends with a ”.

    I’ve examined the topics.php page, found the ‘<?php bb_topic_admin(): ?>’, and found the function in bbpress/bb-includes/functions.bb-templates.php.

    if ( !$dropdown )

    return;

    $r = $before . ‘<form id=”topic-move” method=”post” action=”‘ . bb_get_uri( ‘bb-admin/topic-move.php’, null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_ADMIN ) . ‘”>’ . “n”;

    $r .= ‘<fieldset>’ . “n”;

    $r .= ‘<div>’ . “n”;

    $r .= ‘<input type=”hidden” name=”topic_id” value=”‘ . $topic->topic_id . ‘” />’ . “n”;

    $r .= ‘<label for=”forum-id”>’. __( ‘Move to’ ) . ‘</label>’ . “n”;

    $r .= $dropdown . “n”;

    $r .= bb_nonce_field( ‘move-topic_’ . $topic->topic_id, ‘_wpnonce’, true , false );

    $r .= ‘<input type=”submit” name=”Submit” value=”‘ . __( ‘Move’ ) . ‘” />’ . “n”;

    $r .= ‘</div>’ . “n”;

    $r .= ‘</fieldset>’ . “n”;

    $r .= ‘</form>’ . $after;

    I thought the problem might be the div after the fieldset, so I changed it to span, but that did not correct the problem. I can not read or understand the function.

    Is it possible to get the move option on the same line as the delete, close and stick options?

    #94144
    pagal
    Participant

    You were being a little “rude”

    Nope, never.. I doesn’t want to be rude. I always respect _ck_ and love her work. But I also want to see update of her work.

    I’m really sorry if you or _ck_ feel bad because of my pinching words.

    You are first person who is talking in friendly way :), otherwise this community is really rough and tough then normal WordPress.

    Its nice to listen ALL IZ WELL, ALL IZ WELL in this forum :D

    #54442

    In reply to: Add nofollow to links

    ant123
    Member

    If you want all links in your posts to be nofollow, you have to use post_text instead of post_author_link

    Here you go

    <?php

    /*

    Plugin Name: My own tweak for my forums

    Plugin URI: https://bbpress.org/

    Description: Fine tuning codes for my forum

    Author: Your name

    Author URI: http://www.myforum.com/

    Version: 0.1

    */

    add_filter(‘post_text’, ‘bb_rel_nofollow’);

    ?>

    I guess that’s what most people want to do

    #94164
    cmunns
    Member

    Yes, maybe but the error was coming from bbPress so I figured it would be better to ask here? _ck_ if you here anything around these parts that might help me out let me know hehe :)

    #35401

    a) I unzipped wordpress 3.0.1 under /wordpress/.

    b) I created the necessary mySQL db and username for wordpress.

    c) I entered the db, user, and password into wp-config.

    d) I unzipped “bbpress” into a folder inside of /wordpress/ called /bbpress/.

    e) I created the necessary mySQL db and username for bbpress.

    f) I entered the db, user, and password into bb-config.

    g) I enabled multi-site on my wordpress by adding the necessary lines of code to wp-config.

    h) I finished up configuring the network for wordpress.

    i) I randomized my cookies in wp-config.

    j) I went to /bbpress/ and started to configuring it. I specified my website and URL to be /wordpress/.

    k) I entered my cookies (including SALT – 8 total), db, user, and password into the /bbpress/ installation website.

    l) I ran the installation of /bbpress/ and got no errors – everything is good up to this point.

    However, the cookies don’t work! When I log into /wordpress/, it does NOT log me into /wordpress/bbpress/. And vice versa – when I log into /wordpress/bbpress/ it does not log me into /wordpress/ !

    Please help – and thank you for your patience.

    #35397
    nood
    Member

    I’ve never used bbPress before and went for the latest stable release but most of the plugins I want to work don’t work.

    Should I regress or should I wait?

    It’s really only what I consider the most important ones – the bbCode buttons, the page number links on topic lists and quoting other people’s posts that I’m after

    #94124
    nood
    Member

    That CSS would only change an image that has the id “img” and a class “source-image”, i.e.

    <img id="img" class="source-image" src="...etc..." />

    It seems like you’re trying to make an image the full size of the page which isn’t a sensible solution.

    The style you need to use is

    background: url(theimage.jpg) left top no-repeat;

    and you should probably be applying it to the body

    so

    body
    {
    background: url(theimage.jpg) left top no-repeat;
    }

    and if you want the background to not scroll with the document

    body
    {
    background: url(theimage.jpg) left top no-repeat fixed;
    }

    theimage.jpg must be relative to the style sheet or absolute.

    #94101
    minervaa
    Participant

    Found the problem after 4 hours!!! Gone through everything I could think of! My head is spinning now :(

    It was something to do with the htaccess, had to change the whole thing!

    I gone through lot of posts on the forum. I am quite shocked seeing how many people have problem to get the pretty permalink working properly.

    I can only wish if the bbpress would have also working smoothly on pretty permalink issue like WP!!

    #35317
    topperud
    Member

    Something strange happened when I tried to log in here using my old username:

    I had to reset the password, but when I followed the link in the mail I only got the message “you are not allowed to change the password”??? WTF? Tried several times, and the mail arrives, but I am not allowed to change the password. Had to make a new user in the end :/

    #94089

    what I have so far is:

    `<div class=”threadauthor”>

    <a href=”http://www.domain.com/forum/profile/&lt;?php post_author(); ?>”><?php post_author_avatar(); ?></a>

    <p>

    <strong><a href=”http://www.domain.com/forum/profile/&lt;?php post_author(); ?>”><?php post_author(); ?></a></strong>

    </p>

    </div>`

    It works for the text link only if the user name is the same as the display name… doesn’t work for the avatar at all. I tried the avatar by putting in the img src before it, and the link works, but it adds an empty box to the left of the avatar. Totally confused :|

    Any ideas?

    #94087
    _ck_
    Participant

    Yeah the two common mistakes when editing PHP files is to mess up the closing or to put whitespace after the closing which then causes “headers already sent” error.

    The new preferred technique is to leave the closing off altogether, because PHP doesn’t care and it prevents errors like that – which I will probably adopt in my future code for plugins etc.

    #94085
    _ck_
    Participant

    Sorry I missed this, anything that appears before all the headers is likely any other file you modified in bbpress startup process. Since the most likely file is bb-config.php which is often edited, you might have left two closing marks

    ?>

    ?>

    So the first one closes that PHP file, the second one gets displayed as plain text before the header.

    #77152

    In reply to: Topic paging issue

    _ck_
    Participant

    Kakumei doesn’t have post numbering from what I see, neither does inove.

    Take a peek inside your post.php template and tell me what’s between

    <div class="postnumber"> </div>

    It’s also possible that it is in topic.php instead.

    suomynona
    Member

    Several days ago I did a new install of bbpress in my wordpress root on localhost/, checked it out and all looked fine. My intention is to work through the integration of wp and bbp, but I didn’t have time to work with it then, so I went back today to try it out and find that there’s a misplaced “?>” displaying at the top of every page – before the header. I also noticed that the footer on the Appearance page of the admin panel runs across the Kakumei-blue theme so that the activate link is inaccesible.

    I’ve messed around with it for a few hours – saved my bb-config.php, deleted bbpress/ and replaced it from the zip; checked permissions; repaired my mysql database; restarted my apache2 and mysql services; checked the header.php; cleared my browser cache… I’m at a loss to understand this.

    ?>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">

    <head>

    <meta http-equiv="X-UA-Compatible" content="IE=8" />

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title>bbPress Bulletin Board</title>

    <link rel="stylesheet" href="http://localhost/wordpress/bbpress/bb-templates/kakumei/style.css" type="text/css" />

    <link rel=”alternate” type=”application/rss+xml” title=”bbPress Bulletin Board » Recent Posts” href=”http://localhost/wordpress/bbpress/rss.php&#8221; />

    <link rel=”alternate” type=”application/rss+xml” title=”bbPress Bulletin Board » Recent Topics” href=”http://localhost/wordpress/bbpress/rss.php?topics=1&#8243; />

    <meta name=”generator” content=”bbPress 1.0.2″ />

    </head>

    I’m just short of removing the database and starting over, which would be the quick and easy way out, but I would like to figure it out for the heck of it. Any ideas will be appreciated.

    #93152
    nuesha
    Member

    (You need to copy paste those code in a text file then rename it as .php.After that it will become a plugin and you can opload it on your plugin folder.

    If you want, you can download the same file from this link. I put some extra information (i.e. description, url etc) on the plugin.)

    thanks minervaa..

    #92615
    kikko088
    Member

    thank you for the answer, I change the quotes but the problem persist :(

    kikko088

    #77150

    In reply to: Topic paging issue

    _ck_
    Participant

    Huh. The post numbering did reset. That is strange.

    What theme is that – I’d have to see the post.php to see what function they are using between <div class="postnumber"></div>

    I see a few people using neoease for bbPress but I can’t find it anywhere? Where did you get it? Or is that inove with your own modifications?

    #77148

    In reply to: Topic paging issue

    e-motion
    Participant

    It looks like I am missing something – when I changed post count on original thread from 81 to 80, all post numbers shifted and #24 is no longer missing. But anyway, I am OK with missing numbers, at least it lets people know where their posts are.

    How can I check why my bbpress does not recount posts? Where is that function? I was messing around with some PHP and template codes (to ‘join’ forum to the page) so maybe I have done something…

    #77144

    In reply to: Topic paging issue

    _ck_
    Participant

    That query IS working properly on my test copy.

    I purposely changed the topic_posts on a topic from 46 to 99.

    Then ran this

    INSERT INTO bb_topics (topic_id, topic_posts)
    (SELECT topic_id, COUNT(post_status) as topic_posts
    FROM bb_posts
    WHERE post_status = '0' GROUP BY topic_id)
    ON DUPLICATE KEY UPDATE topic_posts = VALUES(topic_posts);

    and it reverted it back to 46

    So try changing the 80 to 81

    then try the above query and see if it changes it back to 80 or not?

    #77140

    In reply to: Topic paging issue

    e-motion
    Participant

    OK, so I was going thru the database and saw that bbpress holds post count in it. I just changed that to correct value and it seems like everything is good now. And post #24 is no longer missing, posts have shifted per one place.

    Thank you for your help. :) Anyway now we have discovered one more bug to fix.

    #77139

    In reply to: Topic paging issue

    _ck_
    Participant

    Thinking out loud here, don’t do anything yet on your own.

    This is Sam’s new routine in 1.0.2 based on my alternate recount for bbpress 0.9

    $sql = “INSERT INTO $bbdb->topics (topic_id, topic_posts)

    (SELECT topic_id, COUNT(post_status) as topic_posts

    FROM $bbdb->posts

    WHERE post_status = ‘0’ GROUP BY topic_id)

    ON DUPLICATE KEY UPDATE topic_posts = VALUES(topic_posts);

    “;

    I will investigate further…

    #77137

    In reply to: Topic paging issue

    e-motion
    Participant

    Query returns 80 posts. :) Definitely something is very wrong…

    https://i.imgur.com/jslzY.png

Viewing 25 results - 20,001 through 20,025 (of 32,517 total)
Skip to toolbar