akiraprise
Forum Replies Created
-
Hi again,
You actually both really helped, I’ve got 2 ticket affiliates, so I’ve managed to use both Bucketsaway code as a dropdown selection and scharc’s as a text input!
Thanks again
AkirapriseHey everyone,
Thanks for looking into this and giving me 2 different options, I’m not sure which is best for my needs.
Bucketsaway, I’ve put that code you posted in my functions file, added a #_ATT{styles}, put a text string in it on one event and tried to show the content with {is_styles}Conditional is working{/is_styles}, but it doesn’t seem to work, am I doing something wrong?
and scharc, this also sounds interesting, could yuo give me an example of your code or how to implement this?
Sorry guys but I’m a bit of a novice with php, but I really appreciate you both looking into this and giving me advice! Thanks ??
I had this problem too, but found out it was because I’d installed the plugin under events-manager-3, and not just events-manager, so the plugin couldn’t find the JS to load the datepicker.
I’ve fixed it but just wanted to put it here incase anyone else has the same problem
Hi,
I’ve tried the RC1 now and that works fine except from the categories problem – which seems like an odd problem.
Basically, in the settings admin, categories is turned on:
https://meak.in/evo/em-cat2.jpgBut there’s no link to the categories section in the left-hand navigation (like there was in V4):
https://meak.in/evo/em-cat3.jpgWhen I edit an event I can select any of the categories I had created prior the the upgrade:
https://meak.in/evo/em-cat1.jpgBut can’t edit them or add new ones. also the #_CATEGORYNAME shortcode (or any categories) don’t work ?? Any ideas? ta
Yea – for some reason I can’t edit any of the categories when I was running the new version, there isn’t a menu link to do it! :s
I’ve given up and reverted to the stable version of 4 for now as I can’t seem to get the beta to work, I’ll just wait until it’s been through a few versions,
Cheers
RussellHey,
I managed to fix it so thought I’d post up about how I fixed it as it’s slightly odd and probably down to the way the site’s set up.
Basically, I had an old backup of the site on another server – where everything was working perfectly with the new version, so I tried everything I could to mimic it on my live development site – what I found was that the wp-options table was where the problem lied – so I’ve used the other development site’s wp-options table and it works perfectly now ?? Phew!
Only thing – #_CATEGORYNAME no longer works – is this still the right shortcode?
ta
Anyone willing to take on the job? Or can recommend someone? I really need to get this fixed on the site to launch it – please? ??
ta
It’s just a very simple text attribute that I’ve set up using the included attribute framework built into the plugin, so please, anyone fancy making a very quick and easy buck? ??
Thanks – one last thing ( I hope… ?? ) I’m afraid I can only hack around at PHP code and don’t really have a clue how it works….
How do I get the function to check if one of the attributes are filled in, for example “#_ATT{spotlight}” and return a value based on that, please help ??
add_action('em_event_output_condition', 'my_em_spotlight_event_output_condition', 1, 4); function my_em_spotlight_event_output_condition($replacement, $condition, $match, $EM_Event){ if( is_object($EM_Event) && preg_match('/^has_style_(.+)$/',$condition, $matches) && is_array( $EM_Event->styles ) ){ if( in_array($matches[1],$EM_Event->styles) ){ $replacement = preg_replace("/\{\/?$condition\}/", '', $match); }else{ $replacement = ''; } } return $replacement; }
Hi Marcus, I was putting the placeholders in the correct place in the EM Settings page, but it wasn’t working – now, for some reason – it is, so not to worry ??
Whilst you’re here… The conditional Placeholders code from the tutorial, where do I put this? I’d only like a few simple conditional placeholders, for example 2 ticket links,
Thanks for the quick replies btw Marcus!
Ignore the second question – I’ve found the condition placeholders tutorial ??