Widget:Comments: Różnice pomiędzy wersjami
m |
|||
(Nie pokazano 7 pośrednich wersji utworzonych przez tego samego użytkownika) | |||
Linia 2: | Linia 2: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
/*** Required Settings: Edit BEFORE pasting into your web page ***/ | /*** Required Settings: Edit BEFORE pasting into your web page ***/ | ||
− | var vanilla_forum_url = ' | + | var vanilla_forum_url = '//gadia.pl'; // The full http url & path to your vanilla |
forum | forum | ||
− | var vanilla_identifier = ' | + | var vanilla_identifier = '<!--{$uniqid|escape:'quotes'}-->'; // Your unique identifier for the content being |
commented on | commented on | ||
/*** Optional Settings: Ignore if you like ***/ | /*** Optional Settings: Ignore if you like ***/ | ||
// var vanilla_discussion_id = ''; // Attach this page of comments to a specific Vanilla DiscussionID. | // var vanilla_discussion_id = ''; // Attach this page of comments to a specific Vanilla DiscussionID. | ||
− | // var vanilla_category_id = ''; // Create this discussion in a specific Vanilla CategoryID. | + | // var vanilla_category_id = '37'; // Create this discussion in a specific Vanilla CategoryID. |
/*** DON'T EDIT BELOW THIS LINE ***/ | /*** DON'T EDIT BELOW THIS LINE ***/ | ||
(function() { | (function() { | ||
− | var vanilla = document.createElement('script'); | + | var vanilla = document.createElement('script'); vanilla.type = 'text/javascript'; var timestamp = new Date().getTime(); |
− | + | vanilla.src = '//gadia.pl/js/embed.js'; | |
− | |||
− | vanilla.src = | ||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(vanilla); | (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(vanilla); | ||
})(); | })(); |