Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 21,226 through 21,250 (of 32,516 total)
  • Author
    Search Results
  • #88623

    In reply to: Music E-zine Forums

    k.fallman
    Member

    The contrast .. hmm.. pink on those colors – it hurted my eyes ;)

    but maybe thats because im getting old ?

    #81677

    This is certainly possible with some custom code, though the real question remains as to why you want it. Given the WordPress comment systems have a far greater “forum-ness” about them these days (pagination, avatars, html/bbcode, wyswig threading etc etc). What would be the advantage to your users of having the same content in two different places on your website?

    In fact, wouldn’t it be easier to just theme your wordpress to make your comments bigger and loko more forum like (maybe even removing the actual article on page 2 of the comments?)?

    On one of my wordpress installs, the blog-post only appears on the initial page and with no comments, and all the comments are handled under “www.website.com/blog-post/comments” so they have their own pages with more space etc. It works really well for that site in a place where I couldn’t have used bbPress due to it’s complete lack of moderation.

    #87760
    chrishajer
    Participant

    This topic has been derailed and I am going to delete the off-topic posts.

    The design of bbpress.org will not be made available for download, that I know of. It didn’t happen with the last design, but there were many duplicates created.

    If you would like to download the latest version of bbPress for testing, you will find it here:

    https://trac.bbpress.org/browser/trunk

    There is a link at the bottom center to “Download Zip Archive”, but I believe if you do that backpress does not get installed.

    If you can install with subversion, you won’t have any trouble like that, as all externals are installed at the same time.

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

    Will install the latest trunk version by subversion into a directory called bbpress.

    #88607

    In reply to: Same avatar

    Rich Pedley
    Member

    I’m not familiar with the setup, but yes if you have bridged your WPMU & bbPress installations then it should be fairly easy to do.

    Find where the avatar is stored in WP and then use that information on the bbPress side to extract the data and produce the code for the avatar.

    #88568

    Coding:

    I’ve found NotePad++ to be quite invaluable in the past year or so.

    I’ve use both Komodo and the PHP plugin for Eclipse in the past; but frankly once you use Visual Studio and intellisence, i find half-assed IDE’s to just annoy me. Thats purely personal ofcourse, but it’s lead me to keeping the NotePad++ installer on my USB stick just incase i have to work somewhere on the move (how sad is that???).

    Somethign else that won’t endear me to anyone, when outputting tables or visually formatted HTML, Dreamweaver makes life so much easier. I can’t count the amount of time i’ve saved by churning some HTML out on Dreamweaver and then just finxing the code with one or two saved Reg-Ex’s.

    FTP:

    Filezilla

    Images:

    Fireworks is still awesome. I thankfully haven’t had to touch Photoshop for any theming in years and years. I’ve not tried the latest version of GIMP, but it’d have to be something special to overtake FireWorks.

    UML / Process / User Flow

    I use Visio.

    Edit: Ok I realise that i’ve just mentioned both Adobe and Microsoft products, so i expect the comments to come flying in ;-) Night all!

    #88589
    Rich Pedley
    Member

    Haven’t found a built in method.

    One other problem you have is users already logged in. I’m not sure there is a way to automatically log them out.

    Not sure I can easily code anything for this, but if you ever do get a solution it would be worthwhile letting other know how you managed it.

    #88588
    honestscott
    Participant

    Thanks!

    For the time being I have renamed the log-in and register files in the root folder.

    I try them (log-in/register links) and I get url not found, but it seems like some of the old members are still logging in and PMing me…weird, huh?

    I am not a coder by a long shot, I just want to close my forum, yet make it totally readable.

    #88565
    Gautam Gupta
    Participant

    I use Komodo to code + Filezilla to upload, though Komodo can automatically connect to FTP and edit the files there but it hangs while doing that.

    #34312
    paulhawke
    Member

    Purely a matter of taste – and a chance for everyone to weigh-in with their own opinion without anyone being “wrong” – what’re your preferred development tools when dealing with PHP, and more specifically, with WordPress / bbPress code?

    In my day-job I live and breath Java code and use JetBrains IntelliJ IDEA, which itself doesnt support PHP out of the box but a sister product from JetBrains (was called “WebIDE” and now I think is “PHPStorm”) does an exceptionally good job of supporting development in PHP. I was also pleasantly surprised and find myself occasionally using NetBeans v6.8 too. Both development environments allow very fast cross-referencing of methods. Both tools mirror local development remotely – handling the upload/download of changes.

    If I’m not in an IDE, then it’s TextWrangler on my Mac or UltraEdit on a PC, uploads handled using FileZilla.

    #88418
    Sam Bauers
    Participant

    If someone takes your GPL work then modifies and sells it, that is not against the terms of the GPL provided they distribute it under the same GPL licence. That means that anyone who has the modified source code (and every purchaser should have it) can redistribute it for free again (under the GPL license).

    If they are distributing the themes under a different license, then they are breaking the terms of the GPL.

    If they are compiling or obfuscating any part of the program and not making the source code available to those they have distributed it to, then they are breaking the GPL.

    #88557
    motorambler
    Member

    Ok nevermind. I was using ‘localhost’ as the host name. I copy/pasted the mile long hostname from my GoDaddy settings & so far so good :)

    #88417
    zaerl
    Participant

    It was just a correction. It’s fair to sell GPL software. If you, the developer, choose a copyleft-like license as the GPL you know what other people can do with your code (and what they can’t.) Basically speaking you put your work in the public domain with the only difference that others can use and distribute your software under the terms and condition of the GPL. If you don’t want other people to make money with your work than you can choose a more restrictive license like the Creative Commons Non-Commercial.

    #88466
    pagal
    Participant

    @ kevinjohngallagher… now it works :D

    @ mr_pelle..I’m really sorry that after using bb-load.php into wp I was facing various problems..they are pointed at

    https://bbpress.org/forums/topic/wordpress-registration-and-login-via-bbpress

    @ kevinjohngallagher… I really appreciate your help that you safe me from using bb-load.php into wp ..thanks, :-)

    Now I’m agree with your statement i.e.

    Remember, hardcoding is your friend, because YOU control it :)

    #88465

    @pagal

    Hi Pagal,

    the code you’ve linked to looks quite identical to both mine and Gautam’s; but to clarify that also only going to work on WordPress files (not bbPress) unless you have Deep Integration enabled and working.

    Presuming then that you’re working from wordpress and/or with deeply integrated bbpress this code should help:

    if ( !$user_id ) {

    $current_user = wp_get_current_user();

    $user_id = $current_user->ID;

    } else {

    $user_id = (int) $user_id;

    }

    if ($user_id != 0)

    {

    $userdata = get_userdata($user_id);

    $pagal_this_is_the_username_you_want = $userdata->user_login;

    }

    #88464

    Morning lads,

    Sun is shining here, hope you’re all having a great day.

    @mr_pelle

    I think we’re going in circles a little here; and its a position we’ve all been in and can feel your pain a little.

    I see where I might have confused you yesterday.

    Including the WordPress loader in the bbPress config file, so that bbPress has access to WordPress functions, is where most (if not all) of the deep integration questions/work/answers have been derived from. It’s a one way system, calling wordpress functions in bbpress. It’s not a two way system (where wordpress can call bbpress functions, and vice versa).

    Hardcoding is not a good choice IMHO, because it means you have to update many pages everytime you change your mind just on a single line of code

    Not really. You’d have to edit it once in the header in wrodpress and once in the header in bbpress. Being absolutely frank with you, that is the minimum you have to do everytime you make a change to your themes anyway because bbpress and wordpress don’t load the same theme files.

    The way to think of bbPress and WordPress is of two separate systems that share login cookies and you can fake each’s themes make look like each other.

    It’s a tough nut to get round, espeically with them being built and maintained by the same company (who are usually awesome at this sort of thing), but really, and it pains me to say this, they don’t integrate. You/me/everyone read the front page and assume it’s not [trying not to say the word ‘lie’ here]; and we expect it to be one thing and it’s not. I don’t say that to casue annoyance, i’m just tyring to manage expectations a little.

    bbPress and WordPress are two separate systems which can be made to share login cookies.

    Wasn’t bbPress born for this (and more)?

    Nope.

    bbPress was born for the sole purpose of running the wordPress support forums.

    Cookie integration was a nice idea added sometime around 0.8 (as i recall), was awesome for 5 weeks with 0.9 before a wordpress update broke it. Automattic got round to fixing it some 14 months later.

    bbPress playing nice with wordpress is a nice hook on the front page, it is not now, nor shall be, it’s purpose. (hence Matt telling people to not use the software, and that he’s scrapping it to become a wordPress plugin instead).

    Not to mention that the code you suggested does not handle login errors…

    Yeah it does. Login errors are always handled on the login page. (wp-login.php and bb-login.php). All we’ve built is a form that points to those pages.

    If you login successfully you’ll be redirected back to your page, if not you’ll hit the original/default login page with the error.

    if you’re looking to recreate the wp-login/bb-login page on every/all pages with all the functionality that entails, then you’ve a much bigger job on your hands, and if i’m honest, i’d head to the wordpress forums for some help there (in my experience wordpress is fussy about wp-login being used).

    #88463
    pagal
    Participant

    Dear buddies I want to correct you both..

    the code was https://codex.wordpress.org/Function_Reference/is_user_logged_in

    <?php

    if ( is_user_logged_in() ) {

    echo ‘Welcome, registered user!’;

    } else {

    echo ‘Welcome, visitor!’;

    };

    ?>

    and with this there is no need to call bb-load.php into wp…

    Now I’ve replaced kevinjohngallagher’s html form with, Welcome, visitor!.. and its working fine now..

    but the problem is the after login I want to display the register user’s name and his profile and log out link..suppose

    Edit My profile | Admin | Log out wanna replace with “Welcome, registered user!”

    but I’m not able to execute the php code to display the logged in user name into echo ‘php code’;

    is there any solution?

    Thanks

    #88462
    mr_pelle
    Participant

    mikkelsen said:

    I want to call up <?php login_form(); ?> from bbPress and show it in my WordPress header.

    I thought bbPress were not yet loaded in his WP header…

    Hardcoding is not a good choice IMHO, because it means you have to update many pages everytime you change your mind just on a single line of code. Not to mention that the code you suggested does not handle login errors…

    I’ve successfully completed a “deep integration” and I’m currently testing another pretty integrated installation, without users db sharing and it works fine.

    Why do you think bbPress and WordPress don’t play that nice together (reguardless of what the front page of this website says)? Wasn’t bbPress born for this (and more)?

    #88461

    I’m really confused, how can you be using bbpress and not have bb-load be called? bbPress doesn’t load if it’s not called :S

    First:

    If you’re building a wordpress website and want to include bbPress functions, I’d strongly suggest re-reading this:

    Deep Integration, the allowing of wordpress functions to be called in bbPress, is totally unsupported and unintentional. If you can hack it to make it work then cool, but really, you’re on your own for the most part.

    Calling bbpress functions in wordpress is always always always going to cause issues in the long run. it wasn’t built for it in any way shape or form. It’s a square peg in a round hole scenario, and if you can push something through then awesome, but sometimes it’s just not worth it.

    Second of all, you could do this:

    <br />
    if(function_exists('bb_is_user_logged_in'))<br />
    {</p>
    <p>}<br />

    Third:

    in WordPress:

    <br />
    <?php<br />
    if ( is_user_logged_in() ) {<br />
    // Logged in user<br />
    // Hardcode your form here<br />
    } else {<br />
    // Not logged in<br />
    // Hardcode your form here<br />
    }<br />
    ?><br />

    in bbPress:

    <br />
    <?php<br />
    if ( bb_is_user_logged_in() ) {<br />
    // Logged in user<br />
    // Hardcode your form here<br />
    } else {<br />
    // Not logged in<br />
    // Hardcode your form here<br />
    }<br />
    ?><br />

    Overall:

    I suppose what I’m trying to put across to mr_pelle, pagal and mikkelsen is that you’re trying to come up with an eloquent/easy/catch-all solution that doesn’t really exist.

    bbPress and WordPress don’t play that nice together (reguardless of what the front page of this website says). Integrated cookies (logged into one means you’re logged into the other) is really where the buck stops; and any deeper integration is really really unsupported.

    You’re best bet, without a shadow of a doubt, is to hardcode things to look and act the way you want them; and treat wordpress and bbpress differently. The realism is if you can’t code, then bbPress is definately not for you – sadly. We can help and guide the best we can, and there are some great people helping on this board, but at the end of the day, we can’t give out generic answers that are sure to work I’m afraid (honestly we’d love to).

    #88460
    mr_pelle
    Participant

    The simplest and most straight forward solution is to work out what you want to do, and code that directly.

    In this case:

    <?php
    if ( is_user_logged_in() || bb_is_user_logged_in() ) {
    // Logged in user
    // Hardcode your form here
    } else {
    // Not logged in
    // Hardcode your form here
    }
    ?>

    You cannot call bb_is_user_logged_in() without prior inclusion of bb-load.php, though…

    #88458
    pagal
    Participant

    @ kevinjohngallagher … I’m not a techi person.. can you please tell me what code of bbpress will use in “Hardcode your form here” and”Hardcode your form here” to show the bbpress login form into wordpress…

    #88457

    Hey guys,

    You’re really trying to do something here that was never intended.

    bbPress was coded to create the same (or a readable) cookie from wordpress.

    Deep Integration, the allowing of wordpress functions to be called in bbPress, is totally unsupported and unintentional. If you can hack it to make it work then cool, but really, you’re on your own for the most part.

    Calling bbpress functions in wordpress is always always always going to cause issues in the long run. it wasn’t built for it in any way shape or form. It’s a square peg in a round hole scenario, and if you can push something through then awesome, but sometimes it’s just not worth it.

    The simplest and most straight forward solution is to work out what you want to do, and code that directly.

    In this case:

    <?php

    if ( is_user_logged_in() || bb_is_user_logged_in() ) {

    // Logged in user

    // Hardcode your form here

    } else {

    // Not logged in

    // Hardcode your form here

    }

    ?>

    Remember, hardcoding is your friend, because YOU control it :)

    #88447

    Also, I have no idea how to view error logs. I’m using Cyberduck for my ftp if that helps :)

    #88494
    mzimmers
    Member

    Ah, OK, I get it. I didn’t realize that the window.open stuff was a javascript method (I told you I’m a novice!). Thanks for the clarification.

    I think I also found another way to get the target=”_blank” code to validate (sort of): I noticed that my main site (www.scopedin.com) doesn’t return errors on that same sidebar code. I think it’s because the DOCTYPE at the top of the page is 1.0 transitional. I suppose I could use this in my bbpress header as well?

    Thanks again for the help.

    #88493
    chrishajer
    Participant

    You don’t need a plugin at all, since these are not posts with the links: they’re sponsored images in your template.

    You need to find this:

    target="_blank"

    And replace it with this:

    onclick="window.open(this.href); return false;"

    in whatever file you added the target=”_blank” to. Sounds like it’s in your sidebar. You will need to manually edit that file. If it’s not a static file and is being generated by WordPress or something, then you would need a WordPress plugin to add the links with the javascript onclick instead of deprecated target=”_blank”.

    iq9
    Member

    I heard back from Network Solutions about this issue. Their response was basically:

    Our SSL proxy doesn’t allow server-side variables to detect HTTPS (secure). All server-side coding will always detect HTTP (non-secure), and for programs that attempt to redirect non-secure connections (http://) to a secure connection (https://) will result in an infinite loop and server error after 30 seconds (newer technology browsers such as Firefox will detect this loop almost immediately and give up before 30 seconds). We cannot change this setting on our servers.

    There is a 2nd paragraph with their recommended workaround, which is similar to my approach above of looking for ‘https:’ in the scheme of the URL.

    I’m going to see if the bbPress developers would include the above code in their core. Seems like a worthwhile addition, or maybe they are aware of this and intentionally do not include it for various reasons.

Viewing 25 results - 21,226 through 21,250 (of 32,516 total)
Skip to toolbar