Forum Replies Created

Viewing 15 replies - 1 through 15 (of 81 total)
  • Thread Starter joshrodgers

    (@joshrodgers)

    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 ??

    Thread Starter joshrodgers

    (@joshrodgers)

    Ok,

    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,
    Josh

    Thread Starter joshrodgers

    (@joshrodgers)

    Hey 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,
    Josh

    Thread Starter joshrodgers

    (@joshrodgers)

    Archetyped,

    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,
    Josh

    Thread Starter joshrodgers

    (@joshrodgers)

    I 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,
    Josh

    Thread Starter joshrodgers

    (@joshrodgers)

    So, 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,
    Josh

    Thread Starter joshrodgers

    (@joshrodgers)

    I 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,
    Josh

    Thread Starter joshrodgers

    (@joshrodgers)

    Hey 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 of 100px on the container and everything started working!

    Appreciate the help ??

    Thanks,
    Josh

    riesiko,

    The <?php referrer_link(); ?> is just the url…you need to echo that ??

    <?php echo referrer_link(); ?>

    Thanks,
    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

    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

    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

    Thread Starter joshrodgers

    (@joshrodgers)

    I 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,
    Josh

    Thread Starter joshrodgers

    (@joshrodgers)

    I 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,
    Josh

    Thread Starter joshrodgers

    (@joshrodgers)

    Andrew,

    Sorry about that…this is in my functions file: https://pastebin.com/SKyi1hWh.

    Thanks,
    Josh

Viewing 15 replies - 1 through 15 (of 81 total)