Powrpak
06-03-2009, 03:56 PM
Ok ...
I am actually working on a Phpbb forum for members of an online game I play.
I am trying to make custom BBcode tags to access things in my game with no success!
Here is the thing ...
In this game, there are players and tribes (groups of players).
I am unable to link to the player/tribe pages directly with a url using the names because the database and pages for them are linked by numbers.
ie: each player/tribe name corresponds to a database entry number and you can only use numbers in the URL.
example:
Player: Powrpak
URL: http://en23.tribalwars.net/page.php?page=inbound&screen=info_player&id=3833804
please note the id=3833804 ..
soooooo....
In trying to work a way around this, here is what I can think of ...
I have found a page that will bring up a player info screen I can use!
http://www.twstats.com/en23/index.php?page=rankings&searchstring=Powrpak
All I do is edit the last variable (searchstring=)with the player name!
Same with the tribe info screen.
http://www.twstats.com/en23/index.php?page=rankings&mode=tribes&searchstring=EKC 3
I just edit the same variable in this one as well
Here is the problem ...
Hopefull there is an option using a script in the URL . . .
If you go to either of these pages, you will see it has found the requested info ..
To GO to the info, you need to click the link with the name of what you searched for.
I need to make a URL with scripting in it to not only GO to this url listed above
but hopefully click the link on the page FOR the player/tribe I searched for!!
I dont know the coding but here is my thoughts . . .
The player name variable used in the link itself might be the key I would think.
If you can make the script search the page for a link with the same variable and click that then that solves the problem!
ie: Player name searched for was "Powrpak" so have the script look for a link named "Powrpak" on the page loaded and click it!
Any help with this would be GREATLY appreciated!!
You can test it using the following variables:
Players: Powrpak / DrgonWhere / Missfit69
Tribes: EKC 3 / PLG / EKC3-1
If they all work then we have a solution!!
I am actually working on a Phpbb forum for members of an online game I play.
I am trying to make custom BBcode tags to access things in my game with no success!
Here is the thing ...
In this game, there are players and tribes (groups of players).
I am unable to link to the player/tribe pages directly with a url using the names because the database and pages for them are linked by numbers.
ie: each player/tribe name corresponds to a database entry number and you can only use numbers in the URL.
example:
Player: Powrpak
URL: http://en23.tribalwars.net/page.php?page=inbound&screen=info_player&id=3833804
please note the id=3833804 ..
soooooo....
In trying to work a way around this, here is what I can think of ...
I have found a page that will bring up a player info screen I can use!
http://www.twstats.com/en23/index.php?page=rankings&searchstring=Powrpak
All I do is edit the last variable (searchstring=)with the player name!
Same with the tribe info screen.
http://www.twstats.com/en23/index.php?page=rankings&mode=tribes&searchstring=EKC 3
I just edit the same variable in this one as well
Here is the problem ...
Hopefull there is an option using a script in the URL . . .
If you go to either of these pages, you will see it has found the requested info ..
To GO to the info, you need to click the link with the name of what you searched for.
I need to make a URL with scripting in it to not only GO to this url listed above
but hopefully click the link on the page FOR the player/tribe I searched for!!
I dont know the coding but here is my thoughts . . .
The player name variable used in the link itself might be the key I would think.
If you can make the script search the page for a link with the same variable and click that then that solves the problem!
ie: Player name searched for was "Powrpak" so have the script look for a link named "Powrpak" on the page loaded and click it!
Any help with this would be GREATLY appreciated!!
You can test it using the following variables:
Players: Powrpak / DrgonWhere / Missfit69
Tribes: EKC 3 / PLG / EKC3-1
If they all work then we have a solution!!