The eAuction Support Forums
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl eAuction 1.6.1.x >> Start Up and more >> Trying to change a nav bar line https://www.everyscript.de/cgi-bin/yabb/YaBB.pl?num=1116953436 Message started by Matt on 05/24/05 at 18:50:36 |
Title: Trying to change a nav bar line Post by Matt on 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{'Administration'}</b></a> Any help always appreciated ! Thanks.. Matt |
Title: Re: Trying to change a nav bar line Post by mars on 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 |
Title: Re: Trying to change a nav bar line Post by Matt on 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 |
The eAuction Support Forums » Powered by YaBB 2.2! YaBB © 2000-2007. All Rights Reserved. |