Shopping nuked version

A shopping addon for Roster

Moderator: Hannah

Shopping nuked version

Postby Tolrac » Thu Aug 24, 2006 1:52 am

Hi,

I want modify this WowRoster AddOn for Roster nuked 1.7.

In shopping_list.php:

Code: Select all


$choiceForm 
'<form action="addon.php" method=GET name=myform>
                <input type="hidden" name="roster_addon_name" value="shopping">
                 <table>
                 <th class="copy">'
.$wordings[$roster_conf['roster_lang']]['professionfilter'].'</th>
                 <td class="copy"><select NAME="proffilter">'
;
 


the url is : /addon.php?roster_addon_name=shopping&proffilter=Alchimie&filterbox=

but in phpnuke roster the url is normaly this one: modules.php?name=Roster&op=addon&roster_addon_name=shopping&proffilter=Alchimie&filterbox=

Please help me.

Thank you in advance
Last edited by Tolrac on Sat Aug 26, 2006 1:50 pm, edited 2 times in total.
Tolrac
WR.net Apprentice
WR.net Apprentice
 
Posts: 30
Joined: Tue Jul 04, 2006 1:22 pm

Re: Shopping nuked version

Postby zanix » Thu Aug 24, 2006 2:44 am

You gotta add "hidden" fields for each GET variable thats not currently in the form
Lets break down the URL GET variables
Code: Select all
name=Roster
op=addon
roster_addon_name=shopping
proffilter=Alchimie
filterbox=

So the GET variables you need always are
Code: Select all
name=Roster
op=addon
roster_addon_name=shopping

As you can see in the code you posted, roster_addon_name=shopping is already there
You just need to add name=Roster and op=addon

Replace what you have with this
Code: Select all
$choiceForm '<form action="addon.php" method="GET" name="myform">
        <input type="hidden" name="name" value="Roster">
        <input type="hidden" name="op" value="addon">
        <input type="hidden" name="roster_addon_name" value="shopping">
                 <table>
                 <th class="copy">'
.$wordings[$roster_conf['roster_lang']]['professionfilter'].'</th>
                 <td class="copy"><select NAME="proffilter">'
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: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Shopping nuked version

Postby Tolrac » Fri Aug 25, 2006 9:23 pm

Thank you for your help but now i have a white page with this message : No input file specified.
Tolrac
WR.net Apprentice
WR.net Apprentice
 
Posts: 30
Joined: Tue Jul 04, 2006 1:22 pm

Shopping nuked version

Postby zanix » Sat Aug 26, 2006 12:35 am

Oops lol
Forgot to change the action in the form

Change this
Code: Select all
$choiceForm = <form action="addon.php" method="GET" name="myform"

To this
Code: Select all
$choiceForm = <form action="modules.php" method="GET" name="myform"
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: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Shopping nuked version

Postby Tolrac » Sat Aug 26, 2006 1:36 pm

It's working now...

But i have an other problem, when i click on the caddy icon, i go to this url: ..addons/shopping/phpCart_manage.php?act=add&pid=, and when i click on view checkout, i go to tis URL: /addons/shopping/phpCart_basket.php, and it's not the good way for phpnuke.

Thank you for your help
Last edited by Tolrac on Sat Aug 26, 2006 1:54 pm, edited 1 time in total.
Tolrac
WR.net Apprentice
WR.net Apprentice
 
Posts: 30
Joined: Tue Jul 04, 2006 1:22 pm

Re: Shopping nuked version

Postby Hannah » Sat Aug 26, 2006 8:28 pm

I would like to help you but i´m a completely phpnuke noob :)

Thx zanix for your help....
User avatar
Hannah
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 142
Joined: Tue Jul 04, 2006 1:41 pm
Location: Germany, Cologne

Re: Shopping nuked version

Postby Tolrac » Sun Aug 27, 2006 8:48 pm

Ok,

thank you.

I just need to modify the 2 url for phpnuke integration and all of this roster addon working with phpnuke version.
Tolrac
WR.net Apprentice
WR.net Apprentice
 
Posts: 30
Joined: Tue Jul 04, 2006 1:22 pm

Shopping nuked version

Postby zanix » Sun Aug 27, 2006 10:53 pm

Tolrac wrote:Ok,

thank you.

I just need to modify the 2 url for phpnuke integration and all of this roster addon working with phpnuke version.
Exactly, you need to modify every url link in the addon to make it work fully
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: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Shopping nuked version

Postby Tolrac » Mon Aug 28, 2006 2:12 am

Yes but i don't know to modify the url links.
What is the good links to integrate in phpnuke ?

Thank you for your help
Tolrac
WR.net Apprentice
WR.net Apprentice
 
Posts: 30
Joined: Tue Jul 04, 2006 1:22 pm

Shopping nuked version

Postby zanix » Mon Aug 28, 2006 2:49 am

Sounds like a <form> action to me
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: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Shopping nuked version

Postby Tolrac » Sun Sep 10, 2006 5:48 pm

Ok, but i don't know modify the files.
Can you modify file the files for me to change the URL links ?

Thank you in advance
Tolrac
WR.net Apprentice
WR.net Apprentice
 
Posts: 30
Joined: Tue Jul 04, 2006 1:22 pm

Re: Shopping nuked version

Postby Tolrac » Mon Sep 11, 2006 7:54 pm

Hi,

I need your help to modify the files, it's nurgent

Thank you in advance
Tolrac
WR.net Apprentice
WR.net Apprentice
 
Posts: 30
Joined: Tue Jul 04, 2006 1:22 pm

Shopping nuked version

Postby Hannah » Mon Sep 11, 2006 9:40 pm

Sry, iwould like to help, but as i said i´m a nuke noob :)
User avatar
Hannah
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 142
Joined: Tue Jul 04, 2006 1:41 pm
Location: Germany, Cologne

Re: Shopping nuked version

Postby Tolrac » Tue Sep 12, 2006 2:12 am

ok,

It' possible to modify this url :

http://..../addons/shopping/phpCart_man ... t=add&pid="...."&make="..."

to this:

http://...../addon.php?roster_addon_nam ... t=add&pid="...."&make="..."

Thank you in advance
Tolrac
WR.net Apprentice
WR.net Apprentice
 
Posts: 30
Joined: Tue Jul 04, 2006 1:22 pm

Shopping nuked version

Postby Hannah » Tue Sep 12, 2006 10:50 am

For that i´ll need to make a lot of reprogramming :)

In the moment i´m adding features so i might have a look at this one too but it ´ll take some time ...
User avatar
Hannah
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 142
Joined: Tue Jul 04, 2006 1:41 pm
Location: Germany, Cologne

Next

Return to Shopping

Who is online

Users browsing this forum: No registered users and 0 guests

cron