Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 17,051 through 17,075 (of 32,506 total)
  • Author
    Search Results
  • #41130
    aravoth2011
    Participant

    Hi everyone. I’ve been trying to display posts from the forum on a static home page so that it gives the appearance of a blog. Basically, I’m using the tewntyeleven theme and I’m using the showcase.php template to display the forum entries.

    you can see what I’m going for here.. http://test.objectsinmotion.org

    So far, I’ve managed to modify it so that super stickies are put in the featured slideshow. The forum posts are displayed properly, and I’ve managed to pull the topic tags. One of the things I’ve been having a lot of trouble with is displaying the forum a topic is posted in as a category. Normally there is a line of text below the topic excerpt that says, “posted in (category name)” . But it seems that nothing I have tried so far is working. In fact, whenever I try to call the forum title, is displays the topic title instead.

    I’m not a programmer, and I know next to nothing about php, I’ve been doing a lot of reading, and trying to learn as much as I can, but I’m just running into a brick wall here. Any help anyone could offer would be much appreciated.

    Showcase.php uses content.php to display all that meta data. right now it looks like this..

    <?php
    /**
    * The default template for displaying content
    *
    * @package WordPress
    * @subpackage Twenty_Eleven
    * @since Twenty Eleven 1.0
    */
    ?>

    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    <header class="entry-header">
    <?php if ( is_sticky() ) : ?>
    <hgroup>
    <h2 class="entry-title"><a>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    <h3 class="entry-format"><?php _e( 'Featured', 'twentyeleven' ); ?></h3>
    </hgroup>
    <?php else : ?>
    <h1 class="entry-title"><a>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
    <?php endif; ?>

    <?php if ( 'topic' == get_post_type() ) : ?>
    <div class="entry-meta">
    <?php twentyeleven_posted_on(); ?>
    </div><!-- .entry-meta -->
    <?php endif; ?>

    <?php if ( comments_open() && ! post_password_required() ) : ?>
    <div class="comments-link">
    <?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?>
    </div>
    <?php endif; ?>
    </header><!-- .entry-header -->

    <?php if ( is_search() ) : // Only display Excerpts for Search ?>
    <div class="entry-summary">
    <?php the_excerpt(); ?>
    </div><!-- .entry-summary -->
    <?php else : ?>
    <div class="entry-content">
    <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?>
    <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
    </div><!-- .entry-content -->
    <?php endif; ?>

    <footer class="entry-meta">
    <?php $show_sep = false; ?>
    <?php if ( 'topic' == get_post_type() ) : // Hide category and tag text for pages on Search ?>
    <?php
    /* translators: used between list items, there is a space after the comma */
    $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
    if ( $categories_list ):
    ?>
    <span class="cat-links">
    <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list );
    $show_sep = true; ?>
    </span>
    <?php endif; // End if categories ?>
    <?php
    /* translators: used between list items, there is a space after the comma */
    $topic_tags = bbp_get_topic_tag_list( '', __( ', ', 'twentyeleven' ) );
    if ( $topic_tags ):
    if ( $show_sep ) : ?>
    <span class="sep"> | </span>
    <?php endif; // End if $show_sep ?>
    <span class="tag-links">
    <?php printf( __( '<span class="%1$s">Tagged</span> %2$s ', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $topic_tags );
    $show_sep = true; ?>
    </span>
    <?php endif; // End if $topic_tags ?>
    <?php endif; // End if 'topic' == get_post_type() ?>

    <?php if ( comments_open() ) : ?>
    <?php if ( $show_sep ) : ?>
    <span class="sep"> | </span>
    <?php endif; // End if $show_sep ?>
    <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
    <?php endif; // End if comments_open() ?>

    </footer><!-- #entry-meta -->
    </article><!-- #post-<?php the_ID(); ?> -->

    Other things on my to-do list include making the comments section show number of forum replies instead of number of wordpress comments, and changing the author link so that it goes to the bbpress profile of that user instead of a wordpress post archive.

    For now though, I’m hoping that someone out there can help me with the “category” issue. Anyone have any ideas?

    MishaOLS
    Member

    Hello Adam, congratulations to you wedding! I really appreciate that you work in the converter even thought you have so much other stuff to do! Wow!

    I have upgraded the converter just now and tried twice to convert the standalone bbpress 1.0 forum. But I had a problem – all the posts were converted as topics instead of posts :(. Do you have any clue why is that and how can I fix it? I had no such problem with the previous version of bbconverter (there I had the problem with the duplicate first post/reply on topics).

    Regarding the wp_users, I just tried to delete the e-mail addresses in the database and convert the users without the e-mail address. I hope that in this way the authors of the posts will be shown but at the same time my users might register again to my new site using their e-mail address. Hope it will work…:) thank you very much for your help! All the best from Misha

    #100466
    ice9web
    Member

    hi @Mark Barnes i tried your codes, saved to file and upload it on plugin folder then activated it..

    after activation i am looking for the import button or something like that … i can’t find it… can you please help me where to find it?

    thank you

    #105566
    ice9web
    Member

    hi @Mark Barnes i tried your codes, saved to file and upload it on plugin folder then activated it..

    after activation i am looking for the import button or something like that … i can’t find it… can you please help me where to find it?

    thank you

    AWJunkies
    Member

    Hey Justin the IP stuff is old I tested _bbp_author_ip which is the meta for storing for bbpress. But it doesn’t work. That code you see is error on my part for got to push that edit live but it is tested on my end. So I need to look into it further.

    Also make sure to run all the bbpress counters. After the conversion is done it has a link to do so. If you do not do so it will not link up all the forums/topics/posts you are saying is an issue with assigning. So make sure to run counters and should have 0 issues.

    Justin Tadlock
    Participant

    Feedback on version 1.2:

    I moved my database from my live site to my computer so that I could test this out. All of the forums, topics, posts, and tags transferred just fine. The three issues I ran into are:

    1) Topics don’t get assigned a forum.

    2) Replies don’t get assigned a forum.

    3) Replies don’t get assigned a topic.

    From what I can tell, this is because the plugin is using _bbc_* as the post meta keys when it should be using _bbp_*. Also, the author IP meta key has an additional underscore in its prefix: __bbc_author_ip.

    ebiznet88
    Member

    Adam, congratulations on your upcoming wedding and marriage!

    Many thanks for continuing to help us all here with your work on the phpBB converter. Your post is so tantalising to me and I’m sure others as well, and I’m just wondering when “updated real soon” might be…! ;)

    I’m also interested to hear your reply, as well as anointed’s, to MishaOLS’s question on converting another forum’s users to bbpress without also converting to WP’s database of users. I’m not exactly sure why I might also want that for my own forum (now and in the future), but I’m interested to hear your views on this anyway :)

    #110860
    Pairmybeer
    Member

    created a log in page as well using the same process

    1) created a new page named “Log in”

    2) added the following code in HTML:

    [bbp-login]

    <h1>To Register</h1>

    [bbp-register]

    3) added that page to my secondary menu

    http://pairmybeer.com/log-in-to-pair-my-beer/

    Still working on a layout for the forum homepage/landing page and having issues with some of the other short codes for forum and topic indexes

    #41110
    neontrauma
    Member

    Hi,

    I’m running a bbPress 2 within BuddyPress, so bbp_reply_author_link(); links to the BuddyPress profile – domain.com/members/username. I’d like to change that link so that the username links to the WordPress author page (domain.com/author/userame). Changing the user slug in the bbPress settings to “author” didn’t help. :/

    So – how is it possible to change that link or alternatively to display the username only, without any link?

    Thanks,

    neontrauma

    #107376

    Hi i tried using the code [bbp-single-forum id=$forum_id] as

    [bbp-single-forum id=$Introduction] where Introduction is the forum id, but it is not working. Please help me. Can you exactly mention what is the forum id here, is it the title what we provide for the forum .

    #41109

    Topic: BBpress and WP

    in forum Installation
    il_dandi
    Member

    Excuse me for this simple question… can you tell me the differences in WP and BBPress between:

    Pages

    Posts

    Categories

    ???

    Categoy is a group of post? (not pages) OK?

    In mean I can insert: pages and categories (not post) OK?

    I’ve this simple problem :(

    #110810
    benfrain
    Member

    Hi Raphaelsuzuki – no, making a page (with full width template) and setting it as the base slug doesn’t work I’m afraid.

    I’m not using TwentyTen, I’m using a child theme based on Thematic. I ended up just filtering the sidebar away with the following in my main theme’s functions.php:

    function remove_sidebar() {
    if(function_exists('is_bbpress') && is_bbpress()){
    return FALSE;
    } else {
    return TRUE;
    }
    }
    add_filter('thematic_sidebar', 'remove_sidebar');

    Hope that helps someone in future.

    #110840
    FrosyD
    Member

    Oh well we got it working in Thesis eventually :)

    MishaOLS
    Member

    Hello guys, thank you Adam for all the work you put into this converter! I really can’t wait for the updated version! Now I would like to ask all of you one maybe stupid question but is it somehow possible to convert the author’s of the posts without creating an entry in the wp_users database? My problem is that I have converted my whole site (I was previously using blog:CMS and punbb forum) into WordPress and now I decided that I will ask all my free users to create a new account for WP (to have fresh password, etc.) but I obviously can’t do this until I delete all the users that have been created by the converter. Yet once I delete them, their posts get deleted as well. I also tried to convert the forum without the users but the problem is that the forum then gets converted without the authors of the posts :(. So I am in a dead end here… I would basically need to keep forum’s authors (only name is sufficient) without creating an entry in the wp_users database (so that my users may register for WP using the same e-mail). Thank you very much for your help/advice/suggestions. All the best from Misha

    #107375
    David100351
    Participant

    @Hagandasz

    I had problems finding this, too.

    Go to Forums on Dashboard.

    Hover the mouse over the title of the forum, and a link comes up at the bottom of the page. (In Opera it does, anyway)

    e.g. http://pour-your-heart-out.com/wp-admin/post.php?post=36&action=edit

    in this case, $forum_id is 36

    you don’t use the $

    The same principle works with the rest. I know it says “post=36” but I guess that’s just how wordpress stores stuff.

    #110436
    David100351
    Participant

    Alicehelen is a spammer, not a fellow soul!

    I have found a resolution/work-around.

    The topic title is clearly visible if it isn’t Sticky.

    Instead of using a sticky post, I placed the text of the post on the Forum Page, above the shortcode for that forum, with, if applicable, a link direct to the topic for replies.

    see http://pour-your-heart-out.com/forums/

    Also, as you can see onsite, the forum description allows quite a lot of space for any essential information particular to a forum.

    Between the two, I’ve made the essential information visible.

    End of problem.

    #41073
    MishaOLS
    Member

    Hello, I would like to create a special forum for my paid members. I am using the Your Members http://yourmembers.co.uk plugin for my user management. I thought that I would simply create a new forum called “members” with some topics and I would put this forum using a shortcode to the members page, which would have restricted access for members only (using the Your Members plugin).

    Yet it seems not to work this easy way. The logged in member can’t see any forum on that page and there is only a line of text with latest forum news and a form for a reply. Once he clicks either on the news or writes a reply, he gets a 404 page. Do you have any idea why is that?

    I was trying to make the forum private or hidden, but I don’t understand at all how these features work and I wasn’t able to find any documentation for bbPress yet:(. Could someone please advise me on how would it be the best way to create the paid member’s only forum? Just to make clear, I also do have a normal forum for my free users (who have to be logged in to be able to post into it). Thank you very much for your help! All the best from Misha

    DiannaM668
    Member

    Hi Chrisella, I gave it one more college try on that Forumconverter plugin and it even mentioned needing to use bbpress 2.0 rc4 version. I installed the older version of BBpress but still no go. I’m getting stuck when I get a 500 internal server error and I believe I’m timing out.

    When I get the error page after about 2 minutes of conversion, it then makes me log into my wordpress installation as if it’s trying to install itself. I put my login info as it asks and it then gives me a long list of the errors that occurred. It does say “…… has exceeded the ‘max_questions’ resource (current value: 75000)].

    When I go to my forum, I do have the forum and topics, but no actual posts. So close yet so far.

    If I knew how to further fix my timeout issue, I may try to call my web-hosting to see if they could guide me on the issue or maybe give me more conversion time just for this issue…I’m just grasping at straws.

    If no luck on this last attempt with calling my web-hosting, I’m at the mercy of AWJunkies guys for when they have time to possibly finish the plugin for a phpBB conversion. They will totally make my day.

    I’ve pretty much tried every route one can possibly try to get my forum over to bbpress. I’ll just wait with crossed fingers and toes. :-)

    #109644
    ficam
    Member

    buuuump! Still looking to remove

    You may use these HTML tags and attributes:
    <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

    #110193
    tnwinn
    Member

    I can’t seem to get any of the bbPress widgets to work properly… the shortcodes function, but they aren’t formatted or anything, so if I try to use them in a text widget I just end up with messy text that is about 100 lines long, and get a bunch of Page Not Found errors when clicking on it.

    I think I am having trouble because I originally installed bbPress separately, then added the plugin when it became available. I’m not sure what to do.. it is all a big mess :(

    DiannaM668
    Member

    chrisella, I’m at the phpbb3 to bbpress converter notes on the phpbb3 support forum and the gentlemen writing the code has mentioned passwords and something to do with MD5 hashing. I don’t know what that means, but there is a link to some coding to correct the problem with passwords. Not sure if that is what you may need, but take a look.

    https://bbpress.org/forums/topic/phpbb3-gt-bbpress-converter-beta-release

    The password plugin they mention is at:

    https://bbpress.org/plugins/topic/md5-insecurity-for-bbpress/

    #40997
    benfrain
    Member

    Where are the default theme files stored? I’m using a Thematic based wordpress theme and bbPress tells me ‘Your active theme does not include bbPress template files. Your forums are using the default styling included with bbPress.’

    Having installed bbPress 2.01 I am trying to edit the layout to make it full width. It seems this must be handled by editing the PHP files. However – the docs suggest the default theme Kakumei is the default – where are the files for this template?

    I see only a bbp-twentyten folder in my FTP?

    I’d like to simply comment out <?php get_sidebar(); ?> on the relevant files.

    I’ve tried making changes in these files but nothing changes frontend.

    #70770

    In reply to: List of Hooks/Actions?

    rich
    Member

    just a file parser looking for all the hooks/filters then some reverse calls to bring up source code references – then data is pushed into custom post types w/various taxonomies. (needs some work still but waiting until next round of bp/bbp/wp updates)

    chrisella
    Member

    mmm today I managed (successfully I believe) to use this script (with some edits) : https://bbpress.org/forums/topic/importing-from-phpbb#post-313

    to convert my phpBB3 to bbPress v1.0, and then I used bbConverter to convert the bbPress v1.0 to v2.1

    and all seems to have copied fine :)

    one Issue I’m having is the passwords.

    When I try and login with a user and the correct old password it continously fails :/.

    It seems (after going through the code a bit and the database) that it’s looking for _bbc_class in the user meta table in this code but that isn’t there in my table atall.

    /**

    * Convert passwords from previous forum to wordpress.

    */

    public function convert_pass()

    {

    global $wpdb;

    $username = $_POST;

    if( $username != ” )

    {

    $row = $wpdb->get_row( ‘SELECT * FROM ‘ . $wpdb->users .

    ‘ INNER JOIN ‘ . $wpdb->usermeta . ‘ ON user_id = ID ‘ .

    ‘ WHERE meta_key = “_bbc_class” AND user_login = “‘ . $username . ‘” LIMIT 1’ );

    if( $row )

    {

    $converter = newBBConverter( $row->meta_value );

    $converter->translate_pass( $username, $_POST );

    }

    }

    }

    Any ideas ?

    I know this is quite vague so I can give any more details if needed.

    Cheers

    #110839
    raphaelsuzuki
    Participant

    Hello, again.

    Every slug related to bbPress gives me page not found:

    http://www.nelioguazzelli.com.br/rede-de-negocios/

    I’ve heard that changing permalinks can mess with bbPress slugs, needing to hit save button in it settings to it start displaying form listings again. Maybe it’s the case, but that’s not working too.

    I’ve also heard that maybe my WordPress setup is not aware of bbPress existence (this is more common in version 1.0) and need some extra work, but in this case I don’t have a clue.

Viewing 25 results - 17,051 through 17,075 (of 32,506 total)
Skip to toolbar