Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 25,876 through 25,900 (of 32,495 total)
  • Author
    Search Results
  • #71382
    Malice
    Member

    Sound interesting eclipsenow :)

    You can backup bbpress using a wordpress backup tool. If integrated, bbpress and wordpress use the same databases anyway. The plugin I use sends a backup of the whole blog & forum to my mail every week, day, month or whatever you want).

    I use this plugin: http://www.blogtrafficexchange.com/wordpress-backup/

    Though this seems the most popular: https://wordpress.org/extend/plugins/wp-db-backup/

    If you customize your template you should manually take a backup of that template as well, though. It’s just one folder you should get from your webserver whenever you change the template. If you don’t change the template (which I think is probably the case for you), then backing up your template folder is not of your concern yet.

    More info & alternatives:

    https://codex.wordpress.org/WordPress_Backups

    (I’m sure the experts in this forum can tell you a lot more about general backup through cpanel and such. I’m just a guy learning through tutorials & trial and error just like you:p )

    #71380
    eclipsenow
    Member

    Hi all,

    thanks for your comments, some of you have had a lot of experience at this!

    My site is probably more about the forum, but with blog/website article functionality leading to discussion in the forums. It’s a political reform agenda, with Phd level people recommending that we abolish the States in Australia and have a unified National legislation parliament with far more efficiency and streamlined structures than the mess we now have, and a strong Constitutionally recognised Local government responsible for the local implementation and management of the currently state run (and failing) public services (health care, etc). Sound controversial? YOU BET, so that’s why the BLOG comments will be “off” but the forum has to be absolutely state of the art, to handle all the quite long and technical posting.

    So… while WP might have state of the art blogging, I’m really looking for forum functionality.

    Also, as this topic is on databases, has anyone used Brinkster? I suck at even normal Cpanel phpmyadmin stuff, let alone Brinkster… they seem to want people to hand code stuff in php.

    I don’t have to know php if I’m going to use bbpress do I?

    Lastly, why doesn’t this forum have email replies turned on?

    #71270

    Okay, the fix (one file) did not work. What did work was re-uploading everything from the latest trunk build.

    Leaving the stuff below to show I recognize I’m a tard

    Sam, it’s really NOT fixed.

    On a BRAND NEW post I get this

    <a href="http://thisis.my/link"">This is my link</a>

    TWO quotes at the end. TWO. Not one. And I can’t edit ’em or they break worse. They ONLY work if I leave out quotes.

    #4700
    Ryan Hellyer
    Participant

    Hi,

    I’m trying to setup a demo forum of bbPress (Version 1.0-alpha-6 ) to allow users to create their own bbPress themes. The template generator itself is powered by WordPress, and bar the occasional bug seems to work fine. The bbPress themes it exports seem to be working okay too bar a few code gremlins which I intend to iron out once I get the system up and running.

    What should happen, is that you should be able to go to the following URL, make as many modifications as you want, click submit and bam! a new design for your bbPress forum should be shown. However for some reason, whenever the bbPress forum loads it kills the session variables which store all of the data relating to the current design :(

    http://pixopoint.com/demo/bbpress/?generator=on

    When you go back to the WordPress version (http://pixopoint.com/?generator=on) the original design is gone and it reverts back to the default :(

    Any ideas?

    As a temporary measure I plan to create a WordPress Page with the same HTML as would be in the bbPress forum so that users can see their design as they’re modifying it. But it would make a lot more sense if they could modify it within a real live bbPress forum.

    #4699
    mzimmers
    Member

    Hi, all –

    I’d like to look into adding a right sidebar to my kakumei. My intent is to just copy the right sidebar code from my blog, but…it’s not clear where I should insert it. The taxonomy of kakumei appears somewhat different than the theme for my blog, in that there’s no “index.php” that does all the includes for the pieces of the page.

    Can someone point me in the right direction? I don’t imagine that I’m the first one to tackle this.

    Oh, and…thanks to all those who created and manage bbpress. This is quite a nice tool.

    #4698
    eclipsenow
    Member

    Did something political happen? Why was the bbpress wiki deleted? That’s not fair! I use wikipedia all the time, and was hoping to get some user and community stats on bbpress. I’m thinking of converting, but am scared. ;-)

    #71376
    eclipsenow
    Member

    Yeah, point taken. And I have to say, I’m attracted to the design of WP and BBpress. But Malice, what didn’t you like about Joomla?

    Honestly, I’m not here to troll but am keeping an eye on all developments across the Joomla / WordPress / Drupal divide. (But Drupal gives me the shudders because I don’t know php language).

    Joomla has new extensions being developed all the time, and there’s a whole new 1 click blog installation coming out to. The “Agora” module is truly revolutionary with it’s 1 click installation into Joomla with complete integration. Also, the current “ugly” Agora forum templates are getting a total work over after version 3 is introduced. Agora is a complete package that does something like 70% or 80% of everything phpbb3 does, and so I don’t need to go hunting down 20 extensions.

    So Malice, what’s not to like? ;-) I’m almost beginning to think that it’s what one encounters the best community support with first. “First impressions” matter, much like joining a new community, church, or whatever. Good experience first time and some small measure of progress made = lifetime member, and all other competing opportunities screened out as “too hard, I’ve made my choice”. It’s just the way it seems I function and many others… newbies that is. Maybe long term professional web designers and developers have made their choices on more rational grounds.

    ganzua
    Member

    oops, you’re right, sorry :) I just missed it because I was editing 4-5 files at the same time. Got it.

    _ck_
    Participant

    I showed you the code to do the sum yesterday in the extend section.

    https://bbpress.org/plugins/topic/bb-topic-views/page/3/#post-2638

    ganzua
    Member

    Superb post! :)

    I followed your guide and a have a last 10 posts query working in my worldwide famous 404 page.

    Regarding your last code, if you are quering bbpress database, don’t you want a global $BBdb; instead of global $wpdb; and a $results=$BBdb instead of $results=$wpdb ?

    BTW, how do you query all ‘views’ fields that bb topic views plugin adds to bb_meta table? If we sum up the value stored in all those field we have a hit counter.

    #71374
    Malice
    Member

    I’ve done Joomla. Glad I got rid of that. :P

    If you don’t understand something in a guide, just look up another guide for the thing you don’t understand. Also, there’s a huge topic somewhere around this forum _ck_ wrote with a lot of details about the installation. Would be surprised if it wasn’t a sticky.

    #71195
    Ryan Hellyer
    Participant

    Thanks for input everyone :) Sorry for the delay in replying, my web host decided to mess up my site and fixing it has taken up all my time recently.

    I guess I’ll have to find an alternative way to get the information out that I want then if wp_head isn’t going to work.

    #71361
    Burt Adsit
    Member

    k. Think I got this licked. Wasn’t working there for about 4 hrs though. I wanted to assign various mod caps to a user in specific forums. I did that and the template goodies for a mod popped up all over the place. Well this was easy. Wrong.

    Deleting a post is an ajax maneuver. The ajax code calls bb_current_user_can() again. So what’s the prob? I’m still returning ‘ok’ as a cap for ‘delete_post’. Well I’m also checking for a forum_id as part of the validation process. ajax calls exist outside in the twilight zone where there are no valid forums. Poor things.

    Had to check for DOING_AJAX, determine what forum the post was in and then say ‘ok’.

    To think my mother wanted me to be a plumber. Plumbers don’t have this kind of fun.

    #71360
    Burt Adsit
    Member

    Thanks _ck_ i’ll study these.

    Damn _ck_. I do believe that’s the longest compound ‘and’ statement I’ve seen in awhile. :) Whatever works ‘eh?

    Thanks again.

    #71359
    _ck_
    Participant

    Um, forum-moderators does exactly what you want, but it probably needs to be updated for 0.9 and 1.0

    I have an unreleased plugin called “extra privileges” that does something like what you are asking but it won’t be released anytime soon.

    You can see how filters on bb_current_user_can work by studying this mini-plugin I wrote to allow users to delete their own posts

    function delete_own_post($retvalue, $capability, $args) {
    global $bb_current_user, $bb_post;
    if ($capability=="delete_post" && $bb_current_user->ID && $bb_post && $bb_post->post_id && $bb_post->post_id ==intval($args[1]) &&
    $bb_post->poster_id && $bb_post->poster_id==$bb_current_user->ID && bb_current_user_can( 'edit_post', $bb_post->post_id) {return true;} // lots and lots of double checks
    return $retvalue;
    }
    add_filter('bb_current_user_can', 'delete_own_post',10,3);

    or simplier version:

    function delete_own_post($retvalue, $capability, $args) {
    if ($capability=="delete_post") {return bb_current_user_can( 'edit_post', $args[1]);}
    return $retvalue;
    }
    add_filter('bb_current_user_can', 'delete_own_post',10,3);

    #71357
    chrishajer
    Participant

    /bbpress/bb-admin/includes/defaults.bb-schema.php

    is where the table names are all set. But changing the names there is only going to change the name of the tables that are created. You would need to change every reference to a table to this new uppercase name. I can’t imagine how difficult that would be or what would happen with any plugin you install or what happens when it’s time for an upgrade.

    What host is this that changes the table names (not the database name) to uppercase? I’ve never heard of such a thing. Is there a page on their site or an email from support describing their policy?

    It’s ok to have a database name in uppercase, since you only reference that once, but tables names being restricted to uppercase sounds like a very strange thing to me.

    #71316

    tomdebruin, user integration does work. I can register on either one, but I don’t pull in the wp-blogheader at all, I just recreated my theme and hard coded the page links.

    #64641
    kirpiit
    Member

    I humbly suggest that a search field and its css couterpart is included in the default theme for future releases.

    It is far easier for many to comment out a few lines as opposed to figure out how and where to place new pieces of code.

    Thanks.

    #4690
    Burt Adsit
    Member

    It’s not the first time and it won’t be the last. I’m confused.

    I’m trying to add forum moderator capabilities to the currently logged in user in a specific forum only. I don’t want to give them the moderator role. I just need to give them additional caps in a specific forum. When the user is tooling ’round in the forum I want to give mod rights to, assign them dynamicly. When they are no longer in that forum, take ’em away on the fly.

    If found a couple of things to guide me. One was forum-moderators.php by Aditya Naik. This give specific users a forum moderator role thru the bbpress backend. That stores the rights to those caps as a meta value and assigns them when the user is on the forums. Great. There’s a fn in there that determines what forum the user is in and responds to a filter called ‘bb_user_has_cap’. I can’t find neither hide nor hair of using this filter anywhere except in a couple of plugins by sambauers. http-authentication and ldap-authentication.

    So, I found the filter ‘bb_current_user_can’. It looks to me like everyone on the planet is using this filter. The comment in the fn bb_currrent_user_can() says use ‘bb_user_has_cap’. Well, nothing is using that as far as I can determine.

    Anyway, my confusion comes in when I try to implement my filter. I’m gonna give the user the following caps:

    $forum_mod_caps = array(
    'manage_topics' ,
    'edit_closed' ,
    'edit_deleted' ,
    'browse_deleted' ,
    'edit_others_tags' ,
    'edit_others_topics' ,
    'manage_posts' ,
    'ignore_edit_lock' ,
    'edit_others_posts'
    );

    For me, reading the code for bb_current_user_can() is like the time I got curious about implementing tcp/ip for the Atari ST. I got a headache. My skill level is not up to understanding what is going on down there. Some guidance would be appreciated.

    We have 3 args to this filter:

    $retvalue, $capability, $args

    Looks like $retvalue is being passed up the filter chain. If I don’t want to touch the call I just pass $retvalue back.

    I was digging ’round and looks like $capabilities is the cap being queried. $args is specific to each call and may vary depending on what cap is queried.

    These are questions in case you haven’t noticed. My understanding breaks down when I get to what I’m being passed and what I’m supposed to do with them other than return ‘true’ if it’s a cap I want to let the user have.

    I should just return true if it’s a cap I want the user to have. It’s up to me to determine if it’s appropriate at their location in the universe. Yes?

    #4687
    deadlyhifi
    Participant

    All integration guides appear to have the userbase in WP. I was in the situation where my userbase was in bbPress, so I needed to get all my bb_users into wp_users.

    The following refers to WP2.7 and bbPress 1.06a.

    The process is actually quite straight forward but do make backups of your database beforehand!

    1. First delete ‘wp_usermeta’ and ‘wp_users’ tables (having made that backup!)
    2. Change the name of ‘bb_usermeta’ to ‘wp_usermeta’ and ‘bb_users’ to ‘wp_users’.
    3. The tables structures from bbP are the same as WP apart from one field in the ‘_users’ table. So we need to add FIELD: user_activation_key TYPE: varchar(60) NULL: NO after the ‘user_registered’ field.
    4. The problem now is that none of these users have their WP roles defined.
    5. To do this we need to insert the ‘meta_key’ and ‘meta_value’ to ‘wp_capabilities’ and ‘a:1:{s:10:”subscriber”;b:1;}’ for each user.
    6. wordpress_capabilites.sql contains an SQL insert statement for 5000 users. If your userbase is less than that you only need to run it for your number of users (although we deal with overruns in a minute).
    7. Once this has run each user will have ‘subscriber’ status within wordpress. You need to manually change your bbPress key holder (most likely user_id 1) ‘wp_capabilities’ to ‘a:1:{s:13:”administrator”;b:1;}’. This gives that account administrator status within WP.
    8. It’s highly likely that you’ll have deleted some users in the past, or run too many INSERTs from the wordpress_cabalilities file, so we need to delete all those ‘wp_capabilities’ that aren’t mapped to an exisiting user.
    9. SQL: ‘select * from wp_usermeta where user_id not in (select ID from wp_users)’ will list all these non-existent users.
    10. It probably a good idea to do a full backup of your tables right now just in case.
    11. Now run this SQL: ”delete from wp_usermeta where user_id not in (select ID from wp_users)” – this will delete all those stray entries.
    12. Done.

    All worked out with the help of someone I work with, so I can’t take all the credit ;)

    Good luck.

    #4684

    Lets say in theory I was going to try and integrate bbPress’s functions into WordPress.

    Theoretically, where would I look if I didn’t want bbPress to clear out the wp_head function? :)

    #71292

    Check your wp-config.php file, and search for “$table_prefix”

    I’ve got $5 that says you accidentally typed “ltvwff” next to it. :)

    #70735

    In reply to: bbpress vs phpbb

    eclipsenow
    Member

    Hi,

    I am using phpbb3 for now, but I’m not really good at database stuff and admin stuff. I love all open source projects, especially phpbb3, bbpress, wordpress, Joomla, Drupal, etc… even though I’m not very “Geeky” yet and am only just beginning to learn the basics of CSS (let alone php etc).

    So… I am speaking from the perspective of a non-technical forum administrator frustrated by various interactions of various software. I don’t mind doing the grunt work of setting things up IN the software, but don’t know the code to work ON software. EG: Once phpbb3 is installed, I can easily set up forums, permissions, etc. It’s just easy point and click stuff. But messing around in mysql and database stuff still terrifies me, I’m afraid of breaking something. It’s all too big. I just want to install it and have it work.

    I appreciate that there are various philosophies behind each style of software, but here goes…

    MY ULTIMATE WISH LIST

    1. Nothing to do with you guys, but number 1 on my list is to have Fantastico (or something equivalent) that can make installation of WordPress / Joomla / Whatever EASY! (My client is a volunteer campaigning group that just happened to choose Brinkster which don’t use Cpanel, let alone have Fantastico).

    2. After EASY fantastico installation, I install WordPress.

    3. Then within WordPress I browse across to the various add-ons pages in the WordPress Control Panel (A VERY cool new feature of WordPress that Drupal and Joomla should add to their systems!) and then click “INSTALL FORUM?” and WordPress suddenly installs a completely compatible forum, just like that, with all the power of phpbb3 built-in.

    4. I then choose 1 of say 20 or 30 “looks” (templates, themes, whatever) that are already pre-configured to allow sign-in of users on all pages, especially the forum page. If I want to change the colour of a background element or use a new image in the header, I just point and click to template editing and do it ala Blogger. (No CSS required).

    This sort of software is on the way. Joomla now has “Agora” which is already fairly advanced. Once Joomla is installed through the 50 second Fantastico installation, Agora only takes about 50 seconds to install as well. EVEN I CAN DO IT! But the Joomla / Agora combination does not yet have Step 4, which is killing me… I have to muck around with all sorts of plug-ins and extra bits to get a horizontal log-in menu I can put up just under my header (so it’s in the same place no matter what template I’m in).

    I saw the video of how to integrate WP and BBpress, and ran a mile screaming! It just looked very intimidating.

    So anyway, the Joomla / Agora combination is hardly perfect, but as you know these things keep on developing and Hazzaa over at Agora is MANIC in the rate he’s developing his product. Version 3 is nearly out, and it’s only been 10 months.

    Just thought I should give you guys the heads up. The competition is great, because it forces us all to evolve.

    EG: I LOVE the sound of WordPress’s new one click upgrade function, and hope Joomla gets that soon! (It’s just me and database stuff again… eeerrgh!) Combine that with easy forum upgrades, backups, etc, and software that’s Mac-like in that it “just works”, and I’m a happy camper.

    PS: I forgot to check this thread in case there were replies, because I automatically get an email from every other forum I belong to. Old habits die hard. Agora has an automatic emailing function built in, it’s not a plug in. ;-)

    #71353

    In reply to: bb Code not working

    Nevermind. I’m an idiot. I guess you need bbcode light to make it work.

    #4682

    I’m having trouble getting bb codes to work, via plugin buttons or otherwise. I even hard coded a link to a podcast on one of my other blogs, and url code isn’t working. Any idea what the problem is?

Viewing 25 results - 25,876 through 25,900 (of 32,495 total)
Skip to toolbar