Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 18,201 through 18,225 (of 32,518 total)
  • Author
    Search Results
  • #106897
    abdessamad idrissi
    Participant

    you got lot of echos there man!.. make it simple

    <td class="num">
    <?php echo "<a href='" . topic_last_post_link(forum_last_topic_id()). "'>". topic_title(forum_last_topic_id())."</a>"; ?>
    </td>

    to limit the characters, use the substr php function -google it :)

    #38882
    ashdavies
    Member

    Hi,

    So I’m trying to display the latest topic of a forum on the home page with a link to that forum.

    How do I go about limiting the output to 40 characters?

    Currently I’m using this code

    <td class="num"><?php echo "<a href='"; topic_last_post_link(forum_last_topic_id()); echo "'>"; topic_title(forum_last_topic_id()); echo "</a>"; ?></td>

    Any help appreciated.

    Thanks,

    Ash

    #106887
    abdessamad idrissi
    Participant

    thanx man :) I searched before but with wrong keywords

    #38883
    abdessamad idrissi
    Participant

    I used to run v1.0.3 then I decied to go plugin version..

    I did an import but since my forums contains arabic topics; some topics didn’t make into the new version, also, even if they show in my forums when you click on a topic title to view it, it leads you to 404 page.

    I noticed articles contains characters such as; ! , ? are not handled by the WordPress importer.

    another thing is the search field provided in the twenty ten theme: it doesn’t search inside the forum but inside the blog -how to enable forum searching?

    Thanx for the great work and keep on moving :)

    PS. you can compare Arabic and Latin written topics on my forum here: http://forumcine.ma/forums/forum/forum-general/koi-d-9/

    #38876
    master5o1
    Participant

    It’s a plugin for WordPress + bbpress 2.0.

    It allows users to ignore other users by way of hiding their posts and topics.

    It’d be great if anyone with spare time could test and give feedback :)

    http://dump.master5o1.com/files/bbpress-ignore-user.zip

    #38875
    M66B
    Member

    This happened:

    bbPress Standalone Importer

    Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in <removed for privacy>/wp-content/plugins/bbpress/bbp-admin/importers/bbpress.php on line 668

    Warning: Cannot modify header information - headers already sent by (output started at <removed for privacy>/wp-admin/admin-header.php:35) in <removed for privacy>/bad-behavior/bad-behavior/screener.inc.php on line 8
    Importing Users

    We’re in the process of migrating your users...

    Renamed the wp_users and wp_usermeta tables to bb_wp_users_tmp and bb_wp_usermeta_tmp respectively.

    WordPress database error: [Table '<removed for privacy>.bb_users' doesn't exist]
    CREATE TABLE wp_users ( <code>ID</code> BIGINT( 20 ) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, <code>user_activation_key</code> VARCHAR( 60 ) NOT NULL DEFAULT '', KEY ( <code>user_login</code> ), KEY( <code>user_nicename</code> ) ) SELECT * FROM bb_users ORDER BY <code>ID</code>
    There was a problem duplicating the table bb_users to wp_users. Please check and re-run the script or duplicate the table yourself.

    After that I only got:

    WordPress database error: [Table 'md220579db167769.wp_users' doesn't exist]
    SELECT * FROM wp_users WHERE user_login = '<removed for privacy>'

    WordPress database error: [Table 'md220579db167769.wp_users' doesn't exist]
    SELECT * FROM wp_users WHERE user_login = '<removed for privacy>'

    Warning: Cannot modify header information - headers already sent by (output started at <removed for privacy>/wp-includes/wp-db.php:940) in <removed for privacy>/wp-includes/pluggable.php on line 934

    I delete the tables bb_wp_usermeta_tmp and bb_wp_users_tmp trying to fix this problem: stupid of course …

    #106876
    ashdavies
    Member

    Just fixed it.

    Turns out the BBpress SEO Tools plugin was stopping URLs from working, along with BBcode, post signatures and a few other little things.

    Deactivating the plugin and using an alternative SEO plugin has allowed these things to work.

    #105769

    In reply to: bbPress 2.0 – FAQ

    Gautam Gupta
    Participant

    packzap: Please upgrade to 1.0 or trunk and then migrate to plugin. :)

    #100669

    In reply to: bbPress 2.0 – FAQ

    Gautam Gupta
    Participant

    packzap: Please upgrade to 1.0 or trunk and then migrate to plugin. :)

    #89403
    canada87
    Participant

    Any updates on this? It’s tricky sorting topics.

    #38864
    norby500
    Member

    After trying out bbpress with buddypress i really think that bbpress as it is now works so much better. I just didn’t like how it worked in bbpress. This does everything and more than quite alot of forums out there and i hope it stays this way :D

    #106860
    master5o1
    Participant
    #106859
    master5o1
    Participant

    Ok, I’ve enhanced the extra-bar deletion JS so that it finds them all and deletes all except the last one. Because, assuming that the post form is at the bottom and such….

    But it’s still dependant on the above action.

    Not sure how to get past that yet without more code reading…

    (The whole JS thing is really just a hack until I do find out where to hook it into properly).

    Will update the zip file in a moment.

    #106858
    master5o1
    Participant

    Yeah, I need to figure out some stuff about that. It’s because I’ve hooked it into this:

    add_action( 'bbp_template_notices' , array('bbp_5o1_toolbar', 'post_form_toolbar_bar') );

    I then delete it using javascript if the bbp-reply-form or bbp-topic-form textarea elements aren’t on the page.

    I’ll look for a way to fix it in a moment.

    #106872
    John Conners
    Participant

    Sounds like you want to check something like this:

    <?php if( bbp_is_forum() || bbp_is_topic() || bbp_is_reply() ) {
    echo "iam_forum";
    }
    ?>

    #38859
    caneblu
    Participant

    Hi, trying to integrate in my template BBP, but i need to made some special changes in sidebar.php when the user are in forum’s.

    to initial check i write in the sidebar.php

    <?php if( bbp_is_forum() ) { echo "iam_forum";

    }

    ?>

    but the echo is visible in every page/post not only in the forum… what’s wrong?

    #38858
    payamb
    Member

    hey guys, i’v installed and integrated these two friends.

    BBPress is recognizing wpmu users and allow to login but when i login with my super user in BBPress, i dont have any administration ability,

    i set the rules for wordpress super user in bbpress settings, but its not working, and i cant in anyway go to bb-admin and change any setting :(

    any suggestion ?

    thanks.

    #38853
    master5o1
    Participant

    I’ve just made a post toolbar that works with bbPress 2.0, and extends a bit of kses in WP (adds <span style=""> and image posting support).

    Link to zip: http://dump.master5o1.com/files/bbpress-post-toolbar.zip

    The toolbar looks like this with the Link panel open:

    http://dump.master5o1.com/files/images/toolbar.png

    (the Bold button in the screenshot has the :hover css applied)

    Under help, one can reach an ‘About bbPress Post Toolbar’ panel which states the version of the and that I made it (but no link).

    The extending of kses to allow <span style=””> in the allowable tags is necessary for the font sizing, colouring, underlining, strike-through, and text alignment.

    The options page in WP Admin has the following:

    Use customised smilies?

    Yes No (default)

    Allow embedding of Youtube videos?

    Yes (default) No

    Allow text-alignment buttons?

    Yes No(default)

    Allow images to be posted?

    Yes No(default)

    Link to zip: http://dump.master5o1.com/files/bbpress-post-toolbar.zip

    I have requested plugin hosting for WordPress Plugin Directory and I’m waiting for it to be approved, etc.

    In the mean time, any comments and feedback from testing, etc would be help.

    #38848
    engin1984
    Participant

    How to get topics first 100 or 150 characters in post link title (in front page) ?

    is possible to Gettting posts index while hovering post link?

    tried post_text, in frontpage.php but didn’t work:

    <a href="<?php topic_link(); ?>" title="<?php post_text(); ?>"><?php topic_title(); ?></a>

    #106530
    svedman
    Member

    The live example looks fine to you, or the code in a newer version than bbPress 2.0-beta-3 looks fine to you?

    The live example clearly says:

    “Dette forumet inneholder 0 topics og 0 replies.”

    “topics” and “replies” are English words and should be translatable. They aren’t.

    #106741
    Erlend
    Participant

    From where I’m standing, your opinion seems swayed in our favor already :D Anyhow, stay swayable!

    I of course agree, there is an abundance of fun ideas when threaded comments are added to the mix.

    I can run another cool use-case by you: I’ve always had big plans for DJPaul’s Achievements plugin. The one feature keeping me from implementing it in my community site is the lack of a visible in-forum reward, as we rely on BP’s forums much more so than the activity stream. With comments, the Achievements plugin could post awarded achievements as comments to the “instigating” post.

    As for nested comments in the average forum, I actually see it as a positive evolution. Yes, the goal is linear conversation, but anyone who’s spent some time on a forum knows that linearity is a fragile thing. Over the years, moderators have been given some good tools to stand their ground in the name of good practice, such as splitting, merging, and deleting of individual posts. I believe (single-level) nested comments are a fine addition to these tools, especially if moderators were given the ability to convert posts into comments, and vice versa.

    Lastly, though maybe you’ll think me odd for wanting to make this separation, I for one commonly make two-sided posts: “A personal gesture” + “Down to business”. In the case of this thread, I for one would not have minded entering my first paragraph as a mere comment to your post, and then make the rest of this post the actual on-topic reply. Actually, I think there’s a way of going about that without it seeming weird. I’ll try mock something up.

    Edit:

    Alright, here’s a mockup of my idea:

    https://i.imgur.com/sBzHj.png

    Call it like you see it ;)

    #106796

    This is a known issue, and one we’ll be fixing in the coming weeks. :)

    #106826

    In reply to: Optional Avatars

    You can turn avatars off completely in your WordPress Discussion settings. :)

    #106740

    So… A few thoughts on this as of today. My opinion on this is probably easily swayed, but it’s what I think now so I’m gonna roll with it… :)

    So topics and replies, are already hierarchical to each other; replies are children of their topic. Forums by their nature are meant to be focused topics of discussion. It’s possible that topics can grow very large in size, but the intent is to keep the conversation fairly linear. Any forking/branching/nesting of conversations most likely belongs in a separate topic.

    But…

    Since we’re using custom post types, we still have the whole comments API just laying around WordPress that we’re not using. If, you /really/ wanted to have threaded discussion, you could add comments to the post_type_supports for replies, and build a theme to make it work. This would allow all kinds of neat extra usages for comments that are semi-conventional to blog posts. Use comments as reply feedback, use them as “Like” comments, use them for hidden moderator notes, etc…

    Lots of fun ideas come to mind. :) Comments were also the natural choice FOR replies, just like taxonomies were the natural choice for Forums/Categories, but since they all lack revisions, attachments, taxonomies, etc, I opted to use another post type for them and leave comments for plugin authors and developers to play around with.

    #106801
    Steve
    Participant
Viewing 25 results - 18,201 through 18,225 (of 32,518 total)
Skip to toolbar