Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 25,301 through 25,325 (of 32,468 total)
  • Author
    Search Results
  • #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

    #72878
    chrishajer
    Participant

    This allows the admin to post anything: maybe looking at it would be useful:

    https://bbpress.org/plugins/topic/admin-can-post-anything/

    Also, if you’re just interested in allowing video, this works fine:

    http://www.naden.de/blog/bbvideo-bbpress-video-plugin

    Users don’t even need to paste the embed code, just the URL to the video.

    #5132
    Tom Lynch
    Participant

    I would like to make a plugin which allows more than just img tags, I want to let people paste youtube embed code in etc.. but still block javascripts, form tags, iframes and meta’s for example, I looked about but theres no instruction, I looked at how allow images works but while it made sense that plugin doesnt work on bbpress 1.0 a6 so its pointless.

    Hey guys! I can’t make $result->topic_poster_name work in my 0.9.0.4 instalation.

    Is this the right function for this version?

    // REPLIES

    $query_replies="SELECT * FROM bb_posts WHERE topic_id=$topic_id AND post_id != $first_reply_id AND post_status=0 ORDER BY post_time DESC";

    $results_replies=$wpdb->get_results($query_replies);

    $replies_text = "";

    foreach ($results_replies as $result) {

    echo $result->post_text;

    echo $result->topic_poster_name;

    }

    The post_text works perfectly, but the poster_name returns me nothing. Any idea?

    #5131
    goken50
    Member

    So I’ve been digging all through the forums here and I can’t seem to find anything that will work (most threads on the subject are years old)

    Anyway, I got everything worked out properly and set the permission translation to give both Editors and Admins in WP Keymaster access.

    This isn’t working for whatever reason. I am able to log into bbPress with the account created through WP and set to the proper rights, but it doesn’t give me keymaster access.

    Any thoughts before I continue with the next reinstall? :P

    Thanks in advance!

    #72849
    chrishajer
    Participant
    #72870
    johnhiler
    Member

    According to Sam, bbPress supports unicode display names, not unicode usernames:

    https://bbpress.org/forums/topic/check-out-this-very-nice-r-t-l-arabic-bbpress

    There are some discussions over possible plugins solutions (and related security risks!) here:

    * https://bbpress.org/forums/topic/diacritic-letters-i-username-like-goran

    * https://bbpress.org/forums/topic/accents-in-username

    #72848
    adammann33
    Member

    Thanks CK! Yeah — I’ve not done any html either, but I’m less intimidated about getting in there and cut and pasting and what not, which I’ve done as it is more intuitive. Heh, so maybe I need an html for dummies too! I don’t want to be one of those guys who doesn’t want to get his hands dirty! So thanks for the tips — I’ll check out those sites you referenced.

    #72795

    Ipstenu made some great points, to show you the thoughts of someone with a different perspective. While you might not see his point of view, he was kind enough to lay out his view point for you.

    As much as Ipstenu and _ck_ are making generalisations, so are you. You have no proof that “the majority” want what you want. You keep using the phrase “the majority” to back up your points, and while i mostly agree with your premise, i’m not overly confident that randomly adding in your guess on how many people might possibly maybe agree with you is helpful.

    She … but that’s okay.

    And of course I’m making generalizations. You kind of have to when the samples to draw from (bbPress users) are small, and the ideas are in-progress/developing as we speak :)

    Silver-bullet means a magic cure all that does everything you (and by you I mean the individual) wants.

    Mine is different from yours and everyone elses. So yeah, I’d rather see bbPress built with the flexibility to fit everyone. And that does mean something for the folks who want full-integration. But what we have today isn’t it. And based on what’s been posted before, I suspect it won’t be unless someone makes a plugin that does it.

    As for being wrong about integration… I was incorrect, in part, but I was correct in what I meant. Didn’t say what I meant, which is soooo my bad. Can I blame being sick? Anyway, if you read https://bbpress.org/documentation/integration-with-wordpress/ it mentions functions (ie DEEP integration) as being both optional and not suggested. Which is what I meant. People ask about it, and the direction is right there. Now I will totally admit that ‘function’ doesn’t mean ‘theme integration’ and that is confusing to the newbies. So yes, the info in there makes sense, but it’s vague if you’re not really sunk into this already :)

    #5126
    mobd3box
    Member

    Helleo , Why bbpress dont Suport arabic names in registration :( ?

    #72836

    Flies only live for 15 days; females for 26 if they’re lucky. We probably want people to stick around for a little longer… ;)

    Opinion: What *Press needs is some visual and code consistency to re-align everything back to the basics of what made WordPress awesome in the first place.

    Opinion: Right now all the automattic apps look and feel like totally different programs, but lets be honest… On the surface, bbPress is basically WordPress without topics being able to have multiple categories; On the surface, BuddyPress is basically the user-profile area that phpBB has had for 6 years but arranged to tap into the MU way of thinking. Under the surface the code and the methods are totally different, but the end result is pretty close to existing webware.

    Opinion: The only thing left for automattic to do is a shopping cart, which we can take a bunch of osCommerce experience from and apply to WordPress methods pretty easily if automattic ever wants to venture into the e-commerce market.

    Opinion: From a developers perspective, trying to keep up with and remember all of the WordPress, WordPressMU, BuddyPress, and bbPress classes and functions and ‘isms is getting really, really hard…

    Defense: PLEASE don’t get me wrong… It’s also exhilarating, exciting, totally 150% fun, and I wouldn’t trade it for the world, but holy crap lets sit back and look and say that there a whole meta ton of a lot going on lately…

    Matt, do you have an ulcer by now? Because I think I might... Ha! :D

    Defense: And hopefully I haven’t made myself out to be a total ass here; I hope that TalkPress helps to accelerate the .org thought process behind integrating both the user portion and the template portion of these awesome apps together in a more transparent way… Including my TalkPress.com forum into my WordPress.com blog would be pretty killer. :)

    Round Up: With BuddyPress 1.0 on the horizon, bringing the social networking abilities that people usually make plugins for WordPress and bbPress to emulate, *Press automatic applications really do stand to evolutionize the way that people use the internet in a major way…

    Summary: I for one am totally pumped to see what TalkPress looks like and works like… When a new version of *press comes out, it’s like Christmas morning to me and I download it and poke my head around the new code and find all the cool new little additions…

    Please don’t hit me for my long winded and slightly off topic response. Probably wouldn’t expect anything less from me now would you? :D

    #69727
    chrishajer
    Participant

    Are you using bb_ as your bbPress table prefix? Maybe the bb_ table prefix is hard coded and it does not match up with your installation.

    swaymedia
    Member

    can you please just do a step by step tutorial, it is really hard to follow and i dont know which piece of code goes where.

    #72847
    _ck_
    Participant

    Yikes. Well I guess that is one way. Books are great but nothing beats hands-on.

    Funny thing is I’ve never read a book about PHP or MySQL

    I learned through reading other people’s code and trial and error and reading php.net and mysql.com

    Not knowing how to make a link from one page to another though is a more fundamental problem, it means you don’t know HTML either?

    A link to your front page looks like this:

    <a href="http://herbalremedyforum.com/">main site</a>

    However in your case, your theme already has a section for a nice menu at the top.

    It looks like the theme author was clever enough to put in a way to modify it.

    Save this as a file called _my-custom-menu.php

    http://pastebin.com/pastebin.php?dl=f4d77734c

    and upload it into the bbpress my-plugins directory. If you don’t have such a directory, make one (just like the bb-plugins that’s already there)

    Alternately you could edit functions.php in your genealogias theme folder around line 102

    function gs_navigation_menu() {
    $links = array();
    $links[] = sprintf('<a href="%s">%s</a>', bb_get_option('uri'), __('Front Page', 'genealogies'));
    $links[] = sprintf('<a href="%s">%s</a>', bb_get_tag_page_link(), __('Tags'));
    $links[]='<a href="http://herbalremedyforum.com/">main site</a>';
    printf('<ul class="primary xoxo"><li>%s</li></ul>', implode('</li><li>', apply_filters('gs_navigation_menu', $links)));
    }

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