Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,151 through 27,175 (of 32,495 total)
  • Author
    Search Results
  • #66669
    steveg190
    Member

    I’m interested in this too. Mostly I’m interested because my current forum that I’m converting from (phpbb) allows you to preview your post, and that feature will be sorely missed. Bring able to save a draft of it would fit right along side a preview, pretty much just like the way WordPress allows authors to save/preview drafts. Now, I’m not a php person in any way (although I wish I was) but I can see it could easily work to make a plug-in or mod that would allow you the option to save your post draft for later with a different post status and pull it or all your saved/unpublished drafts into a single page by pulling them based on the status and your user id. From there you could edit those posts and “publish” them by saving and changing the status code to so that bbPress “sees” it as a valid post rather than a “deleted” or “saved draft”.

    I tinkered with this idea a little while ago but with my php knowledge limited to hacking peices here and there to suit my needs it’s just too much of a task. I can’t imagine it would be too complicated to implement. Let us know if this pans out Vili or anyone else who has an urge to work on something like this.

    #3763
    #66671
    _ck_
    Participant

    bbPress has similar functions to detect what page you are on, ie. is_front() is_forum() is_topic() is_view() etc.

    do a search of the code for “function is_”

    #66653
    jimmie65
    Member

    I think I can transfer to phpBB. So there is a plugin to transfer from phpBB to BBpress? I’ll look for it.

    If not, I’ll grab my database admin friend and see if he’ll help me.

    (All moot till Yahoo gets mySQL working again; I can’t even access phpmyadmin. :( )

    #66031
    grifter
    Member

    oops! Just spent ages upgrading my blog today to 2.6 which broke an afternoon’s work I spent a while back integrating with BB press 0.9. Thankfully the 1.0 Alpha release isn’t too far away :-)

    #66657

    In reply to: Language Instalation

    _ck_
    Participant

    I’ve never done it myself but I believe you first have to put the translation es_ES.mo file into bb-includes/languages directory.

    Then you go into bb-config.php` and change the BBLANG setting:

    define('BBLANG', 'es_ES');

    Here is more info:

    http://www.degabriel.es/2008/04/24/traduccion-de-bbpress-09-al-castellano/

    and the file:

    http://www.degabriel.es/wp-content/uploads/2008/04/es_es.mo

    #66663

    In reply to: Search???

    _ck_
    Participant

    Unfortunately by some oversight, there is no directly link to the search feature on the default bbPress 0.9 templates (this is fixed in the next version – perhaps too prominently given how weak the built-in search is in bbPress).

    You can make a link to search.php yourself in the header.php or footer.php to have it on all pages.

    <a href="<?php bb_option('uri'); ?>search.php">Search</a>

    Or you can make a mini-form that passes the field “search”

    <form action="<?php bb_option('uri'); ?>search.php" method="get">
    <input name="search" id="search"></form>

    #3758

    Topic: Search???

    in forum Troubleshooting
    sempervideo
    Member

    Hi,

    usually i am not that stupid, but here you got me. :-)

    Can someone please tell me where i can find the search to search my forum?

    Do I have to activate it? According to some posts it should be build-in.

    I have a search.php and search-form.php in my template folder. So it should be somewhere.

    please help me out, will you.

    Thanks a ton.

    Greetings

    Andy

    #66655
    Null
    Member

    His name (and the link) is the spam! Translated it is: get a loan cheap and: let us calculate your morgage (don’t know if this is spelled correctly).

    It is spam it isn’t a normal name. Spam in my mail have the same name :) The sites are identical too.

    Also his replies aren’t sound either. He just posted stuf so his name and link are seen and (hopefully) clicked.

    #66652
    _ck_
    Participant

    Unfortunately that software is so new I don’t think anyone has done a conversion yet.

    If you can get it into phpBB format it might be possible to convert from there.

    If you are comfortable with phpmyadmin and some php code you can always attempt to do it yourself too.

    #66621
    djp
    Member

    Ok Chris, it should be fixed.

    Thanks again for the heads up.

    :)

    #66620
    djp
    Member

    Thanks for the feedback Chris. Looks like the footer is inheriting a parent CSS style or something.

    It looks fine on my mac in FF & safari, and it looks fine in IE6 & 7 on a pc.

    Will look into it & repost the url for you to have a squizz.

    Cheers, and thanks again :)

    #66569
    dpeeples
    Member

    i followed your instructions as well as i could but got a messed up page after inserting the

    $bb->uri = ‘http://your-domain-name.com/forum-path/&#8217;

    portion in the config code.

    Where exactly should it go?

    thanks much for the help.

    #66618
    Null
    Member

    Ow okay, it just makes it confusion for some people having 2 folders having (almost) the same name.

    Putting my stuff back into my-plugins then :)

    #66606
    _ck_
    Participant

    If you look at the instructions, you can get a list of names by using <?php mini_track(2); ?> instead of (1)

    I’ve updated the code to link to profiles.

    That’s all I’m doing on that plugin, if you want more, you need to learn PHP.

    #66612

    In reply to: Pilates Digest Forums

    thion
    Member

    @_ck_ – you of all people should know that you can do amazing things with bbPress ;).

    @gio500000 – nice and clean design – I like it.

    #3746
    djp
    Member

    Hi all

    After much tweaking & relatively extensive style changes, I finally went live with my website.

    I needed to make bbpress fit in with the clean, simple style of the rest of the site & to be completely honest, I think I did a great job. Please have a look at the forum as well as the rest of the site to get a feel of what I mean by ‘fitting in’.

    Comments are most certainly welcome, good & bad :)

    http://www.mastercleanse.co.za/forum

    #66594
    810798
    Inactive

    thanks _ck_,

    It seems to be a problem with when you include the wp-config… There must be a check somewhere in one of the files included in it that checks if that has been registered or is a banned blog, and wp-admin must be hardcoded in somewhere to be a safe directory.. i just havent had time to go through and look for where that happens.. been making a bunch of other customizations instead, as this problem can be solved by just using sub-domains..

    James

    #66605
    Null
    Member

    Okay, I’ve tested the new one. I see there is a hyperlink now and when you click it, I see this (statuspage?):

    There are 1 total users online. 1 of them are members: Admin. 1 of them are on this page.

    Admin (1) - 1 minutes ago - /mssp/?mini_track_display

    The last part /mssp/etc is a link too? I think this is a bug.

    Sec:

    Is this also possible?

    These members are currently on this page: jhon, kim, jack, etc

    Third: It would be cool if the names are clickable and you go to their profile while clicking them.

    #66609

    In reply to: Pilates Digest Forums

    _ck_
    Participant

    Very nice! For a moment I was almost going to accuse you of advertising a non-bbpress forum here, LOL. It fooled me :-)

    #66600
    _ck_
    Participant

    Well I started to write some code but I then remembered why I did it completely on my own. There are many problems you encounter with trying to do this efficiently with as few DB queries as possible. Using the built in bbpress functions when there’s only a couple people online are fine, but when it gets to many times that, it’s too inefficient.

    There’s also the issue of tracking NON members. Much more tricky than authenticated users.

    I recommend you modify simple online list to track position. Much easier.

    If you know PHP, here’s the process:

    1. take the IP of the current user, change it into ip2long and make that the index of an array or object

    2. store the request_url for that index

    3. store the time() for that index

    4. if they have a user id# (a member) store that

    5. save the array via bb_update_option (not usermeta)

    6. on every bbpress load, do a bb_get_option for the usertracking, which is the array of all the above

    7. comb through the time() for timestamps older than 30 minutes and discard them

    8. count the remaining items to see how many online in past 30 minutes

    9. comb the request_url to see if it == your bbpress front page and count

    #66599
    _ck_
    Participant

    If you know some basic PHP this is a very easy thing to store/track but you’ll need some more extensive code to print it out.

    Essentially what you’d want to do is store in the usermeta the bb_location and timestamp on every load of bbpress via a simple plugin.

    Then to count the number of users in the front page you’d do a mysql query to limit by time and count the number of “front-page” that appear.

    I’ll give you some rough code in a minute, it’s fairly straightforward.

    #66598
    Null
    Member

    Yeah about that plugin of yours, hurry up with it, many people want that one :):)

    I can also test it if you like on my board

    But back on topic: lets say I want to use bb_location since I ONLY want to track users on the frontpage. Is this possible without extending the users table?

    If a user goes to another page or leaves the bb_location will change. Thats not a problem since I only want the people from the frontpage.

    And how would you update this? At page load or something? Perhaps I should request this in the plugin section since I have no idea how to make a clean plugin of this…

    #66416
    _ck_
    Participant

    Oh shoot, you are correct, I allowed them in the end by default. I might remove that.

    update: oh wait, BMP is only allowed for admin, no one else has that allowance – so it’s not an issue, I forgot I did that. The reason you got “denied mime” is because it’s a bug where I didn’t add “image/bmp” to the allowed mime types for admin. I’ve reposted 0.1.9 with that fixed.

    But that’s a strange error I need to explore on the png. Apparently “Error Occurred While Processing Request” is a mysql error? Interesting.

    Did the filename have any strange characters? Quotes? Apostrophies? Unicode?

    #66595

    In reply to: Install error

    chrishajer
    Participant

    I’m not really sure why, but I can guess. Do you have a file in bb-includes called compat.php? /bb-includes/compat.php

    In that file, line 10 says “if this function does not exist, create it.” That PHP function is available in newer PHP versions only (greater than or equal to 5.1.2). So, for compatibility, if the function is not available on your server, bbPress creates it in compat.php.

    Do you have that file, and does line 10 look like this?

    if ( ! function_exists('hash_hmac') ):

    What bbPress version did you install, if it’s not the latest 0.9.0.2 release? Are you certain all the files were uploaded properly?

Viewing 25 results - 27,151 through 27,175 (of 32,495 total)
Skip to toolbar