Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 21,301 through 21,325 (of 32,495 total)
  • Author
    Search Results
  • #34238
    gerikg
    Member

    What is the proper way to write this:

    <?php require( '<?php include('site.html'); ?>/abc.html' ); ?>

    #88227

    In reply to: show user avatar

    Arturo
    Participant

    you rocks Rick :)

    this is the solution:

    <?php echo bb_get_avatar(bb_get_current_user_info(‘ID’), 40); ?>

    #88226

    In reply to: show user avatar

    Rich Pedley
    Member

    I’m coming to grips with bbPress.. slowly.

    Is the $user->ID actually availabel for use at that point or do you need to do a

    bb_get_current_user_info('ID'); ?

    #88224

    In reply to: show user avatar

    Rich Pedley
    Member

    what value are you using for $default? have you tried just using:

    <?php echo bb_get_avatar($user->ID, 40); ?>

    #87961

    In reply to: Welcome Back _ck_

    Elias
    Member

    Wow. This is a reason to log in again here (after being totally fed up by being censored and having to read on the fine bbPress as a plugin for the bloaty WP) and to say: Hello _ck_! ;-)

    #87960

    In reply to: Welcome Back _ck_

    wiseacre
    Member

    Welcome back, girl. :)

    #88192
    MayurSomani
    Member

    ok managed to use js to highlight the code. Thanks for help everyone.

    #68597
    clocky
    Participant

    @KateS30 http://bbshowcase.org/forums/view/available-themes

    WP Mimic 0.02 download link for you! enjoy and have fun! ;)

    #88191
    MayurSomani
    Member

    ok I managed to activate the plugin,

    https://bbpress.org/plugins/topic/bbpresssyntax-hiliter/

    by changing my_plugins to bb_plugins and the folder name to bbpress_syntax_hilite.

    I checked and js and styles are being loaded in header.

    Still, the code is not highlighted :(

    #88190
    gerikg
    Member
    #84342
    gerikg
    Member

    I added a specific page number and nothing.

    Then I visited the specific page then it started generating the code to the uploads folder.

    In the admin section and your screen-shot (http://pixopoint.com/uploads/theme_integrator_adminpage1-480×668.png) notice it doesn’t have “.html” after.

    <?php require( '/homepages/0/xxx/htdocs/xxx/wordpress/wp-content/uploads/pixopoint-theme-integrator/chunk1' ); ?>I added html and it’s working so far.

    I’m still going…

    #88189
    MayurSomani
    Member

    Hi _ck_

    Thanks for quick reply. Can you please tell me about the other ways?

    This is because the plugin above is not working.

    What I need is that someone wraps the code in code tags or pre tags (but not both) and it gets highlighted. I need to highlight java code.

    I can edit any existing plugin to suit my requirements, I just need a hint to start.

    Looking forward to your reply.

    Thanks

    #88188
    _ck_
    Participant

    This has been done a few different ways for bbpress over the years, this plugin is the easiest to find but there are other ways:

    https://bbpress.org/plugins/topic/bbpresssyntax-hiliter/

    #34225
    MayurSomani
    Member

    Is there any plugin that can help me highlight source code on bbpress?

    Any other ideas are also welcome.

    Thanks for reading.

    _ck_
    Participant

    Thanks for the feedback.

    Good to hear they fixed it in 1.0 – it’s actually easy to fix by hacking the core, only two characters need to be changed that way!

    ( >0 instead of =1 )

    #88009

    In reply to: Linking to WordPress

    xarzu
    Participant

    I went the PHP route.

    At the top of register.php I put this code:

    <?php

    header( ‘Location: http://www.arguemax.com/wordpress-2.9.2/wordpress/wp-login.php?action=register&#8217; ) ;

    and it works.

    #88008

    In reply to: Linking to WordPress

    xarzu
    Participant

    While I try several combinations of this I thought I would throw this out for consideration.

    PHP is not like HTML. PHP generates HTML or browser code on the server and spits it out onto the browser on the client side. I am just thinking now that maybe you cannot use this method of redirection because the functionality is overwritten. I am just asking. Has anyone tried this redirection method with PHP before?

    As I type this, I am deleting the browser histrory/memory to see if that helps because so far this method does not redirect anything.

    #87958

    In reply to: Welcome Back _ck_

    Welcome back _ck_!

    You’ve truly been missed :)

    #88007

    In reply to: Linking to WordPress

    zaerl
    Participant

    Try:

    RewriteRule ^.*/bb-login.php$ http://www.arguemax.com/wordpress-2.9.2/wordpress/wp-login.php [R=301,L]

    or:

    Redirect 301 /bb-login.php http://www.arguemax.com/wordpress-2.9.2/wordpress/wp-login.php

    #88174

    In reply to: Modlook tag

    _ck_
    Participant

    Yes, I wrote the “Skip Akismet” plugin last year to do that.

    https://bbpress.org/plugins/topic/skip-akismet/

    It’s cross compatible with bbPress and WordPress, however they refused to accept it into the WordPress plugin repository and told me to submit it to the core (which I didn’t bother if they are going to be like that).

    Later I discovered the akismet plugin itself already has a “trusted user” filter via bb_is_trusted so my method is overly complicated, but my plugin could in theory be modified to trust users who have X number of posts or pass a certain minimum membership age.

    This method however would be much cleaner:

    add_filter( 'bb_is_trusted_user','more_trusted',10,2);
    function more_trusted($trusted,$user_id) {
    // bb_get_user here and determine if trusted, possibly cache result
    return $trusted; // boolean true/false
    }

    Feel free to develop that, let me know if you need help.

    #88006

    In reply to: Linking to WordPress

    xarzu
    Participant

    oh.

    That is pretty clever. I like that. I think I will use this technique. Now I just need to refresh my memory on how to code .htaccess

    I have created the file, .htaccess and I included the lines

    And I gave it a shot, but it did not work. Is there something I need to do such as make the file a certain type or read/write privledge?

    #88172

    In reply to: Modlook tag

    thanks :)

    #88183

    In reply to: Facebook Integration

    you asking for help or notifying that you have done it.

    If the latter one, then I would like to know more on how you did it :)

    #87732
    _ck_
    Participant

    Noel the fonts are small in Firefox but that may be because they don’t seem to scale for some reason when “large fonts” are enabled in Windows.

    Like I pointed out, resetting the body to font-size:100%; seems to fix the whole problem for me.

    The overly large gravatars still takes some getting used to however, I’ve never seen a forum system with avatars over 100×100

    _ck_
    Participant

    Here’s a mini-plugin I whipped up to fix the behavior of bbPress where a sticky that is made to “stick to front” (aka “super-stickies”) gets removed from its original forum.

    Instead, now it will show as a regular sticky in its original forum but also as a super sticky on the front page.

    <?php
    /*
    Plugin Name: Super Stickies Fix
    .................................................................................................................
    */
    function super_stickies_fix($where){return str_replace("topic_sticky = '1'","topic_sticky > 0",$where);}
    add_filter('get_sticky_topics_where','super_stickies_fix');
    ?>

    Tested in bbPress 0.9, in theory it should work fine also in bbPress 1.x

    You can remove the line of all dots, it’s just there to fix the wrap problem for code on bbpress.org 2.0

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