Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 23,951 through 23,975 (of 32,480 total)
  • Author
    Search Results
  • Marius-
    Member

    I use a code in my theme in many places. This is to make the corners on boxes round. It’s this one here:

    -moz-border-radius-bottomleft:6px;
    -moz-border-radius-bottomright:6px;
    -moz-border-radius-topleft:6px;
    -moz-border-radius-topright:6px;

    IE don’t read it at all. So everything is square and sharp. Strange thing is, Safari on my Mac, only applies it for my Postwindow, but nowhere else. So one box is round, and the rest is square.

    Mozilla Firefox however, reads this code perfectly, and applies it to everything I’ve assigned this code to. So the forum looks best in Firefox, but is there a way I can make it look as good in the other browsers too?

    #77988
    Marius-
    Member

    Ah, I have one simple wish too. Maybe you could give me the code to put in right here :)

    A youtube button! Is this possible?

    Try define( 'BBDB_HOST', '0.0.0.0' );

    #78003

    Doy! Max-Width is correct, and it will NOT resize your images and make them larger :)

    Moar Coffee, Less Meetings, Plz.

    #78002
    Marius-
    Member

    Is it then possible to click the image, and enlarge it? or is it just plain and simply resized with no other options?

    I read somewhere that if a user posts a small image, this will be enlarged to that size, when using CSS, is this true?

    edit:

    Ipstenu, I tried your CSS code, and that did not work either. But this did:

    #thread .post img {max-width:580px;

    I only used Vanilla for a couple hours. I have a knee-jerk reaction to most code and if I don’t enjoy using it right away, or have issues setting it up/themeing it how I want, it gets dumped.

    And I’m not comfortable telling you strengths and weaknesses because they’re subjective. Seriously, I say it a lot but it’s true.

    Me? I don’t like PMs and reporting posts, membership ‘levels’ and all that hoopla. So for me, bbPress is great because it’s small, simple and I can write plugins for it since I’m familiar with WordPress. But see how subjective that is? You may want those things and see it as a weakness that bbPress doesn’t have them.

    Knowing what each products strengths and weakness will help determine if it fits needs.

    I think you’re doing it backwards. Start with a list of your needs and your wants. Then go ask each place ‘Can you do this and if so, how hard is it?’

    #78020

    Sure, just go edit your theme :)

    #77987
    Marius-
    Member

    Ah you’re the author huh. Yeah well, it’s good you took initiative. Would really appreciate an admin panel for it. Like “what color do you want as background, what features do you want to include” etc. Had a hardass time styling the css in this one. The result turned out good though, so it wasn’t impossible.

    However, more importantly, I wish for the option to select text, and one click on button will automatically at a start and end-tag. Instead of clicking twice. This is the number one wish! All the other stuff I can live with.

    #76821

    Pratik, those BB_ definitions should be in your BB-CONFIG file, not your WP-CONFIG file :) Move ’em over and try again.

    My original post is simply trying to understand *what* makes one of these forums systems better than another (pro/cons).

    I’ve said this many times before: It all depends on your needs in a forum.

    I’m not trying to avoid the subject, I just think it’s SO subjective that there is no answer. _ck_’s needs are different from mine, mine are different from yours. We may all have some things in common, but not all. Make a list of what’s important to you and then go find a forum that fits the bill. There is no one answer that forum A is better than B and they’re both better than C but worse than D except if you want to do foo and bar … You see how that gets weird? :)

    I didn’t like Vanilla when I tested it, and I certainly didn’t find it easy to integrate with WordPress. In fact, their Single Sign On page says it’s still in Beta.

    Also most apps talk like their competitors don’t exist not to be mean, but because it quickly turns into bashing and no one likes that. The beauty of open-source is that anyone can do anything with everything :)

    #77998

    Did you try it with CSS? You shouldn’t need a plugin with this.

    This should cover it, it’s what I’m using and I’ve had no more page borking:

    post.img { width: 600px; overflow: hidden; cursor: pointer; }

    You may need to adjust width as needed.

    #31491
    nickf1195
    Member

    Hi.

    I am in the process of integrating bbPress with only my WordPress theme, not login or cookies. I have placed this in bb-config.php:

    <br />
    if ( !defined( 'ABSPATH' ) ) {<br />
    include_once( '../wp-config.php' );<br />
    }<br />

    and this in bbpressbb-templateskakumeiheader.php:

    <br />
    get_header();<br />
    echo_css(); // function from WP theme's functions.php<br />

    The WordPress header loads, but some of the CSS isn’t present from the WordPress theme when I don’t have echo_css(); in the code. The CSS is produced by the WordPress theme’s functions.php, which doesn’t appear to be loading. I can call functions from functions.php inside bbPress, including the one that outputs the CSS, but it is placed at the wrong point in the code (inside the body tag instead of head,) even though I run it immediately after get_header();. I would also like it to be flexible in the event I change the theme.

    So my question is: Is there a function inside WordPress to process the functions.php? Should I be in the WordPress forum?

    Thanks a lot for your time and help!

    Nick

    #77986
    _ck_
    Participant

    When you do it for the code line make sure you put it after the echo part, ie.

    echo "// BBcodeButtons.push

    The reason why there is so little documentation is because there aren’t any donations for my plugins so there is no development/documentation. There is no support, keep that in mind when you take something for free and then want to customize it.

    #31488
    Olaf Lederer
    Participant

    While this plugin is not available on the bbpress site, I post this information here to reach as many user as possible:

    Just noticed that the old version of the bbpress SEO pluging doesn’t work with the current bbpress version (1.02).

    Because the old method to handle and meta keywords stopped working we did a quick update.

    This is a required update for user of bbpress 1.x!

    Using the old version with bbpress 1.x will result in loosing rankings search engine result pages!

    What is changed:

    • We fixed the code that is responsable for the meta keywords and the “noindex” option.
    • Optimizations of the admin page (information, spellcheck).

    Download the new version here:

    http://www.finalwebsites.com/bbpress/bbpress-seo-tools.php

    #31486
    Marius-
    Member

    Does that exist? The language-list is kind of a sad sight, but i see no “No” there. Any Norwegian users here?

    Without it, I’m gonna have to open every single php file and translate :(

    #77985
    Marius-
    Member

    HEEEEEEEEEEEEEEEEEEEEEEEEEEELLLLLLLL……..

    Not to shout but HEEEEEEEEEEEEEEEEELLLLL

    I sat up all night removing code completely, and it’s this easy? Just two slashes? Poor bastards couldn’t write that in the fucking readme file.

    It’s not that easy, when removing the “Code” button this way, I get the following error:

    Parse error: syntax error, unexpected ‘<‘ in /home/michael/public_html/forum/bb-plugins/bbcode-buttons/BBcode-buttons.php on line 29

    #76906
    neilogic
    Member

    I did have the same problem but in different context where I never wanted to dive into the code because the theme I was making was to be used by someone else and thus I just wanted the person place it and activate it and it should worked rather then him diving into the code and replacing the files.

    In the end what I did was , as BBPRESS 1.0+ supports the use of functions.php in theme files . so i just copied the function from the function.bb-template.php and changed the funciton name a bit and then replaced it in theme files.

    Example : like “You must login to post.” is in post_form function in function.bb-template.php file. I copied the function to functions.php in my bbpress template. renamed the function from post_form -> post_form_edited and made the replacements I wanted and then in my theme files where ever it was using the old function of post_form() i replaced it with my new edited function post_form_edited().

    like in your functions.php after you copy the post_form function and change it to post_form_edited you can find the line “__(‘You must log in to post.’),” and change it to anything you want. And use the new function in your theme. Like this you won’t have problems upgrading the bbpress installation too in future.

    then I dived in the theme files and replaced all the post_form() with post_form_edited() and voila it worked. But in my case I knew what I was using like the plugins and stuff and thus i tested it with everything first.

    I hope this helps you out . Some of the stuff I told above has been applied to the postform in http://forum.ubuntu-in.info.

    #25049
    richcon
    Member

    Is there any way to replace that “You must log in to post.” text that appears to non-logged-in visitors with a more friendly login / registration form?

    I’m a pretty skilled PHP coder and theme author, but from looking through the bbpress source that line seems to be hard-coded? I’m hesitant to start mucking with bbpress’s core files themselves (makes upgrading a pain), so is there any way to change that with a plugin?

    Thanks!

    #77984
    _ck_
    Participant

    Simply put two slashes in front of any code you want to disable.

    ie.

    // BBcodeButtons.push(new BBcodeButton('ed_ol','OL','
    
      ','
    ','o','','ordered list'));
    // BBcodeButtons.push(new BBcodeButton('ed_li','LI','[*]','[/*]','l','','list item'));";

    #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?

Viewing 25 results - 23,951 through 23,975 (of 32,480 total)
Skip to toolbar