kennnesbitt
Forum Replies Created
-
Forum: Plugins
In reply to: [Print-O-Matic] content not going to printI was having what I think may be the same issue with version 2.16. I know everything was working a couple of days ago, when I checked today, the Print icon and link no longer do anything when clicked.
I have rolled back to 2.14 from a recent backup and it’s working now.
Forum: Plugins
In reply to: [Print-O-Matic] Exclude html tag?The latter solution worked. There’s no “options” page or “print css” section, but adding it to Settings > Print-O-Matic > Custom Print Page Style did the trick. Thanks!
Forum: Plugins
In reply to: [HandL UTM Grabber / Tracker] Capturing UTM Params from WebpushrI am indeed using GA for tracking. Though it appears I don’t need to do anything after all. I set a filter in GA to show me the visitors with the Webpushr UTM codes and, sure enough, GA gives me the Pages/Session for just those visitors.
I appreciate your time and patience on this. I will definitely come back to your plugin in the future if I ever need to track lead conversion!
Forum: Plugins
In reply to: [HandL UTM Grabber / Tracker] Capturing UTM Params from WebpushrActually, I was looking for just the opposite. When people arrive at my site from a Webpushr link, they will have UTM params in the LINK.
I don’t want to put these UTMs into a form, as I’m not generating leads and needing to track where they came from. I just want some way of knowing how many pages a user visits on my site after clicking on one of my push notifications.
Forum: Plugins
In reply to: [HandL UTM Grabber / Tracker] Capturing UTM Params from WebpushrIdeally, what I’d like to know is the average number of pages users view after visiting my site from push notification. Knowing this would help me get a more accurate sense of the value of the notifications.
They will arrive at the site with UTM params in the URL but I assume that information would be lost if they navigated to another page.
Would HANDL UTM Grabber maintain the UTM params as they visit other pages? If so, that’s all I need, as I can set up a Google Analytics filter to tell me the rest.
Thanks, Blaz. Hopefully the prevent accidental votes will do the trick. I appreciate your reply.
Hi @stevethebartender – Here is the full page template code from GiggleVerse. The template itself is called page-template_sort-poems-by-rating.php. The four lines of code that are commented out are what I was using to debug the template. I left them in here in case they might come in handy for your testing.
<?php /* * Template Name: Sort Poems by Rating * Template Post Type: page */ get_header(); ?> <div class="content"> <div class="row"> <main class="column large-8 medium-8 small-12"> <div class="gv-topic-list"> <h1>Most Popular Poems</h1> <p>Here are the most popular poems on GiggleVerse, as rated by you! These may change as more poems are added to the site and more people rate them, so keep on reading and voting for your favorites!</p> <?php $colors = array('red', 'blue', 'purple', 'green', 'slate', 'orange', 'concrete'); $i = 0; add_filter('posts_orderby', 'edit_posts_orderby'); add_filter('posts_join_paged','edit_posts_join_paged'); add_filter( 'posts_groupby', 'edit_posts_groupby' ); function edit_posts_groupby($groupby) { global $wpdb; $analytics = $wpdb->prefix . "rmp_analytics"; $groupby = "$analytics.post"; return $groupby; } function edit_posts_join_paged($join_paged_statement) { global $wpdb; $analytics = $wpdb->prefix . "rmp_analytics"; $join_paged_statement .= "LEFT JOIN $analytics ON $analytics.post = " . $wpdb->prefix . "posts.ID"; return $join_paged_statement; } function edit_posts_orderby($orderby_statement) { global $wpdb; $analytics = $wpdb->prefix . "rmp_analytics"; $orderby_statement = "(SUM($analytics.value)/COUNT($analytics.votes)) DESC"; return $orderby_statement; } $paged = get_query_var( 'paged' ); $args = array( 'post_type' => 'gv_poem', 'post_status' => 'publish', 'posts_per_page' => 24, 'paged' => $paged, ); $query = new WP_Query($args); //echo "<br />Records returned: " . $query->found_posts . "<br />"; //echo "<br />Post Count: " . $query->post_count . "<br />"; //echo "Last Error: " . $wpdb->last_error . "<br />"; //echo "Last Query: " . $wpdb->last_query . "<br />"; ?> <ul> <?php if ($query->have_posts()) : while ($query->have_posts()) : $query->the_post(); $queried_object = get_queried_object(); $taxonomy = $queried_object->taxonomy; $term_id = $queried_object->term_id; $icon = get_field('poemicon'); $author = get_the_terms($post->ID, 'author'); if ($i == count($colors)) { $colors = array('red', 'blue', 'purple', 'green', 'slate', 'orange', 'concrete'); $i = 0; } ?> <li class="<?php echo $colors[$i]; ?>"> <?php if ($icon) { ?> <img class="topic-icon" src="<?php echo $icon; ?>"> <?php } ?> <h3><?php echo get_the_title(); ?></h3> <?php if ($author) { ?> <div class="gv-poem-author">by <?php echo $author[0]->name; ?></div> <?php } ?> <div class="gv-view-poem">View Poem ⟶</div> <a href="<?php echo get_the_permalink();?>"></a> </li> <?php $i++; endwhile; endif; ?> </ul> <?php if (function_exists("pagination")) { pagination($query->max_num_pages); } wp_reset_postdata(); ?> </div> </main> <?php get_sidebar(); ?> </div> </div> <?php get_footer(); ?>Forum: Plugins
In reply to: [Print-O-Matic] How to add margins to printed page?That did the trick. Thanks!
Hi @stevethebartender – Your site looks great!
I used this code on two different websites, but I don’t use it on my home page like you are doing.
On https://www.giggleverse.com/ I put it in a page template called page-template_sort-by-rating.php. Then I just created a blank page and applied that template to it.
On the https://www.poetry4kids.com/ I put it in the archive pages for each of my custom post types (e.g., archive-poem.php, archive-nursery_rhyme.php, etc.). Or, rather, I put the code in a separate custom-poem-sort.php file and then included that file in each of the custom post type archives.
I hope that helps.
My pleasure. Feel free to add this to your documentation if you think it’s appropriate.
Cheers,
KennForum: Plugins
In reply to: [Rate My Post - Star Rating Plugin by FeedbackWP] Hover texts not showingThanks, Blaz. I went through most of those steps before posting. The console isn’t showing any errors.
This isn’t a huge issue, and the site won’t launch until April. I’ll revisit this if the problem is still occurring then.
Forum: Plugins
In reply to: [Simple Rating] Feature suggestionUpdate. I decided I didn’t want to show the number to my users (to keep things simple). So I modified the code in spr_show_voted() as follows:
if ($show_vc) { if (is_super_admin()){ $html .= '<span id="spr_votes">'.$votes.' '.vote_counter_form($votes).' ('. number_format((float)$rate, 2, '.', '') .')</span>'; } else { $html .= '<span id="spr_votes">'.$votes.' '.vote_counter_form($votes).'</span>'; } }Forum: Plugins
In reply to: [Simple Rating] Guest cote problemI was able to resolve this. I have Simple Rating installed on two sites. It works fine on one, but not the other. After a little debugging, I found that on the site where it wasn’t working, the function spr_get_ip() was returning a value like this: “64.104.231.44,64.104.231.44”, two identical IP addresses separated by a comma. I don’t know why it’s doing this, but I added the following two lines of code to spr_get_ip() just before “return($ip);” and that fixed the issue:
$commapos = strpos($ip, ','); if ($commapos !== false) {$ip = substr($ip, 0, $commapos);}Forum: Plugins
In reply to: [Simple Rating] Guest cote problemI’m having the same issue. “Allow guests to vote” is checked, and yet it seems that guests can’t vote. Has anyone come up with a solution for this?
Forum: Plugins
In reply to: [Simple Rating] Moved site, plugin stopped workingI can’t say with 100% certainty, but it appears that whenever I re-uploaded the plugin files, it would reset some of the settings. I’m only using the Simple Rating plugin on pages of some custom post types. Despite having those post types checked in the settings, they somehow would get reset to unchecked.
Also, I was using an updated rating.php with changes that you had recommended in another post on this forum, so I went around a few times, uninstalling the plugin, uploading the modified rating.php, re-inserting my wp_spr table backups into the database, etc., before I figured out what was going on and got it right.