Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 25,301 through 25,325 (of 32,481 total)
  • Author
    Search Results
  • #72868
    _ck_
    Participant

    I’ve hardcoded it in the javascript.

    edit it and change

    function edOver(element) {element.style.color="#000080"; element.style.backgroundColor="#ddd";}
    function edOut(element) {element.style.color="#000000"; element.style.backgroundColor="buttonface";}

    to whatever color you’d like

    _ck_
    Participant

    Merlin that code looks vaguely familiar ;-)

    deadlyhifi
    Participant

    …it does keep the paging intact but counts for all the forums (fora?), even the excluded one(s).

    To get round this requires amending the function bb_latest_topics_pages() in functions.bb-template.php.

    $bb_latest_topics_count = $bbdb->get_var('SELECT COUNT('topic_id') FROM '' . $bbdb->topics . '' WHERE 'topic_open' = 1 AND 'topic_status' = 0 AND 'topic_sticky' != 2 AND 'forum_id' != 3;');
    // AND 'forum_id' != 3 - filters out forum 3 on front page paging count.

    #72892
    deadlyhifi
    Participant

    Thanks for the reply _ck_.

    I’m actually using it on a larger site than recommended ;) and we have pretty strict forum policies so ban people for 24 hours when they slip up using the Ban-Plus plugin. The problem is people just set up another account and instantly start posting again.

    We recently had a spammer, a human one who would deliver actual advice to a discussion, but then follow it with links to escort agencies and the like. We banned him but he just signed up again – 5 times in a row!

    The 24 hours approval rate would solve all these problems. Just need to find some time!

    #5125

    I’m trying to customize bbcode buttons on one of my sites (I’ll provide the link upon request for fear of offending anyone).

    My questions…

    I set the text color to grey and would like it to hover black. I’m not sure how to do this without a style sheet.

    Also, when I click one of the buttons – this / appears beside it. How can I make that not happen?

    Thanks,

    The plugin is really great and I look forward to using it more.

    #5155
    alehawk
    Member

    Hi!

    I normally use VBulleting forum, several of my sites runs it but I algo use wordpress in some sites and for a new one I was looking for something in the middle betweeen forum and blog and I thing I got it with bbpress.

    I know it isnt like WordPress but I like it.

    To the point, in VBulletin I got a automatic thread tagger, it will add tags automatically to the posts, it works just fine, you can exclude words like TO, FOR, THE, etc.

    I guess something like that is missing here. I dont know how to code it.

    Tnx!

    #72939

    Still got them.

    I’m not a php newbie.

    Not an expert, but in a comfortable place in the middle :D

    I think I’ve pretty much got over all the bugs in the system.

    If anyone wants my style of integration – this is what I did:

    Installed bbPress in root/forums/

    in header.php of forum template put the following before everything else:

    <?php include('../lib/includes/header.php');//Website template ?>

    in header.php of your own website:

    $forumexplode = explode('/', $_SERVER);

    if($forumexplode == "forums")

    {

    bb_feed_head();

    ?>

    #You can also put in here you own, relative path style sheets from the main website.

    <link rel="stylesheet" href="<?php bb_stylesheet_uri(); ?>" type="text/css" />

    <?php if('rtl' == bb_get_option('text_direction')) : ?>

    <link rel="stylesheet" href="<?php bb_stylesheet_uri( 'rtl' ); ?>" type="text/css" />

    <?php endif;

    bb_head();

    }

    else

    {

    ?>

    Anything you want to load from normal relative path (if not forums)

    <?php

    }

    ?>

    </head>

    <body id="<?php ($forumexplode == "forums" ? bb_location() : ""); ?>">

    in footer.php of forum template put the following after everything else:

    <?php include('../lib/includes/footer.php');//Website template ?>

    I also prefixed all the forum template’s XHTML id tags with forum_ so they won’t mess with my website’s structure.

    After you’ve done all that, you’re free to style your forum via the css file in the templates directory like you would normally, as well as the structure via the other files.

    And your website, via your own stylesheets.

    Or you can load everything from either stylesheet as long as you remember to load them from their relative path in the header.

    Hope this helps someone ;P

    Peace everyone, hope bbPress will release a version soon which will be easier to integrate.

    Because my system doesn’t really allow for easy user authentication integration on the rest of the website. Can be circumvented via regular user auth integration but that’s more work.

    SMF (Simple Machines Forum) has ssi.php file which you just load into any page and everything is integrated right there and then. Maybe in future versions?

    Me.

    #72942
    Vizworld
    Member

    No luck, still redirects with the ?123412341234 added… Deleting cookies hasn’t helped either.. Tried it about 6 times now :-(

    #72941
    _ck_
    Participant

    First see if it’s just your browser remembering the old redirect by adding something like ?123 on your /bb-admin/ url

    ie. http://example.com/forums/bb-admin/?123

    also try deleting the cookies again for your site

    #72908
    johanh
    Member

    @mypop It’s interesting to note in the way you write that you share my frustration and out of your frustration grew the energy to tell me what I need to do. I did that and this is the first time that I got the drop down menu as per the instructions https://trac.buddypress.org/browser/trunk/bp-forums/installation-readme.txt

    3. On Step 3 enter anything you like for your site name and first forum name. Select “Admin” from the

    35 dropdown to use as your keymaster user.

    But then I got this *minor* error:

    DB Error in BB_Install::process_form_finalise_installation: Table ‘johanhor_johanmu.wp_options’ doesn’t exist

    SELECT option_value FROM wp_options WHERE option_name = ‘auth_salt’ LIMIT 1

    DB Error in BB_Install::process_form_finalise_installation: Table ‘johanhor_johanmu.wp_options’ doesn’t exist

    SELECT option_value FROM wp_options WHERE option_name = ‘secure_auth_salt’ LIMIT 1

    DB Error in BB_Install::process_form_finalise_installation: Table ‘johanhor_johanmu.wp_options’ doesn’t exist

    SELECT option_value FROM wp_options WHERE option_name = ‘logged_in_salt’ LIMIT 1

    This may be a minor error by the installation program but it seems Greek to me.

    Hope you can help.

    #72935
    zeronix
    Member

    I tried to include my Header.php content (some codes of it) to my bbpress header.php but always got trouble with the scripts.

    It seems the codes are different and wont work together.

    Maybe someone can help us because i am a beginner too.

    Maybe there´s a way to create a new Page in WP and include bbPress there?

    I hope so.

    #65710

    In reply to: Intergrating the theme

    zeronix
    Member

    Is there a wayy to get this Tool you talked about in your Tutorial?

    I´d also love to integrate my WP theme to my forum but the link you posted is down :(

    PS:

    I run WPmu and the latest bbPress release

    I hope this tool will work with it (if you could send me).

    Best regards, Sebastian

    #72924
    Tecca
    Participant

    From ctsttom:

    Can we see your front-page.php code as its possibly part of the html as mine uses a different template and it only has one dash.

    <?php bb_get_header(); ?>

    <?php if ( $forums ) : ?>

    <div id="contentleft">

    <div id="login">
    <?php login_form(); ?>
    </div>

    <h2><?php _e('Forums'); ?></h2>
    <table id="forumlist">

    <tr>
    <th><?php _e('Forum Categories'); ?></th>
    <th><?php _e('Topics'); ?></th>
    <th><?php _e('Posts'); ?></th>
    </tr>

    <?php foreach ( $forums as $forum ) : ?>
    <tr<?php alt_class('forum'); ?>>
    <td><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a> — <small><?php forum_description(' '); ?></small></td>
    <td class="num"><?php forum_topics(); ?></td>
    <td class="num"><?php forum_posts(); ?></td>
    </tr>
    <?php endforeach; ?>
    </table>

    <?php if ( $bb_current_user->ID ) : ?>

    <?php endif; else : // $forums ?>

    <div id="contentleft">

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

    <?php post_form(); ?>

    <?php endif; ?></div>

    <div id="discussions">

    <?php if ( $topics || $super_stickies ) : ?>

    <h2><?php _e('Latest Discussions'); ?></h2>

    <table id="latest">
    <tr>
    <th><?php _e('Topic'); ?> — <?php new_topic(); ?></th>
    <th><?php _e('Posts'); ?></th>
    <th><?php _e('Last Poster'); ?></th>
    <th><?php _e('Freshness'); ?></th>
    </tr>

    <?php if ( $super_stickies ) : foreach ( $super_stickies as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php _e('Sticky:'); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big></td>
    <td class="num"><?php topic_posts(); ?></td>
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><small><?php topic_time(); ?></small></td>
    </tr>
    <?php endforeach; endif; ?>

    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></td>
    <td class="num"><?php topic_posts(); ?></td>
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><small><?php topic_time(); ?></small></td>
    </tr>
    <?php endforeach; endif; ?>
    </table>
    <?php endif; ?>

    <div id="search">
    <?php search_form( $q ); ?>
    </div>

    <br />
    <img src="http://teccahigh.com/wp-content/themes/revolution/images/divide.png"><br />
    <h2>Members Online</h2>
    <small>Online now:
    <?php do_action('members_online_now',''); ?></small><br />
    <small>Online today:
    <?php do_action('members_online_today',''); ?></small>

    </div>

    <?php include 'sidebar.php'; ?>

    <div style="clear:both;"></div>

    <?php bb_get_footer(); ?>

    #72900

    In reply to: *Lost* Admin Username

    #72923

    It’s in here bb-includes/functions.bb-template.php (line 680):

    function forum_description( $args = null ) {
    if ( is_numeric($args) )
    $args = array( 'id' => $args );
    elseif ( $args && is_string($args) && false === strpos($args, '=') )
    $args = array( 'before' => $args );
    $defaults = array( 'id' => 0, 'before' => ' – ', 'after' => '' );
    $args = wp_parse_args( $args, $defaults );

    if ( $desc = apply_filters( 'forum_description', get_forum_description( $args['id'] ), $args['id'], $args ) )
    echo $args['before'] . $desc . $args['after'];
    }

    So you could probably whip up some function to override it.

    You both have one dash, most likely, but different fonts :)

    #72879
    Tom Lynch
    Participant

    I know chrishajer but the bbvideo plugin is crap because people like and are used to putting in the embed code, my users are tech savie just not used to the restrictiveness, can I disable filtering for all attributes of the embed, object, img, and param tags?

    #72921
    Tom Lynch
    Participant

    Can we see your front-page.php code as its possibly part of the html as mine uses a different template and it only has one dash.

    #5144
    Tecca
    Participant

    Hey,

    I’m trying to figure out how I can remove those dashes that separate the ‘Forum Name’ and its ‘Description.’

    Here’s an image to show what I’m trying to say: http://teccahigh.com/images/uploads/forum22.png

    Where it says “News, Updates, and Announcements —” I’d like to get rid of that dash in there. I have tried going into front-page.php and changing this:

    <?php forum_description();

    To this:

    <?php forum_description(' ');

    Which actually did work, but it removed a different dash (there used to be two dashes which looked like: — –

    It removed the small one, but now I can’t figure out how to remove the other one.

    #72918
    agitainment
    Member

    Thanks, _ck_. I appreciate the feedback.

    By the way, I’m running several of your plugins, including Human Test, bbCode, Subscribe to Topic and more.

    For anyone wanting to extend your bbPress site, I suggest looking first at _ck_’s plugins under the Extend tab. Really great stuff.

    #72913

    Finally figure it out.

    It’s the bb_create_nonce();

    It’s like an MD5 hash, formed by “create-post_” + “topic_id”

    for example:

    <input type="hidden" name="_wpnonce" value="<?=bb_create_nonce('create-post_3');?>"

    With this, you can create replies (posts) within the topic with id 3.

    Best regards.

    #72911

    2. https://codex.wordpress.org/Function_Reference/wp_nonce_field

    Don’t worry about the nonce field, it’s just for WP side and doesn’t translate, as of yet, to BB.

    3. I think it’s just the internal http referrer, but I could be wrong.

    #72598
    Fernando Tellado
    Participant

    Felicidades, estupenda integración, ya me gustaría a mi hacer algo así ;)

    In english: congratulations, very nice integration, I would like to do something similar

    #68051
    bobruffolo
    Member

    It’s still not working for me :(

    #72891
    _ck_
    Participant

    You really get that many humans registering to spam on a smaller site?

    One solution I use on a large site is to prevent any post with more than 2 urls.

    Spammers typically cannot help but be morons and post several urls at once, normal humans rarely post more then two per post, and then not every post.

    Not sending a password would be fairly easy by hacking the core, I’d have to look at it more carefully to see if it can be done via plugin without hacks. I believe it’s done in pluggable.php which means it’s replaceable, so that’s good.

    Another method would be to use my Instant Password but NOT do the final step of logging them in and activating the account, but instead store a scrambled password and log the request, then manually authorizing it which would drop their chosen password hash into place. The important/hard part is not letting them request a new password to activate the account.

    This might also be worth a shot but not sure if it’s useful against humans unless they work from the same IP pool:

    https://bbpress.org/forums/topic/new-stop-forum-spam-api-plugin-block-fake-user-registrations

    #72877
    goken50
    Member

    Thanks! Fix admin access would have worked.. I eventually worked it down to just going into phpmyadmin and setting a user to have admin bb abilities. Wish that went smoother, but good to figure out :D

Viewing 25 results - 25,301 through 25,325 (of 32,481 total)
Skip to toolbar