Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 30,751 through 30,775 (of 32,432 total)
  • Author
    Search Results
  • #55605

    In reply to: User profile link

    wittmania
    Member

    From doing a quick search in Dreamweaver for bb_option, I found several different parameters that can be passed to the bb_option() function, as listed below:

    1. version
    2. uri
    3. admin_email
    4. name
    5. path

    I’m sure there are more, but I don’t know what they would be. Also, for this specific application you could just hard-code in your site’s uri, and the only dynamic portion would be the number tacked onto the end. But, since code is poetry, the bb_option() method seemed much more poetic to me.

    As for the get_post_author_id() function, I think I just scrounged around in other files (including plugins) until I found one that looked like it would work. And it does.

    #54350
    spencerp
    Member

    Here’s one site’s informations:

    http://spencerp.net/blah.php

    Yeah, I’ve played on the live environments before. Sub domains and such. However, I’m also on crap dial-up connections and don’t always have time to be online. Also, since there is only ONE phone line in the house and the family using the line .. it sucks.

    But this issue wasn’t that bad before, it just started up I think the past few times of fondling the bbPress software. They need to fix this shit, and once it’s working good.. leave it the hell alone! LoL! =P

    spencerp

    #55441
    fel64
    Member

    Oh yes, I forgot about that. Sorry.

    This should work only in posts:

    .post img {
    max-width: 600px;
    max-height: 800px;
    }

    I think the max-dimension doesn’t work in Internet Explorer, not sure how much that bothers you? You can additionally add:

    .post {
    overflow: auto;
    }

    so that images larger than your post area will not break the layout but simply have a scrollbar at the bottom to navigate it. :)

    #55592
    fel64
    Member

    Chrishajer, a neater version of your code is:

    .post {
    overflow: hidden;
    }

    I suspect although I haven’t tried it. :)

    What I use is

    .post {
    overflow: auto;
    }

    which annoyingly is not the automatic setting … what it does is wrap text normally unless text/links are really long, in which case it displays a scroll bar at the bottom of the post. Works a treat for images, too. :) Also good for code which isn’t wrapped.

    #55597

    In reply to: web designing

    fel64
    Member

    Never click their links – they’ll be able to see where the clicks come from, and if they get traffic from here they’ll try again :) Copy and paste the URL into the browser if necessary.

    #55604

    In reply to: User profile link

    fel64
    Member

    Thanks a lot for posting it here afterwards. :D What other bb_options are there/where did you find them?

    #1566

    Topic: User profile link

    in forum Themes
    wittmania
    Member

    I searched for this and didn’t find anything, but by scrounging through the code I found the necessary functions to make it work. I long for the day when the tags/functions in bbpress are documented like they are in WP.

    At any rate, I don’t really care for the “Title” line under a post author’s name, and I wanted to replace it with a simple link to the post author’s profile instead. The code I used was:

    <a href="<?php bb_option('uri'); ?>profile.php?id=<?php echo (get_post_author_id()); ?>">View Profile</a>

    I added this in post.php, where the <?php post_author_title(); ?> line had been inside the threadauthor div.

    I’m so proud of myself, I think I’ll go have a snack!

    #55591
    flaerpen
    Member

    if you have a really long link it’s a problem :/

    I have that problem actually..

    #55603

    In reply to: Limiting tags

    Change your template to set a limit on the number of tags:

    <?php tag_heat_map(array('limit'=>10)); ?>

    #54344
    spencerp
    Member

    Just a note, and it would be nice if this was FIXED in core soon please! I currently just did a fresh install of the TRUNK on localhost, and have the same problem as Kirkk here:

    https://bbpress.org/forums/topic/700?replies=36#post-4849

    Stylesheet URL is this:

    <link rel="stylesheet" href="http://localhostforum/bb-templates/kakumei/style.css" type="text/css" />

    That plugin Trent posted is applied, and is NOT working… Please, fix this issue soon guys.. ;) :) And by the way, no, my localhost copy of the forums are still borked.. >_<

    And course! My config.php file settings are right.. I’ve done this numerous of times before.. wheee! Even used the original config.php file from before, when it was installed before and working.. she still borked regardless sigh..

    spencerp

    #55495
    john001
    Member

    hi dear, you must go to php.net, they people always have good samples code there. for more detail you must visit http://www.webdesigningcompany.net

    #55589
    chrishajer
    Participant

    Are your words really that long? I know long words will do that, but with shorter length words, they wrap normally, normally.

    Do you have an example with real, not fake, text? Or an example URL where one can see the actual layout and CSS being used?

    Maybe you can do something like this in the CSS:

    .post {
    overflow-x: hidden;
    overflow-y: hidden;
    }

    #55515
    fel64
    Member

    If you log in incorrectly it should take you to the ‘incorrect login’ page. It should always do this.

    Otherwise, force refresh by pressing Ctrl + F5. I found it an annoyingly simple solution when I was accessing the forums from somewhere other than the usual and I just couldn’t log in – turns out I was always logging in and it just cached the old, unlogged-in version of the page.

    They don’t have to be in the same folder, I for example have got them in different subdomains and have no problem.

    #55586
    Trent Adams
    Member

    This is a setting in your config.php, but if you are interested in limiting discussion based on time, check out this plugin:

    https://bbpress.org/plugins/topic/21?replies=1

    Otherwise:

    // The number of topics that show on each page.
    $bb->page_topics = 30;

    Trent

    #55568

    In reply to: User ID = 999999999?

    wittmania
    Member

    OK… so I do have access to phpMyAdmin, which may not be such a good thing.

    Somehow I got some things crossed up so I am now getting these messages from within the wp_users table:

    !!! PRIMARY and INDEX keys should not both be set for column ID

    !!!More than one INDEX key was created for column ID

    !!!UNIQUE and INDEX keys should not both be set for column user_login

    Here is the raw text of the indexes from that page:

    Indexes:

    Keyname Type Cardinality Action Field

    PRIMARY PRIMARY 5 Edit Drop ID

    user_login UNIQUE 5 Edit Drop user_login

    user_login_key INDEX None Edit Drop user_login

    ID_2 INDEX None Edit Drop ID

    ID_3 INDEX None Edit Drop ID

    ID_4 INDEX None Edit Drop ID

    This is a longshot, but can you tell what I messed up, and how I should fix it? Sorry. I really appreciate the help.

    While I wait for a response I will be banging my head against my desk for not backing up the DB before I started messing around with it. :(

    #52641
    CMoseley
    Member

    Does this still work anymore in bbPress 8.2?

    When I went to modify the functions.php as requested in the top thread, I didn’t find a seemingly logical place to put the code.

    Between lines 1382 and 1394:

    $topics = array_flip((array) $bbdb->get_col("SELECT topic_id, COUNT(*) FROM $bbdb->tagged WHERE tag_id = '$tag_id' GROUP BY topic_id"));

    $counts = (array) $bbdb->get_col('', 1);

    if ( $tags = $bbdb->query("DELETE FROM $bbdb->tagged WHERE tag_id = '$tag_id' AND user_id = '$user_id' AND topic_id = '$topic_id'") ) :

    if ( 1 == $counts[$topics[$topic_id]] ) :

    $tagged = $bbdb->query("UPDATE $bbdb->tags SET tag_count = tag_count - 1 WHERE tag_id = '$tag_id'");

    $bbdb->query("UPDATE $bbdb->topics SET tag_count = tag_count - 1 WHERE topic_id = '$topic_id'");

    $bb_cache->flush_one( 'topic', $topic_id );

    if ( 1 == count($counts) )

    $destroyed = destroy_tag( $tag_id );

    endif;

    endif;

    return array( 'tags' => $tags, 'tagged' => $tagged, 'destroyed' => $destroyed, 'sig' => array(0, __('Signature')) );

    }

    I put it on the second to last line, but somehow I don’t think this is correct as its not working =D.

    When I go to my profile page, there is no option to input a signature of any sorts, so obviously I can’t have a signature show up.

    Any help would be much appreciated.

    #1560
    #1559
    wittmania
    Member

    I have recently integrated a bbpress install with an existing wordpress blog/site. The WP blog had three users prior to the integration, and all three made it over to the bbpress install with no problems. However, today a new user registered on the WP side and her ID defaulted to 999999999.

    I proceeded to register a “dummy” user, just to see what happened. The next registration ticked up to user ID #1000000000. While I doubt that this will lead to any serious problems, it seems silly to me to have user IDs starting around ONE BILLION, when even 1,000 would be plenty high enough for my lil’ ol’ site. Having McDonald’s-esque “XX billions served” sized numbers seems to fly in the face of the “Code is poetry” mantra.

    Any ideas as to what’s going on here?

    #55284
    chiensavant
    Member

    Hi,

    sorry for the late reply, but the instruction given to me were not all the clear, I apparently was looking for a solution that wasn’t the one that would work for us.

    To sum up the info I have, user authentification will not rely on BBpress authentification, but on our own user table (login and password) called by a simple htaccess file.

    AuthUserFile /home/login/.htpasswd
    AuthGroupFile /dev/null
    AuthName "Private"
    AuthType Basic
    <Limit GET POST>
    require valid-user
    </Limit>

    So our users will not need to register a new account to get access to BBpress (that is intended to be private only) and they’ll just use their existing account.

    We might use cookies to allow easy naviguation between BBpress, WordPress and the login page (that will contain a load of other things)

    I haven’t seen any tips on wordpress forum either. Maybe my eyes were not wide open at the time ?

    Can it simply be done without rewriting the whole login process ?

    #55493
    ardentfrost
    Member

    Just go to php.net and look it up. They always have good code samples there. I wrote an entire xml parser (first thing I ever wrote in php) 2 years ago from code examples I found on php.net

    #55492
    macwise
    Member

    fel64:

    This reinvigorate looks awesome…can’t get in right now, as it’s on a limited beta. However, I’m on the list, and looking forward to trying it out. Thanks

    Ear1grey:

    I know this question is in the wrong place, and sorry if it’s obnoxious. As you guessed, I’m being lazy. I am a little out of my league here in asking for what I have, so I thought I’d get what suggestions I could first from the forum I frequent most. I hope in time you can learn to forgive my impetuous nature. ;)

    chrishajer:

    Thanks for the suggestions, as well as the links. I’ve looked into this a bit, but was really interested in a pre-existing solution I could glean from. I’m not really up on cgi, so a php-only solution is what I’d like to find. (not sure if this exists). I’m pretty good at analyzing something and gleaning what I need from that, so I figured that would be my best shot at getting this thing started.

    #1556
    lonelywo
    Member

    The link to http://codex.wordpress.org/Ergate/wpmu_bbPress_integration

    but its title “OLD INSTRUCTIONS”

    After I try modify config.php

    http://bbpress.org/documentation/integration-with-wordpress/

    My blog user login fail to bbpress.

    msg show “Cannot select DB.”

    any good idea?

    #55204
    Null
    Member

    Yeah, I could make another admin page but that will need another extra php file too. It’s more need and tidy to use a hook like in the submenu.

    Going to request some hooks then :)

    #55510
    Trent Adams
    Member

    Your wordpress address at the bottom is http:/localhost and wouldn’t it be http://localhost/wordpress/ ? What is the url that you can access wordpress at? I am assuming that it is what I said with http://localhost/wordpress/. If that is the case, these would be the changes:

    $bb->wp_home = 'http://localhost/wordpress';
    $bb->wp_siteurl = 'http://localhost/wordpress';

    As well, if that is the actual URL that you use for wordpress, then these:

    $bb->domain = 'http://localhost/wordpress';
    $bb->path = '/bbpress/';

    Then, you have another problem and need to change to this:

    $bb->akismet_key = 'false';

    Try that and report back.

    Trent

    #55500
    Trent Adams
    Member

    Will this work?

    <?php echo "<a href="".get_user_profile_link($member->ID)."">".$member->user_login."</a>"; ?>

    Trent

Viewing 25 results - 30,751 through 30,775 (of 32,432 total)
Skip to toolbar