Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 23,051 through 23,075 (of 32,495 total)
  • Author
    Search Results
  • #80750

    In reply to: Color of text.

    batrachoid
    Member

    They’re links, so look for

    a { color: #2e6e15; text-decoration: none; }

    #32119

    Topic: Color of text.

    in forum Installation
    InvTrdr
    Member

    When I change the font color to “ffffff” in the code below, it does not apply it to all the text on the top of the page for registration/login etc. It only changes “welcome” and the rest like “admin”, “logout”, “register” and “lost password” are still the same. Where is the color of these fonts (all the text having to do with login, logout, forgot password, logout etc.) controlled in the CSS?

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

    Thank you.

    #50314
    anabelle
    Member

    I’ve been looking the code for a while, I’m not that familiar with bbPress yet, but i’d really like this feature so I’ll keep an eye on this.

    #65166

    In reply to: Several domains

    altimitmine
    Member

    I know this is old but I needed it to, so here is the answer for anyone else finding this on google:

    1) Open bb-includes/functions.bb-meta.php

    2) Find this line:

    case 'url':
    $option = 'uri';

    3) After it, add:

    case 'uri':
    return "http://".$_SERVER['HTTP_HOST']."/forum/";
    break;

    Replace the “/forum/” part with the proper URL to your forums. For example

    http://blah.com/bbpress/

    would be:

    return "http://".$_SERVER['HTTP_HOST']."/bbpress/";

    #80293
    apam
    Member

    bb-gian:

    Thankyou VERY much for your help and the clarity with which you explained yourself.

    I kinda had managed to make images work with tinyMCE alone (tinyMCE3.7.2, bb-press1.01) and have only used your tip on the ‘functions.bb-formatting.php’ that I’m not too sure is working.

    When I insert images and then render the page there is a ‘ “image26.jpg” />’ after the image itself, looking at the source code I see a linebreak (br) inside the value of the ‘alt’ attribute that breaks the code.

    Same thing happens on links: a linebreak ‘br’ at the beginning of the ‘href’ value.

    Anyone having/had the same problem?

    #32113
    alekseo
    Member

    Is it possible to install bbPress in the same folder as WordPress or have anyone tried? I have seen alot of people trying to remove the extra /forum url that appears in bbPress. This really seems like the obvious solution and like it’s what it’s coded for initially. I only fear that it’s too easy and straight forward that it won’t work =)

    #32105
    notprathap
    Member

    I recently installed bbpress by extending buddypress 1.1 with wordpress mu 2.8.4. While everything is ok on the buddypress end, the forum does not have a “Add New Topic” link displayed…. I tried adding topics and posts through the database too, but same result! :( You can find the link to the forum here – http://smartlearnwebtv.com/iitjee/forums. I’d appreciate any help from you guys.

    Note: The forum under the “Groups” category seems to work fine – not sure if this has got anything to do with the problem am facing.

    #80600
    ZoiX
    Member

    Thank you Olaf, but, I was trying with this plugin before and I can’t get a highlighting code, just a white square with the information.

    And, another issue, is that if I write the quotes, bbpress (or the plugin?) change for more quotes: I write “as”, and get “”as””, so, I need to write <pre lang=as>code</pre >

    #55973

    In reply to: Show off your Forum !!

    Peter A. Gebhardt
    Participant

    A (German) standalone implementation using “Hidden Forums” (and some more of _CK_s fine PlugIns) and some code tweaking to differentiate user experience for:

    • Visitors
    • Members
    • Exklusive Contributors (Experts)
    • Customers (Subscribers)

    http://versam.org/bb-vers/

    Peter A. Gebhardt
    Participant

    Change template-functions.php as described below:

    function post_form( $h2 = '' ) {
    global $page, $topic, $forum;
    $add = topic_pages_add();
    if ( empty($h2) && false !== $h2 ) {
    if ( is_topic() )
    $h2 = __('Reply');
    elseif ( is_forum() && !bb_forums( $forum_id )) // <== Change here
    $h2 = __('New Topic in this Forum');
    elseif ( is_bb_tag() || is_front() )
    $h2 = __('Add New Topic');
    }
    ...

    It’s a pity that I had to change a core file. Maybe somebody else could contribute a better solution?

    #80622
    chrishajer
    Participant

    Which text in the footer? The “Invicta Trader Forums is proudly powered by” text?

    #footer p {
    color:red;
    }

    This will change the color of that text.

    If you’re not talking about that text, please post exactly what text you want to style.

    Also, please stick with one subject per topic so we can close items as they are resolved.

    #80621
    InvTrdr
    Member

    Found the h1 color. Was set on a separate line. Below is the code for the footer. Where do I set all the text color in there?

    #footer {
    font-family: Georgia;
    font-style: italic;
    border-top: 0px solid #ccc;
    margin: auto;
    color: #666;
    font-size: 1.4em;
    padding-top: 10px;
    clear: both;
    text-align: center;
    height: 80px;
    width: 960px;
    }

    Thank you.

    #32103
    InvTrdr
    Member

    When I am using the code below to change the h1 text color, it will not work. Is it set somewhere else in the stock theme “Kakumei”? I was trying to change the color line below to ffffff from 444. Same problem with footer font too. Just some of it changes to ffffff.

    Thank you.

    #header h1 {
    font-family: Georgia;
    font-style: italic;
    overflow: auto;
    position: absolute;
    display: block;
    color: #444;
    text-align: right;
    letter-spacing: -1px;
    right: 69px;
    bottom: 36px;
    padding: 6px;
    z-index: 2;
    }

    #32093
    Immelody
    Member

    I’m hoping this is possible, but am doubtful. Hopefully someone can help if it is possible.

    I run a small community website. I have a friend that runs a similar but not exactly the same small community website. We were looking to become “sister” websites. What we want to do is have the message boards from both sites be a single board. This part isn’t what I’m worried about. I know it’s as simple as directing a link.

    What we are wanting however is to have her WP theme show up as the bbP theme when entered from her domain.. And when entered from my domain, my WP theme to show up as the bbP theme. Does anyone feel this is 1) possible 2) relatively “easy” to accomplish? When I say relatively easy, I mean that I know it will be difficult, but I don’t want to re-write ALL of the bbPress code.

    Thanks!

    #55972

    In reply to: Show off your Forum !!

    http://tempestchasing.com/forum/

    Plugins:

    Akismet

    Bavatars

    bbPM

    bbPress-WordPress syncronization

    bbPress Favicon

    bbPress Moderation Suite

    bbPress Polls

    bbPress signatures

    bbPress Smilies

    C*nsor

    Members Online

    Reputation (Karma) for bbPress

    Subscribe to Topic

    Topic Icons

    Theme: Simples

    This forum is integrated with my WP blog, which is a weather/severe weather blog. The site is finished, its just picking up some users that is a but tough :) feel free to check it out. If you at all feel like you want to register, do it through WP, not bbPress. I haven’t altered the login system on bbPress yet

    #80292
    bb-gian
    Member

    @apam

    What I did to make images work with Allow Images plugin is to go in the plugin’s php file and comment out this chunk of code (at the bottom of the file):

    remove_filter( ‘pre_post’, ‘encode_bad’ );

    add_filter( ‘pre_post’, ‘allow_images_encode_bad’, 9 );

    add_filter( ‘pre_post’, ‘allow_images’, 52 );

    Like this:

    // remove_filter( ‘pre_post’, ‘encode_bad’ );

    // add_filter( ‘pre_post’, ‘allow_images_encode_bad’, 9 );

    // add_filter( ‘pre_post’, ‘allow_images’, 52 );

    That worked for me. Hope it does work for you as well.

    Bonus tip: with TinyMCE installed, if you try to “Edit” a post, you get <p>tags all over the text. To fix that go to this file:

    bb-includes/functions.bb-formatting.php

    Find this chunk of code:

    function bb_code_trick_reverse( $text ) {

    $text = preg_replace_callback(“!(

    |)(.*?)(
    |)!s”, ‘bb_decodeit’, $text);
    $text = str_replace(array(‘<p>’, ‘’), ‘’, $text);
    $text = str_replace(‘</p>’, “n”, $text);
    $text = str_replace(‘<coded_br />’, ‘’, $text);
    $text = str_replace(‘<coded_p>’, ‘<p>’, $text);
    $text = str_replace(‘</coded_p>’, ‘</p>’, $text);
    return $text;
    }

    And comment out this two lines:

    // $text = str_replace(array(‘<p>’, ‘
    ’), ‘’, $text);

    // $text = str_replace(‘</p>’, “n”, $text);

    You may now have a proper Editor.

    #80457
    chrishajer
    Participant

    If the theme author coded it in to the theme, just find it in the theme and remove it.

    You can also change it by creating a functions.php file in your theme folder, and put this in it:

    <?php
    remove_filter('bb_topic_labels', 'bb_closed_label');
    add_filter('bb_topic_labels', 'my_closed_label');
    function my_closed_label( $label ) {
    global $topic;
    if ( '0' === $topic->topic_open )
    return sprintf(__('[Read Only] %s'), $label);
    return $label;
    }
    ?>

    That changes [Sticky] to [Read Only]. You can change the [Read Only] to whatever text you want instead of sticky.

    #80609
    chrishajer
    Participant

    This makes the block quotes on your test thread look different in my browser:

    #thread .entry blockquote {
    color:red;
    padding:0 25px;
    font-weight: bold;
    font-style:italic;
    }

    Just add that after #thread .entry in your style.css and change the styling rules to whatever you want.

    #32099
    meursault2
    Member

    Homepage – http://www.sublimeoblivion.com/forum/

    Using a heavily-customized theme of Options 0.1 Alpha (Dark) by Justin Tadlock (http://bbshowcase.org/themes/bbpress-options.zip)

    [blockquote]Quite simply, the problem is that BBquotes don’t work.[/blockquote]

    It doesn’t matter whether I use

    Quote:
    , [blockquote] or the HTML code for blockquotes.

    I’ve noticed that removing the { margin: 0; padding: 0; } at the very start of the style.css does enable it, but it jumbles up the paddings and alignments for the header menus and topic posts. My attempts to import code enabling normal quoting from other themes were unsuccessful. PS. Justin’s “Structure” theme also doesn’t support quotes.

    Any help or advice will be much appreciated, thank you.

    #55970

    In reply to: Show off your Forum !!

    ioni
    Member

    Hi there,

    my turn, I suppose!

    Well, the ioni2 theme is deeply integrated with WordPress (it relies on WP to build menu and parts of footer, for instance), but in any other aspect it is purely bbPress:

    forum.sunshine.by

    Uses:

    • Akismet
    • Allow Images (allthough truth to tell it is not working as well as it is supposed to.. but alas!)
    • bbPress Sitemap Generator
    • bbPress Web Compression (A must have!)
    • Related Topics
    • Simple Online List
    • Topic Icons (almost useless with my theme)

    There are not much people of the forum so you may freely check it out and try post anything to see how it is working! The theme is translated into Russian (although written in English), and shall you desire to get it – just let me know :) The same goes for the translation.

    The major point here is that the theme is HTML5 (I keep developing it, just keep that in mind) – and it looks exacly the same in IE, FF, Chrome, Opera and Safari

    Wanna check it outforum.sunshine.by?

    #80595
    Jiyong
    Member
    #32096
    KillerSneak
    Member

    So i need some help. I have integrated BBPress with WordPress but the template I’m running only loads the Jquery SuperFish menu when it finds WP 2.8 – i need to alter the code so it also loads when it find BB press 1.0 / 1.0.2

    here’s the code

    <?php

    if ( $wp_version != '2.8')

    {

    wp_deregister_script('jquery');

    wp_enqueue_script('jquery', get_template_directory_uri() . '/js/jquery-1.3.2.min.js', null, '1.3.2', false);

    wp_enqueue_script('jquery-ui', get_template_directory_uri() . '/js/jquery-ui-1.7.1.min.js', 'jquery', '1.7.1', false);

    } else {

    wp_enqueue_script('jquery-ui-tabs', null, array('jquery', 'jquery-ui-core'), null, false);

    }

    if ( $bb_version != ‘1.0’)

    {

    wp_deregister_script(‘jquery’);

    wp_enqueue_script(‘jquery’, get_template_directory_uri() . ‘/js/jquery-1.3.2.min.js’, null, ‘1.3.2’, false);

    wp_enqueue_script(‘jquery-ui’, get_template_directory_uri() . ‘/js/jquery-ui-1.7.1.min.js’, ‘jquery’, ‘1.7.1’, false);

    } else {

    wp_enqueue_script(‘jquery-ui-tabs’, null, array(‘jquery’, ‘jquery-ui-core’), null, false);

    }

    wp_enqueue_script(‘jquery-cycle’, get_template_directory_uri() . ‘/js/jquery.cycle.all.min.js’, ‘jquery’, null, false);

    wp_enqueue_script(‘jquery-validate’, get_template_directory_uri() . ‘/js/jquery.validate.min.js’, ‘jquery’, null, false);

    if ( !function_exists(‘pixopoint_menu’) ) {

    wp_enqueue_script(‘hoverintent’, get_template_directory_uri() . ‘/js/superfish/hoverIntent.js’, ‘jquery’, null, false);

    wp_enqueue_script(‘superfish’, get_template_directory_uri() . ‘/js/superfish/superfish.js’, ‘jquery’, null, false);

    }

    if ( is_singular() ) {

    wp_enqueue_script(‘comment-reply’);

    }

    wp_enqueue_script(‘arras-base’, get_template_directory_uri() . ‘/js/base.js’, ‘jquery’, null, false);

    wp_head();

    arras_head();

    if ( !function_exists(‘pixopoint_menu’) ) :

    ?>

    <script type=”text/javascript”>

    $(document).ready(function() {

    $(‘.sf-menu’).superfish({

    delay: 1000, // one second delay on mouseout

    animation: {opacity:’show’,height:’show’}, // fade-in and slide-down animation

    speed: ‘fast’, // faster animation speed

    autoArrows: false, // disable generation of arrow mark-up

    dropShadows: false // disable drop shadows

    });

    });

    </script>

    <?php endif ?>

    #80502
    weildish
    Member

    Luckily my system administrator makes automatic backups of the databases, so he just dropped all of the tables and then restored my database from about a day before. After a lot of research, I found it was basically impossible to restore the affected tables without a backup because not only did it change a lot of stuff I didn’t understand with some of the columns and the index of the posts table, but it changed every single “post_status” entry to “0” instead of what they should be– “publish,” “draft,” and etcetera. Anyway, things were really messed up.

    My advice to anyone who has a similar problem and comes across this post is:

    A.) Look before you leap! Go over your settings many times before installing!

    B.) Backup the databases regularly and especially when installing or upgrading!

    Thank you, crishajer, for your help. I greatly appreciate the time you took. Again, thank heaven for sysadmins with more sense than site administrators! :)

    #32097
    ZoiX
    Member

    Hi all!

    I have a problem with BBPress:Syntax Hiliter plugin and simple quotes (‘) or normal quotes (“).

    When in my code I have a quote, the plugin (or bbpress?) change it by the hexadecimal code.

    For example, if in my code I have a simple quote (‘), appear in the code &#39.

    .

    I was reading an issue about it and maybe the functions.bb-formatting.php file have an answer, anyway, I don’t have what I need to edit.

    Anyone have any idea?

    Thank you :)

    #56797

    In reply to: Plugin: Avatar Upload

    dangerousape
    Member

    @wilcosky and everyone else who’s asked here and on the other thread, having cracked it this afternoon with the aid of a couple of online code snippets and my limited PHP skills, here’s how to display your avatars from this plugin in WP if you have WP and bbPress integrated and sharing the same user table.

    In your sidebar, or wherever you want to have them (or a “welcome, guest” message or whatever) appear, put this code snippet…

    <?php global $user_login;
    get_currentuserinfo();

    if ($user_login == '') {
    echo('Welcome Guest');
    } else {

    $directory = '/your/DOCUMENT_ROOT/path/to/forum/avatars/';
    $flag = false;
    $ext = array( '.jpg' , '.gif' , '.png' );

    for( $i = 0; count( $ext ) > $i; $i++ )
    {
    if( file_exists( $directory . $user_login . $ext[$i] ) )
    {

    $flag = true;
    $name = $user_login . $ext[$i];
    }
    }
    if( $flag == true )
    {
    echo "<img src="http://www.yoursite.com/forum/avatars/".$name."" />";
    }
    }
    ?>

    Note that the path for $directory is your DOCUMENT_ROOT one (you can use an ‘echo’ or ‘print’ PHP command to find it if you don’t know it, google for instructions; it’s usually something like ‘/home/user/public_html/’), while the later image source path is the standard http one. If your avatar directory is somewhere other than /yoursite.com/forum/avatars/ then, obviously, you’ll need to edit accordingly.

    If you use a different set of possible image file extensions than the usual .jpg, .gif and .png trio you’ll also need to edit the $ext array (so if you don’t allow .gifs, it’d be $ext = array( '.jpg' , '.png' ) for instance).

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