Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 31,051 through 31,075 (of 32,491 total)
  • Author
    Search Results
  • #54618

    In reply to: Plugin: bbMenu 1.0

    Null
    Member

    Hi,

    What kind of items would you like to add? Is it a plugin page like the memberlist plugin, or a link to another website, or a link to your homepage.

    The last one is technically hard to do cause of the way bbPress id’s there pages. bbMenu uses this to highlight the menu item when you are on a certain page. Since your homepage proberbly doesn’t support/use this, you can add an item in the menu, but it proberbly wouldn’t highlight when you are on that page.

    Hope you understand what I mean…

    If you want to add an “off-link” (the link goes to wikipedia or something) you could add this into bbmenu.php (not tested):

    At the bottom find:

    echo '<li ' . $first . '><a ' . $current . ' href="' . $rw['page'] . '">' . $rw['item'] . '</a></li>';

    Underneeth it add:

    echo '<li><a href="link-to-your-thingy.com">Thingy-name</a></li>';

    (Ignore the this forum adds them when editing this topic)

    This should add a new link ad the end in your menu, but you will not see it in the admin, or be able to put it anywhere else… It will also not be highlighted when you are on that page (in case you use it to go to your homepage)

    #54668

    In reply to: Import SMF to bbPress

    lonemadmax
    Member

    OK, if you are lucky and the server isn’t dead as it usually is, you may get it here.

    Remember, no guarantees. I hadn’t even read php before messing with that script.

    #52384
    giantsfan
    Member

    FYI, I modified the plug-in slightly to prevent moderators from messing with other forums they are not assigned to by this plug-in in bbpress version 0.8.

    changed function forum_moderators_process_capacities in forum-moderators.php, added some additional filters:

    $filtering_caps = array(

    'manage_topics' ,

    'edit_closed' ,

    'edit_deleted' ,

    'browse_deleted' ,

    'edit_others_tags' ,

    'edit_others_topics' ,

    'manage_posts' ,

    'ignore_edit_lock' ,

    'edit_others_posts',

    'delete_posts',

    'delete_topics',

    'close_topics',

    'stick_topics',

    'move_topics',

    'moderate'

    );

    added filters:

    delete_topics’,

    ‘close_topics’,

    ‘stick_topics’,

    ‘move_topics’,

    ‘moderate

    don’t know exactly what I’m doing but that hacked seemed to do what I want.

    #1453
    marky
    Member

    Don’t ask me how (I always find a way to do stuff like this), but I managed to delete the keymaster for my forum. :-)

    Since my forum is “live” and I don’t want to lose posts, re-installing isn’t really an option for me. Is there some way I can modify the database directly to grant keymaster permissions to an existing user?

    In bb_usermeta, I found a column with data like this: a:1:{s:6:"member";b:1;} that I think might be the key to doing what I want, but changing the word “member” to “keymaster” doesn’t seem to do the trick. What should I do?

    #54823
    marky
    Member

    Thanks! Worked like a charm. :)

    #1451
    marky
    Member

    I switched from phpBB to bbPress recently thanks very much in part to a script found in these forums.

    Now, many of the existing posts contain links to each other in the old phpBB format /topic.php?t=123. Since the topic IDs have stayed the same in the conversion process, I’d like to use ModRewrite to automatically redirect to the new /topic/123 URL scheme. I’ve tried the following in my .htaccess, but it doesn’t appear to work. (Admittedly, my knowledge of ModRewrite is shaky at best.)

    RewriteEngine on
    RewriteRule ^/forums/viewtopic.php?t=([0-9]+)$
    /forums/topic/$1 [R]

    (In the real code there isn’t a linebreak on the second line.)

    Does anyone have any advice?

    #1449
    dcfridge
    Member

    I am using Basic-authentication for all of other authentication and access control on my site, and would like to have bbPress detect that and leverage $ENV{‘REMOTE_USER’}

    Is this possible? Has anyone done it, that can share the code?

    Thanks,

    – Dave

    #53088
    spencerp
    Member

    cre8tive, I’ll try and get up a downloadable zip archive of the theme soon. I’ve just been so busy lately sigh, that I haven’t had much time on the bbPress/WP side of things.. I’ll keep you posted though.. ;)

    spencerp

    #54265
    spencerp
    Member

    Is this going to get submitted into the SVN trunk for 1.0 soon, or..? I’m really hoping so, all this “applying patches” is getting tiresome and confusing, sigh.

    It’s one of the main reasons I haven’t even upgraded my bbPress forums to the latest full .80, with category enhancement, just seems pointless… =(

    spencerp

    #54788

    In reply to: LDAP Plugin Help

    rkruk
    Member

    Hi

    thanks for the quick reply.

    Yes the IP, userid, pass is correct.

    The domain string is where i may be having trouble as i am not sure wat to put in there. I have tried multiple domain strings but no success.

    Have tried both TLS on/off.

    I am fairly certain that the firewall is set ok.

    We have other applications using the ldap server successfully, however from different servers.

    I have successfully used the following code example to produce a connection and return a result from the LDAP server. maybe this can help you debug the issue?



    <?php
    // basic sequence with LDAP is connect, bind, search, interpret search
    // result, close connection

    echo "<h3>LDAP query test 2</h3>";
    echo "Connecting ...";
    $ds=ldap_connect("192.168.1.73"); // must be a valid LDAP server!
    echo "connect result is " . $ds . "";

    if ($ds) {
    echo "Binding ...";
    $r=ldap_bind($ds); // this is an "anonymous" bind, typically
    // read-only access
    echo "Bind result is " . $r . "";

    echo "Searching for (sn=S*) ...";
    // Search surname entry
    $sr=ldap_search($ds, "o=Lions", "sn=S*");
    echo "Search result is " . $sr . "";

    echo "Number of entires returned is " . ldap_count_entries($ds, $sr) . "";

    echo "Getting entries ...";
    $info = ldap_get_entries($ds, $sr);
    echo "Data for " . $info["count"] . " items returned:";

    for ($i=0; $i<$info["count"]; $i++) {
    echo "dn is: " . $info[$i]["dn"] . "";
    echo "first cn entry is: " . $info[$i]["cn"][0] . "";
    echo "first email entry is: " . $info[$i]["mail"][0] . "<hr />";
    }

    echo "Closing connection";
    ldap_close($ds);

    } else {
    echo "<h4>Unable to connect to LDAP server</h4>";
    }
    ?

    #54399
    Null
    Member

    Go ahead then :D

    #54398
    lonemadmax
    Member

    If it’s for a demo, wouldn’t an ad hoc patch be enough? I have not delved into the code, but I guess that adding the name of the chosen theme to the user cookie and changing the function that tells what template is in use to look there first (if necessary) would do. Well, and the dropdown box to select theme, of course.

    #54538
    chrishajer
    Participant

    I think template is simple enough, it’s just different :)

    I also personally feel “template” is more ‘correct’ than “theme”. Unlearning “template” when starting with WordPress was hard.

    http://en.wikipedia.org/wiki/Template

    http://en.wikipedia.org/wiki/Theme

    I think bbPress is correct, and WordPress is wrong.

    Also, if you’ve ever used K2 with WordPress, you know that they have something called schemes which are pure CSS modifications to change the look. To confuse things even more, the “schemes” in K2 are in a folder called “styles.”

    sorry for all the edits …

    #54785
    Trent Adams
    Member

    The following is the encypted version of the password “test”

    098f6bcd4621d373cade4e832627b4f6

    If you go into the database and put that in, your new password will be “test”. That will get you going!

    Trent

    #54615

    In reply to: Plugin: bbMenu 1.0

    Null
    Member

    Ah ok can you tell me what attributes it contains? (so how the table is build) Does it have: set, item, page etc etc?

    Some suggested using set and item isn’t smart and could cause problems. But if these excist in your table, then it isn’t a problem. I think there is something “wrong” with the insert but to be sure. I am gonna make a version where I change the set and item into other values. Perhaps you can test that version for me when it’s done?

    Still funny, it works on my own 2 test servers :)

    #54721
    Null
    Member

    Why not put an hidden special key in it? We all hate spam, now we have to sign up to get a key, edit the config file etc etc…

    I say, put in a special bbpress askimetkey in it so we dont have to bother about spam :)

    chrishajer
    Participant

    When registering on a bbPress forum, this is displayed after you submit your registration:

    Make sure to whitelist our domain (http://www.mywebsite.com) so the confirmation email doesn’t get caught by any filters.

    That’s not really how whitelists work. Normally, you whitelist a domain or an email address, so wouldn’t it be better to say this in register.php on line 11:

    <?php printf(__("A password will be mailed to the email address you provide. Make sure to whitelist our email address (%s) so the confirmation email doesn't get caught by any  filters."), bb_get_option( 'admin_email' )) ?> 

    Make sense?

    #1440
    nickbrady
    Member

    Hi,

    I wanted to have tags separated by commas instead of spaces, to allow users to write tags with more than word.

    I did two very small changes to the function add_topic_tags() in the file functions.php and it works, here it goes in case someone is interested:

    function add_topic_tags( $topic_id, $tags ) {

    global $bbdb;

    $tags = trim( $tags );

    $words = preg_split(“/[,]+/”, $tags); // removed s

    if ( !is_array( $words ) )

    return false;

    foreach ( $words as $tag ) :

    add_topic_tag( $topic_id, trim($tag) ); // added trim()

    endforeach;

    return true;

    }

    #54753
    linickx
    Participant

    yeah, this forum is still online, feel free to play, I’ve been testing in this thread, but my css needs updating as not all effects are visiable (i.e. quotes are marked up in html, but css show’s white on white – doh !)

    #54745
    Null
    Member

    I agree with this all. This is also one of the reasons I’ve started the bbPortal project (bbportal.org) The idea is to use bbPress as the basic and build some nice stuff around it. It’s not much yet, I’ve just started it).

    WordPress is great for BLOGGING and some people forget this. It’s designed for a personal blog not for a whole community. Sure you can extend it with plugins etc, but still.

    bbPortal is/will be more for communities like clans/guilds that use the forum heavily. (so forum driven and not blog driven.)

    You can also take a look at wordpressMU (multiuser), That can give every user a own wordpressblog that you can administrate. If I may be so bold I see it like this:

    Personal/blog………….>>…………Community driven

    ..wordpress

    ……………………….wordpressMU

    ………………………………………………………. bbPortal

    (ignore the dots, they where needed for outlining)

    Joomla and Drupal are way bigger, but to my oppinion, needs some more understanding about php and coding aswell.

    Though choise huh :)

    #54609

    In reply to: Plugin: bbMenu 1.0

    Null
    Member

    Hi,

    Did you use the beta aswell? Then delete the bb_menu first with phpmyadmin.

    If not, then the table didn’t fill during installation of the plugin. Still don’t know why it doesn’t do that on certain servers.

    Fill the table using this information:

    mysql_query ("INSERT INTO 

    $bbdb->menu

     VALUES ('active', 'Forums', 'index.php', 'front-page', 0)");
    mysql_query ("INSERT INTO

    $bbdb->menu

     VALUES ('active', 'Search', 'search.php', 'search-page', 1)");
    mysql_query ("INSERT INTO

    $bbdb->menu

     VALUES ('inactive', 'Statistics', 'statistics.php', 'stats-page', 0)");

    I also found another bug. Somewhere I hardcoded bb_menu instead of using the prefix variable. As long as your prefix is bb_ (like most have) there is no problem. This will be fixed in the next release.

    Also the ‘doubleclick-and-edit-the-menu-items’ function in the new release is getting along very well!

    Greetz

    #1439
    bbolman
    Participant

    Alright I’m wondering if someone is willing to do me an extra-special favor and write a plugin that puts a little drop-down box at the top of your bbPress installation allowing people to choose a different theme. I’m interested in allowing people to demo out all the themes available for bbPress over at Pro Forums.

    Accidentally put this in install, can someone move it to plugins?

    ;)

    #54666

    In reply to: Import SMF to bbPress

    lonemadmax
    Member

    Sometime ago I adapted a script that imports data from phpBB. Some of the changes are probably a Bad Thing, but it worked for me (about 40 users, 15 forums, 150 topics and 800 posts).

    Among the changes:

    • Keeps current users, forums, etc. in bbPress. The new forum had started, so I wanted that, even though most new messages were just for testing.
    • When an SMF username is found in the bbPress DB, the bbPress user is assigned to the SMF one. Otherwise, a new user is created.
    • Imports tags that can’t be used in bbPress, such as table, flash and some stupid formatting stuff.
    • Probably other things I don’t remember.

    Jump to the CONFIGURATION SECTION and change to match your setup and liking. Wherever you see phpbb it really means smf, of course. One of the things I didn’t do was that type of cleanup. Also, despite the comments saying that you need a fresh new install of bbPress, that’s not true anymore.

    Keep in mind that data reuse only happens with users. If a forum or a topic exists in bbPress with the same name that one from SMF, you’ll probably get two topics with the same name (different ID number, though). I haven’t tested this, and I don’t know if that means problems.

    Also, subforums become forums on their own, as bbPress uses a flat one-level system. If you are using the plugin that allows for subforums, you may be able to correct this afterwards, or even add the code to the script so that it is done.

    If you don’t want any of the probably Bad Things I introduced, get the original one and look compare the

    $export_sql

    lines to have a feeling of what to change.

    Now, if there’s any interest, where do I send it?

    #54752
    Trent Adams
    Member

    I haven’t had a chance to try it out yet, but it looks interesting! Do you have a forum with a post that this is working at for a demo linickx?

    Trent

    #54750

    In reply to: Equalize Hottags

    phery
    Member

    ah ok, i see there is not so much support going on in here.

    so i ask again, is there a way to add for each tag parameter (size) also in addition some colors , and if yes would be somebody so nice to post me the code in here?

    thanks in advice

    cheerio

Viewing 25 results - 31,051 through 31,075 (of 32,491 total)
Skip to toolbar