Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 23,776 through 23,800 (of 32,481 total)
  • Author
    Search Results
  • #31628

    Ok, so in my ignorance, I changed something, thinking I’ll be able to fix it if something went wrong.

    Well something did go wrong.

    Yes, that’s right, I can’t fix it :P

    I wanted to change the URL from /bbpress to /forum.

    So I did, in my cPanel File Manager by manually renaming the dir. Anyway, I don’t think that worked. So I changed it back, so that I would be able to do it via the General Settings section.

    So I changed it there, and now nothing works. Can’t open admin panel, can’t look at old topics…everything just pretty much 404’s.

    I’m guessing I’m going to have to manually edit or php file? I was going to try that thing in the tools section to do something with the db, but as I can’t get there…

    So yeah, help would be appreciated.

    Cheers.

    P.S It’s nice forum software.

    #78527

    I think you have installed bbPress again by using wp_ as a prefix

    take a backup and try this :

    change to bb_

    and then open bb_usermeta table and see if the bb_capabilities of your user (check with user id) is a:1:{s:9:"keymaster";b:1;} via phpmyadmin

    if you have got the admin access back now, then you can delete tables starting with wp_

    Hope that helps :)

    #78540
    tianye
    Member

    Thinks for everyone I had solve this question

    Actually use bblite and bbcode button and allow images plugin can be easily to post images in your fourm

    ON need input any code ,

    I don’t speak english

    #78553

    In reply to: jquery @ global header

    Olaf Lederer
    Participant

    bb_active_theme_uri()

    Maybe you need to use a function as dirname() or other URL function to get the directory string

    #31621

    Topic: jquery @ global header

    in forum Themes
    johnnydoe
    Member

    hi,

    i know this works for wordpress…

    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.js"></script>

    what is the magic bbpress template directory php tag?

    thankees :D

    #78387
    Ben L.
    Member

    Whoops! I seem to have forgotten to take out my debug code! Remove line 16 (if ( bb_current_user_can( 'use_keys' ) )), and people should be able to use it.

    #67737
    chandersbs
    Member

    Haha a FB plugin would indeed rock our bbpress worlds, Buddypress has this feature (at least in their demo), who’s planning to “steal” the source code :P

    #78539
    gerikg
    Member

    tianye, <img src="http://www.liuso.com/logo.jpg"> don’t forget the http://

    #78538
    thekmen
    Member

    sorry, sounds like you have a plugin enabled that uses the allow_images_allowed_tags function & looking at my above post, there is also some unneeded code.

    try:

    <?php
    /*
    Plugin Name: My Images
    Plugin URI: https://bbpress.org/
    Description: Allows <img /> tags to be used in forums.
    */

    add_filter( 'bb_allowed_tags', 'my_images_allowed_tags' );
    function my_images_allowed_tags( $tags ) {$tags['img'] = array('src' => array(), 'title' => array(), 'alt' => array(), 'class' => array()); return $tags; }
    ?>

    #78536
    thekmen
    Member

    create a file in your my-plugins directory called my images or something like that.

    add the following code

    <?php
    /*
    Plugin Name: My Images
    Plugin URI: https://bbpress.org/
    Description: Allows <img /> tags to be used in forums.
    */

    add_filter( 'bb_allowed_tags', 'allow_images_allowed_tags' );
    function allow_images_allowed_tags( $tags ) {$tags['img'] = array('src' => array(), 'title' => array(), 'alt' => array(), 'class' => array()); return $tags; }
    add_filter( 'get_profile_info_keys','bb_member_id_in_profile',255);
    function bb_member_id_in_profile($keys) {
    global $self;
    if (empty($self)==true && isset($_GET['tab'])==false && bb_get_location()=="profile-page") {
    (array) $keys=array_merge(array_slice((array) $keys, 0 , 1), array('ID' => array(0, __('Member #'))), array_slice((array) $keys, 1));
    }
    return (array) $keys;
    }
    ?>

    Activate the plug in & all should work as long as you use

    <img src="" alt="" title="" class="" />

    #78534
    NuMaverick
    Member

    is <img sRc=”www.liuso.com/logo.jpg”> change scr to src….

    Where do you want to put this image? in post try [img]www.liuso.com/logo.jpg[/img] use… bbcode lite and bbcode buttons plugins… search here https://bbpress.org/plugins/

    if not… I don’t know

    I don’t speak english ok XD

    #31617
    tianye
    Member

    I haev already download the “allow-images” plugin wish verson is 0.73 and activate in admin , when I input like this code “<img scr=”www.liuso.com/logo.jpg” /> but can not workes, what’s wrong wish my operation , my verson is 1.02

    and my english is very poor if there somethings language wrong please don’t to ridicule

    #31616
    Mohamed
    Participant

    Hello,

    This is my 1st try to have a website and I’ve goggled a lot for the tools I may use and found that wordpress is the most highly recommended one.

    Please I do need a forum to be integrated with the website and according to Google it shows that BBPress is the most recommended one to be used with WordPress.

    The question now is that I can find the installation instructions for BBPress standalone but I can not find how to integrate WordPress and BBPress together at all.

    So please may you help me and give me any links for such a thing as it was three hours searching in different places with no luck so far and I do fel very stupid for not catching any result yet.

    I’ve just installed WordPress only without any plugins or any extra just the pure installation and default settings.

    I am sorry if this is a very newbie question but I hope that some one can help.

    Thanks,

    Take care :)

    vlp
    Member

    Tomwi: can you post your code for showing mentioned template

    *post title*

    Posted by: *user* in *forum*.

    or send it to me – procka@tasty.sk

    greets

    Vlado

    #78516
    dogdayfear
    Member

    I moved the javascript code from index.php to file header.php (between <head> and </head> tags) of the template Im using and everything works now.

    #78508
    Olaf Lederer
    Participant

    @Nightgunner5,

    so you can use a wildcard here?

    glob( BB_PATH . 'avatars/' . $current_user->user_login . '.*' )

    after 6 years of php programming I found this function, thanks :)

    #78031
    Olaf Lederer
    Participant

    Great than it’s time to change that :)

    #31590
    gerikg
    Member

    WPMU 2.8.4a

    BP 1.0.3

    BB 1.0.2

    “Manage your favorites” only shows up for the admin.

    <?php if (bb_current_user_can( 'edit_favorites_of', $user->ID )) : ?><?php printf(__('<a href="%1$s">Manage your favorites</a>'), esc_attr( get_favorites_link() )); ?><?php endif; ?>

    Any one had this problem?

    #76608
    gerikg
    Member

    try add the same codes to bb-config without the Hash

    #31610
    dogdayfear
    Member

    I have included this piece of code at the top of my index.php file:

    <script language=”javascript”>

    if(top==self)

    this.location=’http://www.somedomein.es/somefolder/page&#8217;;

    </script>

    It checks if bbpress is loaded into an iframe and if not, it redirects to http://www.somedomein.es/somefolder/page and this page load bbpress correctly into an iframe.

    It works perfectly but it breaks the style making the some fonts bigger that they should.

    If I remove the javascript code everything works normally again.

    Any suggestions ?

    Thanks in advance.

    #78473

    In reply to: Hiding Sub-Forums

    Jimmy B.
    Participant

    Hey hentdan! Thanks for your code snippet, that seemed to do the trick. I tweaked a couple things, namely <?php if (bb_forum_depth() <= 1 ) : ?>.

    Thank you very much!

    Here’s the complete code that’s working for me:

    <?php function bb_forum_depth( ) {
    global $bb_forums_loop;
    if ( !is_object($bb_forums_loop) || !is_a($bb_forums_loop, 'BB_Loop') )
    return false;

    return $bb_forums_loop->walker->depth;
    } ?>

    <?php while ( bb_forum() ) : ?>
    <?php if (bb_get_forum_is_category()) : ?>
    <tr<?php bb_forum_class('bb-category'); ?>>
    <td colspan="3"><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> – ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td>
    </tr>
    <?php continue; endif; ?>
    <?php if (bb_forum_depth() <= 1 ) : ?> <!-- ******* -->
    <tr<?php bb_forum_class(); ?>>
    <td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> – ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td>
    <td class="num"><?php forum_topics(); ?></td>
    <td class="num"><?php forum_posts(); ?></td>
    </tr>
    <?php endif; ?><!-- ******* -->
    <?php endwhile; ?>

    #78030
    hpguru
    Member

    Thank you for fast help. This works good now. :)

    #78507
    kickerman360
    Member

    NightGunner5: I’ll test that when I get a chance, thanks!

    FinalWebsites: The plugin calls the image a certain name. If the user is “admin” the admin’s avatar will be “avatar.jpg” but could also be “avatar.gif” etc. This code hopefully will reduce the code.

    Thanks again!

    #78506
    Ben L.
    Member

    <?php echo('<img src="/forums/avatars/' . basename( current( glob( BB_PATH . 'avatars/' . $current_user->user_login . '.*' ) ) ) . '" />'); ?> (Untested, but it should work.)

    #78029
    Olaf Lederer
    Participant

    Hi,

    locate in the plugin file the function

    function create_seo_meta_txt($content) {
    $raw = str_replace(PHP_EOL, ' ', strip_tags($content));
    $raw = str_replace(' ', ' ', $raw);
    $snippet = substring_words($raw, 120, '');
    return htmlentities($snippet, ENT_QUOTES);
    }

    and replace “htmlentities” with “wp_specialchars”.

    Let me know if this works for you. This plugin is a little quick and dirty for these functions :)

    The seo plugin for wordpress has for internationalization huge blocks of code :)

Viewing 25 results - 23,776 through 23,800 (of 32,481 total)
Skip to toolbar