pookster
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: featered blocks on homepageThanks Steve for the suggestions! These plugins look great, but it’s not exactly what I want. I need to be able to change the text in a block, without changing the text of the actual post or page. Thats why my first thought would be some kind of widget. But if there’s a plugin that lets you build simple blocks with an image, text and on top of that a link, it would be great
Hi Sedat,
You can easily place the code in the function.php of your theme.
For translation support you probably have the upload a Turkish language pack, but i’m not sure.
You can make a page in your admin and add, for example the following code
[events_list_grouped scope="third-month" mode="monthly" date_format="F Y"] #_EVENTDATES #_EVENTNAME Start: #_24HSTARTTIME #_ATT{Entree} [/events_list_grouped]
See the help for all shortcodes you can use, such as location, categories and eventlist.
Nevermind. I’ve got it up and running.
add_filter( 'em_events_build_sql_conditions', 'my_em_scope_conditions',1,2); function my_em_scope_conditions($conditions, $args){ if( !empty($args['scope']) && $args['scope']=='third-month' ){ $start_month_timestamp = strtotime('+2 month', current_time('timestamp')); //get the end of this month + 1 day $start_month = date('Y-m-1',$start_month_timestamp); $end_month = date('Y-m-t',$start_month_timestamp); $conditions['scope'] = " (event_start_date BETWEEN CAST('$start_month' AS DATE) AND CAST('$end_month' AS DATE))"; } return $conditions; } add_filter( 'em_get_scopes','my_em_scopes',1,1); function my_em_scopes($scopes){ $my_scopes = array( 'third-month' => 'Third month from current date' ); return $scopes + $my_scopes; }
So, I finaly figured out that it’s possible to write your own scope
Unfortunately my code doesn’t work. It’s keeps saying “no events”.
add_filter( 'em_events_build_sql_conditions', 'my_em_scope_conditions',1,2); function my_em_scope_conditions($conditions, $args){ if( !empty($args['scope']) && $args['scope']=='third-month' ){ $now = time(); $future = strtotime('+2 months', $now); $start_date = mktime(0,0,0,date('m',$future),1,date('y')); $end_date = mktime(0,0,0,date('m',$future)+1,0,date('y')); echo date('d-m-Y', $start_date)," tot " ,date('d-m-Y', $end_date); $conditions['scope'] = " (event_start_date BETWEEN CAST('$start_date' AS DATE) AND CAST('$end_date' AS DATE)) OR (event_end_date BETWEEN CAST('$end_date' AS DATE) AND CAST('$start_date' AS DATE))"; } return $conditions; } add_filter( 'em_get_scopes','my_em_scopes',1,1); function my_em_scopes($scopes){ $my_scopes = array( 'third-month' => 'third month from current date' );
I’ve managed to display the current and next month with the attribute scope. The thing I’m trying to achieve is three columns with events. The third column should display events that will take place in three months from the current date.
Is this possible?
I found out that the jquery Isotope is causing the problem. For as far I know, this is a known problem that hasn’t been solved yet. Am I correct?
Check. I’ve send the report.
If you need additional information, just let me know.
I’m trying to fill in the report, but it keeps saying “There was a problem with your submission. Errors have been highlighted below.”
There’s nothing highlighted and I’m pretty sure I’ve filled in all fields correctly.
I just put the direct link to all css, needed for the nextgen gallery, directly into the header, so the aren’t loaded dynamical any more. That helped loading the css. The thumbnails are now looking god.
But, the lightbox(or other effects) still isn’t working. However, the javascript did load.
Thanks for the reply. I’ve checked the Permalinks, they are already set to default. Also deactivating the plugins did not work.
I’ve compared the source of both pages, and on the onepage website, the css isn’t even loaded. I’ve also tried these options
Unfortunately the problem is still there.
Forum: Plugins
In reply to: [WP Calendar] [WP Calendar] Not showing past eventsanyone?
Forum: Plugins
In reply to: [plugin: Jquery colorbox] How to open html in lightboxnever mind.. i’ve solved it.
Forum: Themes and Templates
In reply to: Horizontal scrolling with nextgen@admin: i just noticed my post is in the wrong section. Could you put it in ‘Plugin & Hacks”
Forum: Plugins
In reply to: Contact Form 7 Lightbox installation NOTES & FIXESGreat tutorial, but after the submission of the form, the lightbox just closes without any notification that the form was sent. Same thing happens during form validation.
Do you have a solution for that?
Forum: Fixing WordPress
In reply to: show parent, child and grandchild on grandchild pageLet me give you an example of what I’m trying to achieve.
- I have 5 mainpages (1 to 5)
- Page 3 has two children (3.1 and 3.2)
- Child 3.1 also has two children (3.1.1 and 3.1.2)
I only want to see the children 3.1 and 3.2 when their parent is active. So, only see children when the parent is active. But, when I’m on a childpage 3.1 or 3.2, the parents still need to be visible (1 to 5).
The same for the children of the children. I only want to see 3.1.1 and 3.1.2 when page 3.1 is active. But, when I’m on page 3.1.1 or 3.1.2 all parents need to be visible ( page 1 to 5 and page 3.1 and 3.2)
And I realy would like to have alle three levels (3, 3.1 and 3.1.1) in separate ul’s).
I just can’t get it to work. Hopefully it’s clear what I want.