• Resolved Greenlaw

    (@greenlaw)


    Not sure this can be done but is it possible to merge the Webcomic databases from another site to a new site that already has content?

    Specifically, I’d like to merge our two comics from existing subdomains of a WordPress multi-site to a new single WordPress website.

    If not, that’s okay. When I started this reboot project, I had accepted that I might be rebuilding the comics websites manually. This will give me a chance to try out the Webcomics Generator/Matcher tools anyway.

    But it would be great if I could get the comics ‘behind the scenes’ entries data transferred.

    Thanks in advance for any help.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter Greenlaw

    (@greenlaw)

    Yay! Lots of progress today. I had decided to not go with a single site and keep the multisite setup (main site and two comics subsites), but I wanted to convert the subdomains for the comics to subdirectories. It looks like I was able to make the conversion without too much pain using these instructions:

    https://premium.wpmudev.org/blog/change-multisite-sub-directories-sub-domains/

    The recommended Search & Replace plugin worked perfectly for fixing the broken internal URLs.

    After that, I still ran into a bunch of PHP errors above the comics pages but that turned out to be an incompatibility with PHP 7,2. I’m not exactly sure what was incompatible but it only seemed to affect the subsites. The errors didn’t seem to be caused any plugins (including Webcomic) or themes, but downgrading PHP to version 7.1 seems to have fixed it.

    Now I have two webcomic issues I’m dealing with:

    1. Michael, do you remember the comic I have where the last panel is a video? (Link: http://streams.littlegreendog.com/streams-webcomic/episode-4-homebrew/) It seems to have broken in my converted test site. I still have the instructions you sent me but too tired to try it now and will give it a go tomorrow. But if I can’t get it working, I may as for your help again.

    …and…

    2. With virtually every theme I’ve tried Webcomic 5 with, I can’t seem to get the comic to sit in the wide area above the regular post and sidebar like I can with Inkblot. Is there a trick to this for themes other than Inkblot? If the trick is a technical one, I could use some instructions or at least a few hints about where to look.

    Thanks in advance or any help. 🙂

    Thread Starter Greenlaw

    (@greenlaw)

    I took a quick look and compared the custom fields you helped me set up for that page. It looks like that part of the post mod copied over correctly to the test site.

    I think this problem has to do with permissions. It’s possible I’ve granted Vimeo embedding permissions to only the live site and not the test site. I’ll check on this tomorrow.

    Will follow up later.

    Thread Starter Greenlaw

    (@greenlaw)

    Okay, couldn’t sleep until I tried one more thing: I checked Inkblot’s display.php for the mod that’s supposed to go there and, sure enough, it was missing. That makes sense…I think this is a fresh install of Inkblot on the test site.

    After applying the mod, the animated final panel came to life. Yay! I can go to bed now. 🙂

    Now I just need to figure out why the comics won’t appear above the content/sidebar area in any theme I’ve tried besides Inkblot. I like Inkblot but I’d like to try making the comics pages look more unified with the new theme I’m thinking of using.

    Thanks in advance for any help or info.

    • This reply was modified 6 years, 1 month ago by Greenlaw.
    Thread Starter Greenlaw

    (@greenlaw)

    Okay, I think I understand how this works now. Unlike Inkblot, the themes I’ve been trying for Webcomic simply don’t support a sidebar (widget area) in the space where I wish to place Webcomic, and I will need to a create a child theme with the desired sidebar added.

    Before I go much farther and possibly goof things up horribly for my test site (it happens,) am I on the right track? Thanks for any helpful info.

    I think I’ve spent as much time on this as I can afford this weekend. I’ll pick up again later this week.

    Plugin Author Mike

    (@mgsisk)

    Hey @greenlaw, I think you’re probably on the right track. The main thing for non-Inkblot themes would be to look at using Integration actions to get Webcomic stuff in the place you want it. There are really just two main actions you’d want to look at:

    webcomic_integrate_landing_page, which should work for the site home page, WordPress Pages, and most other landing-page scenarios. You’d typically want to add this to a themes index.php file, like: do_action('webcomic_integrate_landing_page');.

    webcomic_integrate_media_and_navigation, which should work for single-post pages. You’d typically want to add this to a themes single.php file, like: do_action( 'webcomic_integrate_media_and_navigation' );.

    Once you’ve added those actions to your theme (the exact location depends on where you want comics to display), the Webcomic integration method should get them working. Universal uses standard WordPress hooks, which is why comics may not always show up exactly where you want them. Webcomic assumes you’ve added those integration actions to the theme, and will use those instead.

    Thread Starter Greenlaw

    (@greenlaw)

    Michael,

    Thank you for the detailed explanation! Later this week, I’ll follow your instructions and see what happens.

    As you might have guessed, I know just enough about WP & scripting to get myself into trouble, but so far I’ve been lucky to know just enough to get myself out again.

    With your advice, I hope I can keep myself out of trouble altogether. 🙂

    Thread Starter Greenlaw

    (@greenlaw)

    I took a few minutes to look into this yesterday, and I think I understand what to do. With the info you posted in mind, I started poking around Inkblot/Webcomic to see how it was set up there, and found the index/sidebar setup for the other theme is a bit different. But I think I figured out the equivalent places for the actions and will give it a try this weekend.

    Will let you know how it goes. When I’m done, I might have to put together a tutorial for other users in my position…and for myself, so I don’t forget how to do this stuff. 😀

    • This reply was modified 6 years, 1 month ago by Greenlaw.
    Thread Starter Greenlaw

    (@greenlaw)

    This morning I finally got to try Michael’s suggestion, and Webcomic is now appearing where I expect to see it on my non-inkblot theme. I still have a lot of work to do on our website reboot but this knocks over a huge roadblock for me. Yay!

    If you’re like me and not completely sure what you’re doing when modding WP themes, the landing page where I had to add the Webcomic action was the theme’s home.php, just under the ‘header’ section but above the ‘main wrapper’ section. The exact terminology and placement may vary in your theme but that’s the general idea. Also, if this is a theme that may be updated in the future, the edit should be made on a child theme, not the main theme. (I’ll be doing that here next.)

    Oh, one more thing: if you just copy and paste the action above like I did, be careful you don’t copy the period at the end of the sentence. Yes, I know better but I accidentally did it anyway and it took me a moment to realize why the action wasn’t working work. D’oh! 🙂

    Thanks again for your help, Michael! I’m going to mark this issue ‘resolved’.

    Thread Starter Greenlaw

    (@greenlaw)

    Ack! I noticed that the Webcomic navigation bar is stretching when the page is resized. I guess I need to get the action inside the main wrapper but above the content. That wasn’t working when I tried earlier but I’m sure I’ll sort this out later.*

    Anyway, just wanted to mention that for other novice scripters still figuring things out.

    *Later: Fixed! It was a dumb PHP format error. I didn’t know I had to wrap the action inside <?php and >. Still learning here. 🙂

    • This reply was modified 6 years, 1 month ago by Greenlaw.
    • This reply was modified 6 years, 1 month ago by Greenlaw.
    • This reply was modified 6 years, 1 month ago by Greenlaw.
    • This reply was modified 6 years, 1 month ago by Greenlaw.
    • This reply was modified 6 years, 1 month ago by Greenlaw.
    • This reply was modified 6 years, 1 month ago by Greenlaw.
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Merging Comics From Another Site’ is closed to new replies.