Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 23,051 through 23,075 (of 32,468 total)
  • Author
    Search Results
  • #80463
    chrishajer
    Participant

    If login works normally, what do you see next to your name after you log in?

    Welcome, ChrisHajer! View your profile (Admin | Log Out)

    or

    Welcome, ChrisHajer! | Log Out

    In the first case, I am keymaster and have admin access. In the second case, I am just a member and have no admin access. I you have the first, click on Admin and you will have access to the bbPress back end.

    If you have the second, the account you’re logging in with might not have keymaster access. There was a plugin to restore keymaster access, but it was good only for up to 0.9. Not sure if it works with 1.0.

    https://bbpress.org/plugins/topic/fix-admin-access/

    If it doesn’t work, then you will need to edit the permissions directly in the database.

    #80291
    apam
    Member

    Should the HTML purifier be used alongside the tinyMCE plugin? How can you set up the advanced mode?

    I thought it should be a parameter of the tinyMCE.init funtion..

    Have you guys found a solution?

    I really hope I find a way of making linking images from an external source that didn’t involve having to inserting the code by hand..

    Thanks in advanced for any help or advice!

    #80593
    chrishajer
    Participant

    Did you create a my-plugins folder or is there one there already? If it’s there, check the permissions on the folder. Should be 0755 drwxr-xr-x.

    #80530
    adamcap
    Member

    yeah it doesn’t work. :( oh well

    all I want to do is prevent all users from starting topics on all forums, but still allow all new posts to from my blog to be imported via bb-sync and allow people to reply to them.

    #80529
    adamcap
    Member

    looks promising but says it’s only compatible up to version 0.9 and I have 1.0. :/

    Maybe I’ll try it out anyway

    #80524
    johnhiler
    Member

    Ah great idea… glad it’s working! (or at least, seems to be working)… :-)

    hankjin
    Member

    when I use $bbdb->get_results($sql, ARRAY_K); it reports warning when there is no records in database.

    then I checked the code bb-includes/backpress/class.bpdb.php:

    936 $key = $this->col_info[0]->name;

    937 foreach ( $this->last_result as $row ) {

    938 if ( !isset( $new_array[ $row->$key ] ) ) {

    939 $new_array[ $row->$key ] = $row;

    940 }

    941 }

    942 if ( $output == ARRAY_K ) {

    943 return array_map( ‘get_object_vars’, $new_array );

    944 }

    945 return $new_array;

    It seems when the query result is empty, $new_array is not initialized, so warning happens in Line 943

    so I add a line $new_array=array(); before the foreach statement of Line 937, then everything goes well.

    The code now looks like this:

    936 $key = $this->col_info[0]->name;

    937 $new_array=array();

    938 foreach ( $this->last_result as $row ) {

    939 if ( !isset( $new_array[ $row->$key ] ) ) {

    940 $new_array[ $row->$key ] = $row;

    941 }

    942 }

    943 if ( $output == ARRAY_K ) {

    944 return array_map( ‘get_object_vars’, $new_array );

    945 }

    946 return $new_array;

    so I think maybe this is a bug.

    #80526
    thekmen
    Member

    I copied all the required styles from WP to the bbPress theme.

    If you look at the source of the WP end, you will see I placed 2 <–COPY–> here markers for the Page & Cat nav, then in the bbPress backend theme options you just paste that code.

    #80547
    nickaster
    Member

    Unbelievable. So… basically what happened was that I HAD commented out the drop down code… didn’t remove it, just commented out. I put it back, and bam! it works!

    #32087
    kirkpatrick
    Member

    I have a deep integration of bbPress 1.0.2 and WordPress 2.8.4 at riogallinasschool.org, using a heavily modified Kakumei template.

    Integration works well. I only register users from WP. Logins work from either BBP or WP. WP users appear correctly to BBP (every user can log in from both WP and BBP)..

    Logout from WP is fine regardless of where the login occurred (so, no cookie problems).

    However, when logging out from BBP (using the Kakumei “Log out” link), the logout occurs (so cookies are working), but I am redirected to a 404. The logout link is bb-login.php?logout=1. I have found that, on the other hand, the link bb-login.php?logout=0 (as typed in) works just fine — logs out, redirects back to page.

    I have hacked a solution. I don’t understand it (I haven’t yet been able to follow the use of the GET variable logout to find where it’s value is used anywhere). But in case anyone else has this problem, here’s the hack.

    The logout link is produced by the function call bb_logout_link(); in the template’s logged-in.php file.

    bb_logout_link is defined in bb-includesfunctions.bb-template.php, and effectively calls bb_get_logout_link with the same arguments. In the latter function, around line 2737, the value logout=1 is hard-coded.

    I have changed the code for bb_get_logout_link so (a) it defaults to logout=1 if logout is not specified in the call to bb_logout_link (thus the hack is non-destructive), but (b) the call bb_logout_link(‘logout=0’); overrides the default.

    This produces the working link, so the “Log out” link works.

    Here’s the code

    Old line 2737 of bb-includesfunctions.bb-template.php was

    $query = array( 'logout' => 1 );

    I changed that to the following (which works because the args were “extract”ed, so $logout has a value from the call to bb_logout_link):

    if ( $logout==NULL ) $logout = 1;  // Defaults to 'logout=1'
    $query = array( 'logout' => $logout ); // Changed '1' to '$logout'

    Then in the template’s logged-in.php, I added the argument to the call to bb_logout_link:

    bb_logout_link('logout=0');

    It works for me.

    Has anyone else has had this problem? If not, I must have broken something somewhere else — so I’d like to know.

    Can anyone explain the bug, or explain where the value of logout is used? (I’ll keep looking, and will post a followup if I find it, but I’m not expert at the subtleties of apply_filters, which appears to be the only possibility.)

    Thanks.

    #32086

    I am new to the forum, so I hope I posted it in the right place.

    I am wanting to add a simple button-link to my WordPress Blog Post template saying something like “Discuss In Forum”. I am using WordPress-bbPress-synchronization to post Blog items to my Forum. This plugin generates a link in the most recent comment that allows you to visit the correct topic for that blog post.

    I would also like to add that I do not know code, so a simplified question is this: How can I add a button to my forum for the correct topic without changing the link every time I use it? Is this something relatively easy to accomplish?

    Thanks in advance for help

    #80503

    In reply to: What is "topicmeta"?

    chrishajer
    Participant

    I might be wrong, but I thought topicmeta was deprecated in the 1.0 versions.

    $bbdb->tables = array(
    'forums' => false,
    'meta' => false,
    'posts' => false,
    'tagged' => false, // Deprecated
    'tags' => false, // Deprecated
    'terms' => false,
    'term_relationships' => false,
    'term_taxonomy' => false,
    'topics' => false,
    'topicmeta' => false, // Deprecated
    'users' => false,
    'usermeta' => false
    );

    #80525
    chandersbs
    Member

    how did you do that :P

    It’s looking good.

    #80527
    adamcap
    Member

    actually I guess there is probably more to it than just removing the link…oh well if anyone has any ideas let me know :)

    #57469
    KillerSneak
    Member

    http://test2.cell-systems.net/

    test setup working almost flawless, 100% valid CSS and XHTML :)

    Allot of css work goes into it to make the WP theme and Bb theme to work. I’m not combining both CSS files to make 1 standart css file.

    #76597
    alekseo
    Member

    Feel free to share how you did it! :)

    #76596
    dikkevandale
    Participant

    I replied there already :)

    I have fixed all links to show the WordPress Profile including forum statistics below it. The only link I can’t find to fix is on the forum frontpage where the last posting username is shown.

    #80482
    chrishajer
    Participant

    Find this block in your style.css:

    .login {
    position: absolute;
    bottom: 31px;
    left: 0;
    font-weight: normal;
    color: #444;
    width: 100%;
    z-index: 1;
    font-size: 12px;
    }

    Change the font-size to something larger. You might have to move other things around to make room for the larger letters, but that will change the text you mentioned.

    #80455
    nickaster
    Member

    re: “You’re Not Logged In…”

    I just slapped that in manually on front-page.php between an if/then about whether you’re logged in or not. As follows:

    <tr>
    <td class="topper-col" colspan="5">
    <?php if ( bb_is_user_logged_in() ) : ?>
    <h3 class="new-post"><?php bb_new_topic_link('Start a new conversation »'); ?></h3>
    <?php else: ?>
    <h3 class="not-logged">» You're Not Logged In. Please Login or <a href="http://www.triplepundit.com/forum/register.php"><u>Register</u></a> &laquo</a></h3>
    <?php endif; // bb_is_user_not_logged_in() ?>
    </td>
    </tr>

    #80454
    chandersbs
    Member

    What code did this for you:

    » You're Not Logged In. Please Login or Register «

    #74136
    josh_
    Member

    i’m trying to figure out what part of the code is making the time queries and from where? are they requesting the time from the db server or the webserver? my host is trying to help us figure this out and it seems like there’s one server in the cluster somewhere that is a few minutes out of sync with the rest.

    #32062
    InvTrdr
    Member

    When I use the code below to change the color of the wrapper on the stock theme, the wrapper itself disappears. How do I fix that? Below is the code for the wrapper used in the CSS. I am just uploading a new file with the color I want and call it “page_header_tile1.png” and it takes off the old one without adding the new one.

    #wrapper {
    background: #fff url('images/page_header_tile.png') repeat-x 0px -15px;
    }

    Thank you.

    tianye
    Member

    http://www.liuso.com/bbpress this is my forum address

    I try reupload a new rss.php file again but doesn’t working

    # BEGIN bbPress

    Options -MultiViews

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /bbpress/

    .htaccess

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

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

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

    RewriteRule ^forum/?$ /bbpress/ [R=302,L,QSA]

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

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

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

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

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

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

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

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

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

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

    RewriteRule ^rss/topics/?$ /bbpress/rss.php?topics=1 [L,QSA]

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

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

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

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

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

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

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

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule ^.*$ /bbpress/index.php [L]

    </IfModule>

    # END bbPress

    Ryan
    Participant

    After wrestling with integration between WP 2.8 and bbPress 1.0.2 for the last day and a half, I gave up and started thinking of ways I could do this a little more straightforwardly.

    My problem was I didn’t need any sort of database or user sharing between the sites. I simply wanted a way to display certain parts of my WordPress theme on my bbPress page. Things like a list of the WP categories, a menu being built from categories, a blogroll, etc.

    Here’s what I did:

    Instead of fully integrating WP, what is usually called “deep integration” so as to gain access to WordPress functions (wp_list_categories, etc.), I simply created a few functions in my WordPress theme’s function.php file that automatically generate the HTML for the items I wanted, and then saved it to a file that I could then call in my bbPress theme.

    Part 1: WordPress Theme

    Open up your functions.php file in your WordPress theme’s folder (/wp-content/themes/yourtheme/).

    Scroll down to the bottom and create your new function. For this example, I’ll use adding a list of categories from your WP blog to your bbPress forum:

    function make_cats () {
    $output = NULL;
    $output = wp_list_categories('echo=0&orderby=ID&hide_empty=0&title_li=<h3>categories</h3>');
    $fp = fopen($_SERVER['DOCUMENT_ROOT'] . '/wp-content/themes/your-theme/ext/cats.html', 'w');
    fwrite($fp, $output);
    fclose($fp);
    }
    add_action('edit_category_form', 'make_cats');

    To explain this a bit, basically:

    We create a variable called $output, NULL it (make sure it’s empty), and then load the category info into it. The wp_list_categories() function creates an unordered list of the categories with a heading (h3) saying “Categories”. We also use the echo=0 bit to make sure it don’t print the HTML it is generating to the screen, but rather just puts it in $output.

    Then we open a file called cats.html in a new folder called ext that we’ve previously created (via FTP or whatever) in your theme directory (/wp-content/themes/your-theme). If the file doesn’t exists, the function will create it, however, the “ext” folder needs to already exist. The file is then fill it with $output. All these files and folders are completely up to you — you can save the file anywhere on your server, I just chose to stick it somewhere easy to remember and that wouldn’t clutter anything up.

    The final step is:

    add_action(‘edit_category_form’, ‘make_cats’);

    This tells WordPress to run this function (make_cats) every time the edit_category_form action is triggered, basically any time you load your “Categories” page in the wp-admin area. There are lots of different actions for virtually anything you can think of. Find the one suitable for your customization here.

    Part 2: bbPress Theme

    The second part is to load the contents of your newly created HTML file in your bbPress theme. To do this only requires a single line of code inserted into the appropriate place in your theme. Wherever you want the list of categories (or whatever you’re wanting to display), simply add this line:

    <?php include $_SERVER['DOCUMENT_ROOT'] . '/wp-content/themes/your-theme/ext/cats.html'; ?>

    That should do it.

    Here are a couple more function examples, both use the “save_post” action, so every time you save (new or edit) a post, it fires and updates (or creates) the HTML files:

    Tag Cloud

    function make_tags () {
    $output = NULL;
    $output = wp_tag_cloud('echo=0&smallest=8&largest=22&number=30&orderby=count&order=RAND');
    $fp = fopen($_SERVER['DOCUMENT_ROOT'] . '/wp-content/themes/your-theme/ext/tags.html', 'w');
    fwrite($fp, $output);
    fclose($fp);
    }
    add_action('save_post', 'make_tags');

    Recent Blog Posts

    function make_posts () {
    $output = NULL;
    $getsomeposts = new WP_Query('numberposts=10');
    $output = '<ul>';
    while ($getsomeposts->have_posts()) : $getsomeposts->the_post();
    $output .= '<li><a href="'. get_permalink() . '" title="' . the_title('','',FALSE) . '">' . the_title('','',FALSE) . '</a></li>';
    endwhile;
    $output .= '</ul>';
    $fp = fopen($_SERVER['DOCUMENT_ROOT'] . '/wp-content/themes/your-theme/ext/posts.html', 'w');
    fwrite($fp, $output);
    fclose($fp);
    }
    add_action('save_post', 'make_posts');

    Hope that helps someone who is as frustrated with the WP<–>bbP integration as I was. If you have any questions about this, feel free to post ’em here. I’ll do my best to check back.

    #80451
    chandersbs
    Member

    I don’t think you should remove the word [sticky] as its very handy for users, if they can see which topics are sticky. but thats just my meaning.

    you should add a new colom in the left, and add <?php topic_icon(); ?> in it.

    See

    http://i628.photobucket.com/albums/uu8/npoeran/plaatjes.png

    If you can’t do it, just copy paste the whole front-page.php in this thread, ill try to help you.

Viewing 25 results - 23,051 through 23,075 (of 32,468 total)
Skip to toolbar