Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 16,026 through 16,050 (of 32,506 total)
  • Author
    Search Results
  • #113821
    DarwinsDream
    Member

    Hey guys,

    Ok here is what the Developer of the plugin hat told me. Does this help? I tried this fix and it doesn’t work but it is a step in the right direction. And would also help me get around. The shortcode permissions issue I believe.

    Hi,

    I’m the developer of the wordpress plugin.

    One thing to note is that the JW Player tag is not actually a shortcode but a filter that is applied to post content. Using a filter was necessary to support the syntax needed to customize the player. However, it has the unfortunate side effect of making stuff like this more challenging. The filter function is called “jwplayer_tag_callback” and is applied to “the_content”.

    So in your case I’m hoping the following would work for you:

    <?php

    add_filter(‘bbp_reply_content’, ‘jwplayer_tag_callback’);

    add_filter(‘entry_content’, ‘jwplayer_tag_callback’);

    add_filter(‘bbp-reply-content’, ‘jwplayer_tag_callback’);

    add_filter(‘entry-content’, ‘jwplayer_tag_callback’);

    ?>

    If not, we can work on another solution.

    Thanks.

    #113775
    DarwinsDream
    Member

    Are you trying to sell me on the whitelist plugin? I lready tried that about 3 weeks ago. It wouldn’t install because of a fault error. I don’t have time to try and make non working plugins work.

    I have multiple video plugins that work fine on my site already… maybe you should have checked the links……..

    My issue is that EVERY plugin offered for wordpress merely links to offsite content. Requiring my site content to be dependent on data from another website.

    As a web developer this is unacceptable. And is RULE #1 with developing a website.

    Also plugins such as shortcode white list are bandaids to the real issue. I am looking for a solution not a bandaid. Bandaids cause issues down the line.

    #108730
    the1path
    Participant

    OK so after much searching I have a pretty simple solution. The role manager plugin idea was a no go so had to dig deeper.

    So add this in your functions.php:

    //add author change functionality to bbPress topics in wp-admin
    add_action( 'init', 'my_add_author_to_topics' );
    function my_add_author_to_topics() {
    add_post_type_support( 'topic', 'author' );
    }
    //then allow subscribers to be authors...good for transfering to bbPress forum which uses custom post types
    add_filter('wp_dropdown_users', 'MySwitchUser');
    function MySwitchUser($output)
    {

    //global $post is available here, hence you can check for the post type here
    $users = get_users();

    $output = "<select id="post_author_override" name="post_author_override" class="">";

    //Leave the admin in the list
    $output .= "<option value="1">Admin</option>";
    foreach($users as $user)
    {
    $sel = ($post->post_author == $user->ID)?"selected='selected'":'';
    $output .= '<option value="'.$user->ID.'"'.$sel.'>'.$user->user_login.'</option>';
    }
    $output .= "</select>";

    return $output;
    }

    So this basically allows you to set any user as a post author whether they are a subscriber or not (by default WP only lets you set author roles or above as post authors).

    I think I will just use is temporarily during transfer and then comment it out….I would image it could get annoying if you have loads of subscribers and are just trying to find authors etc.

    I guess this code could be made into a plugin with an on/off switch in the admin for it….any takers? ;)

    Anyway I hope this helps folk in the same boat as me.

    #108729
    the1path
    Participant

    OK as an update the above code does actually work but I think it is only pulling in the names of admins…it probably pulls in authors too but it doesnt pull in subscribers.

    Im thinking to get it to do this you could use a role management plugin.

    :)

    #108728
    the1path
    Participant

    Did anyone get this working.

    I think this is hugely useful for transfering…by hand.

    Im vurrently wanting to transfer from simple press and there is no importer, so either have to do it by hand or pay someone to do it for me……I like options.

    Be cool if someone has this working ;)

    #113892
    squalesblog
    Member

    Hi!


    @Lynq
    : Thanks for you reply. I tried all those troubleshooting, with no luck :”'(


    @bookespana
    : Thanks. Hopefully, I know what a http404 error is and this does not help much more… :s

    As explained, if you go to http://squales.high-bridge.fr, then click on the link in the navbar “Forums”, you reach the following url: http://squales.high-bridge.fr/forum –> here’s the error as it should be “Forums” (with an S).

    Then click on any forum. You’ll see navigation links “Accueil > Forums”.

    If you make an onmouseover on the “Forums” link, you’ll see that it points to http://squales.high-bridge.fr/forums.

    Finally, if you click, you get a blank page…

    Any ideas?

    Thanks for your replies,

    Regards.

    #45278
    zeaks
    Participant

    I wasn’t sure where to ask this. I want to put a note above or next to where it says “Reply” and “Topic Description:” for posting instructions. Anyone know what files I need to edit, or some sort of function I can use?

    I did this with wordpress comments EX: Use “< code > to display code in your comment” above the comment box, using a function, no idea how to do it with bbpress though.

    #45275
    hovmand
    Member

    Hey,

    I just installed bbPress on a brand new wp 3.3.2 and I get this error 8 times on the admin pages:

    add_contextual_help is deprecated since version 3.3! Use get_current_screen()->add_help_tab() instead. in .../wp-includes/functions.php on line 3467

    #113898
    zeaks
    Participant

    It works for simple CSS, pasting html it does not work. It shows the grey background but no text in it.

    #113904
    Lynq
    Participant

    You could create a new loop-topics.php inside your theme file, then edit that and give it a new name like “loop-new-topics.php”.

    bbp_get_template_part( 'bbpress/loop', 'new-topics' );

    Then edit that file to get the look that you want.

    #113897
    Lynq
    Participant

    Does <pre></pre> work?

    #113911
    Lynq
    Participant

    You could add your RSS feed to a robots.txt file.

    Something like…

    Disallow: /forum/feed

    Or whatever your RSS link is.

    Good luck!

    #113905
    Lynq
    Participant

    It looks as though it is just grabbing the freshness from get_post_field and assigning it to $last_active and then returning the following filter:

    return apply_filters( 'bbp_get_forum_last_active', $last_active, $forum_id );

    So you might need to try and catch the data on the way into the database and manipulate it there, then save it to the database.

    Good luck!

    #45264

    Apparently everybody wants the freshness to be displayed in months, days – I, however would like it to be displayed in days only.

    I have been looking around quite a bit now and trying to change the code, but so far I managed just to mess up the page ….

    Any ideas?

    Thanx

    V.

    #45258
    tinewahl
    Member

    Hi there. I would like to show recent topics on my website homepage from my forum. I’ve accomplished this already by using the code below. What I can’t figure out is how to tweak this code so that it will display the forum name and topic title only, not the author and all the unnecessary wording (“Started by ___ in:”). What I would like it to look like is a long list with each item presented in the “Forum Name | Topic Title” fashion.

    Example:

    Italian Food | What’s Your Favorite Pasta Dish?

    Japanese Food | Good Sushi Bars in NYC

    <?php if ( bbp_has_topics( array( 'author' => 0, 'show_stickies' => false, 'order' => 'DESC', 'post_parent' => 'any', 'posts_per_page' => 8 ) ) )

    bbp_get_template_part( 'bbpress/loop', 'topics' ); ?>

    #113889
    squalesblog
    Member

    Hi again!

    Any help would be very much appreciated.

    Does anyone know what’s wrong with the shortcode bbp-forum-index pointing to url “forum” instead of “forums”?

    Many thanks in advance.

    Patricia BT
    Participant

    Hi

    This topic is posted on 2 places :

    – bbpress.org forum

    – premium.wpmudev.org community support forum

    While working on a site to be launched on the same day (= I had to have it working ;)

    I discovered something interesting

    BBpress second level forum (= with a parent forum/category) also in the permalink, will result in page not found.

    I searched for this issue and came across a few topics, where it was advised to reapply the permalinks, then save again the BBpress settings, where we set the slugs.

    I tried everything there and still the same issue, but it was clearly an issue with rewrite.

    So I begun to deactivate every other plugin I have and after every deactivation I tried if second level forums were loading. I thought specifically about security plugins such as Wordfence, Better WPSecurity, but nope.

    Finally, it was when ******I deactivated wpmudev’s Pro Sites plugin, that the second level forums were loading.*******

    I tried another forum plugin but really I will need BBPress (big amount of subforums necessary on this website)

    now I made some tests, and to make short :

    – if Pro Sites activated :

    -> 1st level forum will work

    -> 2nd level forum will not work

    – if Pro Sites is deactivated :

    -> 1st level forum will work

    -> 2nd level forum will work and can be reached with those 2 url

    A: example.com/forums/forum/level1/level2

    B: example.com/forums/forum/level2

    (forums/forum beeing the slugs set in Forums settings page)

    is it normal we can reach with 2 different permalinks?

    ***** and as it changes automatically, is there a way to force (in BBPress code) a subforum permalink to stay 1st level even if in a sublevel? would be interesting also in the case a forum is moved to another category then it wouldn’t change url ***** (and at the same time it would solve/hide the issue with Pro Sites)

    so cleary this is a rewrite stuff that goes beyond my knowledge, for info my permalinks are set to the second option /2012/06/07/exemple-article/ and .htaccess present with necessary change in it

    I use also buddypress on that site but didn’t go until desactivate it as it worked when I deactivated Pro Site,

    the site I was working on has buddypress, but not the groups and forum elements checked, forum beeing BBpress anyway (I also tried to check/uncheck forums in buddypress settings, really not related to the issue)

    so I was thinking to install a testsite with only vanilla WP Multisite and buddypress, as I need all my tests done that way

    + for this issue : Pro Sites and BBPress

    so if there is anything you tell me to try, it will be done :)

    thank you very much in advance (anybody, eveybody :)

    #110603
    rajuctg1
    Member

    very nice

    download music Download music, movie and every things.

    #45237
    zeaks
    Participant

    This is probably a stupid question, but I can’t figure it out.

    What is the proper way to post php and html code into a bbpress 2.0 forum post? I tried using < code > but when posting some html, it’s not displayed, tried using the little like on wordpress.org but that didn’t work either.

    Thanks for your comments. :)

    I’m assuming you had a backup copy of your stylesheet? Either way, it should only have header info in at the point of copying things over. I’ve made the tutorial clearer about that, though.

    I never bother with screenshots for themes I’m making for myself, but I’m sure others do. I figured I’d leave that up to the user, but I’ve added a sentence about that.

    #113887
    squalesblog
    Member

    Hi John!

    I followed several walthroughs like trying to refresh permalinks and re-saving bbPress settings, with no luck! :'(

    Any ideas?

    Thanks ;)

    #110914
    Lynq
    Participant

    If you var_dump your $postmeta['forum_id'] does it contain a value?

    #113789

    In reply to: Register on Multisite

    Tried registering, and it does redirect me to some other weird site (which I assume is the main one on the network.)

    I bet it’s WordPress redirecting, since it expects the root site to manage all sign-ups. Could probably use some help figuring this out and fixing, since you have an installation exhibiting the issue already. :)

    #113788

    In reply to: Register on Multisite

    Are you sure it isn’t redirecting you because you are logged in?

    When I visit http://rockymtb.org/register/ I get a form asking me to register ;)

    #45217
    squalesblog
    Member

    Hi!

    I am encountering issues with a fresh install of bbPress 2.0 plugin:

    http://squales.high-bridge.fr/forums shows 404 error.

    Plugin settings are all by default. My permalinks settings are default : (i.e.: http://squales.high-bridge.fr/?p=123)

    I created a page with the shortcode [bbp-forum-index] linked in my nav bar.

    Forums show OK, but bbPress navigation link “Forums” shows a blank page.

    Any help would be appreciated ;)

    Many thanks in advance!!

Viewing 25 results - 16,026 through 16,050 (of 32,506 total)
Skip to toolbar