| View previous topic :: View next topic |
| Author |
Message |
Tedmiller
Joined: 14 Apr 2006 Posts: 98
|
Posted: Thu Nov 30, 2006 9:37 pm Post subject: 'Add Your Event' module |
|
|
Despite instructions right on our page, some people can't figure out clicking on the [+] sign is how they submit their event. For them, I would like to display a graphical button that says "Add Your Event" -- making the feature so obvious it hurts!
I want it to have the identical function of clicking the [+] sign, but I've looked through several PHP files and can't find the code to copy. I hoped you could point me in the right direction. |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5275
|
Posted: Thu Nov 30, 2006 10:20 pm Post subject: |
|
|
Hi,
You may use:
echo("<a href='index.php?event_action=Add&y={$_SESSION['y']}&m={$_SESSION['m']}&d={$_SESSION['d']}'>Add your Event</a>"); |
|
| Back to top |
|
 |
jasperespejo
Joined: 07 Sep 2006 Posts: 80 Location: Mandaluyong, Philippines
|
Posted: Mon Dec 04, 2006 3:15 am Post subject: |
|
|
I need to implement this too. Which file do I need to modify? _________________ Jasper Espejo |
|
| Back to top |
|
 |
jasperespejo
Joined: 07 Sep 2006 Posts: 80 Location: Mandaluyong, Philippines
|
Posted: Mon Dec 04, 2006 3:17 am Post subject: |
|
|
I need to implement this too. Which file do I need to modify? _________________ Jasper Espejo |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5275
|
Posted: Mon Dec 04, 2006 3:52 am Post subject: |
|
|
Hi,
That depends. Where would you like the link to appear? |
|
| Back to top |
|
 |
jasperespejo
Joined: 07 Sep 2006 Posts: 80 Location: Mandaluyong, Philippines
|
Posted: Mon Dec 25, 2006 4:42 am Post subject: |
|
|
Hello. I would like the "Add your event" link to appear beside the "day, week, month" tab of the calendar in a joomla page. Thanks! _________________ Jasper Espejo |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5275
|
Posted: Mon Dec 25, 2006 4:45 am Post subject: |
|
|
Hi,
You would have to modify the theme. It is recommended that you create your own in this case if you have not already. For instance in the 'default' theme you would edit themes/default/functions.php and add it in the _ex_default_tabs() function.
Let me know if you have any questions at all. |
|
| Back to top |
|
 |
tangella
Joined: 05 Sep 2007 Posts: 13 Location: Trinity Center, California
|
Posted: Wed Sep 19, 2007 8:15 pm Post subject: |
|
|
I added this feature and it's great. One gotcha is that the same theme function is used for a calendar display as for the new event editor page. Therefore, on the event editor my Add an Event tab appears, and users will use that to add the event (instead of the Save button). Is there a way in the theme tabs function to detect that the current page is the event editor so I can suppress the Add an Event tab on that page?
Mike |
|
| Back to top |
|
 |
werufm
Joined: 27 Mar 2008 Posts: 36
|
Posted: Thu May 15, 2008 4:52 pm Post subject: |
|
|
| Why in the blue_goth theme is there no "functions.php"? |
|
| Back to top |
|
 |
werufm
Joined: 27 Mar 2008 Posts: 36
|
Posted: Thu May 15, 2008 5:01 pm Post subject: |
|
|
| Totally bizarre...I created a copy of the blue_goth theme and there's a functions.php in the copied folder, just the default theme one. I can't seem to get this feature to show up, though. Maybe Im doing something totally wrong? I just added that bit of code where you said to add it in the functions.php and thought something might happen.... |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5275
|
Posted: Thu May 15, 2008 6:29 pm Post subject: |
|
|
Hi,
The blue-goth theme actually uses the same functions.php as the slate theme. Let's say you copied the blue-goth theme and called it blue-goth-new. You would copy themes/slate/functions.php to themes/blue-goth-new/. Then edit themes/blue-goth-new/register_theme.php and change this line:
require_once(@constant("_CAL_BASE_PATH_") . "themes/slate/functions.php");
to this ..
require_once(@constant("_CAL_BASE_PATH_") . "themes/blue-goth-new/functions.php");
Sorry for any confusion. That theme was created and submitted by a user, so works a little differently . After you make that change it should all be the same. |
|
| Back to top |
|
 |
werufm
Joined: 27 Mar 2008 Posts: 36
|
Posted: Fri May 16, 2008 7:37 pm Post subject: |
|
|
Thanks, I got that all taken care of. What I want to do is have a tab for adding an event. I PM'd you with a picture of what I'm looking for.
Thanks! |
|
| Back to top |
|
 |
werufm
Joined: 27 Mar 2008 Posts: 36
|
Posted: Wed May 21, 2008 12:58 am Post subject: |
|
|
| Really no help there? |
|
| Back to top |
|
 |
werufm
Joined: 27 Mar 2008 Posts: 36
|
Posted: Wed May 21, 2008 1:03 am Post subject: |
|
|
| nevremind that...saw your other post. thanks again for that, this is awesome! |
|
| Back to top |
|
 |
|