Last visit was: less than a minute ago
It is currently 20 Jun 2013, 12:04
Exercitum
Forum rules
caution, make sure your links work. posts with invalid urls will be deleted.
caution, make sure your links work. posts with invalid urls will be deleted.
34 posts • Page 3 of 4 • 1, 2, 3, 4
- Fischje
- Posts: 7
- Joined: 20 Jul 2009, 11:18
Re: Exercitum
Hey Oougly,
this style is very pro! Are you using a raidplaner at the site?
this style is very pro! Are you using a raidplaner at the site?
- kiwipearls
- Posts: 347
- Joined: 16 Sep 2010, 06:53
Re: Exercitum
Great site. What are you using for the guild activity block and are you willing to share the code? I've been searching around for something like this but have not been successful.
Look forward to hearing from you.
Look forward to hearing from you.
"In the real world as in dreams, nothing is quite what it seems." - The Book of Counted Sorrows
http://senilityguild.com
http://senilityguild.com
- kiwipearls
- Posts: 347
- Joined: 16 Sep 2010, 06:53
Re: Exercitum
Hi,
I tried copying your block code from reading the source of your page, set up my feed at wipeitau - but I get a blank block.
I will keep fiddling a bit, but your block code if there is any more to it than:
Would be greatly appreciated.
I tried copying your block code from reading the source of your page, set up my feed at wipeitau - but I get a blank block.
I will keep fiddling a bit, but your block code if there is any more to it than:
- Code: Select all
<script type="text/javascript" charset="utf-8">
var html = '';
$.getJSON("GuildActivity.php?location=US&rn=Ghostlands&gn=ARCANAS%20SANCTUM&limit=20&callback=?", function(data) {
$.each(data.guildActivity, function(i,item) {
if(item.achType == "item") {
html += '<li><a class="img" href="http://www.wowhead.com/item='+item.numId+'"><img src="'+item.achImage+'" /></a><span><strong>'+item.name+'</strong> '+item.achText+' <a href="http://www.wowhead.com/item='+item.numId+'">['+item.achObjective+']</a> '+item.achTime+'.</span>';
} else {
html += '<li><a class="img" href="http://www.wowhead.com/achievement='+item.numId+'"><img src="'+item.achImage+'" /></a><span><strong>'+item.name+'</strong> '+item.achText+' <a href="http://www.wowhead.com/achievement='+item.numId+'">['+item.achObjective+']</a> '+item.achTime+'.</span>';
}
});
$("#guildactivity").html(html);
});
</script>
Would be greatly appreciated.
"In the real world as in dreams, nothing is quite what it seems." - The Book of Counted Sorrows
http://senilityguild.com
http://senilityguild.com
- kiwipearls
- Posts: 347
- Joined: 16 Sep 2010, 06:53
Re: Exercitum
"In the real world as in dreams, nothing is quite what it seems." - The Book of Counted Sorrows
http://senilityguild.com
http://senilityguild.com
- kiwipearls
- Posts: 347
- Joined: 16 Sep 2010, 06:53
Re: Exercitum
I fixed your javascript to display wowhead items:
if(item.type == "Item")
if(item.type == "Item")
- Code: Select all
<script type="text/javascript" charset="utf-8">
var html = '';
$.getJSON("GuildActivity.php?location=US&rn=Ghostlands&gn=ARCANAS%20SANCTUM&limit=10&callback=?", function(data) {
$.each(data.guildActivity, function(i,item) {
if(item.type == "Item") {
html += '<li><a class="img" href="http://www.wowhead.com/item='+item.numId+'"><img src="'+item.achImage+'" /></a><span><strong>'+item.name+'</strong> '+item.achText+' <a href="http://www.wowhead.com/item='+item.numId+'">['+item.achObjective+']</a> '+item.achTime+'.</span>';
} else {
html += '<li><a class="img" href="http://www.wowhead.com/achievement='+item.numId+'"><img src="'+item.achImage+'" /></a><span><strong>'+item.name+'</strong> '+item.achText+' <a href="http://www.wowhead.com/achievement='+item.numId+'">['+item.achObjective+']</a> '+item.achTime+'.</span>';
}
});
$("#guildactivity").html(html);
});
</script>
"In the real world as in dreams, nothing is quite what it seems." - The Book of Counted Sorrows
http://senilityguild.com
http://senilityguild.com
- Oougly
- Posts: 24
- Joined: 20 Oct 2008, 16:03
Re: Exercitum
I'd been meaning to fix that bug glad you managed to get it working.
- kiwipearls
- Posts: 347
- Joined: 16 Sep 2010, 06:53
Re: Exercitum
Hehehe yw. Makes the wowhead tooltips look pretty now.
The next thing I am trying to figure out is linking to the characters armoury. But I am not good at coding, just good at tweaking for some reason lol
The next thing I am trying to figure out is linking to the characters armoury. But I am not good at coding, just good at tweaking for some reason lol
"In the real world as in dreams, nothing is quite what it seems." - The Book of Counted Sorrows
http://senilityguild.com
http://senilityguild.com
- aenima
- Posts: 80
- Joined: 24 Dec 2007, 16:29
Re: Exercitum
Would it be possible to get a guide to how this can be done?
I would very much like to implement this block on my own website.
I would very much like to implement this block on my own website.
- kiwipearls
- Posts: 347
- Joined: 16 Sep 2010, 06:53
Re: Exercitum
First you need to get your feed link from here:
Then you need to make a block and save it to: styles/yourstyle/template/dkp/block
This is a tabular template for my portal block using acidtechred style:
change:
With the URL to your feed.
Name it guildactivity.html or something you can remember
Then you need to open news_body.html in styles/yourstyle/template/dkp and add the block.
This is deathwing block:
Refresh your template.
Then you need to make a block and save it to: styles/yourstyle/template/dkp/block
This is a tabular template for my portal block using acidtechred style:
- Code: Select all
<!-- guildactivity.html -->
<table class="tablebg" width="100%" cellspacing = "1">
<tbody>
<tr>
<div class="cap-div"><div class="cap-left"><div class="cap-right">Guild Activity</div></div></div>
</tr>
</tbody>
</table>
<table class="tablebg" width="100%" cellspacing = "1">
<tbody>
<tr class="row1">
<td>
<ul id="guildactivity">
</ul>
<script type="text/javascript" charset="utf-8">
var html = '';
$.getJSON("GuildActivity.php?location=US&rn=Ghostlands&gn=ARCANAS%20SANCTUM&limit=10&callback=?", function(data) {
$.each(data.guildActivity, function(i,item) {
if(item.type == "Item") {
html += '<li><a class="img" href="http://www.wowhead.com/item='+item.numId+'"><img src="'+item.achImage+'" /></a><span><strong>'+item.name+'</strong> '+item.achText+' <a href="http://www.wowhead.com/item='+item.numId+'">['+item.achObjective+']</a> '+item.achTime+'.</span>';
} else {
html += '<li><a class="img" href="http://www.wowhead.com/achievement='+item.numId+'"><img src="'+item.achImage+'" /></a><span><strong>'+item.name+'</strong> '+item.achText+' <a href="http://www.wowhead.com/achievement='+item.numId+'">['+item.achObjective+']</a> '+item.achTime+'.</span>';
}
});
$("#guildactivity").html(html);
});
</script>
</td>
</tr>
</tbody>
</table>
change:
- Code: Select all
$.getJSON("GuildActivity.php?location=US&rn=Ghostlands&gn=ARCANAS%20SANCTUM&limit=10&callback=?", function(data) {
With the URL to your feed.
Name it guildactivity.html or something you can remember
Then you need to open news_body.html in styles/yourstyle/template/dkp and add the block.
This is deathwing block:
- Code: Select all
<div class="panel">
<div style="margin-bottom: 0px">
<div class="inner">
<h3 style="white-space: no-wrap; font-variant: small-caps;font-size: 10px; text-align:center;">Guild Activity</h3>
</div>
</div>
<div style="text-align:center;">
<ul id="guildactivity">
</ul>
<script type="text/javascript" charset="utf-8">
var html = '';
$.getJSON("GuildActivity.php?location=US&rn=Ghostlands&gn=ARCANAS%20SANCTUM&limit=10&callback=?", function(data) {
$.each(data.guildActivity, function(i,item) {
if(item.type == "Item") {
html += '<li><a class="img" href="http://www.wowhead.com/item='+item.numId+'"><img src="'+item.achImage+'" /></a><span><strong>'+item.name+'</strong> '+item.achText+' <a href="http://www.wowhead.com/item='+item.numId+'">['+item.achObjective+']</a> '+item.achTime+'.</span>';
} else {
html += '<li><a class="img" href="http://www.wowhead.com/achievement='+item.numId+'"><img src="'+item.achImage+'" /></a><span><strong>'+item.name+'</strong> '+item.achText+' <a href="http://www.wowhead.com/achievement='+item.numId+'">['+item.achObjective+']</a> '+item.achTime+'.</span>';
}
});
$("#guildactivity").html(html);
});
</script>
</div>
</div>
</div>
</div>
Refresh your template.
"In the real world as in dreams, nothing is quite what it seems." - The Book of Counted Sorrows
http://senilityguild.com
http://senilityguild.com
34 posts • Page 3 of 4 • 1, 2, 3, 4
Who is online
Users browsing this forum: Internet Archive [Bot] and 0 guests
-
- Advertisement