Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 30,326 through 30,350 (of 32,480 total)
  • Author
    Search Results
  • #57279
    Trent Adams
    Member

    Sam I never read the entire blog and didn’t realize that is was a link farm site. There is no bot that posts personal replies even if they sometimes seem out of place and in my experience there are sometimes comments that are made that are irrelevant, but not in vain. This might not be that case though if they were trolling for links.

    @fel64, I locked the thread because if the user is not a bozo, there is no need for further flaming and the disucssion should be over. In this case they most likely were a bozo and I appreciate you and Sam for bringing this up and using the modlook tag ;)

    Trent

    #1803

    Topic: MathML and BBpress

    in forum Plugins
    dprice
    Member

    Ok, I’ve been poking around the forums, found out how to get new allowed tags (thanks to Louise Dade + others) and now want to add MathML tag support, so users can post MathML.

    A big problem is that the editor box seems to add line break <br /> tags to every line – how do you turn this off?

    The array I’m using in the plugin is:

    `$tags = array(

    // XHTML elements:

    'a' => array(

    'href' => array(),

    'hreflang' => array(),

    'title' => array(),

    'rel' => array(),

    'xml:lang' => array()),

    'abbr' => array('title' => array()),

    'acronym' => array('title' => array()),

    'b' => array(),

    'bdo' => array(

    'dir' => array(),

    'xml:lang' => array()),

    'blockquote' => array('cite' => array()),

    'br' => array(),

    'code' => array(),

    // 'del' => array('datetime' => array()),

    'dd' => array(),

    'dl' => array(),

    'div' => array(

    'dir' => array(),

    'xml:lang' => array()),

    'dt' => array(),

    'em' => array(),

    'i' => array(

    'dir' => array(),

    'xml:lang' => array()),

    // 'ins' => array('datetime' => array(), 'cite' => array()),

    'li' => array(),

    'ol' => array(),

    'p' => array(),

    'pre' => array(),

    // 'q' => array(),

    // 'strike' => array(),

    'span' => array(

    'dir' => array(),

    'xml:lang' => array()),

    'strong' => array(),

    'sub' => array(),

    'sup' => array(),

    'u' => array(),

    'ul' => array(),

    // MathML elements:

    'math' => array(

    'xmlns' => array(),

    'mode' => array()),

    'mo' => array(

    'lspace' => array(),

    'rspace' => array(),

    'fence' => array(),

    'separator' => array()),

    'mi' => array('mathvariant' => array()),

    'msub' => array(),

    'msup' => array(),

    'msubsup' => array(),

    'mfrac' => array('linethickness' => array()),

    'mn' => array(),

    'mstyle' => array(

    'scriptlevel' => array(),

    'fontstyle' => array(),

    'fontweight' => array(),

    'mathvariant' => array(),

    'displaystyle' => array()),

    'mtext' => array(),

    'mspace' => array(

    'width' => array(),

    'height' => array(),

    'depth' => array()),

    'msqrt' => array(),

    'mmultiscripts' => array(),

    'mprescripts' => array(),

    'none' => array(),

    'mroot' => array(),

    'mphantom' => array(),

    'merror' => array(),

    'mover' => array(),

    'munder' => array(),

    'munderover' => array(),

    'maction' => array(

    'actiontype' => array(),

    'other' => array(),

    'selection' => array()),

    'mtable' => array(

    'align' => array(),

    'columnalign' => array(),

    'rowalign' => array(),

    'equalrows' => array(),

    'equalcolumns' => array(),

    'columnspacing' => array(),

    'rowspacing' => array(),

    'columnlines' => array(),

    'rowlines' => array(),

    'frame' => array()),

    'mrow' => array(

    'xlink:type' => array(),

    'xlink:show' => array(),

    'xlink:href' => array()),

    'mtr' => array(

    'rowalign' => array(),

    'columnalign' => array()),

    'mtd' => array(

    'rowspan' => array(),

    'columnspan' => array(),

    'rowalign' => array(),

    'columnalign' => array()),

    'mpadded' => array('width' => array())

    );

    return $tags;

    }`

    If anyone’s interested, you can find install at http://www.thetelegraphic.com/bbpress/bbpress/ (for now, once it’s fully working it’ll go to a dedicated domain).

    #57285

    In reply to: LaTex support

    fel64
    Member

    No idea. My advice would be to find a wordpress plugin and just modify it – there probably won’t be much to do – into a bb plugin. It’s worth a try. :)

    #57278
    fel64
    Member

    Yeah. The way I see it, bozo is anyone you don’t want posting – spammer, serial troll or bot – anyway, so I wouldn’t mind marking him that way.

    Trent, do you have to lock the thread? Either the discussion is over, in which case no-one will post anyway, or it’s not and you just stopped it. :/

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

Viewing 25 results - 30,326 through 30,350 (of 32,480 total)
Skip to toolbar