Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,126 through 27,150 (of 32,481 total)
  • Author
    Search Results
  • #60226
    chrishajer
    Participant

    You don’t really need a plugin to install Google Analytics in your bbPress forum. Just paste the code from Google Analytics right before the closing </body> tag in your theme’s footer.php. No plugin required. I never understood the need for Analytics plugins for WordPress either. Editing a template file is pretty basic.

    #65977
    mciarlo
    Member

    With 2.6 I still have anonymous names =(

    #3771
    _ck_
    Participant

    somewhere between 0.8 and 0.9 the profile page became broken for most themes as “threads started” ($threads) was changed to the more accurate “topics started” ($topics)

    If you don’t want to edit your theme profile page, here’s a mini-plugin to fix the problem:

    function profile_fix_topics_to_threads() {global $topics, $threads; $threads=$topics;}
    add_action( 'bb_profile.php', 'profile_fix_topics_to_threads');

    #3770
    _ck_
    Participant

    Here’s a mini plugin that will cause the profile page to display the member # (handy if you are using pretty permalinks)

    function bb_member_id_in_profile($keys) {	// inserts member id into profile without hacking
    global $self;
    if (empty($self)==true && isset($_GET['tab'])==false && bb_get_location()=="profile-page") {
    (array) $keys=array_merge(array_slice((array) $keys, 0 , 1), array('ID' => array(0, __('Member #'))), array_slice((array) $keys, 1));
    }
    return (array) $keys;
    }
    add_filter( 'get_profile_info_keys','bb_member_id_in_profile',255); // last item inserted = first item displayed

    #66631
    davidbaldwin
    Member

    If I try and create a new user, I get the error:

    Warning: mysql_insert_id(): supplied argument is not a valid MySQL-Link resource in /home/turner/public_html/lifelightcam/bbpress/bb-includes/db-mysql.php on line 180"

    I can log into wordpress just fine with my user id and password, but not into bbpress. I checked and the user id does exist in wp_users

    #3769
    mikefloering
    Member

    Hello :)

    I presently use a framework called CakePHP for my website. I have an existing users data model etc., that consists of many tables and so forth. It’d be a hassle for my users to have to set up a whole new account.

    So, I was wondering if bbPress is by any chance customizable to the extent of database structure and basically the way databases are treated. I guess I’m looking for the most customizable forum script right now.

    So can it seamlessly integrate with existing data, besides WordPress?

    #66283
    thion
    Member

    Yay, time to update some plugins to make sure management panels will look cool ;).

    #3766
    thion
    Member

    Hello

    I have encounter another problem when coding new plugin. I have a function that will return data from usermeta table:

    function get_twitter($user_id) {

    $user = bb_get_user( $user_id );

    $bb_twitter = $user->social_twitter;

    if ( $bb_twitter ) { return $bb_twitter; } else { return ""; }

    }

    It’s working fine with echo on profile edit page within other function with $user_id set as global:

    function add_socialize_to_profile_edit() {

    global $user_id, $bb_current_user, $bb_socialize;

    $bb_twitter = get_twitter($user_id);
    echo $bb_twitter;

    }

    But the same function is not working on standard profile page – therefore I can edit twitter account, but I can’t display it on profile page. Any ideas what to do in order to display it? How to get this $user_id on profile page?

    #65975
    _ck_
    Participant

    It only affects posts made afterwards, not existing posts but some easy php/mysql code could fix existing posts.

    But I could have sworn this was fixed in bbPress 0.9 with the WordPress Integration section built in. It should give the users a WordPress role and display name. Actually, WordPress should create the display name itself if it sees a user name without a display name. I wonder if this is a WP 2.6 issue which should not be used with bbPress 0.9

    #3765
    thion
    Member

    Hello everyone :)

    It’s not directly related to bbPress script, but somewhere around it. What do you think about making something like Weblog Tools Collection, but for bbPress? You know – the newest themes and plugins for bbPress, tips, tricks etc?

    I was also thinking about something like: http://wordpress.org/extend/ideas/ – so people could submit their ideas for new plugins etc. And something like http://wordpress.org/extend/themes/ – even if I would like to submit some themes for bbPress, I don’t have a site to do this ;).

    What do you think?

    #66573
    _ck_
    Participant

    I should point out that such changes in bb-config.php must be inserted ABOVE the line that says

    /* Stop editing */ and not below it.

    Also, you should go immediately into your config and change the path after that.

    In fact you should probably change the path in the admin section FIRST and then rename the folder after it’s saved. bbPress will be disabled until you rename the folder but should spring back to life afterwards.

    The menu I mean is under:

    settings -> general

    or http://your-website-name.com/your-forum-path/bb-admin/options-general.php

    bbPress address (URL):

    #66669
    steveg190
    Member

    I’m interested in this too. Mostly I’m interested because my current forum that I’m converting from (phpbb) allows you to preview your post, and that feature will be sorely missed. Bring able to save a draft of it would fit right along side a preview, pretty much just like the way WordPress allows authors to save/preview drafts. Now, I’m not a php person in any way (although I wish I was) but I can see it could easily work to make a plug-in or mod that would allow you the option to save your post draft for later with a different post status and pull it or all your saved/unpublished drafts into a single page by pulling them based on the status and your user id. From there you could edit those posts and “publish” them by saving and changing the status code to so that bbPress “sees” it as a valid post rather than a “deleted” or “saved draft”.

    I tinkered with this idea a little while ago but with my php knowledge limited to hacking peices here and there to suit my needs it’s just too much of a task. I can’t imagine it would be too complicated to implement. Let us know if this pans out Vili or anyone else who has an urge to work on something like this.

    #3763
    #66671
    _ck_
    Participant

    bbPress has similar functions to detect what page you are on, ie. is_front() is_forum() is_topic() is_view() etc.

    do a search of the code for “function is_”

    #66653
    jimmie65
    Member

    I think I can transfer to phpBB. So there is a plugin to transfer from phpBB to BBpress? I’ll look for it.

    If not, I’ll grab my database admin friend and see if he’ll help me.

    (All moot till Yahoo gets mySQL working again; I can’t even access phpmyadmin. :( )

    #66031
    grifter
    Member

    oops! Just spent ages upgrading my blog today to 2.6 which broke an afternoon’s work I spent a while back integrating with BB press 0.9. Thankfully the 1.0 Alpha release isn’t too far away :-)

    #66657

    In reply to: Language Instalation

    _ck_
    Participant

    I’ve never done it myself but I believe you first have to put the translation es_ES.mo file into bb-includes/languages directory.

    Then you go into bb-config.php` and change the BBLANG setting:

    define('BBLANG', 'es_ES');

    Here is more info:

    http://www.degabriel.es/2008/04/24/traduccion-de-bbpress-09-al-castellano/

    and the file:

    http://www.degabriel.es/wp-content/uploads/2008/04/es_es.mo

    #66663

    In reply to: Search???

    _ck_
    Participant

    Unfortunately by some oversight, there is no directly link to the search feature on the default bbPress 0.9 templates (this is fixed in the next version – perhaps too prominently given how weak the built-in search is in bbPress).

    You can make a link to search.php yourself in the header.php or footer.php to have it on all pages.

    <a href="<?php bb_option('uri'); ?>search.php">Search</a>

    Or you can make a mini-form that passes the field “search”

    <form action="<?php bb_option('uri'); ?>search.php" method="get">
    <input name="search" id="search"></form>

    #3758

    Topic: Search???

    in forum Troubleshooting
    sempervideo
    Member

    Hi,

    usually i am not that stupid, but here you got me. :-)

    Can someone please tell me where i can find the search to search my forum?

    Do I have to activate it? According to some posts it should be build-in.

    I have a search.php and search-form.php in my template folder. So it should be somewhere.

    please help me out, will you.

    Thanks a ton.

    Greetings

    Andy

    #66655
    Null
    Member

    His name (and the link) is the spam! Translated it is: get a loan cheap and: let us calculate your morgage (don’t know if this is spelled correctly).

    It is spam it isn’t a normal name. Spam in my mail have the same name :) The sites are identical too.

    Also his replies aren’t sound either. He just posted stuf so his name and link are seen and (hopefully) clicked.

    #66652
    _ck_
    Participant

    Unfortunately that software is so new I don’t think anyone has done a conversion yet.

    If you can get it into phpBB format it might be possible to convert from there.

    If you are comfortable with phpmyadmin and some php code you can always attempt to do it yourself too.

    #66621
    djp
    Member

    Ok Chris, it should be fixed.

    Thanks again for the heads up.

    :)

    #66620
    djp
    Member

    Thanks for the feedback Chris. Looks like the footer is inheriting a parent CSS style or something.

    It looks fine on my mac in FF & safari, and it looks fine in IE6 & 7 on a pc.

    Will look into it & repost the url for you to have a squizz.

    Cheers, and thanks again :)

    #66569
    dpeeples
    Member

    i followed your instructions as well as i could but got a messed up page after inserting the

    $bb->uri = ‘http://your-domain-name.com/forum-path/&#8217;

    portion in the config code.

    Where exactly should it go?

    thanks much for the help.

    #66618
    Null
    Member

    Ow okay, it just makes it confusion for some people having 2 folders having (almost) the same name.

    Putting my stuff back into my-plugins then :)

Viewing 25 results - 27,126 through 27,150 (of 32,481 total)
Skip to toolbar