rkeaveney
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: php get footer adding spam code?Thank you, al-zarwani, helpful tips in the second link. I did some fiddling and seem to have fixed the problem. I’m going to look into securing WordPress to prevent this from happening again.
Forum: Fixing WordPress
In reply to: php get footer adding spam code?I’m confused. When I first moved my website, Cinemusic.net, to WordPress format, I used the Almost Spring theme as a starting point (hence my linking to the exact site I downloaded the theme from, like you asked). I then modified the theme beyond all recognition.
A year later I get an email saying someone was prompted to download a virus while visiting Cinemusic.net. This was news to me. I viewed the code in Firefox and there in the footer was a list of spam links to “mojopages.com” for xanax, viagre, etc. This code, however, does not appear in any of the WordPress files (footer.php, etc.) I tried a few fixes: I turned off the sIFR plugin as the javascript is inserted at the end of the page. That didn’t eliminate the spam code. So I removed
<?php get_footer(); ?>
from footer.php, reloaded the page, checked the source and the spam links were gone. My question was then how this code was inserted into my page, whether or not it was something I had done to make the site vulnerable, and as an aside, lament that without<?php get_footer(); ?>
sIFR would not function.I am Klaatu Media and I designed Cinemusic.net. I also run the site, and write the content. I did not get paid to design Cinemusic.net as that would be rather pointless.
I wasn’t looking to suffer the wrath for asking a question. I came to the WordPress community for help. If you can help I’d appreciate it.
Forum: Fixing WordPress
In reply to: php get footer adding spam code?Thank you for replying. The original theme was “Almost Spring”, but has since been heavily modified. In fact that was a year ago. Only now have I been made aware of the problem. The site URL is https://www.cinemusic.net.
Thank you for your help with this.
Forum: Fixing WordPress
In reply to: Layout different when logged in vs. not logged inWell another solved by… Myself! Seems the comments.php file had a “usercomments” div that was screwing up the page. I deleted the usercomments tag and that fixed it.
Forum: Fixing WordPress
In reply to: Layout different when logged in vs. not logged inThanks, drmike – I know I should have posted a link, my bad.
I did some more digging and figured out what is causing the problem, but I’m not sure how to solve it.
I’ve removed
<?php comments_template(); ?>
from “single.php” and that has fixed the layout error. However I’m not sure how to edit the comments.php file. I’ll have to comb through it and compare with the stylesheet to see what is causing the glitch.Another note: the sidebar stays put on the category pages which don’t call for the comments.php file.
It’s still a very odd thing that it only appears once logged out of WordPress. So it’s obviously linked into the comments.php file.
Please take a look for yourself (it’s still in development at this time). Thanks again.
Forum: Fixing WordPress
In reply to: “Jiggly” post titlesWell I think I’ve found a solution. Looks like the template I was modifying was placing a div around just the title of a post. Removing the div seems to have fixed the issue.