Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,401 through 27,425 (of 32,495 total)
  • Author
    Search Results
  • #65772
    chrishajer
    Participant

    WordPress functions are defined and available to WordPress.

    https://codex.wordpress.org/Function_Reference

    If you don’t need to use those functions, then don’t include WordPress. You don’t need to include WordPress like that to have integrated users.

    #65763
    724613
    Inactive

    I’m having the same problem! After integrating, I see how the “test user” I created shows up in both admin consoles. However, whether I login to wordpress or bbpress first, the login does not carry over to the other when navigating, which forces me to login twice. I followed all the steps, which also inlcuded adding the following to the wp-config.php file…

    define(‘COOKIE_DOMAIN’, ‘*******’);

    define(‘COOKIEPATH’, ‘/’);

    The only thing that comes to mind is a “minor error” that I received after walking through the “successful install” of bbPress…

    Duplicate key name ‘user_nicename’

    >>> User tables will already exist when performing a database integrated installation.

    I’m wondering if this is the problem. If so, I’m not sure how to fix it. : Can someone help?

    #65812

    In reply to: No user found

    725450
    Inactive

    “The only people who can fix the problem won’t be able to see it, as moderator or keymaster. :D

    Hehe. I can start to cry now right? :P

    #65811

    In reply to: No user found

    chrishajer
    Participant

    mdawaffe: that has no effect. I logged out of this chrishajer account, then logged in with a new account from today, hajii. I tried to change the password since it is the default emailed one. I get the error about the user being unable to be found when I try to access the profile page. (Screenshot above.)

    It might be new accounts: that hajii account is from today. And it appears to happen only on member accounts, so you might need to create member account and see if you experience the same thing.

    The only people who can fix the problem won’t be able to see it, as moderator or keymaster. :D

    #62198
    kehlers
    Member

    I had this same issue, and I really like having images, so I looked into the code. I am not very savvy about reg expressions, so but if I comment out line 29 ($text = preg_replace("|(.*?)|se", "'<code>' . encodeit('$1') . '</code>'", $text);) from the allow_images_encode_bad function of the plugin, everything seems to work.

    Does anyone know if I need that line for anything else? I don’t want to open my site up to hackers or some such thing.

    #51602

    In reply to: Google Adsense

    725431
    Inactive

    I did everything from earigrey’s post and it does nothing. My main concern is since he asks for it to be put in my-template folder how is the software supposed to know that those files are there. So i just replaced the topic file in the template directory. How do i reference the adsense code so the page knows to look there?

    #65755
    chrishajer
    Participant

    It’s great that you have shell access. You can backup all the files with something like rsync, and you can use a shell script to backup the database tables you want. Since there are no wildcards in mysqldump, you will need to explicitly name all the tables in your installation; just separate them with spaces.

    You can put something like this into a bash script and run it daily (or whenever) from cron:

    mysqldump --add-drop-table -h host -u user -p password dbname 
    ( bb_forums
    bb_meta
    bb_posts
    bb_tagged
    bb_tags
    bb_terms
    bb_term_relationships
    bb_term_taxonomy
    bb_topics
    bb_topicmeta
    bb_users
    bb_usermeta ) | bzip2 -c | bbpress.bak.sql.bz2

     

    You would have to consider putting the password into the script and hiding that from prying eyes. Alternatively, you could create a user with limited privileges and no password, and use that in the backup script.

    You should also verify the table prefix, and that those are all your bbPress tables. I think there are different tables for different bbPress versions.

    Good luck.

    #65770
    chrishajer
    Participant

    That line is supposed to allow you to use WordPress functions from inside a bbPress page. It looks like you just got the path to it wrong. Does the file wp-blog-header.php actually exist one directory level up from where the bb-config.php is right now?

    #3604
    #65734

    In reply to: wrong password

    chrishajer
    Participant

    With the plugin turned off, I received the password promptly and it worked. I would place a bet on that Approve Registration plugin causing the trouble.

    Also, the password message I received has some odd looking characters in it.

    Il tuo nome utente &egrave;: myusername
    La tua password &egrave;:

    The password email arrived with è in it twice, just like above.

    #65721
    Detective
    Member

    Why don’t you just make a sql query ? If you have both WP & BB in the same database it should be easy. Something like:

    $blog_posts = $bbdb->get_results("SELECT FROM wp_posts WHERE post_status = 'publish' ORDER BY post_date DESC LIMIT 10");
    echo '<ul>';
    foreach ($blog_posts as $post)
    printf('<li><a href="/?p=%i">%s</a></li>', $post->post_ID, $post->post_title);
    echo '</ul>';
    unset($blog_posts);

    Of course this has errors, i made it without looking ad the db fields. Also, is it get_results or get_rows? I forgot :p

    #62613

    In reply to: TalkPress

    723891
    Inactive

    Why switch to bbpress? WordPress is highly configurable and there are a lot of plugins. And if you want you can change the source code on your own server…..

    Sam Bauers
    Participant

    I don’t think they are even using WordPress. Looks like it is all custom code.

    #65683
    Catia Kitahara
    Participant

    Hi Chris,

    First, thank you very much for your attention. :)

    So, yes I’ve tried editing the bb-settings.php and bb-admin/plugins.php as recomended, but it didn’t work. I got the following messages:

    Warning: Invalid argument supplied for foreach() in /home/wordpres/public_html/forum/bb-settings.php on line 169

    Warning: Cannot modify header information – headers already sent by (output started at /home/wordpres/public_html/forum/bb-settings.php:169) in /home/wordpres/public_html/forum/bb-includes/pluggable.php on line 37

    Warning: Cannot modify header information – headers already sent by (output started at /home/wordpres/public_html/forum/bb-settings.php:169) in /home/wordpres/public_html/forum/bb-includes/pluggable.php on line 37

    Warning: Cannot modify header information – headers already sent by (output started at /home/wordpres/public_html/forum/bb-settings.php:169) in /home/wordpres/public_html/forum/bb-includes/pluggable.php on line 164

    And, yes, I made a database backup. I didn’t do anything yet.

    Thanks,

    Cátia

    #65741
    f1f
    Member

    No I haven’t moved the forum. The last thing I changed – which must have been a week ago or longer – was adding the following code into the .htaccess file for WordPress (not BBPress):

    define('COOKIE_DOMAIN', '');
    define('COOKIEPATH', '/');

    Could that have had an effect? If so it seems odd that it took so long to manifest itself.

    Thanks for the speedy response by the way :-)

    #65682
    chrishajer
    Participant

    > Any other suggestions? Should I try this sollution?

    Yes. The same problem is happening in another file. Your host has disabled or does not allow the glob function. So, you have the 2nd error. Same type of error, just in a different file now. You should change line 7 in bb-admin/plugins.php to this:

    if ( function_exists( 'glob' ) && is_callable( 'glob' ) ) {

    That will take care of the 2nd error. Then, post your results.

    UPDATE: are you saying making this edit did not work? What was your result? Another error? Post the results please.

    I am not certain about exporting and importing the database, so I would hold off on this. Please make a database backup now, before upgrading, if you haven’t already done so.

    #65718
    723416
    Inactive

    Thanks for the quick reply. I saw bbSync previously, and it is not what I need because I don’t want my blog posts to turn into forum topics. I simply want to display my blog posts on the forum homepage. There are actually not going to be any (or rarely any) commenting on our blog posts – it’s for information only. But I want a community homepage that combines the latest blog posts and forum main themes (or categories – not topics as I stated above).

    Is there code I can insert to grab the blog posts? Or is there a way to grab and read the blogs RSS feed? If so, how? Thanks again in advance.

    #65100

    In reply to: Kineda.com

    kineda
    Member

    Thanks Familiar! :)

    #3590
    threevisual
    Member

    Hi,

    I’m currently working on a website which is powered by wordpress, it will have a forum which will be powered by bbpress. I’ve designed the layout to exactly how I’d like it to look (and partly coded the forum index).

    Is there anyone out there who would be willing to complete customisation / styling of my bbpress theme?

    If anyone is interested please let me know your costs and turn around time and I’ll be in touch.

    Cheers!

    #65680
    Catia Kitahara
    Participant

    I tryied that solution too and it didn’t work either. :(

    By the way, the php version in my server is 5.2.6.

    Anyway, the thing is I want to upgrade my bbPress, but the instructions say I must deactivate all plugins first. I can’t deactivate them without the errors. Is there any other way I could upgrade my bbPress? Could I backup my bbPress tables, delete bbPress files and simply install the newest version (0.9.0.2) from zero and after that, import my tables?

    I just can’t believe I’m having such a hard time just to do something that should be easy. :(

    Thanks in advance

    #65678
    Catia Kitahara
    Participant

    Thanks, guys,

    It helped a lot!

    :)

    #3585
    tbrams
    Member

    I have a forum running as an appendix to the wordpress blog we have at lyngbytaekwondo.dk and people love it.

    Now after upgrading WP to version 2.5.1 it seems like all my html examples in the forum are being ruined when I try to add something. Right after installing the forum I did a post where wrote a post about how to use som of the html codes available and it worked nicely with the backtick to keep bbPress from formatting.

    When I tried to modify something yesterday by editing the post, all the html examples in backticks were destroyed and I cannot get the backtick to work again.

    If anybody can recommend a starting point for me to debug this, it will be appreciated.

    chrishajer
    Participant

    This is the problem right here:

    <?php bloginfo('html_type'); ?>

    bloginfo is a WordPress function, but you’re in bbPress. Try hard coding it like this <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> as it is in the default theme, and I think you will find that it works.

    Tranny
    Participant

    Yes, I had the layout of forums customized before upgrade to WP2.5 becasue defaul is very user not friendly. I also had title tag customized because default values are not SEO friendly. Obviously, this clashes with upgraded version causing my forums page to not work. This is what HEAD of my header.php looks like

    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

    <title>
    <?php if (is_front()) { ?> Forums and Forum Topic on Bullshit Blog <?php }
    elseif (is_forum()) { echo (get_forum_name() . " on Bullshit Blog Forums"); }
    elseif (is_topic()) { echo (get_topic_title() . " Forum Thread on Bullshit Blog"); }
    else {
    ?>

    <?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> &raquo; <?php bb_title() ?>

    <?php } //else ?>
    </title>
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="stylesheet" href="<?php bb_stylesheet_uri(); ?>" type="text/css" media="screen" />

    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

    <style type="text/css" media="screen">

    <?php
    // Checks to see whether it needs a sidebar or not
    if ( !$withcomments && !is_single() ) {
    ?>
    #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg-<?php bloginfo('text_direction'); ?>.jpg") repeat-y top; border: none; }
    <?php } else { // No sidebar ?>
    #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; }
    <?php } ?>

    </style>

    <?php wp_head(); ?>

    <?php if ( is_topic() && bb_is_user_logged_in() ) : ?>
    <script type="text/javascript">
    var lastMod = <?php topic_time( 'timestamp' ); ?>;
    var page = <?php global $page; echo $page; ?>;
    var currentUserId = <?php bb_current_user_info( 'id' ); ?>;
    var topicId = <?php topic_id(); ?>;
    var uriBase = '<?php bb_option('uri'); ?>';
    var tagLinkBase = '<?php bb_tag_link_base(); ?>';
    var favoritesLink = '<?php favorites_link(); ?>';
    var isFav = <?php if ( false === $is_fav = is_user_favorite( bb_get_current_user_info( 'id' ) ) ) echo "'no'"; else echo $is_fav; ?>;
    </script>
    <?php bb_enqueue_script('topic'); ?>
    <?php endif; ?>

    </head>

    There’s obviously a lot of dynamic stuff in the head of my theme to make it mor SEO friendly. Is there a way to retain it and have it properly pull required data again?

    Thanks for your help guys, I really appreciate that :)

    #3586

    Hey everyone, I’m new here. I’ve found out about this awesome forum a while back but didn’t have the time to make a forum for my site. Anyhoo, I was wondering if bbPress could be integrated with Social Engine. I know integration with vBulletin and phpBB is possible but bbPress seems much more superior. ;)

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