Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 31,401 through 31,425 (of 32,431 total)
  • Author
    Search Results
  • #1245
    nekketsu
    Member

    Hi,

    i request a plugin for upload files :)

    #53416
    Trent Adams
    Member

    $bb->path = '/bbpress/';

    I am also assuming that you don’t want to integrate the logins with WP then as you don’t have your wordpress information for integration.

    Trent

    #53415
    chrishajer
    Participant

    Your forum is at http://ward3brighton.ca/bbpress/ not http://ward3brighton.ca/forums/ . It’s unstyled since the path is wrong. It seems to me that you changed the config.php to put the forum in a directory called forums but left the folder name as bbpress when you unzipped it.

    Can you check that and rename the bbpress folder to forums?

    #53398

    In reply to: for each question

    ear1grey
    Member

    $class="special";

    foreach($foo as $bar) {

    echo("<p class='$class'>$bar</p>);

    $class="";

    }

    #51957
    Atsutane
    Member

    Correct me if i wrong .. by default when a user is regis. WP will set the “display name” equal to “username”. I try the code already and i dont get a blank name :) Anyway maybe i will change the code to do a double check.

    #1241
    Null
    Member

    Ok, I have searched the net for hours, but I couldn’t get an answer for my question.

    If we use the for “each function” in php we can get a list of items like:

    Jack

    John

    Adrian

    Etc

    But the first name a want to have bold so it looks like:

    Jack

    John

    Adrian

    Etc

    Best way for me to do this, is to ad a class to the first name in the php code. But how do I do this? Cause the “for each” generates a list that is the same for eacht row (php/html code wise). So I only want the first name to be bold using a class (from a css) but all others not effected.

    Thx

    #53027

    In reply to: If code-question

    Null
    Member

    Thx guys

    #53026

    In reply to: If code-question

    so1o
    Participant

    nope.. it will be

    if(is_front() || is_topic())

    #53025

    In reply to: If code-question

    if(is_front() && is_topic())

    Hope I’m not saying something wrong =)

    #1179
    Null
    Member

    Hi

    I am using this code :

    if (is_front()){ echo ‘bla bla’ } etc

    But I also want to add is_topic() in this if. How do I do that?

    This has to be a noob question :D

    #51955
    Atsutane
    Member

    I update the plugin already .. Now it gonna show “display name” instead of “username” like before. Tell me how it going :)

    #53392

    In reply to: My Template

    chrishajer
    Participant

    Hi, I see a couple things.

    You’ve made the div #header 800px wide, but the div #main below it is only 760px wide – they need to be the same if you want the header image as wide as the div below it. Also, the left and right margins should be auto to match the div below (handles screen resolutions down to 800×600 that way, and is centered on anything bigger.)

    So, this in your div #header in the style.css:

    margin: 0px auto;

    width: 760px;

    That makes the header graphic spots.gif as wide as the ‘table’ below it. If you want it to be as wide as the page, that’s something different altogether.

    Since you removed the bbPress circle logo, you might also want to move the #header h1 over to the right a little bit:

    right: 10px; instead of the 59px there now.

    Hope that helps.

    #53373
    JzL
    Member

    thank you bbolman.. I was placing the code after that line, not before. That did it… but I had to disable “Ultimate Tag Warrior” plugin to keep from getting any errors.

    Now, on to trying to customize the look of bbpress. Thanks again.

    #53372
    bbolman
    Participant

    Yes, you add that line of code on the line directly before this line (I believe):

    require_once( BBPATH . ‘bb-settings.php’ );

    Make sure to change that piece of code to match the actual location of your file. When I put that code into my installation though, all I get are errors. I’ve found you can get away without it.

    #53389
    chrishajer
    Participant

    Couple things I see:

    1. The file actually begins with <?php right?
    2. The line where your password is defined has two single closing quotes. Is that a typo from editing or is that how your actual file is?

      define('BBDB_PASSWORD', '******'');

      ……………………………………..two closing quotes ^

    3. is the name of your database host actually mysql, or should it be localhost or some other host name (if the MySQL database is on another server)?

    #53371
    JzL
    Member

    so1o, thanks for the reply.

    when you say “include the wp-config.php in the config.php”… is that not what I did when I added the line of code:

    require_once( '/home/content/j/z/l/jzlharvey/html/wp-config.php');

    #1237

    After i updated to 0.75 the You must log in to post. is no longer displayed.

    http://trac.bbpress.org/changeset/580/trunk/bb-includes/template-functions.php

    This was the change, I think there is a echo missing in line 138.

    #53254
    chrishajer
    Participant

    Staffan, are you using pretty permalinks, mod_rewrite?

    from config.php:

    // Set to true if you want pretty permalinks.

    $bb->mod_rewrite = false;

    what is your setting there?

    #51978
    skrimpy
    Member

    great plugin, it cleaned up my front page quite a lot. Thanks :)

    #53369
    JzL
    Member

    Bueller… Bueller… Bueller… :

    #50691

    In reply to: First Plugin Attempt

    I think you should use a function like:

    function apply_author_title_image( $r ) {

    $r .= '<br>Your Image';

    return $r;

    }

    add_filter('post_author_title', 'apply_author_title_image');

    #53332
    Trent Adams
    Member

    Just try logging in one time with their username with the wrong password and the links to recover password comes up. There is no ‘hard code page’ that I am aware of. That file is called off login page and has to pass the username to it ahead of time, so calling it directly won’t work.

    Trent

    #50690

    In reply to: First Plugin Attempt

    Geezerjim
    Participant

    I found the error. It was way above the function quoted. (A missing close quote in a switch statement.)

    Now, I’m not sure where to place it in the code. What I want to do is place the graphic under the posters title. (ie. On this page a graphic would be displayed below the member’s name and the title like this:

    thomasklaiber

    Member

    {GRAPHIC}

    #50689

    In reply to: First Plugin Attempt

    Hmm … which of the lines is line 82? I just can’t see any error, too.

    I also put it into my Code Analyzer, the only strange thing it said was that you dont’t use the function variable $id.

    I have no idea -.-

    #50943

    In reply to: Quote Option

    Trent Adams
    Member

    Peiqinglon wrote: I think it would be very cool to have a quote button on each post so you can quote what a person has said like in other forums. =)

    I agree as well. The way I just did it is the only way to do it right now (using blockquote on your server might be better).

    Trent

Viewing 25 results - 31,401 through 31,425 (of 32,431 total)
Skip to toolbar