The eAuction Support Forums
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl
eAuction 1.6.1.x >> Start Up and more >> Some changes I need to make, but unable to...
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl?num=1161319332

Message started by Fizzgig on 10/20/06 at 06:42:11

Title: Some changes I need to make, but unable to...
Post by Fizzgig on 10/20/06 at 06:42:11

Hi, I'm wondering if I can get some help with how to make some minor changes.

My auction will be for an online game, people will be trading this game money (GP) for items and all trades will be taking place within the game.
So I need to change the registration form and everything that would show Phone/Fax numbers.
I'd like to just completely remove the fax and phone and I'd like to rename the "Real Name" to "Game Name" and City to the game city and state to the game world (server).

I tried doing this myself (btw I have no experience with perl...really).
But it just completely messed up the pages...they don't even show up, actually.
Can you tell me how I can make these changes in eAuction.pl without it messing up the script?

I make all the changes in my server admin, I haven't been using any external program.

Thanks for any help.

-Fizz

Title: Re: Some changes I need to make, but unable to...
Post by Fizzgig on 10/20/06 at 07:16:14

Ok actually, I think I may have figured out what to do...I will try it and come back if I have more questions.
:D

Title: Re: Some changes I need to make, but unable to...
Post by Fizzgig on 10/20/06 at 10:21:40

Ok nevermind, I have no idea  :'(

I thought maybe if I could change the default from english (1) to a secondary language and just type out everything in there it would work...but it didn't default to (2).

Ok so I need the following things:

