Forum Replies Created

Viewing 15 replies - 1 through 15 (of 17 total)
  • Forum: Fixing WordPress
    In reply to: Remove login page
    Thread Starter mark-w

    (@mark-w)

    Ok given that it might be annoying, I just don’t have a choice in the matter!

    I don’t think I can write a plugin for this since I directly edited wp_login.php, I just added the following when username/password combo is invalid:

    // Just go back to our front page.
    wp_redirect(get_settings(‘siteurl’));
    exit;

    I don’t know how a plugin could change the logic in the same manner. Anyone know where I can start looking?

    Thanks,
    Mark

    Forum: Fixing WordPress
    In reply to: Remove login page
    Thread Starter mark-w

    (@mark-w)

    Hi moshu,

    I don’t want non-posters/commentors to have to login at all – that’s the way I have it setup now.

    However for those that want to comment, I do want them to login. But I think they’ll be confused when they start off in my theme, then try to login and are presented with a completely different theme on a separate page, which makes it look like they’ve left the site.

    I’ve polled my friends and they agree it’s just strange to ‘leave’ the site to login through something called ‘wordpress’. I think everyone is just used to logging in through a small ui on a sidebar at most other sites.

    That’s really my only motivation behind this, technically there’s nothing wrong with the way it’s setup and it doesn’t bother me, but for my end users I want it to be as smooth as possible.

    As for a plugin, I don’t think I’ll be able to make one for this since it requires just changing the source in wp_login.php, I have to do some reading on the plugin API.

    Thanks,
    Mark

    Forum: Fixing WordPress
    In reply to: Remove login page
    Thread Starter mark-w

    (@mark-w)

    Well, I went into wp_login.php and hacked it so that if login fails users just get redirected to my front page instead of having the wordpress login page be generated.

    I wonder if there’s any chance of turning this into a plugin, since this type of solution has 1 million things wrong with it.

    Thanks,
    Mark

    Forum: Fixing WordPress
    In reply to: Remove login page
    Thread Starter mark-w

    (@mark-w)

    Hmm ok so I found a plugin that puts the login in the sidebar.

    It does about 75% of the job. It handles skipping the wordpress login/out page (so looks like users stay ‘in my site’ when they’re loggin in/out).

    https://template.sfong.net/?p=35

    If I enter the wrong login/username combo I still get redirected to the wordpress login page! I didn’t think this would happen after looking at the source code – I’m not too familiar with PHP but from what I can tell the logic for redirecting back to my site after a successful login should be the same as if the login was incorrect:

    [code]
    $return .= "
    <input type='submit' name='submit' title='click' class='button' value='";
    $return .= $button_text."' />";
    $return .= "<input type='hidden' name='redirect_to' value='";
    $return .= $_SERVER['REQUEST_URI']."' /></form>";
    echo $return;
    [/code]

    is there any chance of modifying this?

    Thanks,
    Mark

    Forum: Fixing WordPress
    In reply to: Remove login page
    Thread Starter mark-w

    (@mark-w)

    Hi doodlebee,

    Ok, so the metasection ‘login’ link is so that I can get to the admin interface from my front page.

    If I remove it, how do I (admin) get back to the interface anymore? I could probably just directly navigate to:

    https://mysite.com/wordpress/wp-admin/

    and it does the same thing yeah?

    Then like you mentioned, to integrate login/register to my site, I create my own link and just stick that portion inside one of my pages or something?

    Thanks,
    Mark

    Forum: Fixing WordPress
    In reply to: Remove login page
    Thread Starter mark-w

    (@mark-w)

    Shoot – I think I may have described my problem poorly. It seems I only get this forced login page when I click ‘logout’ on the meta sidebar.

    At the forced login screen, I can just say ‘back to blog’ and it lets me back to my site without having to login.

    So I guess non-logged-in users really can view my site ok. But I’d really prefer not having that wordpress login screen if they click ‘login’ or ‘logout’ – I’d rather have my own page or a little edit field in the sidebar for them to do that – otherwise they may become disoriented and confused.

    Thanks,
    Mark

    Forum: Fixing WordPress
    In reply to: Remove login page
    Thread Starter mark-w

    (@mark-w)

    Hi PozHonks,

    If I remove that from the sidebar, then next time I come to the site I have no option to login or out. Was that the expected result? I really just want to get rid of that prompt page with the wordpress login, that’s all. Still I’d like to have the login link on my sidebar.

    Thanks!
    Mark

    Thread Starter mark-w

    (@mark-w)

    Actually I was looking in the wrong place, I seethe stats plugins has this stuff. Do any of them allow you to display in the Page itself how many times the page has been viewed? I’d like my users to be able to see this at the head of the page.

    Thanks

    Thread Starter mark-w

    (@mark-w)

    thanks!

    Thread Starter mark-w

    (@mark-w)

    Ok thanks vkaryl, I am trying out this plugin:

    https://www.zirona.com/software/wordpress-advanced-search/

    Thread Starter mark-w

    (@mark-w)

    ok yeah I got a syntax hilighter plugin and with a little configuration it is working great,

    Thanks

    Thread Starter mark-w

    (@mark-w)

    cool I got a nice one, thanks.

    Thread Starter mark-w

    (@mark-w)

    ok will do thanks for your help,

    Mark

    Thread Starter mark-w

    (@mark-w)

    Oh that is dope it is working now. You’re right, it was just that my theme didn’t have the right comments code added.

    Related to this, is there anyway to preserve formatting of a comment? For example if I wanted to comment with some formatted C++ code, right now all the indentation gets lost:

    for (int y = 0; y < 50; y++) {
    for (int x = 0; x < 25; x++) {
    DoSomething(x,y);
    }

    Can users enter a <PRE> tag around it or something?

    <PRE>
    for (int y = 0; y < 50; y++) {
    for (int x = 0; x < 25; x++) {
    DoSomething(x,y);
    }
    </PRE>

    Thanks,
    Mark

    Thread Starter mark-w

    (@mark-w)

    Ok I will check it out, thanks.

    The collapsable sidebar worked great using the following plugin:

    https://www.webspaceworks.com/resources/wordpress/30/

    The last time I tried using CMS type packages was like 5 years ago, this one is really great, it’s actually easy to use.

    Thanks

Viewing 15 replies - 1 through 15 (of 17 total)