Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 24,151 through 24,175 (of 32,468 total)
  • Author
    Search Results
  • #77195
    chrishajer
    Participant

    At your web host, you already installed WordPress. So, if you’re using FTP, download bbPress to your desktop, then unzip it. It will be unzipped into a folder called bbpress. Rename that to forums on your desktop. Now, upload that whole folder to your web host, putting it into the same place where the folders wp-content, wp-includes and wp-admin are right now. If you do a directory listing there, you will have these directories now:

    forums
    wp-admin
    wp-content
    wp-includes

    Now, go to http://roadtoanimation.com/forums/ and you should see your forum installation. If you’ve already started the installation in another directory, you might need to get rid of some tables in the database.

    #29805
    anandasama
    Member

    I recently tried the different Bb quote Plugins that exists but neither of them fit my taste in a WYSIWYG environment.

    I wanted a plugin with javascript that can multiquote, and quote small parts without reload, and insert to a Wysiwyg environment.

    Then I remembered that the “quote-comments” plugin in WordPress works even with TinyMCE,

    so I copied it over to bbpress and modified it so it would call the bbpress functions instead of wordpress.

    Needed to change some calls to the post_content instead of comments too..

    It works fine for me now, but the only problem is that I can’t use the quote link from another page than the form itself. So If Im in a thread with 2 pages, the first page won’t redirect me to the form of the last page.

    Somehow I need to make a link with the quote info to get saved (somehow?) and then called into the javascript function.

    As im not the best at PhP / javascript maybe some of you here can help me.

    I managed so the PHP outputs the necessary info for the javascript to grab. But problem is how to call it from another page with a link to the last page with the form.

    1. First I need to make a Php function that outputs a different link if im not on the same page as the form. Alright but how do I send it to the last page and how do I call the javascript from the last page?

    I put the files into the my-plugins folder with a folder called quote-comments

    Here is the PHP file (It gets outputed below the post) :

    quote-comments.php

    http://pastebin.com/f6743a79c

    2. As you can see the javascript gets called from the Link, so I need to call it in another way when it’s redirected to the last page.


    Here is the JS file:

    quote-comments.js

    http://pastebin.com/f74d57ac5

    Mark that the addQuote function ISNT used if you use TinyMCE and I set to use TinyMCE = true in the php file.

    As im not so good at php im kind of lost here. But it would be nice to make it all work and clean it up and make a plugin out of it.

    #77037
    QuickD
    Member

    Anybody want to help me out with this. I am not an expert. I need someone to actually do it for me. :)

    #76978
    chrishajer
    Participant

    Would it be the same on the top of every topic, or would you want the ability to post something different on each new topic? If you always want the same thing, you could just edit the template file topic.php and put the content you want displayed there. There is also this function (in 1.0 anyway) in topic.php <?php do_action('under_title'); ?> – looks like you could hook under_title with a plugin, but if you just want the same thing at the top of topic.php, I think I would just edit the template file.

    #76248
    Rohan Kapoor
    Member

    :P I agree. Deep Integration is the way to go. See my site: http://wpmu.zyrot.com/forums/

    #76954
    gravitydk
    Member

    You can enter basic HTML in these posts, like type

    <strong>bold text</strong>

    and you will see bold text; like that.

    Alternatively you can download the bbcode plugins and bbcode buttons plugin from _ck_ (that’s what I did), which makes it easier and visual.

    #28005
    Perry
    Member

    Hey.

    I was clearing my test forums on my bbPress install, I deleted all forums and when I try to load my forums I get this message;

    Oh dear!

    Please complete your installation before attempting to include WordPress within bbPress

    bbPress is already installed.

    Perhaps you meant to run the upgrade script instead?

    What on earth has gone wrong? All I have done is deleted forums?

    Thanks.

    chandersbs
    Member

    I think this:

    <?php if( $topic->forum_id == 9 ) { ?>

    Is not working actually :(

    chandersbs
    Member

    Hi,

    How can I number the topics displayed in the Latest Discussion section?

    I know that by adding this code:

    <?php if( $topic->forum_id == 9 ) { ?>

    I get to choose which forum topics will be shown ONLY. I just want to know what exactly I should add so I can decide by giving a number which section will have how many number of topics.

    Thanks.

    #76952
    braenz
    Participant

    Thanks Batrachoid. That has been very helpful.

    “Backticks should be used to insert code in your posts that you actually want displayed for readers.”

    That’s what I was trying to get my head around. Thanks so much for your help. A bit complicated, though, I think to use a lot. And why is my post above in italics AND indented?

    #76951
    batrachoid
    Member

    This page might explain a few things for you: http://www.econjobrumors.com/topic.php?id=3608

    Backticks should be used to insert code in your posts that you actually want displayed for readers.

    #26824

    Hi there,

    I have a request from a user on my forums. I am running word press and bb press together. The user has an old account and would like to merge her newer account with the old account (to combine all her old posts to her new account). I have no idea how to do this in phpmyadmin. If someone could possibly give me a detailed way on how to do this, that would be great. I am somewhat a noob to phpmyadmin. I know how to change display name/user names in phpmyadmin, etc but I have not done much else.

    Thanks,

    Adam :)

    #76892
    Dolugen
    Member

    Fixed at last…

    I digged some database tables, and deleted the bb_integration row in wp_options, and some rows that was added later in bb_meta*.

    I pray that WP+BP+bbPress integration would be much simpler :)

    #76923
    Josh Leuze
    Member

    Thank you for the info, it was very helpful!

    @chrishajer – I checked my .htaccess file, and the permissions were incorrect, II tweaked that, and bbPress added the rewrite rules without issue.

    @incirus – Yes, my forum is converted from phpBB as well, I don’t know why I didn’t think of that before. I checked a new topic, the pretty permalink worked just fine. I checked an old topic in the database, no slug. i added a slug and it worked great.

    Unfortunately I have 875 topics that I would have to edit my hand… That’s too bad, one of the draws of migrating to bbPress are the useful permalinks.

    Has anyone out there come up with a handy script to solve this problem? I’d imagine the code is already there, since bbPress already converts your topic title into a slug, it would just be a matter of having it process all of the old titles. But I think that’s a bit out of my league!

    Hell, I’d settle for a way to use slugs from here in out, but fall back on the default permalinks if there is no slug, but I think that would be more complicated.

    #76834
    TonyVitabile
    Member

    I have written a function I call bb_list_pages() and I’ve added it & some support code to a functions.php file in my bbPress theme’s folder. This does NOT work using the WordPress wp_list_pages() logic. Rather, it attempts to output the same results as that function. There are things that wp_list_pages() does that this function can’t do, but it works for my site. If folks are interested, I’ll post the functions.php file after I finish getting it debugged.

    I just have one question. How can I determine what the current page’s URI is? I need this to highlight the page on the menu.

    Thanks

    Tony

    #26128
    braenz
    Participant

    Can someone please tell me how to get bold and italics in posts in our forum (www.monarch.org.nz/forum). The footnote says:

    Allowed markup: a blockquote code em strong ul ol li.

    Put code in between backticks.

    But I don’t understand… I know where the backtick is , and I have tried to get underlining by puttingul` before and after the text I wanted underlined. Is that correct? Because it doesn’t work!

    Josh Leuze
    Member

    Has anything changed with with the steps for setting up Pretty Permalinks on bbPress 1.0.1?

    I have tried the methods in the FAQ, without success, on two different webhosts (Media Temple & Bluehost).

    Adding a .htaccess file with “Options +MultiViews” results in an error message when I try to load any page in the forum. When I try to visit “/bb-admin/rewrite-rules.php”, it redirects to the permalink settings page, and I do not see any code being generated that I could add to my .htaccess file instead.

    I have bbPress installed in a subdirectory with WordPress in the root directory. I have Pretty Permalinks functioning just fine in WordPress.

    Have I missed anything obvious here?

    #72364

    In reply to: Bulgarian translation

    wiseacre
    Member

    А, сега се сетих – в някои проекти за превод на свободен софтуер са приели като правило да не се използва заповедна форма. Например вместо “Добави” -> “Добавяне”, вместо “Изтрий” -> “Изтриване” и тъй нататък.

    Но пък наистина скоро не съм ползвал превода на WordPress и не зная какъв е стила … пък и да се мъчиш да преправяш сега за тая версия не си е работа. :)

    #76612
    deadlyhifi
    Participant

    I figured it out.

    <?php post_ip_link( array( 'before' => ' | ', 'after' => ' | ' ) ); ?>

    #76867
    deadlyhifi
    Participant

    I’m using bb_get_active_theme_directory() to detect any changes to my stylesheet.

    <link rel="stylesheet" href="<?php bb_stylesheet_uri(); echo '?' . filemtime( bb_get_active_theme_directory() . '/style.css'); ?>" type="text/css" media="screen, projection" />

    if I echo bb_get_active_theme_directory() on my page it does return the correct value. I’m using bbP 1.0.1.

    #56566
    deadlyhifi
    Participant

    you can do this with a plugin if you like.

    function filter_front_page_topics($where){
    $exclude_forums=array ("3"); // enable this to manually specify specific forums by id #
    if ( is_front() ) {foreach($exclude_forums as $forum) { $where.=" AND forum_id != ".$forum." "; }}
    return $where;
    }
    add_filter( 'get_latest_topics_where', 'filter_front_page_topics');
    add_filter( 'get_latest_posts_where', 'filter_front_page_topics');

    If you have front page paging (1,2,3,4 etc) then the paging count will be wrong. You need to edit the bb-includes/function.bb-template.php file

    function bb_latest_topics_pages() {
    global $page;
    static $bb_latest_topics_count;
    if (!$bb_latest_topics_count) {
    global $bbdb;
    $bb_latest_topics_count = $bbdb->get_var('SELECT COUNT(<code>topic_id</code>) FROM <code>' . $bbdb->topics . '</code> WHERE <code>topic_open</code> = 1 AND <code>topic_status</code> = 0 AND <code>topic_sticky</code> != 2 AND <code>forum_id</code> != 3;');
    }
    echo apply_filters( 'bb_latest_topics_pages', get_page_number_links( $page, $bb_latest_topics_count ), $bb_latest_topics_count );
    }

    Note the addition of AND "forum_id" != 3 to the query.

    EDIT: just noticed that use of backticks in the code has been turned into <code>, so amend as necessary.

    #56565
    chandersbs
    Member

    This still works! I’m using 1.0.1

    This is how my code looks like:

    <?php if( $topic->forum_id != 29 ) { ?>

    <tr<?php topic_class(); ?>>

    <td><?php bb_topic_labels(); ?> “><?php topic_title(); ?><?php topic_page_links(); ?></td>

    <td class=”num”><?php topic_posts(); ?></td>

    <!– <td class=”num”><?php bb_topic_voices(); ?></td> –>

    <td class=”num”><?php topic_last_poster(); ?></td>

    <td class=”num”>“><?php topic_time(); ?></td>

    </tr><?php }?>

    Thanks

    #76782

    In reply to: Plugin custom pages

    yutt
    Member

    Well, I replaced the:

    bb_auth();

    line with:

    if (!bb_current_user_can('administrate')) {bb_auth();}

    Hopefully that is secure, everything seems to work now. Huzzah!

    #76781

    In reply to: Plugin custom pages

    yutt
    Member

    So…

    bb_auth(); in ‘functions.bb-pluggable.php’ is causing this redirection problem.

    I appear to be failing at the line:

    if ( !bb_validate_auth_cookie( '', $scheme ) ) {

    I’ll have to look into bb_validate_auth_cookie() to see where that leads.

    #76092
    alexti93
    Member

    I have the same problem, I already tried changing the things from WP but it stills doesn’t works =(..

Viewing 25 results - 24,151 through 24,175 (of 32,468 total)
Skip to toolbar