Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 26,101 through 26,125 (of 32,495 total)
  • Author
    Search Results
  • #70662
    chrishajer
    Participant

    Warning: mysql_connect() [function.mysql-connect]: Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) in /nfs/c03/h04/mnt/57391/domains/willclan4food.net/html/bbpress/bb-includes/backpress/class.bpdb.php on line 123

    I just got this same error on installation of Alpha 4 with WordPress 2.7 integration. I caused it by being logged out of WordPress when I clicked the link to my wp-admin/options.php that was displayed by bbPress (the one where bbPress tells you to look for the salts in the WP admin area.) In Sam’s screencast, he was logged in, so clicking the link just brought up the options page straight away.

    Anyway, I was logged out of WordPress at that step, and when I clicked the link, I got the WordPress admin login, with a redirect URL that looked like this:

    http://example.com/wp-login.php?redirect_to=http%3A%2F%2Fexample.com%2Fforums%2Fbb-admin%2Finstall.php%3Fstep%3D2

    So, when I logged in, instead of redirecting me upon login to http://example.com/wp-admin/options.php, it redirected me to step 2 in the bbPress install. After that, I got the same exact error as you did. In fact, there were a couple more too.

    Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/tmp/mysqld.sock' (2) in /home/example/forums/bb-includes/backpress/class.bpdb.php on line 123

    Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/example/forums/bb-includes/backpress/class.bpdb.php on line 377

    Warning: Cannot modify header information - headers already sent by (output started at /home/example/forums/bb-includes/backpress/class.bpdb.php:123) in /home/example/forums/bb-includes/functions.bb-core.php on line 842

    I ended up reinstalling since I was not confident in the installation at that point and didn’t want to take any chances at something not being set properly.

    #70659
    Ganzuelo
    Participant

    I got alpha to work,. I then installed both bbpress plugins for wordpress. I went back to change user options in the bbpress admin panel and error messages came up.. goto http://willclan4food.net for details.. The error codes are popping up there

    #69565

    In reply to: Using Sticky Post

    Malice
    Member

    Yea I have a similar problem. A sticky in a subforum (not sticky to front) makes the topic disappear from the subforum. It does still show up in the latest discussion on the frontpage. Can’t sticky posts in individual subforums though.

    Forum

    I use several plugins, all activated:

    BBcode Buttons Toolbar 0.0.8

    BBcode Lite 1.0.3

    BBPress Private Messaging 0.80

    bbPress signatures 0.1.9

    bbPress Smilies 0.0.5

    bb Topic Views 1.6.3

    Bozo Users 1.0

    Google Analitycs 0.1

    Human Test for bbPress 0.8.2

    Instant Password 0.0.4

    New User Notification Email 0.0.2

    Post Count Plus – Dynamic.Titles & More! 1.1.6

    Quote 0.2

    Subscribe to Topic 0.0.1

    Unread Posts 0.9.3

    #70646

    In reply to: Deactivate New Users

    Trent Adams
    Member

    Generally what I do is just edit your template to change the code on register.php to just have the registration page either redirect to your wordpress registration or have a link on it. If you use the default theme, just copy it into /my-templates/ and edit the register.php file of your theme. That seems to be the easiest as it then never shows the bbPress registration form.

    #67456
    walkerevans
    Member

    I was just thinking the same thing. I’ve run a few tests and it doesn’t appear to search tags or headlines.

    If anyone knows a fix it would be great to hear one! ;)

    #65649
    anotherdan
    Member

    Lighttpd “pro” – thanks but im not, hehe… Anyways it was me on irc the other day, I have bbPress running now, and have made a few changes to the the rewrite rules, I found exactly some errors regarding some urls needing more parameters…

    This is how it looks now:

    http://lab.anotherdan.com/conf/bbpress-rewrite.conf.txt

    I havent been through it all but at least some it works :) (Note this also contains some of the custom rewriting im doing for this install)

    #70593

    In reply to: Codex linking?

    _ck_
    Participant

    There’s no way your version works because the str_replace is executed immediately and the $2 isn’t available at that time. The regex would either have to use a callback or be expanded to catch words (or look on php.net for the /e modifer)

    #70592

    In reply to: Codex linking?

    The destination URL would be http://wiki.mydomain.com/wiki/PAGE And it cleverly sees the spaces (like ‘Main Page’) and turns that into underscores (Main_Page).

    <?php
    /*
    Plugin Name: Wiki Link
    */
    add_action('post_text','wiki_link',200);
    function wiki_link($text) {
    $url="http://example.com/path_to_wiki/";
    $wiki= str_replace(" ", "_", "$ 2");
    $text=preg_replace("/([[(.+?)]])/si","<a class='wiki_link' href='$url$wiki'>$ 2</a>",$text);
    return $text;
    }
    ?>

    It does eat that $2 doesn’t it…

    #70591

    In reply to: Codex linking?

    _ck_
    Participant

    Untested. Actually the forum is deleting some of the code so use it from here:

    http://pastebin.com/f54a958de

    <?php
    /*
    Plugin Name: Wiki Link
    */
    add_action('post_text','wiki_link',200);
    function wiki_link($text) {
    $url="http://example.com/path_to_wiki?terms=";
    $text=preg_replace("/([[(.+?)]])/si","<a class='wiki_link' href='$url$2'>$2</a>",$text);
    return $text;
    }
    ?>

    the above is missing two $2, should look like

    <a class='wiki_link' href='$url$2'>$2</a>

    #70590

    In reply to: Codex linking?

    _ck_
    Participant

    It’s probably a 5 line plugin to do that.

    Give me an example of what the destination URL looks like.

    #70606
    walkerevans
    Member

    Commented out the following code in template-functions.php got it to work again… testing to see if this is going to cause any security problems.

    //if ( ‘user_email’ == $key && $bb_current_id != $user->ID )

    // continue;

    #68337
    Malice
    Member

    great work guys! Can’t believe this exists just 2 years. Excellent software!

    Thanks for all the plugins as well =)

    #4484
    sbouazza
    Member

    Replace :

    $uri = preg_replace('!?page=[0-9]+!', '%_%', $uri );

    By :

    $uri = preg_replace('!?page=[0-9]+!', '%_%', $uri );

    That’s all .

    #70625
    chrishajer
    Participant

    I was able to get the forum ID on a topic page by using this (and nothing else) in header.php:

    <?php echo (get_forum_id()); ?>

    Works on forum pages too.

    #70623
    salemw
    Member

    yes, i did went to that topic earlier, I searched the whole forum but I just don’t get how i should use it I tried : global $topic_id, $forum_id; include(‘../nav/’.$forum_id.’.php’);

    it works fine but only on forum pages. not on topics. The same with an earlier post asking for different stylesheets:

    <link rel="stylesheet" href="<?php if ($forum_id == 1) bb_stylesheet_uri(); elseif ($forum_id == 2) echo '/my-templates/kakumei-blue/style.css'; ?>" type="text/css" />

    It”s ok on forum but not on topics.

    So in my header if I do the routine:

    global $topic; echo “$topic->topic_title”; I get the topic title ok but nothing with

    global $bb_post; echo “$bb_post->forum_id”;

    #4522
    feastoffools
    Member

    Hi there everyone, right now we’re trying to restructure our wordpress blog and bbpress forums to allow blog entries to appear in the forums via Bbsync.

    http://bbpress.org/plugins/topic/bbsync/

    Because of this need to have our blog entries appear in the forums, we’re restructuring our forums to tie into the blog entries.

    Check it out here: http://www.feastoffools.net/community

    Wondering if there is a way for parent forums to show all the entries in their subforums instead of showing entries specifically intended for the top parent category. Am I making sense?

    Or is there a way to lock out people from making an entry on a top level forum (allow only subforum

    Is there a way to have the top level forums count the entries in the subforums? Any feedback would be greatly appreciated. Thanks.

    <hr>

    Right now this is the structure we’re looking at:

    Feast of Fools

    – Podcast (Gay Fun Show) PODCAST

    – Video (Our original videos) VIDEO

    – Photos (Our original Photos) PHOTOS

    – Mini Bites (Audio clips and songs from the podcast) MINI BITES

    – One on One (Video Blogs) VIDEO BLOGS

    Topics

    – About Us (Press, Appearances, Announcements)

    – Animals (Our furry and not so furry friends)

    – News & Rumors (What’s the Buzz)

    – Trends & Tech (How we are changing, technology & the environment)

    – Culture & Style (Media, Ideas, Recipies, Looks & Things that are hot)

    – Gender & Sexuality (Gay, Lesbian, Straight, Trans, Male, Female, Bi, Trans & Everything Else)

    – Health & Wellness (AIDS/HIV, Fitness, STDs, Diet, Nutrition, Mental Health)

    – People (Celebrities, Guests, Hotties & You)

    – Politics & Activism (Creating Change and the people and ideas behind it)

    – Travel & Tourism (where to go, what to see)

    Fans & Friends

    – Ask for Advice (questions)

    – Promote Your Work (links and samples of: Photos, Video, Blog, Podcasts, Designs)

    – Your Thoughts (statements)

    Support

    – Site News (Changes, Upgrades & News About the Site)

    – Listening to Shows

    – How to Post (Tips and tricks on posting in the forums)

    – New Listeners

    – Questions

    Feedback

    – Bugs (Report problems for the site)

    – Show Ideas

    – Favorite Moment (Time and Episode in a podcast you found fabulous)


    #4518
    salemw
    Member

    Hello,

    I recently transfered my forum from phpbb3 to bbpress and i really enjoy it

    there is only one thing I cannot reproduce with bbpress. I used to have a different style for each category or forums and an image include on top of each. I can do it with forum_id but the variable do not follow in topics

    ex:

    if ($forum_id == 1) echo 'blabla';

    How could I keep it in topics ?

    Thank you

    #70617
    sbouazza
    Member

    The typical forum layout comes from catering to new visitors that want descriptions of each category, and from repeat visitors wanting to check if there are updates to that category without having to click into that category.

    Of course, my goal is to break that “tradition” and create something newer and, as you said, wik-ish .

    Tags also are really great for moderating topics, you can immediately find duplicate topics and close them .

    The forum will be managed BY the community, so using tags for navigation and giving the users the right to create them freely will not be a problem ( tags spam ? the spammer will get a kick in the ass :P ), and the moderation team will do its best to prevent tags abuse.

    If tags could visually signify if there are new posts for the visitor inside of them, maybe with emphasis or italics or reordering them to the front of the cloud, that would be a neat idea.

    Good idea, noted .

    Well, thank you all for your responses, I’ll try to finish the template then I’ll invite users to test it and give me their feedbacks .

    I didn’t see someone else using tag navigation on his forum, so maybe I will be the first to use it :-) ( or to loose )

    #70621
    dirge2000
    Member

    Well what do you know – it *was* in the bb-config.php file. I *knew* it wasn’t anything I’d done to the templates, ’cause I’d checked them a thousand times, plus it showed up even when I reverted to the original templates.

    Thanks for your help! :)

    #70520

    In reply to: Members can add tags

    chrishajer
    Participant

    Ignoring the debate over whether it’s a feature or a bug, good or bad, you could just remove the capability from the member role. It’s coded in bb-includes/functions.bb-capabilities.php line 170, “edit_tags”. You could delete that line and members would not be able to edit tags any longer. I’m not sure if that means they can’t add tags to their own post or not though.

    Also, instead of modifying a core file like that, you could probably use a plugin to remove that capability from the member role. Or you could create a whole new role that does not have that capability. I think there was a plugin related to custom roles:

    https://bbpress.org/forums/topic/disable-posting-and-registration#post-11696

    #70620
    chrishajer
    Participant

    That’s not really that weird or random. I suspect it’s in one of the template files that was edited. Since it doesn’t occur anywhere other than the front page (that I could see anyway) it’s probably in the front-page.php template file. Just search that file, or all template files for the string “ousep”. It should be pretty apparent.

    It could also be in the bb-config.php but I doubt it since that would probably throw a syntax error.

    Could be from “houseplant” or “mousepad” I suppose :-P

    #4517
    dirge2000
    Member

    Dunno what’s going on, but I’ve just installed bbpress at http://www.corvidaid.org/forum/ and for some reason extra characters are being added into the page just at the start. View the source code and you see “ousep” just being spat out at random. I have no idea where it’s coming from or what to do about it. Help! :)

    #55950

    In reply to: Show off your Forum !!

    Fernando Tellado
    Participant

    I’m finishing my new forum (latest was made with SMF). I’m using bbPress 1.0 alpha 4 with the default theme (in blue and customized) and several plugins (a lot):

    – Akismet

    – Attachments

    – Favourites notification

    – Registration notification

    – Temporal Ban

    – bbcode buttons

    – smileys buttons

    – Related topics

    – Signatures

    – bbcode lite

    – bbvideo

    – post count plus

    – support forum

    – mass edit

    – hidden forums

    – active users

    – bbpress karma

    – terms of service

    – human test

    – report post

    I’ve made the translation of bbPress 1.0 to spanish ( http://ayudawordpress.com/bbpress-espanol-alpha-104/ ) and the forum URL is …

    htp://foro.ayudawordpress.com

    #70614
    myu
    Member

    It would work fine. :)

    I hacked mine so users would tick on tags that are pre-defined, using only one forum. I thought it would be more suited for the target users who might not be familiar with the whole concept of “tags”, and I think it is working as expected.

    The way I could think of in how to enter tags in the first place is pretty silly but ah well…

    You’d be letting users enter the tags themselves, so it’ll be logically nicer.

    #70613
    1496013
    Inactive

    sbouazza, send a screenshot of your forum :)

    I think is a best idea.

Viewing 25 results - 26,101 through 26,125 (of 32,495 total)
Skip to toolbar