| View previous topic :: View next topic |
| Author |
Message |
saurabhray
Joined: 30 Apr 2008 Posts: 45
|
Posted: Wed Jun 04, 2008 1:24 pm Post subject: Create an add event link but not working....help me |
|
|
Hi...
I had just created add event link as it mentioned in the joomla studio1.5 documentation but still not working.In joomla studio i created a component add_event and its page add_event.php and then call that component in that page and set event type=add_event.php and save it.
Even though on clicking the add event link it is not showing the form.
Please help me out what can i do...
Thanks
Saurabh |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5275
|
Posted: Wed Jun 04, 2008 3:57 pm Post subject: |
|
|
Hi,
May I have the URL to see this please? |
|
| Back to top |
|
 |
saurabhray
Joined: 30 Apr 2008 Posts: 45
|
Posted: Thu Jun 05, 2008 5:26 am Post subject: Giving you the URL please check "things to do" sec |
|
|
Hii
I am sending you the URL and then please check "add your event" link under the "things to do" menu item.I am also sending you the code snippet which i used in creating the .php pages after creating the components...
URL: http://71.244.86.81/potomacparent.
Code snippet of the add_event.php pages:-
| Code: |
<?php
echo("<a href='index.php?event_action=Add&y={$_SESSION['y']}&m={$_SESSION['m']}&d={$_SESSION['d']}'>Add Your Event</a>");
echo(" ");
echo("<a href='index.php?option=com_thyme&page=Today'>Today's Event</a>");
echo(" ");
echo("<a href='index.php?option=com_thyme&page=This_Week'>This Week</a>");
echo(" ");
echo("<a href='index.php?option=com_thyme&page=This_Month'>This Month</a>");
# Load Detail Events component
_js_load_component('detail_events');
?> |
I used this code while creating the add_event.php page in edit source.please help me out what to do...
R u online ???i need support from your side as i m working on thyme right now.As i am online on gchat..
Thanks
Saurabh |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5275
|
Posted: Thu Jun 05, 2008 1:56 pm Post subject: |
|
|
Change that to:
| Code: |
list($y,$m,$d) = explode('-',date("Y-n-j"));
echo("<a href='index.php?option=com_thyme&event_action=Add&y=$y&m=$m&d=$d'>Add Your Event</a>"); |
Let me know if you have any trouble. |
|
| Back to top |
|
 |
saurabhray
Joined: 30 Apr 2008 Posts: 45
|
Posted: Fri Jun 06, 2008 1:49 pm Post subject: Its showing an error.... |
|
|
Hii
The code snippet which you send yesterday is not working on clicking "add your event" it shows an error that "object not found ..404 error!".Please help me out what can i do?? |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5275
|
|
| Back to top |
|
 |
saurabhray
Joined: 30 Apr 2008 Posts: 45
|
Posted: Mon Jun 09, 2008 3:33 am Post subject: Its reflecting to the home not showing the "add event&q |
|
|
Hiii
On clicking that event its reflecting to the home page not showing the "add event" form page.So please tell me what changes should be done in the code snippet that you send me or the snippet i used earlier.???
Thanks
Saurabh Ray |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5275
|
Posted: Mon Jun 09, 2008 5:54 pm Post subject: |
|
|
Here is the entire thing with the afore posted changes included:
| Code: |
<?php
list($y,$m,$d) = explode('-',date("Y-n-j"));
echo("<a href='index.php?option=com_thyme&event_action=Add&y=$y&m=$m&d=$d'>Add Your Event</a>");
echo(" ");
echo("<a href='index.php?option=com_thyme&page=Today'>Today's Event</a>");
echo(" ");
echo("<a href='index.php?option=com_thyme&page=This_Week'>This Week</a>");
echo(" ");
echo("<a href='index.php?option=com_thyme&page=This_Month'>This Month</a>");
# Load Detail Events component
_js_load_component('detail_events');
?> |
let me know if you have any questions / trouble. |
|
| Back to top |
|
 |
|