View previous topic :: View next topic |
Author |
Message |
crazycircles Lurker

Joined: 14 Dec 2005 Posts: 5
|
Posted: Wed Dec 14, 2005 9:15 pm Post subject: Dan I need your help |
|
|
I am a newbie at PHP and MySQL. Newbie really isn't correct, I know next to nothing. I have my calendar running on my website but I don't know the first thing about making modifications to it and am afraid of trying, I don't want to totally screw it up. The only programing experience I have is very limited Visual Basic training, so really I'm starting from scratch. The first thing I would like to learn is how to modify the header so I can place my own banner and maybe a couple of text links at the top of the page. Can you suggest any good beginners books, web sites, etc. that might get me headed in the right direction? Eventually I would like to set something up like the http://www.pghevents.com/ web site. I saw it in another posting here and really like that type of layout. I had no idea you could do something like that with this program.
Scott |
|
Back to top |
|
 |
Dan Admin / Developer

Joined: 19 Feb 2001 Posts: 2057
|
Posted: Wed Dec 14, 2005 9:40 pm Post subject: |
|
|
Everyone has to start somewhere.
The header is actually quite easy and introduces virtually no chance of mucking up the calendar code, as it's kept entirely separate. At the top of config.php, you'll see an option for whether or not to include header/footer files. Simply set that to TRUE and edit the path to the two files, if needed. Then, place whatever layout HTML you want into the header/footer files and you're done!
I could recommend some good PHP and MySQL books, but nothing online comes to mind immediately without searching. You could take a look around www.php.net and www.mysql.com to get your feet wet. www.phpbuilder.com is always worth a look.
Cheers,
Dan |
|
Back to top |
|
 |
crazycircles Lurker

Joined: 14 Dec 2005 Posts: 5
|
Posted: Wed Dec 14, 2005 10:01 pm Post subject: |
|
|
What books would you recommend? |
|
Back to top |
|
 |
Dan Admin / Developer

Joined: 19 Feb 2001 Posts: 2057
|
|
Back to top |
|
 |
crazycircles Lurker

Joined: 14 Dec 2005 Posts: 5
|
Posted: Mon Dec 19, 2005 12:45 pm Post subject: One More thing |
|
|
Thanks Dan,
I got the header set up.
I do have one more issue though.
When you submit an event for the calendar you get this error message.
Warning: Cannot use a scalar value as an array in /home/content/h/o/m/hometownbull/html/calendar/add_to_validate.php on line 30
The event still goes through and I am able to validate it and place it on the calendar but people submitting the events think something has gone wrong with their submittal.
Any ideas? |
|
Back to top |
|
 |
Dan Admin / Developer

Joined: 19 Feb 2001 Posts: 2057
|
Posted: Tue Dec 20, 2005 12:20 am Post subject: |
|
|
Hmm, you're the second person in the past month to report a scalar error on the add_to_validate page.
http://abledesign.com/forum/viewtopic.php?t=151&postdays=0&postorder=asc&highlight=scalar&start=30
The difference is bgrosh is running a customized database layout and I assume (?) yours is still the default. Or have you moved onto some custom field settings?
Any other details you can provide would be helpful, such as PHP and MySQL versions, server type, etc.
Cheers,
Dan |
|
Back to top |
|
 |
crazycircles Lurker

Joined: 14 Dec 2005 Posts: 5
|
Posted: Wed Dec 21, 2005 12:08 am Post subject: settings |
|
|
Dan,
These are the versions I'm running;
MySQL version is 4.0.24
PHP version is 4.3.11
Server is Linux
I have not done anything to the code, I'm still using the default setting.
I had that error message from day one. |
|
Back to top |
|
 |
Dan Admin / Developer

Joined: 19 Feb 2001 Posts: 2057
|
Posted: Tue Dec 27, 2005 6:18 am Post subject: |
|
|
After extensive testing, I determined it's a bug I had already fixed (and subsequently forgotten about) for the next release.
- fixed a bug on user submissions with recurring event options turned off
In add_to_validate.php (v2.20.3), lines 23-25 should be:
$db_validate[V_RECURRING_ROW][2] = "one_time";
$db_validate[V_DAILY_ROW][2] = "all_days";
$db_validate[V_RECURRPERIOD_ROW][2] = 1;
Note the [2] that was missing from each.
Cheers,
Dan |
|
Back to top |
|
 |
crazycircles Lurker

Joined: 14 Dec 2005 Posts: 5
|
Posted: Tue Dec 27, 2005 10:21 am Post subject: Wonderful |
|
|
Thanks Dan,
The fix worked.
I really appreciate the support that I have recieved from you.
Thanks again,
Scott |
|
Back to top |
|
 |
Dan Admin / Developer

Joined: 19 Feb 2001 Posts: 2057
|
Posted: Tue Dec 27, 2005 11:53 am Post subject: |
|
|
You're welcome. Thanks for sitting tight for a couple days while I tracked it down.
Cheers,
Dan |
|
Back to top |
|
 |
|