11-08-2008, 08:32 PM
|
#7 (permalink)
|
|
The Wanderer
Join Date: Nov 2008
Posts: 5
Thanks: 2
|
Just also noticed, for guilds or server names with spaces the above code breaks. This very slightly modified version should be fine as it converts the whitespace to '+' which is how blizz formats it.
PHP Code:
public function pull_xml() {
// change the first part of the $url to the armory link that you need if( $this->query === 'roster' ){ $url = 'http://eu.wowarmory.com/guild-info.xml?r=' . urlencode($this->server) . '&n=' . urlencode($this->guild) . '&p=' . $this->page; }elseif( $this->query === 'character' ){ $url = 'http://eu.wowarmory.com/character-sheet.xml?r=' . urlencode($this->server) . '&n=' . $this->guildie; }
|
|
|
|