scamrcalendar

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • scamrcalendar
    Participant

    Andras,

    Thank you so much for your help. I was using a Page Builder to create some of the pages. I know the original page had the widget there. However, the Page Builder was updated and it appears to have expanded the code out. As soon as I removed the Page Builder and put back the mini widget – all is happy again.

    This was a good lesson for me to really think about all the areas a plug-in impacts, before upgrading it.

    Again – many thanks!

    Cheers
    Kathy

    scamrcalendar
    Participant

    This reply is private.

    scamrcalendar
    Participant

    This reply is private.

    scamrcalendar
    Participant

    This reply is private.

    • This reply was modified 8 years, 5 months ago by scamrcalendar.
    scamrcalendar
    Participant

    This reply is private.

    scamrcalendar
    Participant

    This reply is private.

    scamrcalendar
    Participant

    This reply is private.

    scamrcalendar
    Participant

    I have updated my theme (Minimaze Pro) and the above errors are now gone.

    Unfortunately, the problem still persists. The mini-calendar widget still doesn’t work. Clicking on the next >>, previous << or any date just takes one back to the main website page (where the widget resides). It should move to next/prev month, or pull up the specific day view of the calendar.

    For some reason, the URL that one should be taken to when clicking on the PREVIOUS MONTH <<, the NEXT MONTH >>, or a specific date, say the 8th, all return a URL of suncityanthemhikingclub.com/#. The # should have the URL info for each specific page.

    in reply to: How to use multiple templates for single events #1131798
    scamrcalendar
    Participant

    1. Using the Advanced Custom Fields Plug-In, I created a custom field called is-there-a-hike. This has a field type of Select, and the options are 1 : YES and 0 : NO. The default value is set to 1 (yes), so I only have to change it in the no hike scenarios. Then in the Location section for this custom field (still in the ACF custom field), the “Show this field group if” is set as “Post Type is equal to tribe_events”. This way this custom field ONLY shows up if I am creating a calendar event – but it won’t show for any regular page or post work.

    I set the Order No (under options right below the Location box) to 0 – so that it will be the first custom field to show for an event. That way, if there is no hike, I can select no on that field and be done quickly.

    2. In my custom single-event.php file. This is stored in my child theme in a folder called tribe-events. DO NOT modify the original Tribe-events file.

    Create a IF/THEN loop so that IF the is_there_a_hike custom field is set to 1 (YES), the information shows, and IF the variable is set to 0 (NO) then the info is hidden.

    <!--  SHOW CONTENT ONLY IF THERE IS A HIKE -->
    <?php $ishike=get_field("is_there_a_hike")?>    <!-- get value from custom field -->  
    
    <?php if ($ishike == 1) {?> 
    
          <!-- stuff you want to show when there is a hike (variable is set to 1 (yes)) goes here -->
    
    <?php } ; ?>
    <!-- END IF, SHOW SECTION ONLY IF HIKE THAT DAY -->

    I’m sure there are more glamorous ways to do this, but it works pretty slick.

    in reply to: Events Calendar not displaying unless user is logged in #1067804
    scamrcalendar
    Participant

    Hi Cliff,

    It turned out that the Members plug-in I was using to set user Roles, had the “Enable Content Permissions” feature turned on. When I disabled this, then the calendar displays just fine.

    I will follow up with the Members plug-in folks to understand this better.

    Apologies for pinging you folks on this one.

    – Kathy

    scamrcalendar
    Participant

    Hi Geoff,

    It turns out that by using the following

    if ( is_user_logged_in() ) {

    // This is the main part of the single-event template

    } else {

    // This could be html or whatever to show the user something if they are not logged in

    }

    The entire single event page does not show until the user is logged in. I just left the else {} blank, and allow the system to serve up my login requirement message and screen, but one could override it with something specific.

    Thanks to Chad at wp_members support for coming up with this. I had tried many things, but missed the obvious. This was a nice, simple way to implement what I needed.

    Thanks to you, Geoff, for all your help in digging up info on this too. If you find pointers to documentation/functions/etc – that’d be awesome. If not, ’tis ok.

    You can consider this one closed. 🙂 Have a great weekend.

    – Kathy

    scamrcalendar
    Participant

    Hi.

    Thanks for the pointers. I have created a single-event.php per the Themer’s Guide. I also had found the lines of code I thought were of issue, and you confirmed that – so thanks for that!

    However, in trying to move the Event Meta functions around, all I succeeded in doing was moving the actual event summary / map window around. But it always still displayed.

    I’m guessing that there is something in ‘tribe_events_single_event_description’ that I might need to modify – but I have no clue where to find the function itself (or documentation on it). Where might I find this?

    Thanks
    Kathy

    scamrcalendar
    Participant

    Check out HikeEvent to see the event summary info that is NOT hidden.

    scamrcalendar
    Participant

    Hi Geoff,

    Thanks for the info on the Members plug-in. I was using the WP-Members already. I installed Members and gave it a whirl. Unfortunately I seem to run into the same issue whether I use WP-Members to block/allow content, use Members to set permissions for viewing content, or both.

    In WP, the Event Restriction (via WP-Members) is set to Blocked.
    Content permissions are set so Admins, Author, Contributor, Editor, Event Coordinator & Subscriber can view.

    A Contributor’s permissions are set to allow reading of events, venues, organizers.

    Both do a good job of restricting content to everything BUT the Event summary at the bottom of the event screen. This summary has the Details (date, time, cost, event category), the Organizer (name, phone, email), the Venue (city, state, GPS coordinates) and the Google Map.

    For folks that are not logged in/do not have permissions to view an event, I need to hide the event summary info as well.

    Both plug-ins seem straight forward, but I am guessing that I’m missing something?

    in reply to: Removing extraneous "day" "number" from event list #1061123
    scamrcalendar
    Participant

    Hey Hunter,

    Thanks for the feedback. I will give it a go.

    Thanks too for the pointers on how to inspect elements – that has made a HUGE difference – I can now know where to look vs just hunting and guessing through the files.

    You’ve been a great help and I appreciate the pointers even though I was asking a “custom” request!

    Cheers – and again, thanks!

    – Kathy

Viewing 15 posts - 1 through 15 (of 19 total)