Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 29,326 through 29,350 (of 32,438 total)
  • Author
    Search Results
  • #59804
    ganzua
    Member

    we solved this issue in a previous thread, just make a search :)

    #59775

    In reply to: plugin: bb-Polls

    Null
    Member

    Still not good here (also deactivated all other plugins):

    http://www.sourceskins.com/pollbug2.gif

    Also plz remove the capitals:

    VOTE NOW -> Vote

    SAVE POLL -> Save Poll

    No need to shout :D

    I also miss a Cancel button when creating a poll

    #59709
    Null
    Member

    Any 1 can give me a wroking excample to activate a function on plugin activation and 1 on plugin deactivation?

    I want to create a table on plugin activation. There is a hook, but don’t know how to use it :(

    #2208
    #59424
    howtogeek
    Member

    Ohhhhh

    My test site has nothing but posts from me, no wonder I didn’t see it =)

    And to answer your question at the very top of this thread, I’m trying to use bbPress for a serious forum… I just opened my forum a little over a week ago. Not as much traffic as I’d like, of course, but decent.

    #52681
    _ck_
    Participant

    Do you mean inside the edit profile page?

    You’d need to reduce the <table width="100%">

    but maybe also textarea style="width:90%;"

    Are you using a custom template? Seems to work fine in the few templates I’ve tried.

    If you still have trouble, post a screenshot image if you can.

    I am now removing width="100%" from the new/next version.

    #2205
    ganzua
    Member

    I’ve been having problems to translate bbpress since I integrated the forum with wordpress.

    In particular I’m having this error;

    Fatal error: Cannot redeclare class CachedFileReader in D:wampwwwwordpressbbpressbb-includesstreams.php on line 163

    whenever I try to define a lenguage in config.php -> define(‘BBLANG’, ‘es_ES’);

    I was suggested to redirect to wordpress mo file -> define(‘BBLANGDIR’, ‘../wp-includes/languages’);

    and then editing this mo file with poedit.

    Well, I’ve been messing with poedit but I didn’t change bbpress config.php yet or included any language file for bbpress anywhere.

    I went to bbpress control panel to activate the new signature plugin and I find that a line of the menu (and just one line, the rest are still in english) is already translated to spanish, this one;

    http://img213.imageshack.us/my.php?image=transyf3.jpg

    I admit that I’ve been very busy and I even admit that a was drinking some beers this evening but, what the hell did I do? I can’t rember!. I’ve been unsuccesfully trying to translate bbpress for a month and now bbpress started to translate all by itself?

    #59767

    In reply to: plugin: bb-Polls

    mazdakam
    Member

    here is my pack there is some modification for translating in hard code

    https://opensvn.csie.org/wppersian/bbpress/files/poll.zip

    #59766

    In reply to: plugin: bb-Polls

    mazdakam
    Member

    here is my pack there is some modification for translating in hard code

    #59764

    In reply to: plugin: bb-Polls

    mazdakam
    Member

    thanks for inserting string in functions i translated them :) and if you want i can send you the installation pack

    there is another problem in style:

    http://tinypic.com/view.php?pic=5zbd5wh

    that was not in v0.14

    #59763

    In reply to: plugin: bb-Polls

    _ck_
    Participant

    Good advice and very clear points. Not worth the risk.

    I’ve been looking at some of their templates and it’s not that amazing anyway. They also use tables. If I clear up my layout and document it well, I am sure some css gurus out there can make something even better.

    In other news I fixed the nagging refresh bug

    http://ckon.wordpress.com/files/2007/08/bb-polls.txt?v018

    (the post data that’s left on the page when you hit f5) but I hate the way it has to be done (redirect after processing the post data, back to the same page – that’s twice the load for bbpress – can’t find any other documented solutions).

    I think my next code attempt will be to make it load in place (like ajax but not really ajax).

    #51239

    In reply to: Anonymous post

    Create new Topic: Error :(((

    #59762

    In reply to: plugin: bb-Polls

    Sam Bauers
    Participant

    > Is that “legal” and if so, is it still “ethical” ? Are styles “copyright” ? I vaguely remember reading that “look & feel” cannot be copywrited.

    By the looks of their site, not legal. Style is dictated by a combination of CSS and Markup (which is code, so is copyright). To make your markup compatible with someone’s proprietary CSS you would have to investigate and probably copy some of the markup structures, which brings you into iffy legal territory. The least you will need is permission from the copyright holder.

    Copying look and feel can get you into trouble too. The look and feel of a commercial product is known as it’s “get up”, and that is considered intellectual property, more akin to a trademark than a copyright, but still intellectual property.

    Of course, IANAL and your countries laws may vary. : )

    #59760

    In reply to: plugin: bb-Polls

    Null
    Member

    I know it uses CSS, I also know users are lazy and don’t wanna edit the plugin file in oder to change some bar color.

    Using the admin page is way more easy for them to change this and easy to add in.

    Just a suggestion :D

    #59754

    In reply to: plugin: bb-Polls

    Null
    Member

    And makes it much lighter/faster. I am game :)

    #59753

    In reply to: plugin: bb-Polls

    _ck_
    Participant

    mazdakam, try this for better translations?

    http://ckon.wordpress.com/files/2007/08/bb-polls.txt?v016

    I’ve put ALL the text near the top for easier editing.

    @Null, I’m not going to spend too much time “ajax-ing” it.

    But I think i can make all the actions happen without reloading the page. I’m going to simply replace the contents in the <div id=poll></div> dynamically. Should be enough to keep everyone happy.

    #56246

    In reply to: No ajax on replies

    Null
    Member

    Well made a ticked of this :)

    https://trac.bbpress.org/ticket/718

    #59751

    In reply to: plugin: bb-Polls

    _ck_
    Participant

    Sorry, I have to learn how those translation calls work, never used them before.

    I wanted to allow the text changes to be made within the admin menu so no external files have to be edited.

    ah, found the instructions:

    https://codex.wordpress.org/Localizing_WordPress#Localization_Technology

    I’ll have 0.16 up shortly with that changed.

    #56245

    In reply to: No ajax on replies

    _ck_
    Participant

    One thing that’s probably holding that back and bugs me in that templates are not re-used in bbpress, is for example how post-form and edit-form should be integrated with maybe one or two conditional statements if necessary.

    I guess ajax post deletes are a lot easier than ajax posting/editing.

    Then there is the code block in front-page, forum.php & view.php which shows sub-forums, stickeys and posts. It’s virtually identical in each template but if you want to change one, you got to go to all three and change them in each place, the exact same code. It should be a sub-template, which of course I could hack in on my own but should be part of the core. Change it in one place, changes everywhere you see it.

    #56421

    In reply to: Freshness Linked

    _ck_
    Participant

    “get_topic_last_post_link()” and it’s dependency “get_post_link()” relies on two important things which can be easily thrown off in bbpress or it’s db

    1. if you are using a plugin or other code to change the number of topics shown on the front page or forum pages vs the topic page, get_topic_last_post_link() will calculate the last post incorrectly. This is because there is only one universal setting in bbpress right now for the number of items per page (there should be an array in the core so limit can be different than limit and then get_topic_last_post_link() will know to look at the destination limit instead of where it’s coming from)

    see my bug fix for custom limits for each page here:

    https://bbpress.org/forums/topic/custom-topics-count-for-different-pages-that-doesnt-break-last-post

    it basically forces get_post_link to recalculate

    2. get_topic_last_post_link() relies on the post_position in the bbpress table – which can get messed up if there are deleted posts, moved/merged posts, or recounts

    Recounts does not attempt to recalculate and resave the post_position. This would have to be written. It basically would have to look at all posts in a topic, sort them by the desired date order, and then renumber them.

    #56244

    In reply to: No ajax on replies

    chrishajer
    Participant

    Looks like it happened around r406 to address trac ticket 425? (the last place I can find topic-ajax.php is r384):

    https://trac.bbpress.org/browser/trunk/bb-admin/admin-ajax.php?rev=406

    https://trac.bbpress.org/ticket/141

    09/22/06 20:47:15 changed by mdawaffe

    * status changed from assigned to closed.
    * resolution set to wontfix.

    We're not even ajax posting anymore.
    Should revisit this if we ever go back.

    #59747

    In reply to: plugin: bb-Polls

    _ck_
    Participant

    Actually originally in my code, I was unserializing the data ONCE, then the array is passed globally, already in place. Serializing data is only bad if you are going to be constantly unserializing it in the same bbpress instance. I don’t do that (on purpose).

    (update, actually I have to go back and fix the process with that, I did a quick fix around a bug and fetched $topic each time but that needs to be a global also – all the code used to be in one routine so $topic was only fetched once, but that’s changed – I can fix)

    I used meta data because that’s what it’s there for. There is no need on a forum to create extra tables for stuff that won’t be used outside bbpress. I look at all the downsides of poll plugins like WP-Polls and tried to avoid them.

    The goal was to use bbpress routines wherever possible for future tweaks. As I go back and cleanup bits of code I can already see where and how to make it more ajax-like (though that’s not a priority).

    #59746

    In reply to: plugin: bb-Polls

    fel64
    Member

    I’m _not_ saying it’s better. It could be. I’m just wondering about other people’s thoughts and reasons on optimising this. :)

    #56243

    In reply to: No ajax on replies

    Null
    Member

    Got proof it had ajax posting….

    From the automattic site:

    All the features you need—like tags, AJAX posting, categorization, modular user system—and nothing you don’t.

    We want it back :D

    #59744

    In reply to: plugin: bb-Polls

    fel64
    Member

    Can someone demonstrate what the polls are like? Has someone got one live to look at?

    _ck_, you’re storing who voted for what in the topicmeta, right? You mentioned that unserialising stuff was a huge performance hit earlier, wouldn’t this be an issue especially with a large number of voters? What are your thoughts about implementing a bb_votes table to record who voted and how? (I’m not saying that’s better, I’m just wondering what your thoughts are on this because it interests me :) )

    LOL! so why did everyone cry out for a poll plugin then?

    I’m not sure everybody did.

Viewing 25 results - 29,326 through 29,350 (of 32,438 total)
Skip to toolbar