Registration form to NOT require Fax/Phone - not even have the option there (I did change in the config to not print phone and fax, but still it's on the reg. form).

Registration form changed from:
Full Name - "Game" Name

Street Address - "Game" Server/World

City, State, ZIP - "Game" City/Location
*Where "game" is the game name.

And then basically the rest of the script to never show or require any of that old info.

Is this possible and what do I need to change exactly without messing up the whole thing?
I grately appreciate any help, thanks again.

-Fizz

Title: Re: Some changes I need to make, but unable to...
Post by Dieter Werner on 10/20/06 at 16:01:21

Step 1: Changing the displayed text

- search eAuction.pl for the text you want to edit
- edit the text (Original: $txt{'Full Name'} -> Edited: $txt{'Game Name'})
- open eConfig161.pl
- search the file for 'Full Name' and replace it with 'Game Name'

Title: Re: Some changes I need to make, but unable to...
Post by Fizzgig on 10/20/06 at 16:20:26

Thank you so much Dieter!

I am so very tired, been working on this for days!
Ok, I realized that when I went in to change all those names, before, I actually changed a bunch of other stuff at the same time, while I should have just made changes in steps as you said (to see which works or not!) ok, so I will do what you said and I am certain that will work!

Now, I found this post here:

mars wrote:
Villager,

This is what I would try first if I were trying to do what you are.
Look for all occurances of  $form{'PHONE'}'; and hard code some number into it like $form{'PHONE'}      = '0049-123-456789';
Then go the "Post A New Item Form" (also the Change Registration) and remark out the HTML code for the Phone entry:
FROM:    <tt>$txt{'Phone'}:</tt><br>
               <input name="PHONE" type="TEXT" size="30" value="$phone"><br>
               <tt>$txt{'FAX'}:</tt><br>

TO: <!---   <tt>$txt{'Phone'}:&lt;/tt><br>
               <input name="PHONE" type="TEXT" size="30" value="$phone"><br>
               <tt>$txt{'FAX'}:&lt;/tt><br> --->

ITake a look at   Sub: Make Test-Items where Dieter has set up the Test form information as hard coded.

Not sure if this would work but it is where I would start the process.  If that failed I would see what using hidden values (in the forms)  for the phone variable would do.

mars


And I managed to remove the Phone and Fax from the reg. page by using the "remark out" method that Mars explained.
However, I don't fully understand the  $form{'PHONE'}'; part.

I am only finding lists like this:


Code:
$password,
               $form{'EMAIL'},
               $form{'ADDRESS1'},
               $form{'ADDRESS2'},
               $form{'ADDRESS3'},
               $form{'PHONE'},
               $form{'FAX'},
               @userbids

And I don't think I can change those? I have no idea...

So hey, progress is being made for me!
-Fizz

Title: Re: Some changes I need to make, but unable to...
Post by Fizzgig on 10/20/06 at 16:56:35

Ok I managed to change everything ok except for:

Code:
$txt{'City'}, $txt{'State'}, $txt{'ZIP'}:


I tried changing that just to:


Code:
$txt{'Game City/Location'}:


and in the Auction all I see for that entry in the form is a colon ':'

All by itself and I do not know why.

I am super tired now so I'm going to sleep but I hope someone can help me a bit more with that above and with the phone thing.

Thanks again and goodnight/day.
And by the way, thank you for the script, it looks very very promising for me! Your hard work is very much appreciated and as soon as I can, I shall "buy you a beer"!

 :D

Title: Re: Some changes I need to make, but unable to...
Post by Dieter Werner on 10/20/06 at 17:32:17


Code:
$txt{'City'}, $txt{'State'}, $txt{'ZIP'}:

should be changed into something like

Code:
$txt{'Game City'}, $txt{'Game Location'}, $txt{'Game ZIP'}:

or similar

Title: Re: Some changes I need to make, but unable to...
Post by Fizzgig on 10/21/06 at 01:54:14

Ok I am back! Surprised? I bet!  :o

No matter what I do, other than the original City, State, Zip, it doesn't show up.

I just tried doing it again in steps where I just changed one at a time.

Game City, State, Zip

And in the page it comes out
", State, Zip"

And I still don't understand how to stop the script from requiring the Phone field, which I've completely removed (hidden)?

Thanks again.
-Fizz

PS, On the bright side, I am learning a LOT and I love it! Plus, my site is looking really nice now :D

Title: Re: Some changes I need to make, but unable to...
Post by Fizzgig on 10/21/06 at 15:25:23

Anyone have any idea how to change the text in the City, State, ZIP?

Maybe I could collaborate with someone else who may want to do the same? I imagine there are people (like me) in Canada who would want other options as well...like Province and Postal Code. So I don't think I'm all alone in this.

So if anyone out there wants to play with the script with me and see what we can figure out together, please post here or PM me and we'll get together ok? Cool, thanks!

In the mean time, I'll move on to other things cuz the script is making me crazy all alone  :o

-Fizz

Title: Re: Some changes I need to make, but unable to...
Post by Dieter Werner on 10/21/06 at 15:40:33

Simply follow the example I posted above.
The text you changed in eAuction.pl must exactly match the text in eConfig161.pl
The changes must be identical.

Title: Re: Some changes I need to make, but unable to...
Post by Fizzgig on 10/21/06 at 16:35:14

Dieter!
I went back and read line by line in the config file and found 3 things I missed in there!

Zip, all by itself. State, all by itself...and yes, you guessed it - City all by itself!
I had just done a search before, searching for all the words together...silly me...

Ah I'm a bit embarrassed but hey at least I got it now.  ;D

Now it works...it's like magic huh?
Now on to the phone thing... *sigh*

-Fizz

Title: Re: Some changes I need to make, but unable to...
Post by Dieter Werner on 10/21/06 at 16:56:10


Fizzgig wrote:
Now on to the phone thing...

Follow the instructions written by mars ...
and it will work for you.

Title: Re: Some changes I need to make, but unable to...
Post by Fizzgig on 10/23/06 at 09:03:48

Since I don't know Perl, I don't know exactly what phone attributes need to be changed.
There are many many instances of "Phone" in there  :'(

Please help me just a little more, everything is done but that one thing.

I'm still trying on my own, of course.
-Fizz

Title: Re: Some changes I need to make, but unable to...
Post by Dieter Werner on 10/23/06 at 16:10:55

Search eAuction.pl for 'sub reg'
Search 'sub reg' for

Code:
   oops($txt{'You must enter your phone number'})
   unless $form{'PHONE'};

and change the line(s) into

Code:
   #oops($txt{'You must enter your phone number'})
   #unless $form{'PHONE'};

Title: Re: Some changes I need to make, but unable to...
Post by Fizzgig on 10/24/06 at 02:47:48

Ok this is what we did,
Changed the values in the new registration section and the "change registration" section
to value="NOT REQUIRED" (could have been value="Chocolate Pudding")

And from type="TEXT" to type="HIDDEN"
And took out the <!--- --->

It seems to have worked but if I find any problems I'll try your suggestion.
We had to improvise haha.

Thank you again, I will get this monster published and see how it all works! I will most certainly be back here and I'll try and help here if anyone should have simple questions...for now at least.

I am going to learn this if it kills me! And write something of my own so I can see how it all works.
I won't be one of the ones who downloads and leaves, be assured.

-Fizz

The eAuction Support Forums » Powered by YaBB 2.2!
YaBB © 2000-2007. All Rights Reserved.