Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Embed's working nearly seamlessly...

edited December 2011 in Vanilla 2.0 - 2.8

I just had a few questions on how to prevent or ensure the surrounding html being shown when appropriate. For example, on my test site:

http://dragoncart.com/forum/

if you click on the "Apply for membership" button, you get the site's header twice. Same thing if you try to comment on a post and you aren't logged in.

Conversely, if you were to try to link directly to a discussion topic and cut and paste the topic link: http://dragoncart.com/vanilla/discussion/1/welcome-to-dragon-cart
the site header does not show up at all.

Can this be fixed?

Thanks so much!

Answers

  • Options
    ToddTodd Chief Product Officer Vanilla Staff

    It looks as though you are using a redirect in your signin with something like ProxyConnect. I recommend you try the following:

    1. Hide the guest box ("Howdy Stranger" with css. or
    2. Try and put target="_top" in the guest box's links with javascript.

    As for the discussion links there is an option to tell embed to redirect to the embedded url when you visit a page directly. Have a look in your embed options.

  • Options

    Thanks for the response! OK -- I tried checking the Remote URL option in embed, but still, this direct link to the thread is not embedded

    http://dragoncart.com/vanilla/discussion/1/welcome-to-dragon-cart

    Also, my css is not the best -- how do I define the css for the GuestBox? I'm experimenting with

    div.Box GuestBox {
    background-color: red;
    }

    just to see if I can get the background to show red and know that I'm affecting the right place, but so far, no dice.

    Thanks!

  • Options
    ToddTodd Chief Product Officer Vanilla Staff

    I don't know what's going wrong with your redirect, but double check your settings. I can't help you anymore with that.

    Your css is incorrect. Use this instead:

    div.Box .GuestBox { background-color: red; }
    

    Notice the period before the word GuestBox. I highly recommend you familiarize yourself with css a bit if you are going to be running a website of any size. You will feel much better about your product if you are able to do these modifications with a bit of knowledge.

Sign In or Register to comment.