Aiken Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/me-yat.jpeg) Posts: 333 Status: Offline Gender: Male Location: In a very lonely place, the domain of despair Age: 35 Joined:
pmskypemsnyahooxfire | Simple Guild List code (24th Feb 10 at 4:57pm UTC) | |  Code: - <script>
-
- function GuildListing(Page){
-
- GuildPages = Math.ceil((GuildList.length + 1)/10);
-
- var GuildStart = (GuildPage * 10) - 10
- var GuildEnd = GuildStart + 10
-
- var Guildpost = '<table class="border" width="100%">\n<tr height="20">\n<td class="title1" colspan="2">Guild List - Page ' + Page + '</td>\n</tr>\n';
-
- for(i=GuildStart;i<=GuildEnd;i++){
-
- if(i%2 == 0){
-
- GuildPost += '<tr height="30">\n';
-
- }
-
- if(GuildList[i]){
-
- GuildPost += '<td class="window1" width="50%">' + GuildList[i][0] + '</td>\n';
-
- } else {
-
- GuildPost += '<td class="window2" width="50%"> </td>\n';
-
- }
-
- if(i%2 == 1){
-
- GuildPost += '</tr>\n';
-
- }
-
- }
-
- GuildPost += '<tr height="20">\n<td class="title2" colspan="2">Close Window</td>\n</tr>\n</table>\n';
-
- return GuildPost;
-
- }
-
- </script>
-
There is a variable called GuildList which is a multidimensional array | |
vF forums: Perfect World RP BLEACH Universe - Under Construction / Testing Phase Xen Qarna RP - Stage I Vyren Entar Battle Network RP - Under Construction / Maintenance Mode Enabled the Final Anime Hideout |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: Simple Guild List code (27th Feb 10 at 7:57am UTC) | | Is it not working or something? You've simply posted a code and not stated what you want us to do! | |
|
Aiken Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/me-yat.jpeg) Posts: 333 Status: Offline Gender: Male Location: In a very lonely place, the domain of despair Age: 35 Joined:
pmskypemsnyahooxfire | |
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: Simple Guild List code (27th Feb 10 at 10:21am UTC) | | Just from reading it ...
GuildList - Not defined anywhere
That's all I can see that would be the problem! | |
|
Aiken Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/me-yat.jpeg) Posts: 333 Status: Offline Gender: Male Location: In a very lonely place, the domain of despair Age: 35 Joined:
pmskypemsnyahooxfire | |
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: Simple Guild List code (27th Feb 10 at 11:10am UTC) | | Have you got somewhere where this whole code is in use? | |
|