Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 30,276 through 30,300 (of 32,426 total)
  • Author
    Search Results
  • #57253
    lokem001
    Member

    Thanks Trent, but that link gave me nothing :(

    Fel64, I don’t really get what you mean with “live Windows server”… anyhow it’s a WindowsXP server, Apache 2.2, PHP5, latest MySQL – all installed on a personal LAN server.

    And the Apache/PHP installation works fine with some other simple PHP applications.

    I also tried to copy an older installation of bbpress that worked fine on a previous WinXP/Apache server, but due to a disk failure I had to format the drive and re-install everything.

    However, that older bbpress turned out with the exact problem (blank page) and the same line Apache’s error.log…

    My guess is something’s wrong with my Apache/PHP installation.

    Thx,

    lokem

    #55003
    spencerp
    Member

    YES! Awesome! Thanks a million Trent! :D You’re awesome! ;) :D I gotta find it now, I think it’s on a CD some where LOL. When I find it, I’ll send it your way. :) ;)

    Side note: It was coded with the Forum Category hack/adjustments made though.. so.. just a for-warning. ;) It shouldn’t be that hard to start on fresh bbPress code though. :) I just don’t have the time to do it sigh. :(

    And maybe even some “plugin code” are in it as well lol! I think your’s and Josh’s. Hmm.. You’ll see what I mean then. ;)

    spencerp

    #1799

    Topic: Profile Tabs

    in forum Plugins
    fel64
    Member

    How do you add a tab to the three tabs – “Profile”, “Edit” and “Favourites” – visible only in the profile? I want to add a tab for the avatar and am fairly sure there’s a hook bb_profile_menu but I’m not sure what to do with it. The API certainly supports adding them, the code’s there, but I’m not sure how to do it. Anyone know?

    #55002
    Trent Adams
    Member

    If you want to email me the theme Spencerp that would work and I will just re-release it for you and host it ;)

    Trent

    #56411

    In reply to: Freshness Linked

    fel64
    Member

    Forum 1 is private, and I can’t login using “test” and “test” :( Last time I checked, though, the latest post thing was screwed. :/

    #1797
    lokem001
    Member

    Hi!

    I did the installation as guided… created a config file…

    So after the creation of a config file, and I reload the page, nothing shows but blank… a big white blank page.

    I get this messege in my apache error log:

    [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function __() in C:\wow1.11\www\bbpress\bb-settings.php on line 7

    Thx for all the help I can get! :)

    #53671

    In reply to: Newsletter by email

    citizenkeith
    Participant

    How about for those of us who aren’t integrating with WordPress? This would be very useful for me. :)

    #55001
    spencerp
    Member

    Yeah, sigh. A little bit frustrated when a guy rips you off for a 112.00 USD on a custom WP theme! In which he don’t give you after A MONTH! When originally said 3 to 5 days max!

    (NSFW Links – Contain swear words of course! :D )

    http://www.vindictivebastard.net/id/433

    http://www.vindictivebastard.net/id/435

    And besides all that crap, I have many many other things that need done. But, is on hold because of the first initial crap that I’m dealing with sigh. :(

    spencerp

    #56642

    In reply to: Plugin: BB-Ads

    wittmania
    Member

    I have launched an “Area 51” forum to test and display the effects of my plugins. You can see bb-Ads in action here:

    http://blog.wittmania.com/bbpress/

    Also, I have now tested this plugin with pretty links, and it does work. The only changes to be made in the coding as given in ad1.php is that you have to delete the .php from the strpos check. This will just look for the words in the link instead of the actual .php file names.

    #1785
    wittmania
    Member

    Version 1.0

    This plugin automatically turns scripture references into links that will take the visitor to BibleGateway.com, where they can view the verse(s). The administrator can set the default version to one of more than a dozen available versions, including ESV, NIV, KJV, NASB, The Message, and so on.

    The links are created dynamically each time a topic is loaded, so the actual text of the post is left alone. This is nice because it allows you to disable/delete the plugin without having to go back through and edit your posts to remove the extra markup.

    This plugin is ideal for forums that are religious/spiritual in nature, as it will save your users a lot of time from having to hard-code links to passages they reference in their posts.

    This plugin is almost entirely based on a similar WordPress plugin that does the same thing to WP posts. You can view the WP plugin here:

    http://dev.wp-plugins.org/wiki/Scripturizer

    You can read more about the plugin, or download the latest version of bb-Scripture-Links, here:

    http://blog.wittmania.com/bb-scripture-links

    You can see a working demo here:

    http://blog.wittmania.com/bbpress/topic/2

    #56960
    fel64
    Member

    Why don’t you copy the code here or upload and link to it? If anyone’s interested they can modify it then.

    #52911
    citizenkeith
    Participant

    Did you put BOTH database tables and such in the SAME database? Like I said above here?

    Yes, just like that, although I am not integrating my WP with bbPress.

    As far as I know, you would only need to do what’s on this page right? Since we’re not talking about WP here at all?

    That’s correct. That’s what I’ve been trying to figure out… I’m following those directions, but I still get these errors.

    Sorry if I’m not much help.. :(

    Not a problem! I appreciate your efforts.

    #57216
    Nola1974
    Participant

    Excellent… Had a couple typos in there that I fixed, will post code when I’m done.

    I’m actually trying to make a theme based on old dial-up BBSs. Fun, fun, fun. :) The menu is the hardest part, trying to get different options to show up depending on what page you’re on (forum/topic/etc…)

    Here’s what I have so far:

    http://fearandloathingbbs.com/forum/

    Not quite ready for prime time .

    #55000
    Null
    Member

    internet frustration :D

    #54998
    spencerp
    Member

    Screw it, Trent…can you delete this thread for me man? If you want copy of it Trent, and then release it … go ahead man. I’ll send ya a zip or tar to your email addy then. ;) :)

    spencerp

    #52910
    spencerp
    Member

    Sorry, my mind is waaay off here. I just have so much crap going through it on a daily basis it’s not funny sigh. Sorry if I’m not much help.. :(

    spencerp

    #52909
    spencerp
    Member

    Did you put BOTH database tables and such in the SAME database? Like I said above here?

    If you want, and IF I can find the stuff I had before.. I’ll post it back here. As for the stuff you’re talking about above there… couldn’t ya just change the references from WP database calls to bbPress calls?

    As far as I know, you would only need to do what’s on this page right? Since we’re not talking about WP here at all?

    https://codex.wordpress.org/User:RobLa/bbPress_Auth_for_MediaWiki

    spencerp

    #57226
    fel64
    Member

    Oh, bizarre. It must have edited it in somehow. Trent, could you take that out in case someone else comes along? My hour’s up.

    Excellent! :)

    #57225
    smurfdude
    Member

    Nevermind i figured it out. You put < code > tags on this line:

    $topic_id = $wpdb->get_var(“SELECT topic_id FROM <code.>$posts_table</.code> WHERE <.code>post_id</.code> = $felpostID LIMIT 1;”);

    Now it works great, big thanks!

    #57224
    smurfdude
    Member

    I get this error on my comments page

    WordPress database error: [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ‘wp_bbpress_post_posts WHERE post_id =]

    SELECT topic_id FROM wp_bbpress_post_posts WHERE post_id = 32 LIMIT 1;

    #57221
    chrishajer
    Participant

    I have no idea honestly. I am using WP with permalinks and bbP without permalinks and it works fine all over the place (FF and IE, Linux and Windows.)

    I did notice with weirdness in the forum source:

    <script type="text/javascript" src="'. bb_get_option('uri') .'my-plugins/bb-emoticons.php?bb_grins_output=javascript"></script>

    Looks like the bb_get_option wasn’t wrapped in php tags? Maybe there are more things like that?

    #1794
    fel64
    Member

    Wanting to integrate bb and wp more, I hacked up wp’s comments.php template to get replies in the forum to show up below posts in the wp section of the site too.

    This currently requires the bbPress Post plugin.

    Fairly simple job: find the corresponding topic, get the replies, and output them. My solution should work for you, too, if you have bbPress post installed and activated as a wp plugin. Code’s below.

    I want to make it possible to reply to the topic from the wp section of the site if you’re logged in. Obviously I could make queries to insert the post into the database, but I’d like to use the bb API so it can be validated correctly, hooks are called etc. Not sure how I would go about making it accessible. Currently calling any bb functions returns the “undefined function” error; how can I make them available for use?

    Paste this in front of the rest of your wp comments.php template:

    <?php
    function felblogtotopicid( $felpostID ) {
    global $table_prefix, $wpdb;
    $posts_table = $table_prefix . "bbpress_post_posts";
    $topic_id = $wpdb->get_var("SELECT topic_id FROM <code.>$posts_table</.code> WHERE <.code>post_id</.code> = $felpostID LIMIT 1;");
    return $topic_id;
    }
    global $post, $wpdb;
    if( $forumtopic = felblogtotopicid( $post->ID ) ) {
    $bbprefix = get_option( 'wpbb_bbprefix' );
    $replies = $wpdb->get_results( '
    SELECT poster_id, post_text, post_time
    FROM ' . $bbprefix . 'posts
    WHERE topic_id = ' . $forumtopic
    );
    array_shift( $replies ); //takes off first entry, ie. starting post, and moves the rest back one
    //$replies = array of object( poster_id, post_text, post_time ) for each post I think
    echo "<ol>n"; //start of list
    foreach( $replies as $reply ) {
    $poster = get_userdata( $reply->poster_id );
    $poster = $poster->user_login;
    echo '<li class="thread">' . "n"
    . '<div class="reply">' . "n"
    . '<div class="poster">' . "n"
    . "<strong>" . $poster . "</strong>n"
    . "<span> @ " . $reply->post_time . "</span>n"
    . "</div>n"
    . '<div class="post">' . "n"
    . $reply->post_text
    . "</div>n"
    . "</div>n"
    . "</li>n";
    }
    echo "</ol>n"; //end of list
    //$replylink = bb_add_replies_to_topic_link( $forumtopic );
    $replylink = get_option( 'wpbb_path' );
    echo '<h3><a href="' . $replylink . '">Reply!</a></h3>' . "n";

    } else { ?>

    and paste this at the very back:

    <?php } //end else conditional for corresponding topic to blogpost ?>

    Example here

    #55707
    kernow
    Member

    fel64 wrote: How did you make it work?

    Its easy to install really. You have the main tinymce folder which I opened and uploaded the contents to the ‘my-plugins’ folder. This is the mistake I made.

    • Just upload the jscript folder within the tinymce folder to my-plugins
    • Edit header.php in your bbpress template, adding the reference to the javascript

    This is part of the code which I copied, which you put before the </head> closing tag in header.php.

    <script language=”javascript” type=”text/javascript” src=”http://example.com/bbpress/my-plugins/jscripts/tiny_mce/tiny_mce.js”></script&gt;

    Change to:

    <script language=”javascript” type=”text/javascript” src=”my-plugins/jscripts/tiny_mce/tiny_mce.js”></script>

    The FULL code you put in header php is the top of the page, but this bit is important.

    #57215
    fel64
    Member

    Ahh, that’ll teach me to remember the difference between get_bbpress_thing() and bbpress_thing(). >_< Sorry.

    Replace the code in there now with this.

    Set the last parameter to true if you want it to return an array of information. To use this you would use code like this:

    <?php $mytopicnavarray = feltopicnav( '', '', ' ', true, true );
    echo '<a href="' . $mytopicnavarray['next']['link'] . '">Click here to go to the next topic!</a>'; ?>

    Use <?php felforumnav(); ?> to get the forum navigation in a similar way to the topic navigation. It’s just a simple wrapper for what feltopicnav does, but it’s a bit easier to see what it’s supposed to do. Check the code for possible parameters.

    I won’t submit this as a proper plugin because the code is awkward. Maybe sometime I’ll recode it or someone else will. :)

    <?php
    /*
    Plugin Name: Topic Navs;
    Plugin URI:
    Description: Put <?php feltopicnav(); ?> in a topic template to show links to the previous and next topics, and put in <?php felforumnav(); ?> to get basic next/previous forum navigation. More parameters such as $infoonly available.
    Author: fel64
    Version: 0.7
    Author URI: http://www.loinhead.net/
    */

    function feltopicnav( $nexttext = '', $prevtext = '', $betweentext = ' ', $lastpost = true, $infoonly = false, $forumnav = false; )
    {
    global $topic_id;
    $nexttopic = $topic_id + 1;
    $prevtopic = $topic_id - 1;
    global $forum_id;
    $nextforum = $forum_id + 1;
    $prevforum = $forum_id - 1;
    if( !$nexttext )
    if( !$forumnav ) {
    $nexttext = get_topic_title( $nexttopic );
    } else {
    $nexttext = get_forum_name( $nextforum );
    }
    if( !$prevtext )
    if( !$forumnav ) {
    $prevtext = get_topic_title( $prevtopic );
    } else {
    $prevtext = get_forum_name( $prevforum );
    }
    $prevtext = get_topic_title( $prevtopic );
    if( $lastpost ) {
    $nextlink = get_topic_last_post_link( $nexttopic );
    $prevlink = get_topic_last_post_link( $prevtopic );
    } else {
    if( !$forumnav ) {
    $nextlink = get_topic_link( $nexttopic );
    $prevlink = get_topic_link( $prevtopic );
    } else {
    $nextlink = get_forum_link( $nextforum );
    $prevlink = get_forum_link( $prevforum );
    }
    }
    if( $infoonly ) {
    $topicnavinfo['next']['title'] = $nexttext;
    $topicnavinfo['next']['link'] = $nextlink;
    $topicnavinfo['prev']['title'] = $prevtext;
    $topicnavinfo['prev']['link'] = $prevlink;
    return $topicnavinfo;
    } else {
    echo '<a href="' . $prevlink . '"> &laquo; ' . $prevtext . '</a>' . $betweentext . '<a href="' . $nextlink . '">' . $nexttext . ' &raquo; </a>';
    }
    }

    function felforumnav( $nexttext = '', $prevtext = '', $betweentext = ' ', $infoonly = false )
    {
    $fni = feltopicnav( $nexttext, $prevtext, $betweentext, false, true, true );
    if( $infoonly ) {
    return $fni;
    } else
    echo '<a href="' . $fni['prev']['link'] . '"> &laquo; ' . $fni['prev']['title'] . '</a>' . $betweentext . '<a href="' . $fni['next']['link'] . '"> &laquo; ' . $fni['next']['title'] . '</a>';
    }
    }
    ?>

    #57186
    fel64
    Member

    Paste in

    <?php global $post;
    $lalaposttime = date( 'D M Y', strtotime( $post->post_id ) );
    echo $lalaposttime; ?>

    anywhere you like outside other <?php ... ?> tags. So you could put it next to the code snippet you quoted. If you use Notepad 2 or something it makes it a lot easier by colour-coding these things.

    The fact that it’s spread out over several lines doesn’t make a difference when it’s inside the <?php ... ?> tags. :)

Viewing 25 results - 30,276 through 30,300 (of 32,426 total)
Skip to toolbar