Forum Replies Created

Viewing 12 replies - 46 through 57 (of 57 total)
  • I will phrase this differently, as the first poster doesn’t mention a site at all, nor do I, and it really makes <b>absolutely no sense</b> to go post yet another topic about the exact same issue. That confuses other users searching for answers for the exact same issue the three of us are having.

    I, TOO, just like the first two folks in this thread, cannot get my images to work following the upgrade. I’m posting this as a notification that the issues the first two posters are having are not specific only to them. Following the upgrade, images broke, uploads are being problematic. Previous to the upgrade, no problem.

    I am in the process of double and triple checking that my permissions are correct as per esmi’s instructions.

    hhill and kylene22, please respond if any of the above solutions worked, as that will be very helpful. I will do the same.

    Thanks.

    esmi, I emailed you directly about your request to post new threads about the same topic.

    Paintfly, do you mean to see the previous post in this thread? Or is there another thread about this you are referring to?

    hhill — did any of the solutions esmi posted work for you?

    I just updated and all our links and image links too are busted. I’m going to go through all the steps esmi suggested, but… this sounds like something to do with the update.

    Wow, amazing. I just got that same request from my client.

    I will be looking at how to hack that in, coold78, and I’ll post back here if/when I figure it out (if I don’t find a solution here via search first)

    Will

    (@wlanni)

    +1 On this, thanks for posting it Pete. I was just about to post something very similar, but this could go back to my Thematic integration request elsewhere in this forum, noting that the calendar files don’t get read out of the child theme, but out of the parent framework directory.

    Thread Starter Will

    (@wlanni)

    FEATURE REQUEST/SUGGESTION!
    Please make it so any of the files we move from /plugins/wp-events-calendar/views into /themes/[my theme]/events to custom edit are read into the plugin. Specifically events-meta-box.php, in my case, but any file for future customization.

    Please allow for a check against a custom functions.php in the /themes/[my theme]/events that uses hooks or filters? I am using Thematic, and all of my theme customizations are done in a functions.php that modifies Thematic’s built in functions, all using hooks and filters. This way all my customizations are kept separate from the theme’s files, keeping updating safe.

    I’ll post these into new feature request posts as well.

    Thread Starter Will

    (@wlanni)

    OK Progress! I would love feedback on how to do this so that when the next update happens I don’t lose all this work. Currently, only the public viewable files live in my themes folder. I tried copying events-meta-box.php into my theme/events but the calendar didn’t register any changes to it.

    So basically the-events-calendar.php and events-meta-box.php still reside in the plugin directory, and I’m assuming updates will wipe my changes. GRRR! I have suggestions on that, I’ll post them after this:

    I’ll run through what I did:

    1. Added custom meta data to the array in the-events-calendar.php at line 46:
      ///** CUSTOM!*/
      '_EventAdvCost', //advanced ticket cost
      '_EventAdvURL', // advanced ticket url
      '_EventAge', //event age (21 or over? all ages?)
    2. Added functions to initialize and return the meta as strings at line 1497 (I created blank spaces):
      /** CUSTOM!
      * Returns Advanced Cost
      *
      * @return string advanced cost
      */
      function the_event_advanced_cost( $postID = null) {
      	if ( $postId === null || !is_numeric( $postId ) ) {
      		global $post;
      		$postId = $post->ID;
      	}
      	return get_post_meta( $postId, '_EventAdvCost', true );
      }
      /** CUSTOM!
      * Returns Advanced URL
      *
      * @return string advanced url
      */
      function the_event_advanced_url( $postID = null) {
      	if ( $postId === null || !is_numeric( $postId ) ) {
      		global $post;
      		$postId = $post->ID;
      	}
      	return get_post_meta( $postId, '_EventAdvURL', true );
      }
      /** CUSTOM!
      * Returns Age
      *
      * @return string Age
      */
      function the_event_age( $postID = null) {
      	if ( $postId === null || !is_numeric( $postId ) ) {
      		global $post;
      		$postId = $post->ID;
      	}
      	return get_post_meta( $postId, '_EventAge', true );
      }
    3. Updated the interface in events-meta-box.php at about line 357 (created new line) to add my custom advanced cost meta (at the moment I’ve only done advanced ticket cost, as the advanced url will have all kinds of special characters, and the age is going to be a radial, so I don’t know how that is going to work yet):
      <!-- !CUSTOM -->
      <tr>
      	<td><?php _e('Advanced Ticket Cost:',$this->pluginDomain); ?></td>
      	<td><input tabindex="2029" type='text' name='EventAdvCost' size='6' value='<?php echo $_EventAdvCost; ?>' /></td>
      </tr>
      <tr>
      	<td></td>
      	<td><small><?php _e('Leave blank to hide the field. Enter a 0 for events that are free.', $this->pluginDomain); ?></small></td>
      </tr>
      <!-- /!CUSTOM -->
    4. Updated /themes/[my theme directory]/events/single.php to add the advanced ticket cost information, line 26:
      <!--CUSTOM!-->
      <?php if ( the_event_advanced_cost() ) : ?>
      	<dt><?php _e('Adv. Tix:', $spEvents->pluginDomain) ?></dt>
      	<dd><?php echo the_event_advanced_cost(); ?></dd>
      <?php endif; ?>
      <!--/Custom!-->

    So, again, I haven’t added in the other fields (the url for advanced ticket url, or the age restriction), and if I need to do anything weird to get them to work I’ll post back here. Otherwise, follow the example above.

    Thread Starter Will

    (@wlanni)

    OK, I’m making the attempt to hack the calendar to add my own meta data in. If anyone else has done this, or has input, I’d appreciate it. I’ve got a teeny bit of experience hacking plugins to do my bidding, but this is a bit more than I’ve ever done.

    Here’s my plan:

    1. Find the meta tag array (DONE: Line 32 in the-events-calendar.php)
    2. TO DO: Add the meta tags I need (I need to finalize out all the info the club needs, basically most of it is listed in my previous post)
    3. TO DO: Update the calendar’s interface function to add input fields when a new post is being created to account for info being added for those new meta tags
    4. TO DO: Update the calendar’s grid, list and single event display pages grab the meta data and display it for users

    Question: Best practice on editing WordPress plugins? I figure I should NOT alter the original the-events-calendar.php. Should I use the Edit Plugins area to make these edits? And document so when the next upgrade happens, I can go back in and re-apply my edits? Or do I copy over the the-events-calendar.php file to the events directory in my theme to make these changes?

    Thread Starter Will

    (@wlanni)

    Sure enough.

    Honestly, it’s not a huge deal-breaker, as this site is really only going to stick with one theme, but I figured it’s something to place on the radar, as I did read someone else having a similar issue with a ‘child-theme’ elsewhere.

    I’ve got a couple other things that I’m searching the threads here for answers to that are much more important, so as far as I’m concerned (as the person posting the ‘issue’), this could be a low-priority issue to track.

    Anyway, thanks!

    Will

    (@wlanni)

    Just a note, Shane, I’m using Thematic, which is a build of wp-framework theme. Thematic uses ‘Child Themes’ as well. In your instructions for customizing certain files when they break within themes (placing a directory called ‘events’ in the theme folder, with gridview.php, list.php, etc in it), this only works if those files are placed in Thematic’s directory, not the child theme’s directory. So basically those files to be edited while wind up being generic for any child themes I create using Thematic’s framework. Worth looking into. I’ll start a new thread for Thematic support.

    Will

    (@wlanni)

    Looking for something just like this. I guess I’ll keep searching…

    Can you explain how you did this?

Viewing 12 replies - 46 through 57 (of 57 total)