roboa
May 13, 2009, 4:17pm
1
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?
roboa
May 13, 2009, 6:07pm
3
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);
roboa
May 13, 2009, 8:21pm
5
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
nabeel
May 13, 2009, 10:28pm
6
Stupid question, but are you logged in?
roboa
May 14, 2009, 8:05pm
7
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?
roboa
May 15, 2009, 9:40pm
9
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
nabeel
May 15, 2009, 10:19pm
10
Can you send me your FTP information so I can take a look?
roboa
May 15, 2009, 11:58pm
11
Can you send me your FTP information so I can take a look?
Which file is that? The FTP quota?
cheers,
roboa
nabeel
May 16, 2009, 12:06am
12
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
nabeel
May 16, 2009, 2:01am
13
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
roboa
May 16, 2009, 10:03am
14
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
nabeel
May 16, 2009, 3:19pm
15
Is there a Javascript error happening?
roboa
May 16, 2009, 4:50pm
16
it doesn’t say anything. It just goes to a white screen with the url …/action.php/schedules/addbid
roboa
nabeel
May 17, 2009, 12:24am
17
Did you change anything in the core_htmlhead.tpl?
Check the firefox error console
roboa
May 18, 2009, 5:05pm
18
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!
nabeel
May 18, 2009, 7:31pm
19
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.
roboa
May 25, 2009, 7:25pm
20
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