Add bid

Hi all,

I’ve just updated to the build 700 and found that the add bid button has gone from the schedules page. I’ve checked the templates (in dreamweaver the button shows), made sure they are in the skin folder properly and to no avail. Any help is apreciated!

cheers,

roboa

Does it show on the default one?

Also is Config::Get(‘DISABLE_SCHED_ON_BID’) enabled?

Does it show on the default one?

Also is Config::Get(‘DISABLE_SCHED_ON_BID’) enabled?

No show on the default one.

This is the config code:

(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0)

roboa

I meant check in your local.config file, if it’s not there do:

Config::Set('DISABLE_SCHED_ON_BIG', false);

Is there a particular place I need to put it? I just put it in with the page encoding stuff and it has had no effect

cheers

Stupid question, but are you logged in?

Yup, and I can confirm it because they system changes all the menu links to what a logged in user would see.

roboa

That’s really odd… hmm. When did it stop working?

Is the pilot briefing link there?

I noticed it when it was updated. I suppose it could have gone before that and I just haven’t noticed it…

The Pilot briefing links is there

roboa

Can you send me your FTP information so I can take a look?

Can you send me your FTP information so I can take a look?

Which file is that? The FTP quota?

cheers,

roboa

PM me your FTP login/make one for me, and your site’s URL so I can take a look at the files and debug

You modified the schedule_results.tpl and removed this:

<?php 
      # Don't allow overlapping bids and a bid exists
      if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0)
      {
      ?>
        <a id="<?php echo $route->id; ?>" class="addbid" 
            href="<?php echo SITE_URL?>/action.php/Schedules/addbid/">Add to Bid</a>
      <?
      }
      else
      {
        if (Auth::LoggedIn())
        {
          ?>
            <a id="<?php echo $route->id; ?>" class="addbid" 
              href="<?php echo SITE_URL?>/action.php/Schedules/addbid/">Add to Bid</a>
        <?php          
        }
      }      
      ?>

You removed the else { } portion, so it wouldn’t show the “Add Bid” if you’re logged in and the disable schedules bit is false. So just add that back in, and you should be ok. I didn’t modify it

I changed all that and now the add bid is  showing but when clicked it is just going to …/schedules/addbid and then not doing anything.

roboa

Is there a Javascript error happening?

it doesn’t say anything. It just goes to a white screen with the url …/action.php/schedules/addbid

roboa

Did you change anything in the core_htmlhead.tpl?

Check the firefox error console

I’ve not changed anything in the core_htmlhead.tpl to my knowledge.

These are the errors that showed when I clicked add bid:

Warning: Unexpected end of file while searching for ‘;’ or ‘}’ to end declaration.  Unexpected end of file while searching for closing } of declaration block.

Source File: http://…/index.php/schedules

Line: 66

Error: $(“#form”).ajaxForm is not a function

Source File: http://…/lib/js/phpvms.js

Line: 10

roboa

sorry for the late reply!

Revert to the default schedule_results.pl (just delete your version), and also revert to the default core_htmlhead.tpl if you’ve modified it.

Then reupload the /lib/js folder.

Hey,

sorry it’s taken so long for a reply to this.

No joy still. I’ve done the all of the steps you posted.

thanks