joshrodgers
Forum Replies Created
-
I had this plugin running on two sites. I was basically using the shortcode to put a graphical visitor counter on the front end of those sites. I created my own image sets to match those websites. Now that the plugin is no longer working, and no longer being developed, I used chatGPT to create basically the same plugin with the features I use. This way the code is up-to-date and will hopefully continue to work for future releases now that this one is gone ??
Forum: Plugins
In reply to: [Simple Lightbox] Not working after site updateOk,
So…I got back with my host again and they suggested that the plugin probably cURLs the actual domain, so I wouldn’t see the changes through spoofing my hosts file.
I updated my DNS to make the site live and everything worked like a champ.
That’s good to know for future reference and am really glad that it was not a plugin, coding, or database issue.
Appreciate the help!
Thanks,
JoshForum: Plugins
In reply to: [Simple Lightbox] Not working after site updateHey there,
I talked with my hosting provider and cURL is enabled.
The site I mentioned that is working (the one that I was comparing the settings) is also on that server, and just to be sure there isn’t a problem with the server, I created a new test site and it worked without any problems.
So, I’m guessing this is being caused by something else.
The only thing I can think of is the plugin is writing some information to the database and somehow that is not working properly.
I could fix this problem, by backing up my site and copying everything over manually, but that would take a while.
I would like to figure this one out though, that way if I encounter this issue in the future, I would be able to fix it without having to start from scratch.
What I was doing was trying to make a site live…
* I didn’t change the database, but did a serialized search and replace (https://interconnectit.com/products/search-and-replace-for-wordpress-databases/) for my temp url to the actual domain.
* I copied all my files over from the temp root to the domain root (via SFTP).All of my site settings, images, pages, posts, etc. all came back fine – the only thing that stopped working was the SLB.
Could the serialized search and replace be the culprit, if so, is there something in the database I could look for?
Your help is appreciated ??
Thanks,
JoshForum: Plugins
In reply to: [Simple Lightbox] Custom group has different idArchetyped,
Right on the money!
I disabled “Group items by Post” and now everything is working. This site doesn’t have a blog where I would want that feature, so this is a great solution!!
Not really sure how I would build the content block before using
slb_activate()
– I tried to set that activation outside the while in my loop, but that didn’t work. I know I’m doing something wrong, which is why I used the first suggested solution.I might explore this a little more down the road, but it’s fixed and working now ??
Thanks,
JoshForum: Plugins
In reply to: [Google Maps for WordPress] Info Window Auto-openI ended up just using the default functionality of the plugin and didn’t worry about how the info window functioned.
Everything is working and the customer is happy ?? which is the main thing!
Thanks,
JoshSo, to fix this I ended up creating my own extension and then styling the gallery to match the site.
I was able to get everything looking the same\functioning the same, while providing me with the ability to use the other plugins that were previously causing issues.
Thanks,
JoshI ended up just working within the default framework, deciding it was much easier to replace what I had with a much more functional gallery…than worrying about trying to output each gallery title and create an isotope layout ??
Thanks,
JoshForum: Plugins
In reply to: [Simple Lightbox] Responsive VersionHey there,
Thanks for getting back to me, I apologize for the delayed response.
I did get it figured out, I ended-up putting a
min-height
of100px
on the container and everything started working!Appreciate the help ??
Thanks,
JoshForum: Plugins
In reply to: [Smarter Navigation] Backlink to category with posts-listriesiko,
The <?php referrer_link(); ?> is just the url…you need to
echo
that ??<?php echo referrer_link(); ?>
Thanks,
JoshForum: Plugins
In reply to: [WordPress Hit Counter] Short codeOk,
Usually I don’t like to modifying a plugin directly because when you update the plugin you have to be careful or you’ll overwrite your code, however I do feel this is an enhancement to the plugin and I have a custom set of digits anyway – so I don’t really think it matters at this point. If you’d like to add shortcode functionality to the plugin, the process is very simple:
- Navigate to your plugins folder > wordpress-hit-counter
- Open image.php and add the following function right before the
?>
close: https://pastebin.com/79BSjikg - Save your file
*If you’d like to add it to a page just use the shortcode:
[wHitCounter]
*If you’d like to add it to your template, wherever you’d like to see the counter use the following code:
<?php echo do_shortcode("[wHitCounter]"); ?>
Simple as that! Hope it helps ??
Josh
Forum: Plugins
In reply to: [WordPress Hit Counter] Short codeOk,
Usually I don’t like to modifying a plugin directly because when you update the plugin you have to be careful or you’ll overwrite your code, however I do feel this is an enhancement to the plugin and I have a custom set of digits anyway – so I don’t really think it matters at this point. If you’d like to add shortcode functionality to the plugin, the process is very simple:
- Navigate to your plugins folder > wordpress-hit-counter
- Open image.php and add the following function right before the
?>
close: https://pastebin.com/79BSjikg - Save your file
*If you’d like to add it to a page just use the shortcode:
[wHitCounter]
*If you’d like to add it to your template, wherever you’d like to see the counter use the following code:
<?php echo do_shortcode("[wHitCounter]"); ?>
Simple as that! Hope it helps ??
Josh
Ok,
Usually I don’t like to modifying a plugin directly because when you update the plugin you have to be careful or you’ll overwrite your code, however I do feel this is an enhancement to the plugin and I have a custom set of digits anyway – so I don’t really think it matters at this point. If you’d like to add shortcode functionality to the plugin, the process is very simple:
- Navigate to your plugins folder > wordpress-hit-counter
- Open image.php and add the following function right before the
?>
close: https://pastebin.com/79BSjikg - Save your file
*If you’d like to add it to a page just use the shortcode:
[wHitCounter]
*If you’d like to add it to your template, wherever you’d like to see the counter use the following code:
<?php echo do_shortcode("[wHitCounter]"); ?>
Simple as that! Hope it helps ??
Josh
Forum: Fixing WordPress
In reply to: wp_list_pages CSS ClassI was trying to have a div popup when a user clicks on the name of the page, but I decided to go a different route…so I took the page out of the navigation and just added it as a section on the website itself – now it appears on all pages without the need for the popup.
Thanks,
JoshForum: Fixing WordPress
In reply to: Child Page ConditionalI don’t know what I was thinking earlier…I guess somehow I was thinking that
is_page
wouldn’t work for my child page, but I was over-thinking…this is my final code:<?php if (is_page("tom")) {
echo "do something";
} else {
echo "something else";
} ?>
I know, I know it’s so simple, but it works – guess I was just having a brain fart.
Thanks,
JoshForum: Fixing WordPress
In reply to: Child Page Conditional