deadlyhifi (@tomdebruin)

Forum Replies Created

Viewing 20 replies - 126 through 145 (of 145 total)
  • In reply to: List all Tags?

    deadlyhifi
    Participant

    @tomdebruin

    improved:

    <?php if ( bb_current_user_can( 'manage_tags', get_topic_id() )): ?> - <a href="/forum/profile.php?id=<?php echo $tag->user_id; ?>"><?php echo get_user_name( $tag->user_id ); ?></a><?php endif; ?>

    In reply to: Visit counter

    deadlyhifi
    Participant

    @tomdebruin

    you could place it in footer.php as this is displayed on every page.


    deadlyhifi
    Participant

    @tomdebruin

    found the problem. I had this in my bb-config

    if (file_exists(‘../wp-blog-header.php’))

    require_once(‘../wp-blog-header.php’);

    else

    if (file_exists(‘../../wp-blog-header.php’))

    require_once(‘../../wp-blog-header.php’);

    to bring in wordpress powers.

    Without it the status stays the way it should. How else can I bring in “wp_list_pages” without requiring the wp-blog-header.php?


    deadlyhifi
    Participant

    @tomdebruin

    just found this post regarding the ‘inactive’ thing, although their fix hasn’t fixed my issue.

    https://bbpress.org/forums/topic/successful-convert-smf-gt-phpbb2-gt-bbpress#post-14831

    In reply to: List all Tags?

    deadlyhifi
    Participant

    @tomdebruin

    that’s good to know, thanks.

    I just added the following to topic-tags.php (after <?php bb_tag_remove_link(); ?> )

    <?php if ( bb_current_user_can( 'manage_tags', get_topic_id() )): ?><a href="/forum/profile.php?id=<?php echo $tag->user_id; ?>">user</a><?php endif; ?>

    so there is a quick link to the users profile to see who posted that tag.

    Not perfect but easier than running that SQL!


    deadlyhifi
    Participant

    @tomdebruin

    Also just noticed that when I log in my profile status changes to ‘inactive’. When I log out it changes back to ‘member’. Even though it states inactive I have all the powers a member has.

    Anyone else noticed this?

    In reply to: List all Tags?

    deadlyhifi
    Participant

    @tomdebruin

    I mean all the tags used on the site, so we could see two columns

    Tag | User

    so each tag could have multiple users who used it.

    Some users are using inappropriate tags on posts. We want a public list so we can name and shame them. Currently the only way to see who posted what tag is to do an SQL query along the lines of

    SELECT bb_users.user_nicename, bb_terms.slug, bb_topics.topic_slug
    FROM bb_terms
    INNER JOIN bb_term_taxonomy ON bb_term_taxonomy.term_id = bb_terms.term_id
    INNER JOIN bb_term_relationships ON
    bb_term_relationships.term_taxonomy_id =
    bb_term_taxonomy.term_taxonomy_id
    INNER JOIN bb_topics ON bb_term_relationships.object_id = bb_topics.topic_id
    INNER JOIN bb_users ON bb_term_relationships.user_id = bb_users.ID
    WHERE bb_terms.slug = 'TAG NAME'


    deadlyhifi
    Participant

    @tomdebruin

    A blacklist is also an option but our problem is not stemming from blatant porn sites, but rather image replacements used on perfectly acceptable sites.

    This would then only work through adding the sites as their hotlinking intentions were realised by a nasty image appearing – the damage then already being done.

    There’s no easy answer!


    deadlyhifi
    Participant

    @tomdebruin

    Can you check your database to see that you permissions states

    bb_capabilities a:1:{s:9:”keymaster”;b:1;}


    deadlyhifi
    Participant

    @tomdebruin

    we have thought about a whitelist of acceptable places to link from.

    But this would cause issues with peoples own hosting accounts, and also linking to images from manufacturers who would want their images linked on forums. It is a cycling site and many discussions revolve around new bikes – it would be a huge list.


    deadlyhifi
    Participant

    @tomdebruin

    while that is an option I think we’d have many copyright issues to deal with…


    deadlyhifi
    Participant

    @tomdebruin

    OK. After doing more reading I agree that hotlinking is bad practice.

    However, we get 2500 posts a day on the forum, moderating all this is an impossible task. We have a team of about 10, but lots of images do get through.

    I was hoping there would a technical fix.

    We are now considering a blacklist – which would be impossibly long, or a whitelist – which wouldn’t cover all acceptable places, especially personal web hosting accounts.

    In reply to: tag remove fail

    deadlyhifi
    Participant

    @tomdebruin

    the ‘destroy tag’ option that you get on the bottom of the tag’s page does delete the tags, though it reports ‘0 records deleted’ on the page after they’re deleted.

    the plot thickens…

    In reply to: tag remove fail

    deadlyhifi
    Participant

    @tomdebruin

    just discovered subversion, wow!

    anyway, it’s not working. I get “The tag was not removed. You cannot remove a tag from a closed topic.” despite the topic not being closed.

    edit:

    and now “Your attempt to remove this tag from this topic has failed. Please try again.”


    deadlyhifi
    Participant

    @tomdebruin

    anyone else having this problem?

    Well the answer is that

    <?php topic_delete_link(); ?> <?php topic_close_link(); ?> <?php topic_sticky_link(); ?>

    <?php topic_move_dropdown(); ?>

    is now replaced with:

    <?php bb_topic_admin(); ?>

    In reply to: tag remove fail

    deadlyhifi
    Participant

    @tomdebruin

    wow, that was quick. Could you let me know which file(s) it is that have changed so I can upload the relevant ones rather than the whole lot?

    In reply to: tag remove fail

    deadlyhifi
    Participant

    @tomdebruin

    having same problems here on 1 alpha 6. Would love to see this fixed asap. No pressure or anything! ;) Thanks.


    deadlyhifi
    Participant

    @tomdebruin

    thanks all. I’ll be doing some tests on it all sometime this week and will report back.


    deadlyhifi
    Participant

    @tomdebruin

    thanks for the reply Trent.

    Can you just confirm that the user database that I’ve built up in bbPress will crossover to the WPMU? I’m sure I read somewhere that the users needed to come from the WP user table.


    deadlyhifi
    Participant

    @tomdebruin

    the way to do add bbpress functions into wordpress is to add:

    if ( !defined(‘BBDB_NAME’) )

    require_once(ABSPATH.’bbpress/bb-load.php’);

    into the wp-config.php file, just before the closing ?>

Viewing 20 replies - 126 through 145 (of 145 total)