Sign Up! Login: Password: New User? Forgot? Support
Top Mods!
Wowhead Search
by sonofsamedi
Digital Clock
by Wolfar15
Admin Forums
Welcome to the GuildPortal Help Community! These forums are for admin-to-admin help.
Available Forums
Delvianna (New Admin) 3/3/2014 12:00 AM EST : Having issues adding Java.
Delvianna
Posts: 5
Getting Started!

Okay, I'm new to all this and I wanted to add a rating system to my guild portal page. Just like the ones like facebook and youtube. I got the code from rating-widget.com but I'm really lost at where I'm supposed to put this. It's java code I'm assuming.
<script type="text/javascript">(function(d, t, e, m){
    // Async Rating-Widget initialization.
    window.RW_Async_Init = function(){
        RW.init({
            huid: "160739",
            uid: "9a9c3fb57549cc28bf77916b3d8bd2d0",
            source: "website",
            options: {
                "advanced": {
                    "layout": {
                        "align": {
                            "hor": "left"
                        },
                        "dir": "rtl"
                    },
                    "text": {
                        "rateThis": "Rate them"
                    }
                },
                "type": "nero",
                "style": "thumbs2"
            }
        });
        RW.render();
    };
 
    // Append Rating-Widget JavaScript library.
    var rw, s = d.getElementsByTagName(e)[0], id = "rw-js",
        l = d.location, ck = "Y" + t.getFullYear() +
        "M" + t.getMonth() + "D" + t.getDate(), p = l.protocol,
        f = (-1 < l.search.indexOf("DBG=") ? "" : ".min"),
        a = ("https:" == p ? "secure." + m + "js/" : "js." + m);
    if (d.getElementById(id)) return;             
    rw = d.createElement(e);
    rw.id = id; rw.async = true; rw.type = "text/javascript";
    rw.src = p + "//" + a + "external" + f + ".js?ck=" + ck;
    s.parentNode.insertBefore(rw, s);
}(document, new Date(), "script", "rating-widget.com/"));</script>

And then it tells me to put 
<div class="rw-ui-container rw-urid-1"></div>
In the exact spot that I need it. This is what I'm trying to do...

Name                                    Rating system

Name                                    Rating system

Doing this down the line on 1 page. I've sat here and tried to get it to work for hours but I can't figure this out. If anyone can help, please!!




TopBottom

Delvianna (New Admin) 3/3/2014 2:23 AM EST : RE: Having issues adding Java.
Delvianna
Posts: 5
Getting Started!

Nvm I got it to work.
TopBottom

Admins Online
There are   members online.
So-and-so has logged on!
%title%
%message%