Site monitoring is a service that I provide to webmasters after seeing some struggles throughout the community from webmasters who would get a virus and not know how to make it disappear for good. This would not only frustrate them but leave them with trying to figure it out after hosts would refuse to clear the virus out by suspending accounts until the webmaster could clean it properly. Why do they do this? Because if not cleaned as soon as possible, some viruses can get to other sites on the server.
Although website viruses/hacks range in difficulty level, there are quite a few that can cause some webmasters to start all over from scratch. This means losing crucial updates, views and in some cases content they’ve worked hard on for years. So where does site monitoring come into this and why is it useful?
Site monitoring by me is done on a weekly basis and paid monthly. The price is $5/per site and it includes site checks and a message of the site’s health weekly (coppermine script upgrades come free with site monitoring). While the monitoring is happening, if a virus or hack occurs — I clean it at no extra cost. This even includes the dreaded php hack that has caused many webmasters to seek out redoing their site completely. However, I do offer site cleaning on a case by case basis (price based on difficulty level)
How can you prevent this yourself? You should try to work in a schedule of checking on your site(s) every week, looking through files and folders as hacks/viruses can hide in both. Other than checking, you could try changing your passwords once a month and keeping all scripts up to date. Lessening the number of active plugins can also be of a great help as hacks find plugins to be like a backdoor to getting into your database/server. It also never hurts to make sure you do a virus scan on your computer as often as possible to rule out any infections from your devices.
I hope this has been of some use and perhaps you’ll be adding a schedule of checking in on your site(s) health often.
Change Coppermine 1.6x Password via phpmyadmin
This is the short, sweet and quick version. This is for NEWER versions of Coppermine, all versions 1.6 and later. For versions BEFORE 1.6 please visit this post (please note you SHOULD upgrade your coppermine to 1.6x as soon as possible to prevent hacks/etc.
1. Sign into cpanel (which you can do via the client section here(on stars.bz) or via the regular /cpanel url) 2. Click on phpmyadmin 3. Find the username(what you use to sign in to your cpanel with), to the right and click the little ‘x’ to expand the databases. 4. Click on the database you use for your coppermine. 5. Click on the _users table (should have something before the _, whatever you chose to title the tables) 6. Find your username or the user under group_id 1(which is the administrator group id) 7. Click ‘Edit’ which is beside of a pencil next to this username 8. Find ‘user_password’, in the drop down menu select MD5 and type in any password you want to set it as in the text field beside the dropdown. 9. Find the ‘user_password_salt’ and erase everything in the field. 10. Find ‘user_password_hash_algorithm’ and erase everything in the field. (I usually do this as an extra measure) 11. Scroll down until you see a new set of two dropdown menus. One says save and the other should say ‘Go back to previous page’. Below those two is a button that says ‘Go’. Click that ‘Go’ button. 10. Sign in with the new password you set (the password you set in step 8 which will be the actual password not the MD5 code once you save). 11. Give yourself a pat on the back for a job well done.
Hi again! I’m back with another coding snippet. This time I decided to give another creative way to display your gallery links on posts. This can also work well for news articles, source links, etc. Anything that would lead your visitors somewhere outside of that main post.
No Plugins: Php in Widgets + Use WP Classic Editor
If you want to use as little plugins as possible to prevent possible hacks/etc, you can disable 2 plugins by using the following codes. Add them into your Functions.php file of your wordpress theme and enjoy.
You should see a list of folders once inside titled “userpics” and “edit”, do not touch those and let them stay in there as they are not being used in this tutorial.
Click on the “+ Folder” link to create a new folder. This will server as a category folder. You can make the structure of your gallery anything you desire, this is just for tutorial purposes. I have created a folder title “Photoshoots”, click okay once you have it named and it’ll appear in your list of folders.
Now, I have all of my 2020 shoots already in a folder on my computer and the files are all renamed and ready to be uploaded. So I’m going to select all of them, right click and zip on the folders I want to add to my gallery.
Click go again and it should refresh. You’ll see your folders and the zip you uploaded. Go ahead and delete the zip. You are now done with this version of uploading. If you chose this, please skip over the FTP upload version and go straight to Batch Adding.
I received a request to make a tutorial on renaming files in coppermine photo gallery. In this tutorial I will include two different ways to do this. Please choose only one way that works for you. Though all are a process, especially if you’ll have over 100+ images to edit in one album. I would suggest just losing the views and reuploading if you have 100+.
1. Log in to your coppermine gallery
2. Locate the image you want to rename
3. Click on the Edit File Information link [see here]
11. It should bring up a list of all of the files that were originally in your folder. All file names are not the ones you renamed them to. [ see here ]
12. Now you can double click the file names and input what you renamed them to. Then hit ‘enter’ on your keyboard. [ see video clip here ]
*Note: When renaming, you can see the PID right next to the images. This will help you locate which image it is that you are renaming if the original file name doesn’t help. To sort in order of PID, just click on the PID table title in the database. [ see video clip here ]
PID is picture ID. This is the number of photo it is in your gallery. If you sort by PID, then you will have the images in correct order of which were added first and which were added last.
13. Next you need to bring back the thumbnails and normal files.
Since the announcement of Sellfy closing Legacy accounts (regardless of users having been with them for over 10 years) and forcing those long standing accounts to switch to paid before February or they’ll lose all of their downloads — This includes clients possibly losing access to the files they have purchased; I have been uploading and adding all premades on the store located there to the one here.
I am working on sending out emails personally to all of those clients, so they can create an account here and I can add the items they have purchased onto their account — that way they will not lose the access to what they’ve paid for. It’s a slow process as I am doing this manually. But if you read this update and have yet to create an account here — please do so and then send me an email with a screenshot of what premades you have purchased (account here email address) so that I know which ones to add to your account.
With this, all older premades are getting cleaned up and some new features are being added like WP Menu and the custom post menu I’ve been using on more recent themes. All information about any premade can be found on each premade listing.
Previously, I have updated/added all premades 1-25 (updates given on twitter). Today I have finished adding premades 26-40.
Coppermine: File Move Tutorial
Recently I sent out a tweet to ask what webmasters might need tutorials for, this tutorial was included among the requested. I hope it helps!
Note: Please create the folder that you will want to move the file(s) into before starting this tutorial.
Warning: If you move too many files or files that are too large for your server to handle, you will run into errors.
If you ran into a server time out or error and now your thumbnails and files aren’t showing No worries! You’ll need to manually locate (use cpanel for this) the files/thumbnails that were moved (usually in the folder you intended for them to go) and then move them back to the original place. Just move a little at a time if you’ve run into this more than twice.
Recently I sent out a tweet to ask what webmasters might need tutorials for, this tutorial was included among the requested. I hope it helps! Please follow the steps closely below to add the dimensions of your images that you upload to coppermine gallery beneath the thumbnails. But first read the note.
Note: In this tutorial we are editing a core file in Coppermine. You will need to MAKE A BACKUP of the original file first. Keep in mind that since this is a core file that we are editing, you will need to re-edit the file after making coppermine updates.
1. Sign into your cpanel
2. Navigate to your gallery folder
3. Open functions.inc.php inside of your /include folder [ see here ]
Sometimes in premades or custom designs there are themes that can make your batch adding area look like this:
What you want to do is go to the directory your theme is in and open template.html for editing. Find the CSS files that are linked for styling, then edit the line to be a direct link to the file. So instead of something like this:
you would make it look like this
and now your batch adding should have style.
One thing to keep in mind is that the batch add interface only picks up on a style.css file in the main theme directory (IE /themes/test/) . This means if there are other stylesheets/etc you might have to append them in order to make the batch add styling work. To do this, you just select all in the multiple files and copy/paste into a style.css file in the themes directory.
As webmasters, we all prefer to find fun ways to display our gallery links on our posts. I have found a few ways throughout 10+ years as a webmaster and thought I would share two of those with you today. The following includes two different ways you can display gallery links or even press links for external or internal articles for posts on fansites. You can use these fun ways on any site (fan, blog, news) or network related to it. Enjoy!
View the styles coded by clicking on the image previews.
To change the text color, find the color: lines and edit after the # sign to whatever color you want to show.
To change the background color, find the background-color: lines and edit after the # sign to whatever color you want to show.
To change the text, find the content: line and edit the “Gallery Links” to whatever you prefer, example “External Links”
To change the font, you can erase the lines font-family: ‘Poppins’, sans-serif; and font-weight:400; for it to use the default of your current theme or you can edit the lines to show what font or font weight you prefer.
Change width by adding the following line into the .gallerylinks main class width:50%; you can change the 50% to any size you prefer.
Style #1 – Adding To Posts
Add the following code to your posts. If you have changed the class title from gallerylinks to something else, just replace that in the following code as well.
Appearances > Events in 2016 > <a href="#">March 25: The Art Of People Gala</a>
Appearances > Events in 2016 > <a href="#">March 26: The Art Of Trees Gala</a>
3. Upload ALL files for wordpress onto your server via ftp. (you can also zip the files INSIDE of the folder like the cap I linked to and upload via cpanel, then unzip – if that is better) You can upload it to news/wp/wordpress or just public_html, the directory is up to you.
3. Upload ALL files for coppermine onto your server via ftp. (you can also zip the files INSIDE of the folder like the cap I linked to and upload via cpanel, then unzip – if that is better) You can upload it to photos/gallery whatever suits you.
You’ve created your new account on your new host. Now with the previous tutorial in mind, we’re going to make sure it works on the new host. It’s best if you have a separate domain or a temporary link you can visit while doing this to make sure everything is uploaded correctly. DO NOT delete anything on your old host until you are positive all of your files work on the new one.
1. Sign into your site via ftp.
2. Upload everything you had downloaded onto your site into the public_html section.
3. Make sure everything uploaded correctly and in the exact same structure as you had on your old site.
4. Sign into cpanel.
5. Click MySQL Databases
6. Create a database and user for every database/user you had on your old host.
7. Add the users to the databases with all correct permissions.
8. Go to PHPMyAdmin
9. Click on database.
10. Click import http://tinyimg.io/i/NjYOqqj.jpg, click browse, select the one you want to import, and then click go. it might take a bit to upload if it’s big
11. Do the same steps for ALL of the databases you have.
12. Open File Manager
13. Go into your public_html
14. unzip any zips if you have them. Make sure they are all okay.
15. Open the config files to any and all scripts (wp is wp-config.php located in the directory with your wp files / cpg is config.inc.php which is located in the include folder)
16. Edit the config file with your new database title, user and passwords
18. You’re all done. If everything is working correctly on your end, you can now move away from that pesky host you hate. YAY!
If you have to change the domains to anything, you can do so via phpmyadmin.
WP: URL is located in WP_Options table in phpmyadmin. You can search http if needed.
CPG you just sign into to change the url:
Go to the new URL in your browser’s address bar
Log in as admin if you’re not already logged in
Go to Coppermine’s config panel
Expand “General settings”
Enter the new URL into the field “URL of your coppermine gallery folder”
Scroll to the bottom of the config panel
Save your changes by submitting the form using the corresponding button at the bottom of the page
This is a little tutorial, if you have any questions let me know! I’ve re-created these. The previous ones were a little less detailed, so hopefully these will be better.
First things first. The reasons why I don’t use
Cpanel Backup Feature – It sometimes fails or only succeeds in getting only a little. (bad internet connections ftw)
FTP Downloading – I had an issue with downloading via ftp once for a backup. Never used it again. BUT you can use ftp if you trust it and your connection enough.
Now onto the tutorial.
How I backup my sites.
1. Sign into your CPANEL.
2. Once in, go to PHPMyAdmin.
3. You’ll do the same with each database you need to back up, so just repeat the steps for backing up a database until you’re finished.
4. Click on one of the databases
5. Click export http://tinyimg.io/i/84CQuwd.jpg
6. Quick, SQL format, click go and it’ll start downloading.
7. Do steps 4-6 repeatedly until you have all of your databases (wp, gallery, videos, etc) downloaded.
7.5 If you download things via FTP; skip the following steps and just proceed to downloading your files via ftp. If you are doing it the cpanel way, continue on.
8. Now go into your file manager.
9. Go into Public_Html
10. Select all
11. CTRL+Click to de-select the gallery (it’s going to be big, so let’s just zip the crucial site stuff first)
12. Click compress
13. Wait for it to complete. (if you have a larger section that might take some while to complete zipping, feel free to zip in smaller sections.
14. Once down. Download.
15. After that has downloaded, check to make sure zip is not broken.
16. Now onto the gallery. Zip everything apart from the albums folder.
17. Download the zip you just made.
18. Check to make sure zip is not broken.
19. Now that we’re onto the albums, you’ll want to take your time zipping. If something takes too long, cut it into portions (IE instead of zipping appearances, go into that folder and zip year by year)
20. Download your zips.
21. Rearrange everything like how it would be on your sites server, in a folder.
22. Make sure all zips work and did not fail to finish.
23. You’re all done, congrats!