Acts7
Forum Replies Created
-
Forum: Plugins
In reply to: [Pagely MultiEdit] MultiEdit Regions and ConditionalsI see its been 3 months. Hopefully this is still of help to you or others?
// don’t forget to add the suffix class “multiedit_” which is automatically appended to all of your multiedit fields.
//you can find the full name, by viewing your post , going to the custom-fields section and clicking “show/hide multiedit fields”
In your case you should see “multiedit_region”// if you are checking multiple fields in unique spots on your template, be sure to give each a unique variable name. //this could be done easier with a function where you pass the key name but for simplicity this works // define the key you want to find $key4 = 'multiedit_region'; // use this WP built in function to grab the meta key $themeta4 = get_post_meta($post->ID, $key4, TRUE); // now lets see if anything was returned in that meta key value if($themeta4 != '') { // if found , display the multiedit field and its surrounding html code <div class="region"> <h2>heading</h2> <?php multieditDisplay('region'); ?> </div> }
Forum: Plugins
In reply to: WP Grab image class and apply as align attributeI ‘m positive I need some sort of
for each loop for the images on the_content
but I’m awashI’ve also played around with this:
preg_match_all('#align(.*?)(\b)#si', $content, $arr, PREG_PATTERN_ORDER); //print_r($arr); print_r($arr[0][0]); print_r($arr[1][0]); echo 'end of array <br/>'; // gets the full class name $alignDirctnClass = $arr[0][0]; // output: alignleft / alignright // splits off to get only the part AFTER the search phrase $alignDirctnOnly = $arr[1][0]; // output: left / right
This definitely gets me just the “left” or “right” portion I need.
But where I’m lost is this:
How do I compose the preg_replace to
add the attribute of {align=$alignDirctnOnly}
for the specific image?I’ve just been staring at this for too long.
It’s actually been 3 months that I’ve been working on this.
Pulling my hair out then walking away for a while. And trying again.I just can’t seem to make this final connection.
Anyone lend a hand please?
SCREENSHOT: List of files – grabs “Filename Format” – instead of filename or file extensionsmartypants.
Thank you that worked.HOWEVER – there is a new problem…
When using the backend [uploader]…
Any file uploaded this way, shows up on the front-end in the list with the
“Filename Format” prefix.When you click on the file name in the front end list
It pops up in the window.
The top left has the correct file name minus extension (and does not display the “Filename Format” prefix)
When you click to view the file from the popup window…You get taken to this url
https://www.mysite.com/wp-content/uploads/sp-client-document-manager/1/2012-07-30-
Notice the actual filename and extension are missing here from the url.
Forum: Plugins
In reply to: [Plugin: Events Manager] List Recurring Events as one EventThis shortcode is simply filtering the em_events.
So you should have access to all the other arguments[events_list_all recurring="1" location="12"]#F #d {is_long}- #@F #@d{/is_long} #_EVENTNAME at #_LOCATIONNAME<br>[/events_list_all]
Where “12” is the id of the location you wish to use.
It worked on previous versions but did not with the latest push.
How can I submit a code change request?
zondar – if you return… could you post back I’d like to help you get this up and running. ( I don’t work for Marcus or Events-Manager but I’ve done some pretty extensive custom modding to my own copy of it – so I have a decent understanding of the pitfalls in getting it running)
IMPORTANT: Its very possible you selected to turn on the events search instead of including in wordpress searches
Are you sure that you did not select this option by mistake?
Show events search? Yes No
This will only add a search box above your events listings page.
What you need to check is this instead:
Include in WordPress Searches? Yes No
Allow events to appear in the built-in search results.First a few questions…
Did you have a previous version of Events-Manager setup?
Or was this your first install of the pluginWhen you go to “Events Manager” (on the WordPress left nav)
Click on Events
How many events do you see?Are you able to see any events on your site at all?
Under “Events Manager” > Settings > [PAGES] tab
For “Events Page” … what do you have selected in the dropdown box?
And does this page exist for sure?…… okay that should be enough questions to start a basic troubleshooting
Seriously stick with it – lets get this figured out for you – you won’t be sorry. Marcus is definitely one of the MOST RESPONSIVE developers on his plugin. He goes out of his way all the time to help people get things right.
Forum: Plugins
In reply to: [Plugin: Events Manager] List Recurring Events as one EventPastebin – to your code – just in case
https://pastebin.com/pdtY51x6Thank You ! I will give this a try and post back.
Logically – – it looks correct except one part I’m not following:$non_recurrence_evts = array_filter($evts,’is_no_recurrence’);
and
usort($evts_all,’evt_start_sort’);
How does the code know to look for this as a function … being that its in quotes?
Forum: Plugins
In reply to: [Plugin: Events Manager] List Recurring Events as one EventProblem with that is it only lists recurring events not the rest of them.
@marcus ahh yes – I figured it had to be something like this.
Did a basic test and it does indeed seem to work. Ran into a few errors but I think those will work out once I move the proper code to the proper places.THANK YOU!!
Further update:
I switched to method=”GET” on my form field
And that passes the start and end date as a query string.This works to fix the pagination.
However there HAS to be a better solution – isn’t there?
Is there a solution that would allow me to keep using method=”post”?
Or even better how can I hook into the main search form and have the results come back to my second template?
Yes.
This is the most awesome plugin you will ever utilize.
There is an option
Events Manager > Settings
[Pages] Tab
Under the heading “Events Lists / Archives”Include in WordPress Searches? Yes No
Allow events to appear in the built-in search results.First thing to check
In your admin
Events>
[Formats/Layouts] TAB
Expand “Events Format”4th field down:
“No events message:” [___________________]Do you have this field filled out?
Forum: Plugins
In reply to: [Plugin: Events Manager] hide recurring events on list view or group as oneThis is half right.
PLEASE any WordPress experts have some advice?Here’s what I have so far.
I can exclude the recurring events if I tag them with a custom “event category” or “recurring-events” as the slug.However, I’d still like to avoid this route … and just be able to list the recurring events as one event.
There is a “recurring” and a “recurrance” option.
But those will return either JUST THE ONE recurring events or if you turn it off then they list EVERYTHING including the individual ocurrences of the recurring events.This has to be pretty straight forward, in recurring events, its its own post-type. And there is a start and end date.
All the data is there to make it work, I just can’t seem to pull it together properly – but still include other posts.FOR THE SEARCHERS:
Here is the pastebinOh right right.
Yes then, to make it easier on yourself split your format out as a variable.
See my link on the pastebin above.particularly:
[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]