Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 24,051 through 24,075 (of 32,570 total)
  • Author
    Search Results
  • #77983
    Marius-
    Member

    Ugh, talking to myself here. There is a bug with the Link function which fucks up IE, I suppose everyone has stopped caring now.

    #77982
    Marius-
    Member

    Alright can someone help me remove some features from this?

    I want to remove List, Unordered List, Close, Center, ORdered list, Code, URL, Strike through:

    <?php
    /*
    Plugin Name: BBcode Buttons Toolbar
    Plugin URI: https://bbpress.org/plugins/topic/114
    Description: Automatically adds an easy access button toolbar above the post textarea to allow quick tags in BBcode. This is an enhanced replacement for the Comment Quicktags plugin. No template editing required.
    Author: _ck_
    Author URI: http://bbShowcase.org
    Version: 0.0.9

    License: CC-GNU-GPL http://creativecommons.org/licenses/GPL/2.0/

    Donate: http://bbshowcase.org/donate/
    */

    add_action('post_form','bbcode_buttons',11);
    add_action('edit_form','bbcode_buttons',11);
    add_action('bbcode_buttons','bbcode_buttons');

    function bbcode_buttons() {
    $tags = bb_allowed_tags();
    echo "<scr"."ipt type='text/javascript' defer='defer'>
    function BBcodeButtons_init() {
    BBcodeButtons.push(new BBcodeButton('ed_bold','Fet','','','b','font-weight:bold;','Fete bokstaver'));
    BBcodeButtons.push(new BBcodeButton('ed_italic','Kursiv','','','i','padding-right:7px;font-style:italic;','Kursive bokstaver'));
    BBcodeButtons.push(new BBcodeButton('ed_under','U','','','u','text-decoration:underline;','underline'));
    BBcodeButtons.push(new BBcodeButton('ed_strike','S','','','s','text-decoration:line-through;','strike through'));
    BBcodeButtons.push(new BBcodeButton('ed_link','URL','','[/url]','a','text-decoration:underline;','make a link'));
    BBcodeButtons.push(new BBcodeButton('ed_block','“Sitat”','
    Quote:
    ','
    ','q','padding:0 1px 1px 1px;','Siter tekst'));";
    if (isset($tags['img'])) {echo "BBcodeButtons.push(new BBcodeButton('ed_img','Bilde','[img]','[/img]','m',-1));";}
    echo "BBcodeButtons.push(new BBcodeButton('ed_ul','UL','
      ','
    ','u','','unordered list'));
    BBcodeButtons.push(new BBcodeButton('ed_ol','OL','
      ','
    ','o','','ordered list'));
    BBcodeButtons.push(new BBcodeButton('ed_li','LI','[*]','[/*]','l','','list item'));";
    if (isset($tags['center'])) {echo "BBcodeButtons.push(new BBcodeButton('ed_center','center','
    ','
    ','c','','center'));";}
    echo "BBcodeButtons.push(new BBcodeButton('ed_code','CODE','
    Code:
    ','
    ','p','line-height:160%;font-size:80%;letter-spacing:1px;font-family:anadale,serif;','unformatted / code'));
    BBcodeButtons.push(new BBcodeButton('ed_close','close','','','c',' ','auto-close any tags you left open'));
    }</scr"."ipt>
    <scr"."ipt src='" .bb_get_option('uri').trim(str_replace(array(trim(BBPATH,"/\"),".php","\"),array("",".js","/"),__FILE__),"/\")."?0.0.9' type='text/javascript' defer='defer'></scr"."ipt>";
    }
    ?>

    #77981
    Marius-
    Member

    This plugin is no good. You have to press each button twice? One for quote-start, one for quote-end. You can’t mark up text and wrap it in tags. This is not logical

    #77980
    Marius-
    Member

    Just tried deleting BBCode because I found that BBcode Lite made it work. But then the buttons disappeared.

    Does BBCode Lite require the normal BBCode Buttons plugin to work?

    #77994

    Try CSS instead :) Set the max-width for post.img to what you want, and possible make it overflow: hidden as well.

    #77979
    Marius-
    Member

    You know what, this plugin doesn’t work at all for me.

    edit: Just tried out BBCode Lite, and that works.

    Can you limit the width of an image, so it doesn’t exceed the forum?

    #31481
    Marius-
    Member

    I just installed it, and it’s great, but for me, it has too many features.

    Can I remove some of them? I mainly want to keep Bold, Italic, Quote and Link. Not the other stuff.

    There’s no settings panel for it in Admin.

    #77947
    Sam Bauers
    Participant

    Make sure you update the settings in the bbPress Integration plugin as well and then copy the new code it produces into wp-config.php

    #77973
    Marius-
    Member

    Thats too complicated for me. I’m not an expert coder at all.

    I barely manage to change colors and sizes in the CSS. Just moving the search-bar is a several hour project for me lol.

    I was hoping there was an easy way out, just to make the forum load in the normal page-window, like a normal post would have. Give it the value of a post or something. But recreating a brand new template, and all that stuff, is way too hard for me.

    #77972

    When I edited the Kakumei files, I recreated a sidebar to match the look of the blog with the forum tags and other stuff (blog latest posts, etc.), but without the widgets. The look still matches the blog, though the content of the sidebar is different. Whatever you have as text widgets in the blog you can always hard code in the forum sidebar.

    The “sidebar” is in front-page.php, under

    <div id=”hottags” role=”main”>

    hard code any sidebar content there, then match the css in the stylesheet. You can even float the div to the right, rather than the left, depending on your blog’s theme.

    #68924

    In reply to: WPMU integration

    ovizii
    Participant

    tha code snippet by clarko seems to do the trick even with bbpress 1.0.1 and wpmu 2.8.4

    #59126
    zvoort
    Member

    Great, tnx! ;)

    #77958
    Archie Webmaker
    Participant

    Sorry, Everything is running fine. “the page not found” was simply because of the wordpress custom code in the title. I just type in title name and it run fine.

    #77967

    This is just a custom theme.

    You could do it by making either a page with a redirect to the forum, or just a link to the forum in the header, and then theme your forums to look like your site.

    All the cool kids do it ;)

    #77906
    Olaf Lederer
    Participant

    :(

    no one here with some advice on how to fix that?

    this kind of feature is important for every forum owner

    #75839
    srydzinski
    Member

    I’m a little confused by this solution. where does this code need to go?

    #76675
    _ck_
    Participant

    If this appears in your front-page.php, then you have bbPress 1.0.x and you have a bug

    <?php bb_latest_topics_pages( array( 'before' => '<div class="nav">', 'after' => '</div>' ) ); ?>

    The same bug was in some rare cases of 0.9

    and I programmed around it in topics-per-page

    I doubt it will work properly on 1.0 but you can try installing the plugin, remove the above line and replace it with

    <div class="nav"><?php front_page_pages(); ?></div>

    #76792
    Gautam
    Member

    Thanks :-)

    #69747

    cloo, were there any errors during your conversion?

    I was going to attempt 3.0.4 > bbpress 1.0.2 until I saw this :D

    #77866

    I’m sorry :( That is the ONLY time I’ve seen that error. I mean, you can’t login, so clearly you have no plugins activated to be causing that.

    #77865
    Marius-
    Member

    Well ugh, there is no space there! I’ve checked ten thousand times already.

    <?php
    /**
    * The base configurations of bbPress.
    *
    * This file has the following configurations: MySQL settings, Table Prefix,
    * Secret Keys and bbPress Language. You can get the MySQL settings from your
    * web host.
    *
    * This file is used by the installer during installation.
    *
    * @package bbPress
    */

    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for bbPress */
    define( 'BBDB_NAME', 'michael_forum' );

    /** MySQL database username */
    define( 'BBDB_USER', 'michael_forum' );

    /** MySQL database password */
    define( 'BBDB_PASSWORD', '***' );

    /** MySQL hostname */
    define( 'BBDB_HOST', 'localhost' );

    /** Database Charset to use in creating database tables. */
    define( 'BBDB_CHARSET', 'utf8' );

    /** The Database Collate type. Don't change this if in doubt. */
    define( 'BBDB_COLLATE', '' );

    /**#@+
    * Authentication Unique Keys.
    *
    * Change these to different unique phrases!
    * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/bbpress/ WordPress.org secret-key service}
    *
    * @since 1.0
    */
    define( 'BB_AUTH_KEY', 'put your unique phrase here' );
    define( 'BB_SECURE_AUTH_KEY', 'put your unique phrase here' );
    define( 'BB_LOGGED_IN_KEY', 'put your unique phrase here' );
    define( 'BB_NONCE_KEY', 'put your unique phrase here' );
    /**#@-*/

    /**
    * bbPress Database Table prefix.
    *
    * You can have multiple installations in one database if you give each a unique
    * prefix. Only numbers, letters, and underscores please!
    */
    $bb_table_prefix = 'bb_';

    /**
    * bbPress Localized Language, defaults to English.
    *
    * Change this to localize bbPress. A corresponding MO file for the chosen
    * language must be installed to a directory called "my-languages" in the root
    * directory of bbPress. For example, install de.mo to "my-languages" and set
    * BB_LANG to 'de' to enable German language support.
    */
    define( 'BB_LANG', '' );
    ?>

    #76827
    neilogic
    Member

    You mean the bottom float or something else. For the bottom facebook like bar here’s the code that we are using on Ubuntu India Forums.

    .fbar {
    background:#fff url("images/buttonbar.gif") top left repeat-x;
    border: 1px solid #aaa;
    border-bottom:none;
    height:26px;
    left: 5%;
    bottom: 0;
    position: fixed;
    width:90%;
    z-index:5;
    }

    If you wanna know something else please let me know I will paste it here. Cheers!

    #77834

    In reply to: I want hide tags

    Read this: https://bbpress.org/documentation/themes/

    See how in step 1 it says to make sure you have a my-templates folder?

    You’ll be putting style.css in /public_html/forum/my-templates/NEWTEMPLATE/

    With a header in style.css like this:

    /*
    Theme Name: The name of your cool new theme.
    Theme URI: Your theme's url. Maybe it's the blog post you wrote about it.
    Description: Describe your theme here. You can be nice and say something like "Blues and Greens in a two-column format" or enigmatic and say "The river here is only waist deep".
    Version: Always number your releases. Please only use numbers and decimal points (yes, we broke our own rule).
    Author: Author of the original theme,
    Author URI: and his or her url.
    Ported By: Name of the person who ported the theme to bbPress (if applicable),
    Porter URI: and his or her url.
    */

    Under that you’ll put your custom CSS like

    topic-tags { display: none; }

    post-form-tags-container { display: none; }

    #77943

    In reply to: Edit register.php

    Why not just redirect any calls to register.php to your WordPress site via .htaccess?

    Redirect 301 /forums/register.php http://paperviewzine.com/wp-login.php?action=register
    Redirect 301 /forums/bb-reset-password.php http://paperviewzine.com/wp-login.php?action=lostpassword

    #76826
    Arturo
    Participant

    the login bar is very cool, is possible share the code? thanks

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