Sign Up! Login: Password: New User? Forgot? Support
Code 
 
 
Forums 
Forums : Widgets > Hidden GuildPortal Functions
Mottie (SuperAdmin) 5/25/2010 11:23 AM EST : Hidden GuildPortal Functions
ACK!
Mottie
Posts: 3883

0
Like

0
Dislike

Block Elements
  • Full List
    $block[username]
    $block[sitename]
    $block[userlevelname]
    $block[userlevelnumber]
    $block[userparticipation]
    $block[userhandle]
    $block[userraidpoints]
    $block[usertitle]
  • $block[userlevelname] = $block[userlevelnumber] values:
    public = 1
    associate = 1.5
    member = 2
    council = 2.5
    officer = 3
    super admin = 4
Feeds
Type
Type
URL
Required Options
Additional Required Options 
Results
action
groupId
Calendar Events
JSON
/Services/Events.aspx
getEventsListJson
X start : "mm/dd/yyyy"
end : "mm/dd/yyyy"  
Achievements
JSON /Services/User.aspx getAchievementsJson
X monthsBack : #
[range 2 (default) - 48]
-
 
Gallery Images & Comments
JSON /Services/User.aspx getImageGalleryJson
X -
 -  
           Add Comment
XML /Services/User.aspx addImageComment X
imageId : ######
commentText : "text"
 
           Delete Comment
XML /Services/User.aspx delImageComment X imageId : ######
commentId : ######
 
           Gallery Rights
XML
/Services/User.aspx getGalleryRights X -
-
 
Shouts: Get Shouts
HTML
/Services/Shout.aspx  
getShouts
x
tabId : getTabId()
   
           Add Shout
XML
/Services/Shout.aspx addShout
x
tabId : getTabId()
shoutText : "text"
 
Examples:
  • Calendar Event Feed

    $.getJSON( "/Services/Events.aspx", { groupId: getGroupId(), action: "getEventsListJson", start: "4/18/2010", end: "4/25/2010",  rand: new Date().getTime() }, function(data){
     alert( data );
    })

    // rand added to force the browser to refresh the URL


  • Gallery Feed

    $.getJSON( '/Services/User.aspx', { groupId: getGroupId(), action: 'getImageGalleryJson', rand: new Date().getTime() }, function(data){
     if ( data == '' || data === null ) { console.debug('no data'); }
     console.debug(data); // Firebug console
    });

  • Gallery Rights XML Feed Results ( see $block[userlevelnumber] values above )

    <CurrentGalleryRights>
     <CanUpload>true</CanUpload>
     <CanDeleteComments>false</CanDeleteComments>
     <AccessLevel>4</AccessLevel>
    </CurrentGalleryRights>
Characters: Mottie Motty Mortie Ooshiny Mot Fudgems
TopBottom

 
 
Key 
New posts No new posts
New posts ( popular ) No new posts ( popular )
New posts ( sticky ) No new posts ( sticky )
New posts ( locked ) No new posts ( locked )
 
 
Who's Online 
There are   members online.
 
 
So-and-so has logged on!
%title%
%message%