PDA

View Full Version : [Project] need help


Eragon221
04-13-2008, 06:28 AM
In first I want to tell you : I'm French, so sorry for my bad english ...


Ok here I wana propose you a project :

for my guild in WoW I use two PHP script : WoWRoster and PHP Raider.

And now I have for project to add at all PHP Raider player's name a link.

I want can click on theirs name and be redirect in their profil in WOWRoster.

So I think the Value to remplace are that :

- add in all the name, a link. The link it's this :

http://maelstrom-ivalice.fr/roster/char.php?name=Fifouu&server=Ivalice%20-%20Northrend

For the player who's nickname is Fifouu. In consequently, when I will click in the player name Fifouu in PHP raider, I'll be redirect (in an other windows) to the profil of Fifouu in Roster, and i will can see his armory, skill...
So i think we must inculde a code (i don't know what code) at the place of the name fifouu, which make that : place here the name of the php players where i click.

Can you give me the code to remplace or add at player names please ? in replace the value Fifouu in the link by the name of the PHP raider player where i click.

I hop you understood that I tried to explain you in my verry bad english :S

Thank you for your future help =)


PS : If you talk french : Ce que je voudrais faire c'est remplacer les noms des joueurs sur le PHP Raider par le nom du joueur + un liens vers le même joueur sur le Roster de ma guilde. Les liens du roster de ma guilde se présente comme ceci :
http://maelstrom-ivalice.fr/roster/char.php?name=Fifouu&server=Ivalice%20-%20Northrend (ici pour un joueur dont le pseudo est fifouu) Il faudrais donc ajouter ce liens devant les noms des joueurs en remplaçant la variable du liens Fifouu par un code qui inclurait à cet endroit le nom du membre dont on clic sur le nom.

vendictive
04-15-2008, 11:35 PM
Follow this link (http://forums.phpraider.com/showpost.php?p=4083&postcount=10) and read that post. Where he has his edits at, replace it with this instead:

$name = $data['char_name'].'<a href="http://maelstrom-ivalice.fr/roster/char.php?name='.urlencode(utf8_encode($data['char_name'])).&server=Ivalice%20-%20Northrend '"target="_blanc">
<img src="templates/'.$pConfig['template'].'/images/icons/icon_user_details.png" border="0"
onMouseover="ddrivetip(\''.$pLang['armory_details'].'\')"; onMouseout="hideddrivetip()">
</a> <a '.$tooltip.'></a>';

The rest of his edits should be the same. Only the first edit will be different. I suppose you could change the whole:

$pLang['armory_details'] = "Click to see characters WoW Armory Details";

...to something like:

$pLang['armory_details'] = "Click to see this character's Roster details!";

The actual variable of armory_details doesn't matter, just what the end-user sees which is the "Click to see this character's roster details!" Hope this makes sense and good luck!

Eragon221
04-17-2008, 07:23 AM
Thank you verry much for your help =)

It's work verry well ;)