Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 30,851 through 30,875 (of 32,453 total)
  • Author
    Search Results
  • #55241
    macwise
    Member

    In regards to Mirce’s solution, I would think a more global (and simpler) solution would be this if statement:

    <?php if ( bb_is_user_logged_in() ) { ?>;
    --PUT WHATEVER YOU WANT THEM TO SEE HERE--
    <?php } ? >

    This way you don’t need to find out WHO the user is (user_id), but simply whether or not they’re logged in.

    I’m pretty new to this, though, so maybe Mirce knows something I don’t?

    #55237

    In reply to: Help with mod rewrite

    mirce
    Member

    I really do not understand,

    http://www.dfur.com/designer_furniture/page/2 redirects 301 to http://www.dfur.com/designer_furniture.

    Why is this? I have no 301 in htaccess!!! Is this a bbPress thing?

    URL=http://www.dfur.com/designer_furniture/page/2

    Result code: 301 (MovedPermanently / Moved Permanently)

    #55177
    spencerp
    Member

    I wouldn’t really expect this Forum Category hack/enhancement to last too much longer though… Read from here down:

    https://bbpress.org/forums/topic/698/page/2?replies=39#post-5087

    spencerp

    /Currently running Trunk 1.0-alpha, and the Forum Cat hack just doesn’t play nice with it. Also, like it says there, sounds like something similar is being implemented into core. I don’t know for positive, but, I uninstalled the Forum Cat hack though.. ;)

    #55138
    macwise
    Member

    chrishajer,

    Your assessment is correct on all counts. I’m even using the same setup you’re using. (bb .80 and wp integration). As for the GMT, I guess I was just expecting the correct time to be calculated on the memberlist page as well, since it’s implemented everywhere else. Isn’t that what makes the most sense? Maybe I’m missing something.

    My problem is minor, and only arises (so far) when I’m using shell to scan through my server logs, and the time on the logs is adjusted for my timezone but the time on the memberlist page doesn’t match up. Just gotta do math, which is less favorable in my case. ;)

    #55220
    macwise
    Member

    fel64,

    When you mention the “Hooks”, are you referring to the lines at the bottom that say “add_filter”? I think this is what you mean, but I thought I’d make sure. It’s time to try out my first plugin! :)

    #55219
    fel64
    Member

    You should use hooks to make it automatically call your function when that hook is called – the syntax is something like add_action('hook name', 'function name') if I recall correctly. Look at existing plugins for details of how to do it.

    There isn’t a reference for hooks that I’m aware of, sorry.

    #55146
    talgalili
    Member

    Thanks fel64 for the reply :)

    I also don’t know what to do :(

    Any one else, has any suggestion ?

    (did anyone else encounter the same problem ?)

    Tal.

    #51976
    Atsutane
    Member

    Yeah. Request already :) waiting for approval.

    #55137
    chrishajer
    Participant

    I haven’t looked at the code, but my guess is that since the dates are stored in the DB as GMT, and the time functions display times as “time elapsed since” that this is expected. Where are you seeing the actual times displayed?

    I just registered a new user. I get “Member since: March 5, 2007 (7 minutes)” and “user [profile] registered 7 minutes ago” in the profile page and the admin page respectively. The memberlist plugin shows the time as the time on the server: 03/05/07 at 02:52:44 AM (when it was actually 1:52 AM where I am.) In the database, it’s stored as 2007-03-05 07:52:44

    Where are you seeing the GMT and what functions does it affect?

    Also, I am using .80 with WP integration (for users anyway) and not using any plugins for the user timezone or anything like that. How about you?

    #55189
    tseven
    Member

    I fixed it! o/

    Remember how the cookies “looked” identical?

    Well they weren’t.

    The cookies created by bbpress added the hash to the end of the cookie name.

    Both Safari and Camino didn’t reveal this, but Flock did. I was using these other browsers as a testing platform because I needed to clear cookies in between each test.

    I added:

    $bb->usercookie = 'wordpressuser';
    $bb->passcookie = 'wordpresspass';

    To my bbpress config to solve the problem. (which I found on one of the links you sent me)

    I actually like the idea of the cookie name including the hash. Isn’t this more secure? Correct me if I’m wrong, but wouldn’t this make it near impossible for another site to read that cookie?

    Thanks for your help Trent!

    #54280
    spencerp
    Member

    Oh ok, sounds simple enough for me. I’ll handle that later on then… Thanks Sam. ;) :)

    spencerp

    Trent Adams
    Member

    You can define the parameters like the cookie name and domain, so you should be able to do what you want here. There is already functions though that can do things if a user is logged in. For example:

    <?php if (bb_current_user_can('write_posts')) : ?>
    DO SOMETHING
    <?php endif; ?>

    This has it so if the user is logged in and can write posts (default member) then do something or put in a piece of code.

    Hope that helps.

    Trent

    #51975
    Trent Adams
    Member

    That would be great if you could do that Atsutane as it allows you to have the ‘working’ code up and the ‘work in progress’ code as well! Just a thought!

    Trent

    #55186
    Trent Adams
    Member

    Steven,

    I not sure of the ‘exact’ best procedure of combining bbPress and WPMU, but these are some users that have it going:

    Simpler integration with WordPress

    https://codex.wordpress.org/Ergate/wpmu_bbPress_integration

    https://mu.wordpress.org/forums/topic.php?id=2166&replies=10

    It is a little different with WPMU as the table structures are a little different, but those posts seem to most likely have the key. Integrating with normal WP is much easier.

    Trent

    #54921
    chrishajer
    Participant

    You can have two developers (macwise and bbPress core team) working on the same code in different places. I think svn is smart enough to figure it out when you commit and svn up.

    Null
    Member

    Hi,

    Watching the TRAC, I’m seeing some new drag and drop functions for ordering the forums. Is this true? Cause I was working on a plugin to do this based on my bbmenu plugin. If this is true, I can stop devloping this, so let me know :)

    #55171
    Null
    Member

    I suggest to SEARCH these forums first, cause your questions are answered many times before. I also suggest to look at the documentation and plugins available on this site :)

    master5o1
    Participant

    Ok, what I want to do with the cookie is make it so that a someone logged into the forum gets special attention on my site…

    So, I need to get this sorted: is the random alphanumeric code at the end of the cookie name (bb_pass_alphanumeric code or bb_user_alphanumeric code) just a per user specific or can I just copy and paste MY cookie’s name as the cookie name?

    … I have looked in what I would say is the logical place to put the set cookie bit but then again, i don’t know much about bbpress… :P

    So can someone help me either find how to read the cookie per user or whether it is possible to just use the cookie name that is set for me…

    #54920
    macwise
    Member

    So, does this eliminate the possibility of keeping your own code under version control? I keep all my stuff in my own svn repository I set up myself on one of my servers. Is anyone aware of a way to share a working copy across two repositories?

    Or maybe a better question is this: Does anyone update their site through SVN AND use SVN to back up their own local code? How do you approach this problem?

    #54919
    spencerp
    Member

    If the above stuff worked for you, then all you have to do to update your bbPress installation(s) is, follow same directions to get you to that specific directory, which contains your forums..

    START>RUN>CMD>

    Type In: plink mydomain.net (make sure there’s a space between the word “plink” and your “domain.net” then hit enter)

    Type In: your passphrase (hit enter)

    The: ls

    The: cd whatever-directory-for-root (example: public_html)

    The: ls

    The: cd whatever-directory-for-forums

    The: ls

    Type: svn up (then hit enter)

    That should update whatever files in your bbPress forums directory. I use same way for doing my WP blogs too.. ;)

    spencerp

    #54918
    spencerp
    Member

    What I did was, followed this guide here:

    http://www.phileplanet.com/archives/2006/08/how-to-setup-ssh-on-windows-xp/

    Reference links:

    http://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/xp-wont-run.html

    http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

    http://www.chiark.greenend.org.uk/~sgtatham/putty/

    I login to my domain with START > RUN > CMD >

    plink mydomain.net

    -will give your user and ask for passphrase.. enter passphrase.. hit enter

    -it will give you server prompt thingy.. I type and hit enter: ls

    -will show you what’s on your domain’s root, then type and hit enter: cd public_html (which changes you to the public_html directory)

    -then I type and hit enter: ls

    (will show me everything in the public_html directory..)

    -then type and hit enter: cd forums (changes you to the forums directory folder)

    -then I type and hit enter: ls (shows me everything in forums/ folder)

    -then I run this line command:

    svn co http://svn.automattic.com/bbpress/trunk/ .

    Only thing is though, if you already have folders/files in there, you’ll have to delete everything EXCEPT the my-templates/, my-plugins/ .htaccess, any special plugin files outside the my-plugins folder, and config.php files. Before running the SVN CO line command..

    I also tried doing this:

    svn co http://svn.automattic.com/bbpress/trunk/ . –force

    Which should FORCE file overwrites within that directory, however, it won’t work on a svn checkout… Not sure why though, but.. if you follow basically what I said above, you should be ok… =/

    You should be good to go then… I hope this helps.. Good luck!

    spencerp

    #54278
    spencerp
    Member

    Oh ok, that makes sense. ;) Just curious though, should the database query that we had to run, be reversed, or..anything in the database that needs changed?

    I’m guessing that nothing major was really changed in the database, so no real worries of anything being screwed up, correct? Thanks for your reply Sam.. :)

    /So I guess this means I won’t have to worry about styling the “Gathering theme for bbPress” with Forum Categories in mind.. ;)

    spencerp

    #54414
    lonemadmax
    Member

    Yep, and with its same name. For example, put kakumei.zip in bb-templates/kakumei/ This was in the README :-), though maybe a bit hidden. Now it has its own section to be easier to spot, and there’s a one-liner to build all the zips in bash.

    Also, a bug and a security issue (hopefully) corrected in the new version.

    #53826

    In reply to: k2 for bbpress

    Alex
    Member

    Very sexy theme! I love K2, I love bbPress, and now I love this theme!

    For that added *thang* you could try and inject some FamFamFam, just as K2 has, and they would look like twins. :P

Viewing 25 results - 30,851 through 30,875 (of 32,453 total)
Skip to toolbar