Help with a code after i upgrade to roster2

Joomla/Mambo integration forum

Help with a code after i upgrade to roster2

Postby Raichu » Thu Oct 16, 2008 1:23 pm

What is the call to get user roster?

here is my code from old version ..

Code: Select all
<a href="<?php echo $mosConfig_live_site; ?>/<?php echo $path; ?>char.php?name=<?php echo $info['name']; ?>&server=<?php echo $serv3r; ?>&action=character" target="_parent">


Error I get now in WowRoster : The a= parameter does not provide accurate enough data or is badly formatted.

You can View my site here .. http://loth.clay4fun.com
Last edited by Raichu on Thu Oct 16, 2008 1:26 pm, edited 2 times in total.
Raichu
WR.net Apprentice
WR.net Apprentice
 
Posts: 18
Joined: Mon Jan 29, 2007 11:51 pm

Help with a code after i upgrade to roster2

Postby PleegWat » Thu Oct 16, 2008 4:52 pm

You're generating the wrong URL.

You need to look up what the fixed components are in R2. You only need to generate 1 dynamic paramter:

a=charname@region-realm
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Help with a code after i upgrade to roster2

Postby Raichu » Fri Oct 17, 2008 8:30 am

So can you help me with what code i should replace the above with? the many attemps trying is driving me bonkers.... =/
Raichu
WR.net Apprentice
WR.net Apprentice
 
Posts: 18
Joined: Mon Jan 29, 2007 11:51 pm

Help with a code after i upgrade to roster2

Postby zanix » Fri Oct 17, 2008 10:48 am

The URL to access a character info page is now one of the following
Code: Select all
index.php?p=char-info&a=c:<MEMBER_ID>
index.php?p=char-info&a=c:<NAME>@<RC>-<REALM>
index.php?p=char-info&a=c:<NAME>@<REALM>
index.php?p=char-info&a=c:<NAME>

Friendly links mode
Code: Select all
char/info/a=c:<MEMBER_ID>.html
char/info/a=c:<NAME>@<RC>-<REALM>.html
char/info/a=c:<NAME>@<REALM>.html
char/info/a=c:<NAME>.html

<NAME> - Character name
<RC> - Region Code: US, EU
<REALM> - WoW server


This might work for you
Code: Select all
<a href="<?php echo $mosConfig_live_site; ?>/<?php echo $path; ?>index.php?p=char-info&a=c:<?php echo $info['name']; ?>@RC-<?php echo $serv3r; ?>" target="_parent">

Replace RC with your region code (US or EU)
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Help with a code after i upgrade to roster2

Postby Raichu » Fri Oct 17, 2008 11:18 am

Yup, that code worked great, thanks alot boss ! Much appreciated...
Raichu
WR.net Apprentice
WR.net Apprentice
 
Posts: 18
Joined: Mon Jan 29, 2007 11:51 pm


Return to Joomla/Mambo

Who is online

Users browsing this forum: No registered users and 0 guests

cron