Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 29,376 through 29,400 (of 32,499 total)
  • Author
    Search Results
  • #59785

    In reply to: plugin: bb-Polls

    _ck_
    Participant

    Null, I am testing using opera 9 on windows.

    I am using 0.24 of the plugin on the bbpress trunk.

    I am able to create a new poll & vote with no alerts.

    There is no problem with the css layout.

    Make sure you create a NEW poll for testing with 0.24

    Wait I just thought of something.

    Are you using a personal firewall like Norton?

    They sometimes filter javascript in bad ways.

    I am also starting to think that php 5 is doing something weird with the data escaping since you say you get it in all browsers. Unfortunately I do not have a php 5 server to test on.

    Can anyone else reproduce what Null is reporting or does it work?

    ps. you can turn off ajax if you want to test it normally by changing the “use_ajax” option near the top of the code. Set it to “false”.

    pps. Null, is this off the site in your profile?

    Can you create a poll for me to see off one of the pages so I can see the bug in action?

    #59796
    _ck_
    Participant

    1. insert “quote” button on every post like my “report” button

    2. don’t use javascript, use the arg add function and build a simple url for each quote button which references the source post id #

    3. clicking said url button does a get from the server/bbpress

    4. look for and capture the $_GET (ie. &quotepost=1327)

    5. now the hard part, tell bbpress to start a new reply post in the topic and insert the formatted text from the quoted post. I have no clue how to pass bbpress existing text to a new post. Not even sure it has the action/filter to do it. I would bet not :-(

    #59784

    In reply to: plugin: bb-Polls

    Null
    Member

    Hmm You took away the brake between the option for single or multy votes? Shame :( Ow and yes that caching in Opera is true, I always solve it to give it an unique time thingy to force Opera to reload instead of using cache.

    Also I get this bug in Opera now:

    You haven’t selected anything!

    Well I DID select something :) Can’t vote at all now, keeps saying that message!

    Also the other issue with the standard template isn’t solved yet!

    #59783

    In reply to: plugin: bb-Polls

    _ck_
    Participant

    Ah I think I see the problem.

    Unlike all the other browsers, Opera has taken it upon itself to cache the javascript request instead of actually fetching it each time (this is one way it cheats for speed).

    Will add some code for a unique URL to force it to work.

    okay, here you go, v0.24

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

    should fix the issues with opera (and anything else caching)

    I’ve also now added hidden near the top of the code a “test_mode”

    If you change “test_mode” to “true” it will allow you do keep voting on any poll for testing purposes. You can switch back and forth to view/vote etc. Obviously change it back on a live site with members or people will be able to stuff the ballot box.

    Keep in mind that previous poll data may have been made invalid by the bug in opera so start with a fresh poll. Do not keep re-using the old polls for testing with v0.24. I have not changed data structures but if the data got inserted wrong, it could be invalid for that topic.

    (I’ll make a “delete poll” option soon for administrators.

    The space it takes is trivial, so don’t worry about that)

    #59794
    fel64
    Member

    I’m sorry if I just copy and paste what I said before but I’m not sure you saw. :/

    Then the somequote function finds the li where id is post-#, extracts the post text (this depends somewhat on the page HTML but should work) and puts it in the post box at the bottom. The somequotefunction can also use the DOM probably to take out blockquotes.

    The key bit is that the function is only passed the post ID. It can get the post HTML perfectly simply itself with the getElementById method. And then remove the <blockquote> elements.

    #52685
    ganzua
    Member

    It doesn’t work for me :) It is widening the whole table but I think the sproblem is tag <fieldset>. Removing this tag solved the problem.

    #59780

    In reply to: plugin: bb-Polls

    _ck_
    Participant

    Wasn’t aware of that one. I will look into it.

    I’ve dropped it to the older escape routine.

    Will just have to see if it works with non-english pages or not.

    Is *anyone* else experiencing what Null is showing?

    I cannot reproduce it.

    v0.22 now adds ajax-ish voting so it’s almost entirely ajax except for the poll setup form which will take much more work than I am willing to do right now. (also cancel button added to poll setup)

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

    It’s getting really good, ready for the the members to give it a go.

    Can’t believe I didn’t have any code at all for this three days ago and its over 15k now with nearly 400 lines.

    Now I need someone to come up with some pretty CSS styles.

    #59779

    In reply to: plugin: bb-Polls

    fel64
    Member

    Can you use $bbdb->escape() ? In future you could even use $bbdb->prepare() but I’m not sure how that one works.

    #59805
    fel64
    Member

    Are your usertables integrated? If they are it shouldn’t matter what login form you use and your userdetails should be identical, a change in one system resulting in a change in the other. In that case you can simply but the WP login forms back and integrate cookies.

    If they are not integrated and you don’t want to do so, a solution could be to load bbPress when you load WP [edit: but again unless you’re integrated you’ll have function name collisions so that’s not an option] and use the login_form() I believe it is template tag.

    Or you could just look at what the bbP output login form is like, copy the HTML into wordpress and let users use that. No reason why that shouldn’t work. :)

    ganzua, that’s not all that helpful.

    #59792
    fel64
    Member

    What I think you should do is use a bit of nifty javascript, like so:

    <a href="" onclick="somequote( /* post_id */ ); return false;">Quote</a>

    Then the somequote function finds the li with id post-#, extracts the post text (this depends somewhat on the page HTML but should work) and puts it in the post box at the bottom. The somequote function can also use the DOM probably to take out blockquotes. Quoting people isn’t something that needs bookmarking, at least not for my tastes, and reloading the page is annoying. But then quoting people is usually annoying anyway. You’re on a forum, why do you have to quote someone else’s post if other people can see it just above? Meh, personal preference :P

    #56384

    In reply to: Plugin: bbMenu 1.1

    Null
    Member

    BOX help :D:D:D:D:D can’t figure it out! Changed al $r into r1 etc mixed them did all variations, nothing worked. The foreach is wrong i guess…

    #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

Viewing 25 results - 29,376 through 29,400 (of 32,499 total)
Skip to toolbar