[EventCalendar] today's event on index
Tim Schrock
tdschrock at hotmail.com
Tue May 29 17:40:56 UTC 2007
Ah, you’re looking at the “View Source.” I forgot about this, but the code
I’m talking about won’t appear if you look at my source. Since it is php (I
believe I’m correct that this is server side scripting), the coding is
returned to your browser as hard-coded html, when in fact, I’ve scripted it.
Yes, you did see the link for ec3_days=30, but also notice the events
calendar on the right sidebar, titled NARI EVENTS. These are pulled
directly from ec3.
Include this coding in your index page if you have created it yourself…
//These first 3 lines are not necessary if you’re doing it in Wordpress
since these functions are already called in the setup
//Make certain to put the correct pathname to your Wordpress installation
//These “include” statements allow the page to connect to the Wordpress (and
EC3) database, complete with all custom functions and calls.
<?php include_once('wordpress/wp-config.php');
include_once('wordpress/wp-includes/wp-db.php');
include_once
('wordpress/wp-content/plugins/eventcalendar3/template-functions.php'); ?>
//here is where you can enter whatever ec3 (or WordPress) function you want
<?php ec3_get_events(5) ?>
Try this to start out with a page you create using strictly php. If you
want to put php coding in your html pages, you’ll have to modify the server
settings so that it knows to put the php engine to the html pages as well.
(by the way, I did find that you can to html coding in php pages too – no
server scripting mods then).
Hope this helps.
Tim
Tim Schrock
Design Build Solutions, LLC.
HYPERLINK
"http://www.designbuildsolutionsllc.com/"www.DesignBuildSolutionsLLC.com
HYPERLINK
"mailto:info at designbuildsolutionsllc.com"tim at designbuildsolutionsllc.com
Phone: 765-482-6371
Fax: 866-699-4192
_____
From: eventcalendar-bounces at firetree.net
[mailto:eventcalendar-bounces at firetree.net] On Behalf Of Felipe Carvajal
Molina
Sent: Tuesday, May 29, 2007 12:16 PM
To: Support for EventCalendar plugin
Subject: Re: [EventCalendar] today's event on index
i am referring to the first page my visitors see. It could be a page created
by me or one made by wordpress. I saw on your site that u have a link to go
blablabla...wordpress/?ec3_days=30, this is the list i need, but i don't
want to have a link on my home to go there. I want the "index" shows it.
Thanks.
----- Original Message -----
From: HYPERLINK "mailto:tdschrock at hotmail.com"Tim Schrock
To: HYPERLINK "mailto:eventcalendar at firetree.net"'Support for EventCalendar
plugin'
Sent: Tuesday, May 29, 2007 10:07 AM
Subject: RE: [EventCalendar] today's event on index
Felipe,
You have mentioned “index page” a couple of times. Are you referring to the
WordPress homepage, or another page (separately created) on your website?
I have my website index page (separately created as an .htm page), pulling
ec3 functions from within the .htm page, and there is nothing passed thru
the url. All of mine is behind the scenes in php and I didn’t use a plugin.
I did have to set up the server to run php on .htm pages, but that’s easy
(for my server it was).
I may not be understanding what you’re trying to do. So, check out
HYPERLINK "http://www.wabashvalleynari.org/"www.wabashvalleynari.org and
right on the main page is our events list. I used a different ec3 function
than you want, but I can use any ec3 function I wish.
Hope this helps.
Tim
Tim Schrock
Design Build Solutions, LLC.
HYPERLINK
"http://www.designbuildsolutionsllc.com/"www.DesignBuildSolutionsLLC.com
HYPERLINK
"mailto:info at designbuildsolutionsllc.com"tim at designbuildsolutionsllc.com
Phone: 765-482-6371
Fax: 866-699-4192
_____
From: eventcalendar-bounces at firetree.net
[mailto:eventcalendar-bounces at firetree.net] On Behalf Of Felipe Carvajal
Molina
Sent: Monday, May 28, 2007 1:16 PM
To: Marc Smith
Cc: Support for EventCalendar plugin
Subject: [EventCalendar] today's event on index
????. Sorry for bothering you... i think that's the way i have to do it...
but how? i know that "?ec3_days=7" means that a function and varibles are
being pass through the url.
My doubt y how to call the function "ec3" using value 7 for "days" from
within the index page.
----- Original Message -----
From: HYPERLINK "mailto:info at stuntmusic.com"Marc Smith
To: HYPERLINK "mailto:felipe at futurista.cl"Felipe Carvajal Molina
Sent: Monday, May 28, 2007 12:04 PM
Subject: Re: [EventCalendar] today's event on index
You should be able to place that code in a PAGE as well as a post using the
runPHP plug in.
----- Original Message -----
From: HYPERLINK "mailto:felipe at futurista.cl"Felipe Carvajal Molina
To: HYPERLINK "mailto:info at stuntmusic.com"Marc Smith
Sent: Monday, May 28, 2007 11:51 AM
Subject: Re: [EventCalendar] today's event on index
Thanks Marc... i've already use that code..and i need to show the entries as
a post, with title, body, date and time of the event and number of comments.
The ?ec3_days=7 parametres shows the way i want. I need to know how to show
that without sending those parametres by url.
Thanks again.
----- Original Message -----
From: HYPERLINK "mailto:info at stuntmusic.com"Marc Smith
To: HYPERLINK "mailto:eventcalendar at firetree.net"Support for EventCalendar
plugin
Sent: Monday, May 28, 2007 11:21 AM
Subject: Re: [EventCalendar] today's event on index
Felipe,
You can use a plug in that allows you to use PHP code on a page within
WordPress. I use runPHP and the code:
<p>
<?php ec3_get_events(4, // limit
'%DATE%: <a href="%LINK%">%TITLE%</a>', // template_event
'',
// template_day
'j',
// date_format
'%MONTH%:' //
template_month
);
?>
</p>
And it appears like this:
HYPERLINK "http://www.pcdm-band.com"http://www.pcdm-band.com the first
page you see is a post using the PHP code within a post.
----- Original Message -----
From: HYPERLINK "mailto:felipe at futurista.cl"Felipe Carvajal Molina
To: HYPERLINK "mailto:eventcalendar at firetree.net"eventcalendar at firetree.net
Sent: Monday, May 28, 2007 10:51 AM
Subject: [EventCalendar] today's event on index
Hello guys. First of all, i have to congratulate the team wich created this
amazing plugin.
I'm a newby on wp and eventcalendar, so i have a lot of question, but i'm
gonna ask just one. Here it is...
how can i make the index page shows the events the same way as if i type
.../wordpress/?ec3_days=7 ?
Is there any way to start that variables from the index page?
I'm using wp2.09 and event calendar 3.1.1._rc1.
Ok. i hope i can solve this, i need it for my proyect.
Thanks.
_____
_______________________________________________
Blog: http://wpcal.firetree.net/
EventCalendar at firetree.net mailing list
Unsubscribe: http://penguin.firetree.net/eventcalendar
_____
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.472 / Virus Database: 269.8.1/822 - Release Date: 5/28/2007
11:40 AM
_____
_______________________________________________
Blog: http://wpcal.firetree.net/
EventCalendar at firetree.net mailing list
Unsubscribe: http://penguin.firetree.net/eventcalendar
_____
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.472 / Virus Database: 269.8.1/822 - Release Date: 5/28/2007
11:40 AM
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.472 / Virus Database: 269.8.1/822 - Release Date: 5/28/2007
11:40 AM
_____
_______________________________________________
Blog: http://wpcal.firetree.net/
EventCalendar at firetree.net mailing list
Unsubscribe: http://penguin.firetree.net/eventcalendar
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.472 / Virus Database: 269.8.1/822 - Release Date: 5/28/2007
11:40 AM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://penguin.firetree.net/pipermail/eventcalendar/attachments/20070529/52dd0a17/attachment-0001.html
More information about the EventCalendar
mailing list