Last visit was: less than a minute ago

It is currently 20 Jun 2013, 12:04

Exercitum

Show off your bbDKP examples here ;)
Forum rules
caution, make sure your links work. posts with invalid urls will be deleted.
Fischje
Peasant
Posts: 7
Joined: 20 Jul 2009, 11:18

Re: Exercitum

Postby Fischje » 13 Jan 2011, 11:55

Hey Oougly,

this style is very pro! Are you using a raidplaner at the site?
Top

kiwipearls
Moderator Team Leader
User avatar
Posts: 347
Joined: 16 Sep 2010, 06:53

Re: Exercitum

Postby kiwipearls » 17 Jan 2011, 06:42

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.
"In the real world as in dreams, nothing is quite what it seems." - The Book of Counted Sorrows

http://senilityguild.com
Top

Oougly
Fieldhand
Posts: 24
Joined: 20 Oct 2008, 16:03

Re: Exercitum

Postby Oougly » 17 Jan 2011, 12:19

The code for the guild activity block is all client side, so you can just copy/paste into your portal page. Feel free to use it. It uses the guild activity feed from
Top

kiwipearls
Moderator Team Leader
User avatar
Posts: 347
Joined: 16 Sep 2010, 06:53

Re: Exercitum

Postby kiwipearls » 18 Jan 2011, 00:13

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:

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
Top

kiwipearls
Moderator Team Leader
User avatar
Posts: 347
Joined: 16 Sep 2010, 06:53

Re: Exercitum

Postby kiwipearls » 18 Jan 2011, 01:05

figured it out - left out

Code: Select all
<ul id="guildactivity">
</ul>
"In the real world as in dreams, nothing is quite what it seems." - The Book of Counted Sorrows

http://senilityguild.com
Top

kiwipearls
Moderator Team Leader
User avatar
Posts: 347
Joined: 16 Sep 2010, 06:53

Re: Exercitum

Postby kiwipearls » 18 Jan 2011, 02:27

I fixed your javascript to display wowhead items:

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
Top

Oougly
Fieldhand
Posts: 24
Joined: 20 Oct 2008, 16:03

Re: Exercitum

Postby Oougly » 19 Jan 2011, 15:45

I'd been meaning to fix that bug ;) glad you managed to get it working.
Top

kiwipearls
Moderator Team Leader
User avatar
Posts: 347
Joined: 16 Sep 2010, 06:53

Re: Exercitum

Postby kiwipearls » 21 Jan 2011, 00:26

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
"In the real world as in dreams, nothing is quite what it seems." - The Book of Counted Sorrows

http://senilityguild.com
Top

aenima
Modification author
Posts: 80
Joined: 24 Dec 2007, 16:29

Re: Exercitum

Postby aenima » 21 Jan 2011, 23:25

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.
Top

kiwipearls
Moderator Team Leader
User avatar
Posts: 347
Joined: 16 Sep 2010, 06:53

Re: Exercitum

Postby kiwipearls » 27 Jan 2011, 08:49

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:

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
Top

PreviousNext

Return to Examples

Who is online

Users browsing this forum: Internet Archive [Bot] and 0 guests

  • Advertisement