Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 30,626 through 30,650 (of 32,432 total)
  • Author
    Search Results
  • #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!

    #55627

    In reply to: Duplicate Posts

    chrishajer
    Participant

    Hmm, I actually tried both of these today and my members were unable to post. The page just hung. I was using 1.0 alpha. Not sure what was going on there, but I removed this piece of code. I would rather deal with duplicate posts than a broken forum.

    #1632
    boomanfloral
    Member

    I just installed bbpress :) and I have a feed of my forum in my netvibes page, but it does not seem to ‘refresh’?

    My quesiton is: How fast does the netvibes page should ‘notice’ that I posted a new post in my forum? Is there something I should look into? I think it should be ‘noticed’ at once. Right?

    Many thanks!

    -daniel

    Update => It was just published in my netvibes page… that was after like 50 mins!! And I hit ‘refresh’ in the netvibes feed. :( Is this normal?

    #55689

    In reply to: Plugin: Latest Replies

    LMD
    Participant

    Hi,

    Thank you for letting me know. I suspect the problem is something to do with the fact that an extra database field has been created, and the ‘bbPress Post’ plugin is not updating that field. I have downloaded the plugin and will look at the code to see what’s going on — the fix may have to be in ‘bbPress Post’ rather than my plugins – but it may just be a small code change you can make yourself.

    So, I’ll get back to you in this topic later.

    #56083

    Ahhh great stuf now it works :-) Here’s what I did:

    1. Changed my the name of the users online plugin from onlinelist.php to users online.php

    2. I changed .htaccess back to Options +MultiViews

    3. There’s no step 3 ;-)

    Thanks a bunch guys

    Thomas

    #56088

    In reply to: Theme Check

    fel64
    Member

    There is no description of the stylesheet that I know of, but it’s fairly straightforward. Working on this should be identical to styling WP, only with different classes and ids. There is also no listing of template tags and other API functions, sorry.

    Not sure what you want to do with the images, but some things can be done with CSS.

    .post img {
    property: details;
    }

    You can set things such as the border and the maximum size and the like. http://www.w3schools.com/css/

    For incredibly fancy things with images you need swfIR, but that’s a flash thing and as such a) very annoying b) security risks? c) setup difficult.

    Right now, by the way, you appear to be using Trent’s forum theme, which includes a (hardcoded?) link to his about page (second blue tab at the top).

    You may also wish to re-count your forum’s posts (Admin > Site Management I think), as one of your forums has -1 posts.

    #1630
    Null
    Member

    Hi,

    Is it possible at all to update a db table when de-activating a plugin?

    Some plugins create an own db table and it would be great if this table is deleted when a plugin is deativated. Keeps the db clean :D

    Greetz

    #1629
    Null
    Member

    Hi,

    I finished the next version of the bbMenu plugin, but it has 1 little bug that I can’t seem to fix. When you double click a menu item (in the admin area -> site management) you can change the title. When you press “ok” ajax will save the changes to the db, but it will return the value TWICE (not update the value twice, that goes well).

    So like title:

    Forums

    edit to: bbForum

    press ok

    ajax will save: bbForum to the db, but will show:

    bbForumbbForum

    Refreshing the page will clear it and show it just once. How to fix this?

    I’ve created a beta file so you guys can see what i mean:

    http://www.sourceskins.com/bbmenu1.1beta.zip

    If you already used this plugin, you’ll have to delete the menu table from the db first!!

    Files that really matter:

    edit.php (file that is called when pressing ok)

    editinplace.js (handels al the editing)

    bbmenu.php (actual plugin)

    Also, when I commented out: require_once('../bb-load.php'); in the edit.php file, I didn’t had the problem (could be because nothing was being saved, so it wouldn’t return a value at all)

    Hope some one can help me with this so I can release this :)

    ps. when installing this plugin and you see nothing, refresh the page (still working on this)

    #1627
    wittmania
    Member

    I’ve been fiddling around inside Ardentfrost’s Private Messaging plugin, which is very cool!

    One question I have, though… it seems that when a PM is sent, it ignores the line breaks from the text area so that everything runs together. I suppose you could hard code the paragraph tags in, but most users would never take the time to do that.

    This might belong in the discussion on that plugin’s page, but my question is a general one. In the normal BBP post routine, it automatically converts the double line breaks so they show up correctly in the post. How is this done, and is it simple enough that I could add it somewhere in the plugin to make it perform the same way when a new private message is posted?

    Thanks!!!

    #55844

    In reply to: Setting user data

    fel64
    Member

    Unfortunately not, as it simply hangs itself on the get_profile_info_keys filter – so it gives extra values for the user to edit, which isn’t what I’m looking for.

    #55923

    In reply to: Show off your Forum !!

    Arlo
    Member

    This is my migrated phpBB forum. It’s integrated with my main site rather tightly (UI-wise, not database), and I did a bit of modification to the post layout, making the best use of the narrow column I think. Other than that, just your usual CSS tweakage.

    It’s not live yet, so I welcome feedback:

    http://automatorworld.com/bbpress/

    The plugins I’m using are:

    Comment Quicktags

    Front Page Topics

    Post Notification

    Page links

    Quote

    edit: Please feel free to register and test post, I would welcome the Q&A :)

    #56007
    Trent Adams
    Member

    It works if you are willing to download the latest TRAC version from https://trac.bbpress.org/browser/trunk/ and then scrolling down to the bottom of the page and clicking the ‘download in other format – Zip format’. That is the latest development version. Then you have to change your config.php to have:

    $bb->mod_rewrite = 'slugs';

    Your .htaccess file should just be back to whatever you had before. Mine is just the + MultiViews part.

    Trent

    #56006
    cocowawa
    Member

    fel64, this dont work the url“s link dont change and then error404

    i am adapting code to do a unique forum (without forums!) you con see: http://www.todopiscinasQQQ.es/foro/ (remove QQQ)

    Whats are wrong?

    Trent i hope to do this now but i thing i need to wait for 1.0 and my code dont works then.

    #56004
    fel64
    Member

    Open your config.php file and change line 26 (I think) to

    $bb->mod_rewrite = 'slugs';

    (It should have been $bb->mod_rewrite = [true or false] before.)

    Put the following code in your .htaccess file:

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

    #56003
    cocowawa
    Member

    Oh! I like it! Trent

    Could you give me your code please? or say me what are you doing

    Thanks!

    #54292
    Sam Bauers
    Participant

    On *nix RTFM…

    man patch

    On windows… no idea

    #56039

    In reply to: Tags not found

    Trent Adams
    Member

    If you changed from 1.3 to 2.2 in Apache and it worked before the upgrade, it must have something in there that it doesn’t like with the Mod Rewrite handling. I am not sure myself, but I would change my .htaccess in the bbPress root folder of http://www.canadianbookclubs.com/forums/ to have only:

    Options +MultiViews

    Nothing else. Try it in that and in your http://www.canadianbookclubs.com/bkrv/ test run with the new version as well. Either way, it should work for one of them. That works best with most servers I have used and they are using Apache 2+. Try that out maybe and if not, take Fel64’s suggestion and put the contents of what is outputted by: /bb-admin/rewrite-rules.php

    Trent

    #55891
    Sam Bauers
    Participant

    Comment out this line in the plugin to get page 1 showing.

    unset($links[0]);

    That’s line 82 in version 1.0.2

    #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.

    #51434
    citizenkeith
    Participant

    I switched back to the first version, but the member list was still messed up. So I emptied the bb_online table, and now it doesn’t work at all. :( Oops.

    #55910

    In reply to: Add New – issue

    stasi
    Member

    Thanks for your replys.. i’v checked to post-form.php, and it is present in the “crystal” theme.

    I tried to switch back to the default theme, and suddenly it worked! Then I switched back to crystal theme at overwrited the original theme files (perhaps i’v done something with the files before).. but no, it still dosen’t work as it should :(

    #56067

    In reply to: Spoiler plugin?

    fel64
    Member

    If Trent’s theory is correct (and it sounds good) I think the best thing for you to do is to plonk that javascript reference in a plugin (that’s certainly the neatest thing). This is probably the code you need.

    <?php
    /*
    Plugin Name: Javascript Spoilers
    Plugin URI: [Enhanced SS page]
    Description: Makes little javascript buttons to show and hide text in spoiler tags. A port of a WP plugin.
    Author: [Author of Enhanced SS]
    Version: 0.1
    Author URI: [Author of Enhanced SS homepage]
    */

    function ess_addjs()
    {
    $plugin_uri = bb_get_option('uri') . str_replace(BBPATH, '', BBPLUGINDIR);
    $js_uri = $plugin_uri . 'enhancedss.js';
    echo '<script type="text/javascript" src="' . $js_uri . '" />' . "n";
    }

    add_action('bb_head', ''ess_addjs);
    ?>

    You will have to modify the javascript filename from enhancedss.js to whatever it’s actually called.

    Copy and paste all that into a plain-text file, call it something.php and upload it to your plugins folder. Also upload the enhancedss.js file to that folder.

    Almost all that code was totally ripped off from Sam Bauer’s Page links plugin. :)

    #55639

    In reply to: What’s integration?

    fel64
    Member

    I think so. Integration has to be done from the very start. You have to set up your config.php properly before install (with the database pointed at your WP database) else it won’t integrate. Maybe I’m wrong; does anyone else know?

    #56063

    In reply to: Spoiler plugin?

    mattpeckham
    Member

    :D

    Okay, pretty simple – see here:

    http://mikecarey.net/?p=187#comments

    Scroll down a dozen comments from the top to the one dated March 18th, 2007 12:36 pm and see the ‘Show’ drop-downs. That’s a spoiler plugin that essentially takes any text with <spoiler> tags around it and inserts the drop-down function.

    I’m either looking for something like that, or alternately jury-rigging a custom tag (if that’s even possible) to let my users post, say, black text on a black background (in a blockquote box) that you have to highlight to see.

    Make a little more sense?

    Matt

    #56062

    In reply to: Spoiler plugin?

    Trent Adams
    Member

    Not sure what you are trying to do here. Explain to me like I am 5 years old what you are trying to get done because I act that way…. :)

    Trent

Viewing 25 results - 30,626 through 30,650 (of 32,432 total)
Skip to toolbar