Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 23,126 through 23,150 (of 32,481 total)
  • Author
    Search Results
  • #75053
    Josh Leuze
    Member

    Hi sbricchiLIN, I did come up with a solution to migrate a forum from YAF to bbPress.

    But I had to do a 3 step migration to do it: YetAnotherForum to vBulletin to phpBB to bbPress.

    It’s a tedious process, and not perfect, but I got the forums converted!

    Basically, in all my research the only converter for YetAnotherForum.NET that I could find it vBulletin. So that’s the first step. unfortunately it is commercial, and closed source, but a $100 is much cheaper than paying someone to convert it for you!

    vBulletin has a tool called ImpEx that can import a YAF forum into vBulletin. But it is tricky since YAF uses MSSQL, and you want to convert to MySQL on vBulletin. I did all this on my local machine running Windows, with a MSSQL server to run the YAF database and WAMP to run vBulletin.

    I did not have YAF installed locally and running, just the database. You probably want to get your YAF forums running on a local Windows machine as a first step. The YAF to vBulletin importer is old and totally unsupported, so it is crude, but better than nothing. I was only able to import about 80% of my forum content, and I lost a user account. But one user out of 600 seemed a small price to pay.

    I think the loses were due to funky characters and long titles, so if you have a local install of YAF, you can fix those things before you import.

    After you get the data into vBulletin, it is a much smoother process. There is of course a lot of converters for phpBB, and converting from phpBB to bbPress is pretty easy.

    In the end, the migration went ok, I had some issues with the HTML code in the posts, had to convert some characters in the database, and install some plugins so that the HTML content in the old posts would work in bbPress. But it was all worth it to get away from YAF, the forum members all seem to be happy with the new forum, no complaints, just a few feature requests.

    I have really been meaning to do several blog posts explaining how to do all this cause it’s one hell of a project, but who ever has the time to do everything they want to?

    If anyone else takes the plunge and tries to migrate from YAF to bbPress and has any specific questions, let me know and I’d be happy to try and give a hand!

    #80344

    In reply to: Navigation

    ZoiX
    Member

    johnhiler, I am not using the plugin, I deactivate all plugins and the problem persist. Anyway, I have installed the plugin but without good results.

    chandersbs, the problem is that if I am in page 2, the link to page 1 show me again the page 2.

    I can’t found “turn off url rewrite”, can you help me?

    Thank you for your help :)

    – –

    The problem was the permalink, if the first option (Nothing) is activated everything ok. Can I repair this? I really like the last option :(

    Jmm, now I have 3 pages (5 posts per page), the link to page 1 show me the page where I am. If I am in page 3, link to page 1 show me the page 3, again. If I am in page 2, link to page 1 show me the page 2.

    I will install in local without plugins and I will see what happen.

    – –

    In localhost works good :S

    #80357
    johnhiler
    Member

    I haven’t seen any plugins like that.

    bbPress isn’t super great at storing metadata for post-level data… although you could probably commission a custom plugin that did just that. :-) It’s definitely possible – it’s just not super easy. It’d probably be easier to do for version 1+, since that version has a meta table built into the core…

    #32025

    Topic: Navigation

    in forum Troubleshooting
    ZoiX
    Member

    Hi all!

    I have a bbPress instalation at http://foro.inkframe.com

    If you click the page number 2, everything fine, but, if you click in the number 1 or “Anterior”, the forum show page 2 again, like a F5. The only way for come back to the first page is clicking in the title.

    I am not expert in bbPress theme development, but anyway I think that is not the problem, the only option I change, is the number of posts to 10, I am not sure, but, by default is 20. Thank you for your help :)

    #80311

    In reply to: Parent Forum Name in

    Not the cleanest way of doing it no doubt, but I’d use something like this modified version of the breadcrumb function:

    <?php
    $separator = ' -- ';

    if( bb_is_forum() ) :
    $trail = '';
    $trail_forum = bb_get_forum(get_forum_id());
    $current_trail_forum_id = $trail_forum->forum_id;
    while ( $trail_forum && $trail_forum->forum_id > 0 ) {
    $crumb = $separator;
    $crumb .= get_forum_name($trail_forum->forum_id);
    $trail = $crumb . $trail;
    $trail_forum = bb_get_forum($trail_forum->forum_parent);
    }
    $title = substr( $trail . $separator . bb_get_option( 'name' ), strlen( $separator ) );
    else :
    $title = bb_get_title( array( 'separator' => $separator ) );
    endif;
    ?> <title><?php echo $title?></title>

    #80315
    chandersbs
    Member

    I’m using this code:

    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
    <?php if( $topic->forum_id != 29 && $topic->forum_id != 30 && $topic->forum_id != 18 && $topic->forum_id != 15 && $topic->forum_id != 4 ) { //exclude forums here ?>
    <tr<?php topic_class(); ?>>

    If you’re using the Kakumei theme, replace this with that:

    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
    <tr<?php topic_class(); ?>>

    Just change the id’s

    #79665

    In reply to: HTML in Topics.

    It’d be better to add width: 500px to the CSS class used by topic titles rather than adding it by instance.

    #80288
    christianrharris
    Participant

    I used your code Starship Trooper, but the heading still isn’t increased. I edited the Topic.php file. Do I need to edit more?

    #80312

    By the looks of it, it’s an action that’s called as bb_deactivate_plugin_$plugin, so the action hook’s name is specific to the plugin. The $plugin value is shown in the URL for activating a specific plugin.

    #32012

    Hello,

    I’m developing a bbpress plugin and I have a task to execute on plugin activation.

    I’ve seen that the bb_register_activation_hook functions is deprecated, while i can found the definition of the wp function: register_activation_hook.

    however when i use this function inside a plugin, the function cannot be found.

    What do I have to do?

    here is the code:

    <?php

    /*

    Plugin Name:XXX

    Description:XXX

    Version 1.0

    */

    register_activation_hook(__FILE__, ‘mp_activation’);

    register_deactivation_hook(__FILE__, ‘mp_deactivation’);

    function mp_activation() {

    }

    function mp_deactivation() {

    }

    ?>

    #32011

    Topic: Parent Forum Name in

    in forum Plugins

    I’m trying to get the parent forum name in the title tag.

    I made a plug in that takes care of most of it…

    <?php
    /*
    Plugin Name: Better Titles
    Author: James Dixson
    */
    add_filter('bb_title', 'titlemodify');

    function titlemodify( $title ) {
    //your code that does something to $title;

    switch ( bb_get_location() ) {
    case 'topic-page':
    $title = get_topic_title() . ' - ' . get_forum_name() . ' — Adventure Canoe Forum' ;
    break;

    case 'front-page':
    $title = bb_option('name') . ' — Canoeing and Paddling Discussion' ;
    break;

    case 'forum-page':

    $find = 'Canoe';
    $string = get_forum_name() ;
    if(strstr($string,$find)){
    $title = get_forum_name() . ' — Adventure Canoe Forum' ;
    }else{
    $title = 'Canoe ' . get_forum_name() . ' — Adventure Canoe Forum' ;
    }

    break;
    }
    return $title;
    }
    ?>

    You can see it in action at http://www.adventurecanoe.com/forum

    Now what I want to add is something that does this

    Parent Forum Name — Forum Name — Forum Title

    Basically if you went to the page http://www.adventurecanoe.com/forum/forum/rivers the title tag would read:

    Canoeing Destinations — Rivers — Adventure Canoe Forum

    #80307
    chandersbs
    Member

    Thanks for posting the solution also, I was looking at my codes if I could get a solution, but I couldn’t, when I looked back at this topic, I saw the solution already posted.

    #79369
    bb-gian
    Member

    @ crashfirephoenix: I got the same problem. I deactivate some plugins and the problem was fixed.

    If you got the same plugins that I had installed, try deactivate them.

    They are: BBcode Buttons Toolbar, BBcode lite, Live Comment Preview.

    And if you got the TinyMCE as editor, you don’t need any of them, right?

    Let me know if it helped.

    #80306
    Peter A. Gebhardt
    Participant

    But it’s a nice place to look for nice_name’s … ;-))

    #80305

    I find looking at a bbPress install database pretty unnerving with all the relational IDs around the place :)

    #80304
    Peter A. Gebhardt
    Participant

    Solution found – bb_user_nicename_sanitize()– needs peer review because of possible side-effects (UTF8 etc.)

    <span><?php if ( 1 < get_topic_posts() ) : ?>
    <?php printf(__('- <a href="%1$s">Latest reply</a> from '),attribute_escape( get_topic_last_post_link()) ) ?>
    <a href="<?php bb_option('uri'); ?>profile.php?id=<?php echo (bb_user_nicename_sanitize(get_topic_last_poster(),50)); ?>"><?php echo get_topic_last_poster(); ?></a>

    <?php endif; ?>
    </span>

    PS: A look into one’s database via phpadmin produces the right insights …

    #80303

    Oh, that’s get_user_profile_link( $topic->topic_last_poster ) then :P it seems that usernames don’t contain spaces (only the display name does), the username is converted to using a – instead of any invalid characters

    #80301

    get_user_profile_link( $topic->topic_poster ), rather than all that sanitize/echo stuff. Can’t check it 100% since my test server is dead, but that should be right I think.

    #80300
    Peter A. Gebhardt
    Participant

    The code developed so far (resembling the buddyPress Forum experience):

    ...
    <span id="topic_posts"><?php topic_posts_link(); ?>, </span>
    <span id="topic_voices"><?php printf( '%s voices', bb_get_topic_voices() ); ?></span>
    <span><?php if ( 1 < get_topic_posts() ) : ?>
    <?php printf(__('- <a href="%1$s">Latest reply</a> from '),attribute_escape( get_topic_last_post_link()) ) ?>
    <a href="<?php bb_option('uri'); ?>profile.php?id=<?php echo (sanitize_user(get_topic_last_poster(),true)); ?>"><?php echo get_topic_last_poster(); ?></a>

    <?php endif; ?>
    </span>

    does only generate an “User not found.” error with:

    ..../profile.php?id=Test%20User

    #80284

    It’d be too broad a subject to cover really, but menus are generally done from using <li>/<ul> and using CSS to style those to appear how you want. There should be some examples on CSS styling tutorials and the like though.

    #80199

    Yep, pretty much. Don’t be afraid to just give it a try and see what happens, it’s how you learn with these things :)

    #80283
    InvTrdr
    Member

    Will try. Not too good at it yet. Am learning from the great WP and bbPress community as I go. Thought there might be a default stock theme with a navigation bar on it. Or can you guide me as to what code needs to be added in the CSS and header.php files?

    Thanks.

    #80198
    InvTrdr
    Member

    Yes. Just wanted to see for myself. Will change it back to 40 as I did not know what is below before.

    Also is what I would do below be correct?

    So am I replacing this line in the code above

    <p class=”frontpageheatmap” style=”text-align: center;”><?php bb_tag_heat_map(); ?></p>

    with this line below?

    <p class=”frontpageheatmap” style=”text-align: center;”><?php bb_tag_heat_map(array( ‘smallest’ => 9, ‘largest’ => 38, ‘limit’ => 80) ); ?></p>

    Thank you.

    #80196
    InvTrdr
    Member

    I did find it and it is set at “45” and there is another similar code set to “40”. That is the one it is using. I changed it to 45 and it is showing 45 now. Thanks once again.

    Thanks.

    #80195
    InvTrdr
    Member

    Also is what I would do below be correct?

    So am I replacing this line in the code above

    <p class=”frontpageheatmap” style=”text-align: center;”><?php bb_tag_heat_map(); ?></p>

    with this line below?

    <p class=”frontpageheatmap” style=”text-align: center;”><?php bb_tag_heat_map(array( ‘smallest’ => 9, ‘largest’ => 38, ‘limit’ => 80) ); ?></p>

    Thank you.

Viewing 25 results - 23,126 through 23,150 (of 32,481 total)
Skip to toolbar