bsha100
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: WordPress VERY slowThere’s a lot of reasons that a site will load slowly. Because it’s happening in wp-admin as well, it’s likely caused by one of these…
- Autoloaded options that grew unchecked ( this is a silent killer, and these will load on EVERY page ) -> Most likely
- WP-Cron jobs fail or overlap without visibility
- Plugins introducing hidden side effects
- Bloated database tables
Forum: Fixing WordPress
In reply to: Customers can see the backendSounds like the user is being directed to wp-admin when logging in. As mentioned above, customers who create accounts will be assigned the role of ‘customer’. You can add this to your theme’s functions.php file to set the redirect explicitly.
add_filter(‘login_redirect’, function($redirect_to, $request, $user) {
if (isset($user->roles) && is_array($user->roles))
if (in_array(‘customer’, $user->roles) || in_array(‘subscriber’, $user->roles)) {
return home_url(‘/my-account/’);
}}
return $redirect_to;
}, 10, 3);
- This reply was modified 3 months, 1 week ago by bsha100.
Forum: Fixing WordPress
In reply to: Block from my own siteSounds like a CDN ( like CloudFlare ) or plugin ( like WordFence ) issue. Could also be a web application firewall. At any rate, it’s not an issue that is occuring in WordPress.
Forum: Plugins
In reply to: [netFORUM Single Sign On] What is my xweb wsdl url?For single sign-on you should use:
nextgen sounds good to me. My problem is that I have a separate directory created for each event page to allow users to upload their own images. Everything functions, however I can’t seem to figure out how to dynamically call each page’s directory to access the images. I’ve been at it for days, and no luck.
tskaleo,
I was trying to edit the file events-manager/classes/em_event.php.
I found my problem, stupid oversight. I was trying to define a variable within a class. I just added a function before the class and it works fine now. If you are using $_FILES, you can either create a function that constructs the variable from $this->(whater you want) to $_FILES[‘whatever_you_want’] or you can just call the POST that $_FILES draws from outside of the class. I did the second, and it seems to work fine.
Thanks for the help guys. tskaleoo, if I can help at all with your image gallery please post and I will do my best.
I forgot to mention that I have tried creating the new directory with 0777 permissions as well.
Forum: Plugins
In reply to: Adding Comments in EVENTS MANAGERThanks for the help. I found a solution on the events manager homepage in the documentation ( probably the first place I should have looked ). I just added
WHERE event_id= '{$EM_Event->id}'and it worked.Thanks,
That worked perfectly!
Any word on how to post images from the front end, or at least does anyone know a good place to start? I feel like I’m really close, but everything I have tried so far has not worked.
Thanks in advance for any help anyone can provide.
I was wondering about the Images as well. The plugin allows for ‘placeholders’ so I think that might be a place to start. If I figure it out I’ll post it.
You can change the permissions in EVENTS>SETTINGS to allow the permissions that you need.
To fix the map, I just added this code to the form:
<div class=”inside”>
<input id=’location-latitude’ name=’location_latitude’ type=’text’ value='<?php echo $EM_Location->latitude; ?>’ size=’15’ />
<input id=’location-longitude’ name=’location_longitude’ type=’text’ value='<?php echo $EM_Location->longitude; ?>’ size=’15’ /></div>If you don’t want the coordinates fields to display on the form just add style=”visibility: hidden;” to the <div> tag.
Hope this helps
Marcus,
You were right, it worked like a charm. If you ever need a kidney, I want you to come to me first.
Marcus,
This is an phenomenal plugin and is by far the easiest plugin I have ever found for customization, as well as the features that can be enabled right from the setting s panel.
I too, am interested in allowing logged in users to post events. I was wondering if you might be able to point me in a direction as I’m trying to figure out what needs to be edited to allow this to happen.
Thanks, and keep up the great work.