Support

Home Forums Custom Files Add-on (EE3) very basic stuff

very basic stuff

Posted: December 28, 2012 at 3:41 am

Viewing 16 reply threads


nsantossilva

December 28, 2012 at 3:41 am

Hello,

Sorry for the very basic questions, but i am not an expert.

What do i need to do to see the movie list custom file reflect in my events pages, i have already copy all the files to the uploads directory. Do i have to change the the page that have the [event_list]?

sorry for the very basic question but once i figure this out i will do the rest.

A very good new year for everyone.

Nuno Paulo


Dean

December 28, 2012 at 4:05 am

Hello Nuno,

Add the shortcode [ESPRESSO_MOVIE_TABLE].

In the custom_shortcodes.php file is the code with some further information regarding usage, outlined below

Description: Displays a movie listing like table. Allows you to show
events in a CATEGORY within a certain number number of days into the
future and a qty. The example below only shows events in a certain
category that start within 30 days from the current date. Usage
Example: [ESPRESSO_MOVIE_TABLE max_days=”30″ qty=”3″
category_id=”gracecard” ] Custom CSS for the table display Notes: This
file should be stored in your
“/wp-content/uploads/espresso/templates/” folder and you should have
the custom_includes.php files installed in your
“/wp-content/uploads/espresso/” directory.

You can replace the [EVENT_LIST] shortcode or you can create a new post/page with the [ESPRESSO_MOVIE_TABLE] shortcode on it. That will display the movie list style.

The custom files addon isn’t recommended for those that dont like to touch code as its more of a starting point to create something rather than drop in code, but if you do have any more questions feel free to ask away, thats what we are here for.


nsantossilva

December 28, 2012 at 6:48 am

Hello,

i have replaced the [event_list] for the [ESPRESSO_MOVIE_TABLE] but the page is empty. i have copied all the files for the respectives directories, can you help me? once i understand this step i will manage the rest.

Thanks

Nuno


nsantossilva

December 28, 2012 at 6:50 am

Sorry this is the link with the [event_list]

http://newsite.serpessoa.com/eventos/

once i replace this with the [espresso_movie_table] none of the teste events appear

thanks

Nuno


Dean

December 28, 2012 at 8:02 am

Hi,

OK, so the format for the shortcode is:

[ESPRESSO_MOVIE_TABLE category_id=”acategory-1356706465″ max_days=”30″ qty=”1″]

Note that the category_id must be the unique identifier, not the name.

I wasnt aware of this but there is an update that needs to be applied.

on line 35 of the movie_list template replace:

ob_start();
espresso_get_movie_tabe($sql);
$content = ob_get_contents();
ob_end_clean();
return $content;

with

espresso_get_movie_tabe($sql);

I’ll get the devs to look at updating that.

The table that will appear will look like this. If you need it to look different you will need to look at changing the php code. As mentioned earlier, the custom files add on is to be used more as a base than a drop in option.


nsantossilva

December 28, 2012 at 8:05 am

Hi Dean,

Thanks for your reply i will try this, just another question if i want to post all cetegories can i leave the categories fiel blank?

thanks

Nuno


Dean

December 28, 2012 at 8:08 am

Hi,

Unfortunately not. This particular shortcode requires the category. I would look at using the [ESPRESSO_TABLE] shortcode instead if you want all the events listed


nsantossilva

December 28, 2012 at 8:53 am

Hi Dean,

Thanks for the help i am getting somewhere, can you tell me or give me some clues to just have in the table in this order with no title data, event name, register.

Thanks

Nuno


Dean

December 28, 2012 at 10:04 am

Something like this? http://d.pr/i/VOnf

If so you will need to edit the espresso_table.php – what I did was to comment out the PHP for the titles and for the extra columns like the date etc – have a look here for the example http://pastebin.com/PqwfWA8B


nsantossilva

December 28, 2012 at 10:59 am

yes,

Thanks Dean you’re the man ๐Ÿ˜‰

i will try it.
Happy new year to all of you

Regards

Nuno


nsantossilva

December 28, 2012 at 11:12 am

Sorry just one more.

This is what i got http://d.pr/i/tU89

how can i make the table cleaner like yours

thanks

Nuno


Dean

December 31, 2012 at 12:59 am

Hi,

That will be down to either removing the extra columns that I left in or changing the CSS (the themes) to stop the table from having a border

your theme currently has the css on line 502

.entry table td {
padding: 6px 0 3px 10px;
border: 1px solid #E6E6E6;
}
so removing the border their will do it


nsantossilva

January 2, 2013 at 2:38 am

Hello,

Hope all off have had a great start for this new year, wish all the best to all the team.

thanks for your reply, i have manage to change the table, i have been triyng to understand how css works and whare are the references to the code but still a bit confusing to i have been triyng to use firebug to look for that part of the css but is not being easy. I will get there ๐Ÿ˜‰

Can you tel me where i can change the font and table size, because the spaces are very big, and if is possible to put an underline in the rows. Sorry i know this is not about the plug in but if you could help i woul be very thankfull.

Here is the link to the test events:

http://newsite.serpessoa.com/eventos/

thanks

Nuno Paulo


Dean

January 2, 2013 at 5:12 am

Hi,

I can certainly give you some pointers.

Most CSS changes will go in the themes style.css file at the bottom. This can be found in WordPress via the menu Appearance > Editor. The first file that comes up is the style.css.

You can also use a plugin such as http://wordpress.org/extend/plugins/my-custom-css/ to add custom css without touching the theme files.

One thing I noticed is that your table is wrapped in “ tags which is causing an inability to style the table correctly, so you will need to check your code and remove them, otherwise you will only get frustrated when nothing changes.

The underline is best created by targeting the tags and adding a bottom-border to it. Something like:

.espresso-table tr {
border-bottom: black thin solid;
}

You can google CSS and find a lot of resources on learning it, for example http://www.w3schools.com/css/css_intro.asp

Hope that helps!


nsantossilva

January 2, 2013 at 7:55 am

And the font, how can i change the font, and the width of the table

thanks

Nuno


Dean

January 2, 2013 at 8:16 am

Hi,

We can’t really style the theme for you, if you need a web designer/developer you can post something on the jobs board. Otherwise the link I provided does have information regarding styling fonts.


nsantossilva

January 2, 2013 at 8:26 am

i am just having some problems around this table the rest i will manage, but thanks you have been very helpfull trough all my questions

thanks

Nuno

Viewing 16 reply threads

The support post ‘very basic stuff’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso