eAuction
  Not just another Perl script
Google
Welcome, Guest. Please Login or Register


If you use eAuction a lot and like it or if you make money from eAuction or from eAuction-related activities ...
then the project asks you for a donation in favor of the further development.



The forums are protected by
AccessControl
(written by Dieter Werner)
Click here if you want to check your IP against the most important RBLs of the net.
Click here in order to visite the AccessControl forums.


<< Visit the international e Auction Marketplace >>
Buy and sell PC and Consumer Electronic components






  HomeHelpSearchLoginRegister
 



Pages: 1
Trying to change a nav bar line (Read 629 times)
Matt
eAuction User
**
Offline

I love Perl

Posts: 10
New Hampshire, USA
Gender: male
Trying to change a nav bar line
05/24/05 at 18:50:36
 
Hello,

I'm trying to change the Nav Bar around a little to suit our needs as a single Auctioneer version.  We don't have a need for Buy it Nows, Lowest Price, etc...  But what I do want to do is have a button on the Nav Bar that will direct me to the Admin module, which I will be changing slightly as well.  Well the original line I'm using was where the New Item button was and it read:

<a href="$ENV{'SCRIPT_NAME'}?action=new&lang=$form{'lang'}"><b>$txt{'New Item'}</b></a>

and I would like to change it so I can have access to the Admin module.  Why can't I just do something like:

<a href="$ENV{'SCRIPT_NAME'}?action=admin&lang=$form{'lang'}"><b>$txt{'Administrati
on'}</b></a>

Any help always appreciated !
Thanks..
Matt
Back to top
 
 


Advertising
View Profile | WWW   IP Logged
mars
eAuction Expert
Tester
***
Offline

I love Perl

Posts: 149

Re: Trying to change a nav bar line
Reply #1 - 05/24/05 at 21:13:33
 
I believe the following will work. If not you will learn alot about the program by trying it. I used the procedure to add a simple 'Contact Us" link in the nav bar, but for that all I had to do was add a simple sub rountine in the config file and a new action in the eAuction.pl script file.

You need to go into the eAuction.pl file and look for
#-#############################################
# Event-Section
#-#############################################
   $event = {
       'new'                  =>  \&new,

and then add an event or action, perhaps:
       'myadmin'                =>  \&myadmin,

and also create a subroutine call sub_myadmin which will be your administration module.
You will also need to add the configuration controls you want (for how it is displayed) and text strings you will  reference from the eAuction.pl script, in the eConfig161.pl file.

Then you could call up your admin module via
<a href="$ENV{'SCRIPT_NAME'}?action=myadmin&lang=$form{'lang'}">$txt{'My Admin Module'}</b></a>

Anyways, this is what I would try at first. Your admin module subroutine in  eAuction.pl will be a challenge.
Have fun...I always do, even when 'pulling my hair'.


mars
Back to top
 
 


Advertising
View Profile   IP Logged
Matt
eAuction User
**
Offline

I love Perl

Posts: 10
New Hampshire, USA
Gender: male
Re: Trying to change a nav bar line
Reply #2 - 05/24/05 at 21:30:36
 
mars,

Thanks for the info.  What I was missing as far as modifying some TXT stuff was the fact that they are 'defined' in the config file.  Now that I see those, everything is falling in place a little better.  

As for my admin module, I don't think I going to write one from scratch, but maybe 'steal' a few modules that might be of use.   Have you had any experience with a sub-navbar.  I'm thinking when I click on the Administration link, that it would open a sub-nav bar that has the links to the various functions I want to add.  Like your Contact Us link, etc...

Great help, very much appreciated !
Matt
Back to top
 
 


Advertising
View Profile | WWW   IP Logged
Pages: 1


If you like eAuction, please Rate it.
If you don't like eAuction, please Rate it too.


1 is being poor and 10 is being excellent


EveryScript

ip-location


AccessControl - Members Only