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

Problem with a embedded comment

zar3xzar3x
edited October 2012 in Vanilla 2.0 - 2.8

Hi.
I have found a script that makes that people can comment other pages on my site with the vanilla comment.
Everything works fine but there is one little problem, the comment box is on the top all the time, instead of going down under the latest comment.
How it is now:

comment box ( where you write your comment)

comments ( what people has comment before)

And this is how i want it to look like:

comments ( what people has comment before)

comment box ( where you write your comment)

Here is the script i use:
`

/* Configuration Settings: Edit before pasting into your web page */ var vanilla_forum_url = 'http://mysite/'; // Required: the full http url & path to your vanilla forum var vanilla_identifier = '101'; // Required: a unique identifier for the web page & comments /* Optional */ // var vanilla_url = 'http://yourdomain.com/page-with-comments.html'; // Not required: the full http url & path of the page where this script is embedded. // var vanilla_type = 'blog'; // possibly used to render the discussion body a certain way in the forum? Also used to filter down to foreign types so that matching foreign_id's across type don't clash. var vanilla_name = 'Comments in Homepage'; // var vanilla_body = ''; // Want the forum discussion body to appear a particular way? // var vanilla_discussion_id = ''; // In case you want to embed a particular discussion // var vanilla_category_id = ''; // vanilla category id to force the discussion to be inserted into? /*** DON'T EDIT BELOW THIS LINE ***/ (function() { var vanilla = document.createElement('script'); vanilla.type = 'text/javascript'; var timestamp = new Date().getTime(); vanilla.src = vanilla_forum_url + '/js/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(vanilla); })();

`

Comments

  • Options
    aeryaery Gtricks Forum in 2.2 :) ✭✭✭

    Where did you get the script? Ask the script writer for the solution.

    For me, the wordpress addon does the same thing without any hassle.

    There was an error rendering this rich post.

  • Options

    i have tried to ask him but he is not answering. Well that the thing, I'm not using wordpress. I'm building my own site.

  • Options

    That's the "official" script that comes with version 2.1. Are you running 2.1 right now?

  • Options

    aha okey, did't know that. No i'm not

  • Options

    Is it working anyways? That surprises me quite a bit!

  • Options
    zar3xzar3x
    edited October 2012

    yeh it's working perfectly, Well it is just that i want to change it how it is showed

  • Options

    Well i solved it my self, or solved well I don't gonna use it.

Sign In or Register to comment.