Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 21,951 through 21,975 (of 32,516 total)
  • Author
    Search Results
  • #85447

    Can you define what it is you want your chatbox to do please?

    As you’ve already said you don’t want a shoutbox, and now you don’t want the above linked AJAX chat. If you gave us strict definitions of what you’re after we could help :)

    chrishajer
    Participant

    The fact that functions.bb-pluggable.php is listed leads me to believe it’s a conflict with a plugin. What plugins are you running?

    Sabuntu
    Member

    When I tried to delete one of my posts i get this error

    Database error: [Column ‘topic_last_poster_name’ cannot be null]

    UPDATE bb_topics SET topic_time = ‘2010-02-25 00:46:31’, topic_last_poster = ‘1’, topic_last_poster_name = NULL, topic_last_post_id = ’10’ WHERE topic_id = ‘3’

    Caller: bb_delete_post, bb_topic_set_last_post

    Warning: Cannot modify header information – headers already sent by (output started at /home/ssmmid/public_html/forums/bb-includes/backpress/class.bpdb.php:569) in /home/root/public_html/forums/bb-includes/functions.bb-pluggable.php on line 232

    Can any body please tell what’s going on ??

    lynx13
    Member

    Hey!

    I finally setup bbpress inside http://example.com/forum/

    Of course I would like to use permalinks, because they are already working with my WordPress-Blog http://example.com

    I am not a specialist in setting up .htaccess, so I would like to request your help.

    The “main” .htacess reads as follows:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
    Redirect permanent /zsblog http://example.com
    Redirect permanent /zsblog/feed/ http://example.com/feed/

    As you can see my blog runs inside /zsblog which is located in / on my server.

    bbpress runs inside /zsblog/forum

    Here the .htaccess of “bbpress”:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /forum
    RewriteRule ^forum/([^/]+)/page/([0-9]+)/?$ /forum.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^forum/([^/]+)/?$ /forum.php?id=$1 [L,QSA]
    RewriteRule ^topic/([^/]+)/page/([0-9]+)/?$ /topic.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^topic/([^/]+)/?$ /topic.php?id=$1 [L,QSA]
    RewriteRule ^tags/([^/]+)/page/([0-9]+)/?$ /tags.php?tag=$1&page=$2 [L,QSA]
    RewriteRule ^tags/([^/]+)/?$ /tags.php?tag=$1 [L,QSA]
    RewriteRule ^tags/?$ /tags.php [L,QSA]
    RewriteRule ^profile/([^/]+)/page/([0-9]+)/?$ /profile.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^profile/([^/]+)/([^/]+)/?$ /profile.php?id=$1&tab=$2 [L,QSA]
    RewriteRule ^profile/([^/]+)/([^/]+)/page/([0-9]+)/?$ /profile.php?id=$1&tab=$2&page=$3 [L,QSA]
    RewriteRule ^profile/([^/]+)/?$ /profile.php?id=$1 [L,QSA]
    RewriteRule ^view/([^/]+)/page/([0-9]+)/?$ /view.php?view=$1&page=$2 [L,QSA]
    RewriteRule ^view/([^/]+)/?$ /view.php?view=$1 [L,QSA]
    RewriteRule ^rss/?$ /rss.php [L,QSA]
    RewriteRule ^rss/forum/([^/]+)/?$ /rss.php?forum=$1 [L,QSA]
    RewriteRule ^rss/topic/([^/]+)/?$ /rss.php?topic=$1 [L,QSA]
    RewriteRule ^rss/tags/([^/]+)/?$ /rss.php?tag=$1 [L,QSA]
    RewriteRule ^rss/profile/([^/]+)/?$ /rss.php?profile=$1 [L,QSA]
    </IfModule>

    Unfortunately, when clicking on a new created forum or on a topic I get redirects to random(?) articles inside my WordPress-Blog.

    Any ideas how I can fix that?

    BTW.: Option +MultiViews didn’t work for me. Need to set it up separately.

    Thanks in advance!

    All the best,

    lynx

    Its good to have people like Kevin here. :)

    People don’t need to shell out money for small fixes.

    P.S. - I am going home tomorrow (for a small vacation) or else I would have left my email ID here :P

    Hi Robert,

    I’m guessing really but i’d suggest:

    in style.css

    Line 31:

    #header, #posts {

    width:760px;

    }

    should read:

    #header, #posts {

    width:[input new width];

    }

    in style.css

    Line 45:

    #header h1 {

    background:url(“images/jillijheader4.jpg”) no-repeat scroll center top #999999;

    border-bottom:1px solid #999999;

    font-size:2em;

    height:182px;

    line-height:80px;

    width:760px;

    }

    should read:

    #header h1 {

    background:url(“images/jillijheader4.jpg”) no-repeat scroll center top #999999;

    border-bottom:1px solid #999999;

    font-size:2em;

    height:182px;

    line-height:80px;

    width:[input new width];

    }

    replace [input new width] with either a fixed width (1000px) or a percentage (100%).

    Good luck :)

    #33276
    Juan
    Member

    Line 1508:

    $defaults = array( ‘id’ => 0, ‘before’ => ” );

    really disrupts the layout. Changing to:

    $defaults = array( ‘id’ => 0, ‘before’ => NULL, ‘after’ => NULL );

    Fixes the nasty template issue.

    Can this line of code be modified in the core code for distribution?

    Thanks

    #85337

    In reply to: bbPress Simple?

    JimJiber,

    I, we, all feel your pain – but you’re confusing two issues here; because you’re viewing bbPress as a WP plugin. It’s not, it’s a standalone forum, and there is a “bridge” that connects the logins/users to wordpress.

    1) bbpress is very very simple to set up and use if you have basic technical knowledge (ability to edit a file and FTP).

    2) bbPress is not simple to integrate into WordPress.

    It is random, annoying, and requires you to know so much it’s unreal, and most of the information you’re meant to know is buried inside forum threads you’ll struggle to find. If you want to stick with it, shoot us over the steps you took, linking which of the guides on here you followed would be great if possible, and we’ll try and sort you out.

    The forum appears to be a completely seperate entity to my WP site

    It is, and will be.

    Seems like no-one can make a decent forum for wordpress.

    You’re kinda right. This is actually really good, but WordPress has a tendancy to change it’s securty protocols quite randomly and often. 2.1, 2.5 and 2.7 all had major changes and whenever that comes we’re all playing catch up. Sadly automattic took the decison to integrate bbPress into BackPress and then decided not to integrate WordPress into BackPress, so we’re left in the state of limbo you now see.

    this has been a total waste of an afternoonand I needed to vent.

    Thats ok, i cant think of one person that has come to bbpress and gotten integration working on their first day, let alone afternoon. Matt (head of automattic) annouced that Integration was the highest priority to get working back in December, but then decided we should work on anonymous posting instead, so we’re all a tad confused.

    Before deciding on forum software or swapping to joomla, i’d spent the time doing a bit of research on them all. There are positives and negatives for many of these – but on the plus side you now know the 2nd biggest flaw of bbPress :)

    Hardly intuitive is it?

    No, but then it’s not trying to be :(

    My suggestion is to get your forums working first, without trying integration. Then once you know it’s all working you can follow one of the countless integration guides here, and shout us when things go wrong. Sadly, it’s the best that can happen.

    Ashfame,

    Thanks. I tried that but to no avail.

    I would be willing to hire someone to fix this. If anyone is interested, I can send them the code.

    rlebowitz AT yahoo.com

    Thank you!

    #82419

    @Meraj

    I can work with you! Email me – ashishsainiashfameatgmail<<dot>>com

    {Edit – My bbPress design matching with WordPress >> NAP}

    @pondering

    Great buddy! Looking forward to it.

    Welcome back mate.

    I still can’t replicate sadly. Shout me if you find if adding my lines of code work or not. I’m off to pick up the kids but will be back on later.

    Marius-,

    I say this as someone who comes across as angry or annoyed or something. You need to take a step back. It’s free software, it’s free support. We’re all trying to help :) Maybe say please and thank you. Read what I, and others, take a deep breathe and see that we’re telling you the software’s limitations so that you know them – not to put you off. There are loads of great things you can do with bbPress, but there are also things you can’t. Help us, help you – and when we do, please be polite and thanful.

    I have said this before, downgrading is not an option.

    No-one is suggesting you do :)

    Why even have two versions for download, if you all want us to donwload 0.9?

    I don’t care which if them you do download.

    Like every bit of software, you get certain features and drawbacks with both options.

    Pick one, and accept it’s limitations.

    bbPress0.9: Older, way more plugins, lots of support questions already answered, bad admin area.

    bbPress1.0: Newer, few plugins, few support questions, nice admin area.

    You say backwards compitability never has been a goal. What I fear is that, lets say some time in the future I decide to upgrade to a new version of BBPress. With a completely new theme, and possibly reinstall it. Will I be able to keep the users and posts?

    Yes, you will keep your users and posts.

    Thats forward compatability, not backward.

    Themes, plugins, custom code could stop working. If you don’t like it, don’t upgrade. Loads of people are still on WindowsXP cos it works.

    And I have to say, polls, image support and text formatting is standard. Its what everyone has used on forums for ten years. So theres no reason they shouldnt be included as standard, from my point of view.

    But bbPress does not have them, and never has had them, and never will have them as standard.

    If you want all of those fancy features then you have to choose a different software solution. Thats not me scarying you away, its just being honest.

    I know i’ve said this to you over and over again, but there is a difference between “basic” functionailty and “standard” functionality. Basic is what the software needs to actually work, Standard is a perception held by individuals based on what their needs are and the market is.

    bbPress doesn’t even meet all of the “basic” requirements yet, so there is no way – no matter how much you cry about it – that any of the “standard” features YOU want are going to be included. Its not going to happen unless you develop it or pay for a developer. I’m in that boat too. We all are. There are things i want bbPress to have because they are standard, but it doesn’t have them and won’t have for a very long time if ever.

    So theres no reason they shouldnt be included as standard, from my point of view.

    Thats because, you are not listening bro.

    1) We have no developer to build them.

    2) Even if we had a developer, there are bugs and basic features to code first.

    3) Those sorts of features are what plugins are for.

    4) If thats not cool with you mate, you’re at the wrong project. Sorry.

    Also, please stop banging the drum that BBpress is not ready for use if you have no skills etc. I think you are destroying your userbase by doing this. You are scaring people away, and its not true either.

    If it’s not true, then why have you spent the last 2 months on here asking really really really basic web development (non-bbPress) related questions?

    https://bbpress.org/forums/topic/how-do-you-make-footer-background-transparent

    https://bbpress.org/forums/topic/need-help-placing-a-div-somewhere-for-custom-background

    And then complain big time every time you have to edit a file to get things working, even though someone else is telling you what to do.

    If someone can’t edit a file and FTP it then they can’t install bbPress. That requires some small amount of technical knowledge – i’m just being honest. I’m not trying to scare people away, but when people think bbPress is as easy as WordPress we get a huge amount of support questions along the lines of “zomg i r installed forum kk and it no work – i give you 2 hour window to look at my forumz and fix it kk now!”. Some people don’t even have the decency to say thanks (*cough*).

    Look at: https://bbpress.org/forums/topic/modifying-header-to-display-image-issues#post-64963

    Here is someone who has taken on board that he (currently) doesn’t have the required skills to do what he wants in bbPress, and is taking the positive steps to get it sorted. When he/she comes back for help, we’ll be here.

    I have pretty much zero skills, and have managed to get a pretty decent looking forum up and running.

    Can’t argue with the first part, can’t agree with the second.

    =================================================================

    Look, Marius-,

    Not one person left on here is part of the bbPress project really. Matt, Sam, Michael, _ck_, etc. All don’t hang around here anymore. If you ask questions, those of us trying to help answer. But all you do is complain that you don’t like the answers, and then ask for more help, then complain etc. etc.

    John Hiller has gone WAY out of his way to give you free support for an issue on you are having, again, and you’ve not even had the decency to thank him. I’ve given you countless bits of code, including one 3 days ago, and you never said thanks – just complained that you’d have to do some of the work.

    Honestly, i wish for you and your forum all the best. But if you ask a questions, and you don’t like the answers, don’t ask the questions. Because, i’ve given you code, i’ve given you advice, i’ve given you answers – and you’ve never said thanks and are still unhappy. It’s not worth my time mate. You’re simply not listening.

    #85358

    In reply to: Page links

    chrishajer
    Participant

    Vect, this was caught by Akismet as spam. There were one or two others as well, probably caught because of no recent history, russian (?) website link in profile and lots of code.

    UPDATE: I deleted the other topic because it was a duplicate of this one.

    #33272

    Chris,

    Please unspam my profile named ashfame

    #85286

    In reply to: anti bumping?

    bbuser12345
    Participant

    I am looking for something similar. I have one particular forum for which I would like the threads in that forum to NOT appear in the latest discussions list. Is there a small bit of code I can add to do this. I would also love it if there was an additional column that indicated the forum that the thread listed in “Latest Discussions” came from.

    I tried! Had no luck!

    I commented out everything that I added and I am getting some interesting results. Its integrated now. I can access everything except a small behavior.

    When I login from bbPress side, if I try to access http://needaproject.com/wp-admin/ I can get to the dashboard but if I try to access the URL like http://needaproject.com/wp-login.php or http://needaproject.com/wp-login.php?redirect_to=http%3A%2F%2Fneedaproject.com%2Fwp-admin%2F I get the login screen. It doesn’t recognize that I am logged in.

    OMG!! bbPress is so much screwed up when it comes to issues.

    oooh i forgot somethings:

    I also have this in my WP-config:

    // This is meant to help BBpress

    define(‘COOKIE_DOMAIN’, ”);

    define(‘COOKIEPATH’, ‘/’);

    Again, not totally sure these are neccessary, but once you have something that works you stick with it :)

    Morning lads and lasses,

    I can’t replicate this problem with an existing/live website, but i may have some suggestions. From the time of the 0.9 to diffrent versions of WP (and SuperAnn and _ck_’s plugins), i’ve found i end up putting in a huge amount of data into my bb-config.php file, and then force everyone to login via wordpress (that way i know i’ve only got 1 point of failure).

    If you can’t access the bb-admin admin area when being logged via wordpress try making sure these values are in your bb-config.php file.

    define(‘BB_SECRET_KEY’, ‘bb_secret_key’); // Change this to a unique phrase.

    define(‘AUTH_KEY’, ‘auth_key’);

    define(‘LOGGED_IN_KEY’, ‘loggedinkey’);

    define(‘BB_AUTH_KEY’, ‘authkey’);

    define(‘BB_SECURE_AUTH_KEY’, ‘secureauthkey’);

    define(‘BB_SECURE_AUTH_SALT’, ‘secureauthsalt’);

    define(‘BB_LOGGED_IN_KEY’, ‘loggedinkey’);

    define(‘BB_SECRET_KEY’, ‘secretkey’);

    define(‘BB_SECRET_SALT’, ‘secretsalt’);

    define(‘BB_LOGGED_IN_SALT’, ‘loggedinsalt’);

    $bb->wp_siteurl = ‘http://www.**********.com/&#8217;;

    $bb->wp_home = ‘http://www.**********.com/&#8217;;

    $bb->wp_table_prefix = ‘wordpress_’;

    $bb->user_bbdb_name = ‘**********’;

    $bb->user_bbdb_user = ‘**********’;

    $bb->user_bbdb_password = ‘**********’;

    $bb->user_bbdb_host = ‘localhost’;

    $bb->custom_user_table = ”;

    $bb->custom_user_meta_table = ”;

    $bb->authcookie = ‘wordpress_’;

    $bb->cookiedomain = ”;

    $bb->cookiepath = ‘/’;

    $bb->sitecookiepath = ”;

    $bb->wp_table_prefix = ‘wordpress_’;

    $bb->WP_BB = true;

    /* Stop editing */

    I know this may sound daft, and i can’t pin point the technical reason for it, but with the combination of WP moving to a different security routine in WP2.7/2.8 and bbPress moving to BackPress i find that having that extra data in and predefined has solved 99% of my login issues.

    I think, and those of you more technical than i am may debunk the idea, that bbPress does a “double dip” where it tests you as having a cookie on the front end and that the name is associated with a key master or admin, but then on the backend it actually checks your admin credentials against the WP database and cookie has and thats what fails (who do we thank for backPress??).

    Sadly bbPress admin area (or any admin function) doesn’t give error messages, so the exact issue we won’t know unless you can run a profiler.

    Give my additional code a try, and we’ll see if that makes a difference.

    Kev

    #85326
    56alifar
    Blocked

    Thanks! The language is dutch ;)

    #33254
    gerikg
    Member

    I don’t know if anyone cares but I’ll just put it out there:

    Every Theme you download from bbpressthemes.net (I can guarantee you the original authors didn’t do it) the headed.php has advertising codes….

    <script language="javascript">
    document.write('<style> #a1dd122 { margin: -40000px; position: absolute; text-align:right; } </style>');
    </script><a href="somewebsite" id="a1dd122">blah</a>

    Is this considered okay???

    Yeah, we debunked all that nonsense months ago here:

    https://bbpress.org/forums/topic/lets-talk-about-facebook-connect

    If you want to reignite that conversation in it’s own thread then lets do so mate :)

    I love how passionate you feel about it, and you obviously have some real world experience and exmaples to share. That’s great!

    But lets not derail dbneeley’s thread any further :)

    Hi dbneeley,

    You’ve asked a great set of questions, and i’m afraid my answer is going to fall well short of code012’s.

    Basically, i’d suggest asking that question on the BuddyPress website. At the risk of looking like passing the buck, BuddyPress is using a hacked/modified version of bbPress, so most of the things we’d have to say on this forum would be from a standalone viewpoint and might not give the depth of answer you’d want.

    But if others chip in like code012 did, then you may have just gotten lucky.

    Take Care

    #83764
    chrishajer
    Participant

    @kevinjohngallagher – I wish the STYLE="FORTHRIGHT" didn’t get stripped out of your comment.

    The source of that page was awesome the day they put it up. Here’s an archive of it, I think:

    http://sean.raptorswithhats.com/geoxkcd.html

    #83763
    chrishajer
    Participant

    @uhclem – I think you have exactly the right attitude to be involved with bbPress. Some tips:

    1. Don’t modify any core bbPress files. Restrict your modifications to files in the my-templates and my-plugins folders. If you don’t have those folders, create them. They will be at exactly the same level as bb-templates and bb-plugins.

    2. To start modifying the look of your forum, make a folder inside the my-templates folder, call it whatever you want (something unique, but it doesn’t matter. Maybe it a filename with no spaces though, like newtheme.) Now, copy every single file from the kakumei folder into this new folder. Now open up style.css and change the line that says Theme Name: Kakumei to say something like Theme Name: Custom Theme by uhclem. This name can have spaces in it. It’s this Theme Name that will show up in your bbPress admin section when you go to select a new theme in the Appearance tab. The screenshot will be the one from kakumei, but that’s only because you didn’t change it yet. You can worry about that later. If your new theme name does not show up in the bbPress admin, you did something wrong.

    The files that end in .php are just like HTML files, but they are processed by the web server before sending to your browser. If you put just HTML into a file with a php extension instead of a htm or html extension, it will display just as if you had named it with html or htm. Try it.

    Now, you need to look through some of those existing php files and see what’s going on. You will see some plain old HTML but you will also see some stuff inside blocks that look like this:

    <?php do something(); ?>

    PHP code will being with a <?php and end with ?> – the stuff inside those brackets is PHP code that will be interpreted by the web server before sending it to the browser. Any PHP code in a file with a PHP extension will not be sent to the browser. It is processed, for good or bad. If you get a white screen, it means you probably have a syntax error in your PHP code.

    You can edit the PHP files with notepad, just as you did with batch files, but it’s better to use an editor with syntax highlighting, so you can see when you make a mistake in your PHP. Notepad++ is good and free on Windows. http://notepad-plus.sourceforge.net/uk/site.htm

    Once you get to that point, you can learn about all the cool things you can do with PHP and bbPress.

    #33251

    Topic: Page links

    in forum Plugins
    Vect
    Member

    Hello. I want to do in my plugin that page links would be /page/2/ , /page/3/. By default it is /page/2 , /page/3 . I have this code in my plugin:

    function my_get_topic_page_links_filter( $_links ) {

    $_links = bb_paginate_links(

    array(

    'format' => bb_get_option('mod_rewrite') ? '/page/%#%/' : '%#%/',

    )

    );

    return $_links;

    }

    add_filter( 'get_topic_page_links', 'my_get_topic_page_links_filter' );

    But it is not work properly. What I’m doing wrong? Please help.

Viewing 25 results - 21,951 through 21,975 (of 32,516 total)
Skip to toolbar