Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '\"wordpress\"'

Viewing 25 results - 25,951 through 25,975 (of 26,841 total)
  • Author
    Search Results
  • #56249
    fel64
    Member

    Thanks for coming back and telling me :D

    #56248
    Vili
    Participant

    Brilliant! I didn’t know that global variables like this exist in PHP (I’m a hobbyist). Thanks a bunch!

    Btw, I had to change the declaration from

    global $forumpage = true;

    to

    global $forumpage;

    $forumpage = true;

    It gave me an error otherwise.

    #56247
    fel64
    Member

    I have no idea how the bb environment can be detected, but I think I know why your $forumpage hack didn’t work; the WP headers are in different files and such.

    When setting $forumpage, try something like this:

    global $forumpage = true;

    When checking if $forumpage is true, do it something like this:

    global $forumpage;
    if( $forumpage = true )
    {
    ...
    }

    If you tell PHP that you want the global variable $forumpage it should work.

    Not too confident about this, but that should tell PHP to make them global (ie. available everywhere). Otherwise you’ll probably be calling different variables called $forumpage.

    #1649
    Vili
    Participant

    I’m not sure if I should ask this here or over at WordPress.org, but perhaps this is more of a bbPress question in the end.

    I have the latest bbPress and WordPress installations, and both are running fine. The user databases are integrated, and I have also managed to get bbPress to use my WordPress theme after some poking around.

    What I actually did with the theme integration was that I made bbPress to call the WordPress header and footer files instead of the bbPress ones, having in turn modified the WordPress files in a way that everything except for the page-specific content is in those two files. This way, the forum shows up where the WordPress content (posts, pages, etc.) would otherwise go. Life is good.

    My problem now is that I would like WordPress to recognize bbPress when it is serving a bbPress page. In other words, I would like to have something like an “if” condition for example in my WordPress header that checks whether the page currently being shown is a bbPress page. If I could do that, then I could do something like “if bbPress then echo bbPress headers, else echo WordPress headers”.

    The most basic solution that I could come up with was the following: before having a bbPress page call the WordPress header, introduce a variable like “$forumpage” and set it to “true”. Then simply include a check in the WordPress header that checks whether $forumpage is “true”. For some reason, however, this doesn’t work as the variable seems to get erased.

    I also tried something like using the condition if($forums) in the WordPress header, which I saw was in bbPress, but that gave no results, either.

    There probably is a(n easy) solution to all this, so I would really appreciate it if someone could point me to the right direction. I’ve spent most of the evening working on this, and have tried just about everything that I can think of and have read about on these forums and over at WordPress.org, but alas without the desired results.

    Thanks for reading!

    #56201
    wmarcy
    Member

    // ** MySQL settings ** //

    define(‘BBDB_NAME’, ‘wetworx_wp’); // The name of the database

    define(‘BBDB_USER’, ‘*******’); // Your MySQL username

    define(‘BBDB_PASSWORD’, ‘*******’); // …and password

    define(‘BBDB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value

    // Change the prefix if you want to have multiple forums in a single database.

    $bb_table_prefix = ‘bb_’; // Only letters, numbers and underscores please!

    // If your bbPress URL is http://bbpress.example.com/forums/ , the examples would be correct.

    // Adjust the domain and path to suit your actual URL.

    // Just the domain name; no directories or path. There should be no trailing slash here.

    $bb->domain = ‘http://www.wetworx.com’; // Example: ‘http://bbpress.example.com’

    // There should be both a leading and trailing slash here. ‘/’ is fine if the site is in root.

    $bb->path = ‘/forums/’; // Example: ‘/forums/’

    // What are you going to call me?

    $bb->name = ‘WetWorx Forums’;

    // This must be set before running the install script.

    $bb->admin_email = ‘wetworx@wetworx.com’;

    // Set to true if you want pretty permalinks.

    $bb->mod_rewrite = false;

    // The number of topics that show on each page.

    $bb->page_topics = 30;

    // A user can edit a post for this many minutes after submitting.

    $bb->edit_lock = 60;

    // Your timezone offset. Example: -7 for Pacific Daylight Time.

    $bb->gmt_offset = -5;

    // Change this to localize bbPress. A corresponding MO file for the

    // chosen language must be installed to bb-includes/languages.

    // For example, install de.mo to bb-includes/languages and set BBLANG to ‘de’

    // to enable German language support.

    define(‘BBLANG’, ”);

    // Your Akismet Key. You do not need a key to run bbPress, but if you want to take advantage

    // of Akismet’s powerful spam blocking, you’ll need one. You can get an Akismet key at

    // http://wordpress.com/api-keys/

    $bb->akismet_key = ‘**********’; // Example: ‘0123456789ab’

    // The rest is only useful if you are integrating bbPress with WordPress.

    // If you’re not, just leave the rest as it is.

    $bb->wp_table_prefix = ”; // WordPress table prefix. Example: ‘wp_’;

    $bb->wp_home = ”; // WordPress – Options->General: Blog address (URL) // No trailing slash. Example: ‘http://example.com’

    $bb->wp_siteurl = ”; // WordPress – Options->General: WordPress address (URL) // No trailing slash. Example: ‘http://example.com’

    #56190
    Trent Adams
    Member

    It can be daunting at first, but if you have the correct paths and database information in your config.php it really is a quick and easy install. There is a plugin for ‘quicktags’ that will put in a graphical buttons portion for those tags if you want to make that easier for visitors. It is currently working on the wordpress.org forums if you want to head over there and take a look.

    Trent

    #1644
    crosinski
    Member

    I admire the idea of bbpress … I really do. After several hours of work, I’ve finally got a forum up and running on my site. There is so much more work to be done to make it usable for my visitors, though, that I just don’t think I can do it. Every installation has been a struggle for me. I don’t know php. The config file took me an entire day to get right. Each and every plugin I installed required further tinkering.

    Here’s a small example that represents my large frustration:

    Allowed markup: a blockquote br code em strong ul ol li.

    Put code in between backticks.

    That’s not enough information for me. I can’t make that work. I’d have to read the forums, once again, to figure out what you mean. And I’m just too exhausted to do that, so I’m going to install another forum for now.

    I’ll keep checking back to see the improvements that you make and, when you get everything worked out and as easy to use as WordPress, I’ll try again.

    But, for now, installing bbpress requires too large a learning curve for me.

    Good luck and carry on,

    C.R. the Exhausted

    #56111
    Trent Adams
    Member

    It really wouldn’t matter I don’t think! I know there are posts in the wordpress.org and wordpress.com forums closing in on that many posts on a topic and not a glitch. Heck, you go for 10,000 and let us know! Should be fine.

    Trent

    #1636
    chrishajer
    Participant

    1.0 Alpha checked out March 25, 2007.

    I just noticed in my admin panel that there are four normal looking entries in “Recently Moderated” and then the last one just shows this:

    Topic title started by .

    The source shows this:

    <li>Topic titled <a href="http://www.example.com/forum/
    topic.php?id&page&replies&view=all"></a> started by <a
    href="http://www.example.com/forum/profile.php?id=1"></a>.</li>

    [edit – I added line breaks there since the code overflow was not displaying]

    So, some of it is in the source, but there’s no topic title and there’s no topic starter name (which should be admin based on the id). It’s also missing the topic id, the page id, replies, etc.

    Any thoughts?

    I did change the name of the Key Master to “Admin” in bb-includes/capabilities.php if that matters.

    I am using the following plugins if it matters:

    allow-images.php

    js_quicktags.js

    bb-emoticons.php

    notification.php

    bb-limit-latest-discussion.php

    onlinelist.php

    bb-memberlist.php

    since-last-visit.php

    comment_qt_4_bbpress.php

    wordpress-integration.php

    Thanks. ( I imagine I can get rid of bb-memberlist since user management seems to be integrated into the admin panel now. )

    #55699
    Null
    Member

    What’s up with that tinymc… it’s crap really… don’t understand why wordpress uses it either, there are way better ones out there…. :D

    #51437
    citizenkeith
    Participant

    Null,

    Thanks for the help! That did the trick. Doh!

    The theme I use on my WordPress site is called “Plain Vanilla,” and can be downloaded here:

    http://ckunte.com/archives/plain-vanilla-1

    #55690

    In reply to: Plugin: Latest Replies

    LMD
    Participant

    Hello again, just finished examining code. There are two issues.

    The first issue is that the blog entries you are posting to bbPress appear as closed topics. This problem is totally unrelated to the “Add Titles to Replies” plugin, which does not touch the ‘topics’ table in the database at all. I suggest you enquire with the ‘bbPress Post’ author about this. Did you update that plugin on your forum at the same time as installing mine? That could be the source of the problem.

    Now, having said all that, the second issue is going to seem to contradict it. What I mean is, are you sure the topics are ‘closed’, or is it just that the content does not appear – that is, is it a phantom topic?

    This can occur when the ‘topics’ table gets updated, but the ‘posts’ table does not for some reason (usually a coding error). When you create a new topic in bbPress, you are actually simultaneously creating the topic and making the first post in that topic – so both tables get updated.

    This is where the problem involves my “Add Titles to Replies” plugin, because we have altered the ‘posts’ table, which may be causing an error in the ‘bbPress Post’ plugin code (that plugin writes to the database in a different way to the bbPress core).

    Still with me? Good…

    Now, I do not have access to an integrated WordPress/bbPress installation, so I have made a stab in the dark at trying to fix this the easy way. I’ve written a very short function (a bit of a hack really) that you can add to the ‘bbPress Post’ plugin.

    In the ‘bbPress Post’ plugin open the file called ‘bbpress_post.php’ and add the following code to the bottom of the page, just before the bottom PHP tag ?>

    /* Ugly 'Add Titles to Replies' Hack by LouiseDade */
    function bbpress_add_reply_title( $post_id, $topic_id ) {
    global $wpdb, $otherdb;
    $bb_table_prefix = bbpress_getoption('bb_prefix');

    if (bbpress_getoption('bb_other_base') === "no") {
    $topic_title=$wpdb->get_var("SELECT topic_title FROM ". $bb_table_prefix ."topics WHERE topic_id=$topic_id LIMIT 1; ");
    $wpdb->query("UPDATE ". $bb_table_prefix ."posts SET post_title='$topic_title' WHERE post_id='$post_id' LIMIT 1");
    } else {
    $topic_title=$otherdb->get_var("SELECT topic_title FROM ". $bb_table_prefix ."topics WHERE topic_id=$topic_id LIMIT 1; ");
    $otherdb->query("UPDATE ". $bb_table_prefix ."posts SET post_title='$topic_title' WHERE post_id='$post_id' LIMIT 1");
    }
    }

    Next, scroll up to the bbpress_new_post() function and at the bottom, before the closing curly brace, add:

    /* Added by LouiseDade - updates post reply title */
    bbpress_add_reply_title( $post_id, $topic_id );

    Then scroll up again to the bbpress_post_update() function and add the same code as above just before the closing curly brace again.

    Re-upload the plugin with the changes made and try posting a WordPress entry.

    If it works I shall jump around for joy, but unfortunately I have grave doubts about it. I think it might need to be done the hard-way, which involves rewriting some of the ‘bbPress Post’ plugin.

    Good luck!

    #51436
    Null
    Member

    Keith, try deleting the whole table (not empty it) and re-upload the plugin, perhaps that works…

    Also what is the template name from your template used on you website (wordpress site). Kinda like it’s simplicity!

    Greetz

    #1628

    Topic: Theme Check

    in forum Themes
    nosarious
    Member

    I am working on a few themes for WordPress and BBPress and would very much like to use (and perhaps release) concurrent ones for wordpress and bbpress.

    The WordPress example, and what I hope to eventually accomplish can be seen here. It’s kind of simple, I know. I am having a bit of trouble with the BBPress theme of the same styling because it does things so much differently than WordPress.

    I am struggling (a bit) with trying to figure out the CSS required, but is there a bit more ‘in-depth’ description of the style sheet and various php files for the basic BBPress theme? I am having trouble getting it to do things the same way as the working theme. As well, is there a way to get the borders of the photographs displayed in posts to change? The graphics used would have to be scalable (corners intact) and be ‘above’ the images photos displayed, and a method for bypassing that feature as well (basically a method of using the same photo to demonstrate the cutouts used).

    Thanks muchly.

    #56046
    c00l2sv
    Member

    Let us give him some more time…

    #56045
    Trent Adams
    Member

    I am over my head when combining WP and bbPress functions and know next to nothing with Ajax. Hopefully mdawaffe (Michael) will see this post or head over to https://bbpress.org/about/development/ and see if you can contact him another way!

    Trent

    #1620
    c00l2sv
    Member

    Currently i’m trying to develop something using wordpress & bbpress.

    Everything flows pretty good when talking on functionality and the rest of features, but there is a problem.

    Actually 2 problems. First I already posted here: http://bbpress.org/forums/topic/867

    And now the second one:

    The final release has to be in another language but english. It’s true, I found no troubles translating bbpress in my language and the rest of updated wordpress. But after what I’ve integrated both of api’s: the wordpress and bbpress; this resulted in the following error:

    Fatal error: Cannot redeclare class streamreader in /var/www/pm/forum/bb-includes/streams.php on line 26

    I suppose it’s because of the translations, cause when I did not defined BBLANG, everything worked well.

    After a bit I thought, that a solution for my problem can be joining both of the bbpress and wordpress translation .mo’s and defining just WPLANG for my language settings. That worked, but I dont see this as a pretty simple and accessible solution for everybody!

    I would be glad getting some help on that, If there is any other more easier solution, that would be cool.

    #55874

    In reply to: links to forums broken

    Trent Adams
    Member

    I see your problem there bedbugger. It seems to head over to the wordpress install and give a 404 error when you try and access the forum. What version are you running of bbPress? If you change back to the default theme, do this still happen? Do you have any plugins? If you replace forum.php in your template with the original from the download does that help?

    Trent

    #56011

    In reply to: Some Questionssssss

    Trent Adams
    Member

    Automattic don’t want anyone using any theme on wordpress.com, so ‘copying’ them is out of the question and I have talked to them about it. I had permission to clone this particular forum theme and have released it on my site. There are ways to make things different, but you would have to create the theme!

    Trent

    #55799
    Trent Adams
    Member

    It will be more like how wordpress.com does it:

    [youtube=videolink]

    Trent

    #56010

    In reply to: Some Questionssssss

    fel64
    Member

    No, it isn’t.

    Stylesheets are what determines the look of a forum. These are the stylesheets the WP.com forums use:

    http://wordpress.com/forums-theme/wpcom/forums.css

    http://wordpress.com/wp-content/themes/h3/style.css?1169109548

    http://wordpress.com/wp-content/themes/h3/hack.css

    I do not think they would mind if you use them, as long as you give credit. You could ask someone.

    Or, instead, you could start a new theme, edit your new style.css file and try to replicate what they have by try-and-error.

    #56009

    In reply to: Some Questionssssss

    samureye
    Member

    Thanks. I really like the forums for WordPress.com/forums – Is it something that would be hard to replicate?

    #1618
    samureye
    Member

    If this is in the wrong place, my bad. I couldn’t find all the answers I needed, so I decided a new thread would help.

    * Can I import my data from an Invision Power forum?

    * bbPress can integrate with my WordPress blog, right? Meaning users make a profile and use an avatar that would show up in the forums as well as in comments on the blog?

    * Is there a WYSIWYG editor for bbpress?

    * What about signatures for posts, as you would find with phpBB, Invision Power, etc?

    * Is there a quick reply feature?

    What I’m looking for is a forum to integrate with WordPress, but Invision can’t do that, so it would be ideal if bbPress had features like it.

    Thanks!

    #55918

    In reply to: Show off your Forum !!

    fel64
    Member

    http://forums.loinhead.net/

    Done quite a lot of stuff, running 1.0-alpha at the moment (which includes the possibility for forums to be children of other forums – could be useful, although I’m not using it right now) and a bunch of plugins.

    • Page links
    • bbPress Integration
    • Allow Images
    • Comment Quicktags for bbPress
    • bbEmoticons
    • Show Post Count
    • Online List
    • WP Posts
    • Quote
    • WordPress Integration

    #52035

    In reply to: Post Moderation

    karaboga
    Participant

    Yes, you are right; some people will not want to use this.

    But i mean, this would be an option, like in WordPress.

    As bbPress’ structure is very similar to WordPress; adding that option to bbPress won’t be so hard, i guess. :)

Viewing 25 results - 25,951 through 25,975 (of 26,841 total)
Skip to toolbar