Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'codes'

Viewing 18 results - 1,676 through 1,693 (of 1,693 total)
  • Author
    Search Results
  • #54423

    In reply to: Add nofollow to links

    livibetter
    Member

    Here it is:

    <?php
    /*
    Plugin Name: My own tweak for my forums
    Plugin URI: https://bbpress.org/
    Description: Fine tuning codes for my forum
    Author: Your name
    Author URI: http://www.myforum.com/
    Version: 0.1
    */

    add_filter('post_author_link', 'bb_rel_nofollow');
    ?>

    Basically, you can put many fine tuning codes within one PHP files, and this file is for your forum only. Remember to activate this plugin.

    #61255
    bssfi
    Member

    Hi again

    I am just trying to post the banners in a thread.

    The plugin is already enabled, so that’s not the problem. Most of the banner codes seem to have the closing backslash missing in the closing img tag. It seems that bbpress is particularly fussy when it comes to this type of code.

    #2541
    Null
    Member

    Hi,

    I’m trying to add a new custom page to my forum. It’s very simple, this is what I have so far:

    – 1 custom page called test.php

    – the page includes the forum header and footer

    – The content (middle) part is pulled from the db aswell

    All works fine except hyperlinks! Links like http://www.test.com will NOT appear as a hyperlink, but just as plain text. How to fix this? I want this to behave just like this textfield I am typing in right now (auto hyperlink converting).

    bbcodes like bold do work.

    _Null

    #2464
    inimicus
    Member

    Hi!

    I am trying out BB for the first time, but upon running install.php I get this:

    hide_errors(); $installed = $bbdb->get_results("SELECT * FROM $bbdb->forums LIMIT 1"); if ( $installed ) : if ( !$new_keymaster = bb_get_option( 'new_keymaster' ) ) die(sprintf(__('
    Already Installed

    You appear to have already installed bbPress. Perhaps you meant to upgrade instead?

    To reinstall please clear your old database tables first.
    ') . '', bb_get_option( 'uri' ) . 'bb-admin/upgrade.php')); $meta_key = $bb_table_prefix . 'capabilities'; $keymaster = false; if ( $keymasters = $bbdb->get_results("SELECT * FROM $bbdb->usermeta WHERE meta_key = '$meta_key' AND meta_value LIKE '%keymaster%'") ) { foreach ( $keymasters as $potential ) { $pot_array = unserialize($potential->meta_value); if ( is_array($pot_array) && array_key_exists('keymaster', $pot_array) && true === $pot_array['keymaster'] ) die(__('
    Already Installed

    You appear to have already installed bbPress. Perhaps you meant to run the upgrade scripts instead? To reinstall please clear your old database tables first.
    ') . ''); } } $user = new BB_User( $new_keymaster ); if ( $user->data ) : $user->set_role( 'keymaster' ); ?>

    data->user_login); ?>

    show_errors(); switch ($step): case 0: ?>

    hide_errors(); if ( $users = $bbdb->get_var("SELECT ID FROM $bbdb->users LIMIT 1") ) { $meta_key = $bb_table_prefix . 'capabilities'; if ( $keymasters = $bbdb->get_results("SELECT * FROM $bbdb->usermeta WHERE meta_key = '$meta_key' AND meta_value LIKE '%keymaster%'") ) { foreach ( $keymasters as $potential ) { $pot_array = unserialize($potential->meta_value); if ( array_key_exists('keymaster', $pot_array) && true === $pot_array['keymaster'] ) { $keymaster = (int) $potential->user_id; break; } } if ( $keymaster ) $keymaster = $bbdb->get_row("SELECT * FROM $bbdb->users WHERE ID = '$keymaster'"); } } $bbdb->show_errors(); } ?>

    everything (database information, email address, etc.) entered correctly in config.php before running this script.'); ?>
    add('domain', __('Your $bb->domain setting must not end in a backslash "/".') ); $domain = parse_url($bbd); if ( !$domain ) $errors->add('domain', __('Your $bb->domain setting cannot be parsed.') ); // Not very helpful, but should essentially never happen. if ( !$domain['scheme'] ) $errors->add('domain', __('Your $bb->domain setting must start with http://.') ); if ( $domain['path'] && '/' != $domain['path'] ) $errors->add('domain', __('Your $bb->domain setting must only include the http:// and the domain name; it may not include any directories or path information.') ); if ( '/' != $bbp{0} ) $errors->add('path', __('Your $bb->path setting must start with a backslash "/".') ); if ( '/' != substr($bbp, -1) ) $errors->add('path', __('Your $bb->path setting must end with a backslash "/".') ); // We don't really do anything with $bb->wp_site_url. if ( $wph = bb_get_option( 'wp_home' ) ) { if ( '/' == $wph{strlen($wph) - 1} ) $errors->add('wp_home', __('Your $bb->wp_home setting must not end in a backslash "/".') ); $home = parse_url($wph); if ( !$home ) $errors->add('wp_home', __('Your $bb->wp_home setting cannot be parsed.') ); if ( !$home['scheme'] ) $errors->add('wp_home', __('Your $bb->wp_home setting must start with http://.') ); if ( preg_match('|(.*.)?([^.]+.[^.]+)|', $domain['host'], $d2 ) && preg_match('|(.*.)?([^.]+.[^.]+)|', $home['host'], $h2 )) if ( $d2[2] != $h2[2] ) $errors->add('cookie', __('Your $bb->domain and $bb->wp_home settings do not have the same domain.
    You cannot share login cookies between the two.
    Remove the $bb->wp_home setting from your config.php file.') ); if ( !strstr($bbp, $home['path'] . '/') ) $notices->add('cookie', __("Your bbPress URL ({$bbd}$bbp) is not a subdirectory of your WordPress URL ($bb->wp_home).
    Sharing login cookies is possible but is more complicated. See the documentation about integrating bbPress and WordPress.
    In the meantime, remove the $bb->wp_home setting from your config.php file, or you may not be able to log in.") ); } if ( $cd = bb_get_option( 'cookiedomain' ) ) { if ( '.' == $cd{0} ) $cd = substr($cd, 1); if ( !strstr($bbd, $cd) ) $errors->add('cookie', __('Your $bb->cookiedomain is not in the same domain as your $bb->domain. You will not be able to log in.') ); } $cp = bb_get_option( 'cookiepath' ); if ( $cp != preg_replace('|https?://[^/]+|i', '', bb_get_option( 'wp_home' ) . '/') && !strstr($bbp, $cp) ) $notices->add('cookie', __('Your bbPress URL $bb->path is outside of your $bb->cookiepath. You may not be able to log in.') ); if ( $ecodes = $errors->get_error_codes() ) { echo "

    * n"; if ( in_array('domain', $ecodes) ) foreach ( $errors->get_error_messages( 'domain' ) as $message ) echo "t$message
    * n"; if ( in_array('path', $ecodes) ) foreach ( $errors->get_error_messages( 'path' ) as $message ) echo "t$message
    * n"; if ( in_array('wp_home', $ecodes) ) foreach ( $errors->get_error_messages( 'wp_home' ) as $message ) echo "t$message
    * n"; if ( array('cookie') == $ecodes ) { // Only show cookie errors if nothing else is wrong foreach ( $errors->get_error_messages( 'cookie' ) as $message ) echo "t$message
    n"; echo "

    n"; break; } echo "n"; echo "

    It continues from there…

    The problem is, I have never installed BBPress. I went to MySQL after I got the error the first time, made a database for BB called “bbpress” but still get the error (even though the database is new, fresh and entirely empty). What’s up?

    #55681

    In reply to: Empty tag <br> issue?

    fel64
    Member

    I might do it sometime, but for now I’d say just use the Comment Quicktags – press a button and the code is inserted, if your problem is remembering the codes.

    https://bbpress.org/plugins/topic/14?replies=6

    Demo here: http://forums.loinhead.net/topic/the-purty-image-associator/page/2?replies=52

    #1479
    spencerp
    Member

    What I’m probably going to do is, just use the CSS file codes that I had, for when using the Forum Category enhancement with my bbPress forums. It’s not going to be a big deal if those Forum Category CSS codes are in the stylesheet anyway.

    For those running the Forum Cat enhancement, or not, I’ll release a Gathering theme version for either route. A) One for the plain Jane bbPress users, and B) One for those that are already using the Forum Category enhancement. ;) :)

    Please note though, that this theme will be an AS-IS type of deal!!

    I’ll try to give a helping hand, and try my best to provide “support” for it, but, I’m just a really, really busy person sigh. I barely have time to sleep and stuff… :( Besides, if any problems arise, your answers should be, or, could easily be answered here, since it’s basically just a theme. If you happen to have issues with the Forum Cat enhancement patch itself, I’m sure Sam would be happy to help you.. :) ;)

    Anyway, here’s what’s on my TO-DO list, starting now!

    1) Delete all the current plugins on my forums, so I have a total plain Jane bbPress install to work with…

    2) On the localhost/computer .. make up the “Gathering” theme on the latest Trunk files of bbPress. With, and without the files containing the Forum Cat enhancement edits… (Again, this theme should (generally) still work for .80, however, not sure about the backwards compatibility for the forum Categories enhancement though)…

    3) Download the latest copies of the plugins I deleted, tweak the new ones, upload and install them…

    4) Try and get some kinks out of the theme, which happens when using some certain plugins sigh..

    5) Release two copies of the Gathering theme, one for plain Jane bbPress users, and one for those already using the Forum Category enhancement…

    6) Then I’ll probably apply the theme I just spent the last 3 days on, non-stop, which I put up on my Vindictive Bastard blog… I’ll apply that on my spencerp.net blog then too.. and make it a theme for bbPress as well … whee! What you think? http://www.vindictivebastard.net/

    7) I’ll try and actually get some sleep!! Geesh, I’m beat!

    Anyway, I’ll keep everyone updated on this.. thanks for your time..

    spencerp

    #54336
    kirkk
    Member

    I think this problem is about my server, i mean the software that my server use. Because i couldnt see any mistake in the config file, but i have realized something, if i could find BBPATH, the codes which create this variable, i would be able to fix the problem…

    Thanks

    #50170
    spencerp
    Member

    Oh nice!! Thanks for the link Michael! ;) :) I just manually adjusted the “latest” svn files lastnight, for .80 alpha, which is currently running on my forums now.. I manually implemented the [Resolved] codes back into the files, now I won’t have too! :) ;) :D

    Thanks again!

    spencerp

    #1225
    spencerp
    Member

    I’m still in the process of doing things with it, so, if you find things quirky, please be patient… ;) :)

    Anyway, I tried to get the blog’s theme around the forums themselves. I used the blog’s imagery, blog’s style.css codes right in the original bbPress stylesheet.. and so forth. I also used the WordPress.org/support/ user profile layout basically..

    Well, what you think?

    http://spencerp.net/forums/

    Be gentle!!

    spencerp

    #53082
    spencerp
    Member

    Nevermind, much props goes to boyevul on GoogleTalk! ;) ;D The login codes were placed in the theme’s header2.php file, directly after an “onclick” action, which was the culprit.

    So this:

    <div id=”header” onclick=”location.href='<?php bloginfo(‘url’); ?>’;” style=”cursor: pointer;”>

    <h1><a href="<?php bb_option('uri'); ?>"><?php bb_option('name'); ?></a></h1>

    <?php login_form(); ?>

    <div id=”memlist”><a href="<?php bb_memberlist_link(); ?>">Member List</a></div>

    </div>

    Was changed to this:

    <div id=”header”>

    <h1><a href="<?php bb_option('uri'); ?>"><?php bb_option('name'); ?></a></h1>

    <?php login_form(); ?>

    <div id=”memlist”><a href="<?php bb_memberlist_link(); ?>">Member List</a></div>

    </div>

    And all was peachy! I didn’t however upload the latest files of bbPress to the online copy, and I didn’t upload the new changes I just made here either.. I will then .. ;) :D

    Either way, problem is solved!

    spencerp

    #52995
    d3x7r0
    Member

    I just took a look at both codes and noticed that in the onlinelist plugin you’re using – 300 and on this one – 3600, notice the diference? :P

    #52283
    spencerp
    Member

    Try this version of the “main plugin” file once..

    http://spencerp.net/downloads/bb-privatemessage.php.txt

    Just copy the codes from that one, and place it in the original bb-privatemessage.php and reupload it into the my-plugins directory again..

    That *should* work.. If not, Josh(ardentfrost) and I will look into what we’ve done before, to get rid of that error. ;):)

    spencerp

    /I think we had to “hard-code” the calls to the users table for the database..? If I’m not mistaken.. Josh?

    #1166
    spencerp
    Member

    Ok people, here’s the deal.. I’ve installed MediaWiki 1.8.2 on my domain: http://codex.spencerp.net/ and customized the links for it and so forth.. no big deal right… ?

    What I have done so far is (in this order)..

    1) Integrated bbPress to my WordPress blog.. So anyone that registers on my bbPress forums, is automatically registered into my WP blog. Usernames and Passwords work for BOTH..

    2) Applied the bbPress_Auth_for_MediaWiki extension to my MediaWiki.. However, I had to use some of the modifications listed here.

    Now, people can login to my MediaWiki with the usernames and passwords from either the WP blog, or the forums.. ;):)

    The ONLY problem I’m having now, is.. having users register for a new account on my MediaWiki “Create New Account” page.. sigh.. I’m getting the following error..

    http://codex.spencerp.net/Special:Userlogin?type=signup&returnto=Main_Page

    “Login error:

    There was either an external authentication database error or you are not allowed to update your external account.”

    Which is obviously saying, it’s trying to create a new account in the MediaWiki database.. but, where really it should be trying to make a new account in my WP database.. right? Or, that might be meaning the other way around.. I’m not sure.

    My questions are:

    1) Is there a way to modify the “Create New Account” page, with the WP register page codes? So, when someone tries to create a new account on my MediaWiki itself.. it calls the WP database for it?

    Or..

    2) Just modify the MediaWiki file, that contains the “Create Account” link, and use the link to the registration page for the WP blog itself? And if so, which MediaWiki file does this reside in?

    I guess I’d rather have it simple.. and just implement the WP registration codes, into the MediaWiki file.. so there is no redirecting of the “Create Account” link in my MediaWiki..

    Or, does someone know of an “extension” for MediaWiki.. that synchronizes the MediaWiki & WordPress registrations? Thanks in advanced.. ;) :)

    spencerp

    /It’s ALMOST totally there now.. the way I want her.. just that dang Registration problem on the MediaWiki sigh.

    By the way, you have to be registered and signed-in, to edit my Wiki.. whee! Which means, you’ll have to register on my blog, or forums first! This is why I’d like to get this MediaWiki registration figured out soon sigh..

    #51846
    spencerp
    Member

    In your forum’s root directory.. you have to make a folder called: my-plugins and then upload the file there.. Call a blank file: my_resolve_ title.php and add the above codes into it.. make sure there isn’t white space before the: <?php and after the last: ?>

    Save it, and upload it to your my-plugins folder.. Good luck!

    spencerp

    #997
    ear1grey
    Member

    There’s a sub-forums ticket open at the moment, assigned to Matt, and I thought have have a quick think-aloud to see how feasible this idea is…

    I think the combination of forums, sub forums and tags encodes too much structure into the application and the db; I can see another (possibly more flexible) way of delivering the same capabilities, which involves three steps:

    1. Add descriptions to tags, so they can behave like forums.

    2. Remove the old forums altogether and instead allow tags to be sticky – sticky tags then go on the front page, with their descriptions, like forums.

    3. Avoid the restrictive tree structure of forums and sub-forums by using a graph – i.e. in the same way that any post can be linked to any tag, any tag should also be able to be linked to any tag.

    The net result would be the same operation for the user, but more more potential for adaptive content structure and semantically rich navigation by, for example, seeing related articles from “nearby” tags.

    There’s probably other advantages, and maybe caveats that I’ve not seen… :)

    #49413

    In reply to: Importing from phpBB

    brunotorres
    Member

    Marky, just after posting here I realized I forgot to convert the bbcodes. I’ll try to make it shortly.

    About the announcements and sticky, I’ll give a look too.

    But I still don’t have a clue why posts don’t appear on the admin. If you or anyone know why, please let me know.

    #49410

    In reply to: Importing from phpBB

    marky
    Member

    OK, I gave the script a shot and it imported everything very nicely!

    The only snag is that the bbCodes weren’t stripped or converted in the process, so many of the posts end up looking like gibberish. Also, sticky threads and announcements weren’t converted as such, although that’s less of an issue.

    I certainly hope there’s enough demand for this script to justify adding these features. Otherwise, nice job! :-)

Viewing 18 results - 1,676 through 1,693 (of 1,693 total)
Skip to toolbar