CodeSort
Apr 14, 2005
codesort2.zip
90.44 KB
CodeSort (formerly known as phpCodeSort) is a script designed to upload, categorize and manage link images/buttons/codes for all your owned fanlistings from one convenient admin panel. It works something like a mini photo gallery.
Latest version: CodeSort 2.0
Released February 17, 2007. Minor bugfixes February 25, 2007.
Features
-
Manage the codes/link graphics for all your fanlistings plus your collective site in one place.
-
Upload/rename/delete images through the admin panel—no need for FTP after installation. (Depending on your server configuration, this may require the images directory to be world-writeable, which is a potential security risk. You can also use CodeSort to categorize images without file system access.)
-
New with version 2.0: Images can now be added/updated en masse, with master controls to set the same parameters for all.
-
New with version 2.0: Unique image names are checked. If a newly uploaded file has the same name as an existing file, it is renamed to include a timestamp to avoid overwriting. Unlike previous versions, images are not renamed with an unreadable hash.
-
If you delete an image from the database, the file itself is also deleted off the server (this was not the case with earlier versions). This helps keep a tidy images folder, if you have space concerns.
-
New with version 2.0: There is a batch images cleanup script to find any lingering old, no longer used images and delete them.
-
Can use the fanlisting tables of three popular collective management scripts (Enthusiast 3, Flinx Collective, and Fan Admin) or function separately. (CodeSort must be installed in the same database as said management script.) New with version 2.0: The advanced user can configure CodeSort to read the fanlistings table of any additional collective scripts, as long as it contains a unique integer ID and subject/title field.
-
Sort images by user-defined sizes and categories.
-
Categories are optional; if you don’t use them on a given fanlisting then image categories won’t be displayed on that site.
-
Optional automatic text link to the donor of any donated graphics.
-
A form to accept image donations directly. The image is uploaded and donor details are entered into the database. You will receive an email when a image has been donated, so you can login to the admin panel and approve or delete it. Donated images will not be displayed on your site until they have been approved (much like fanlisting members). New with version 2.0: Now with an (optional) captcha to prevent non-human/spam submissions.
-
Easily include the script into your own page design with a small PHP snippet.
-
New with version 2.0: Notification via the admin panel when a newer version is available, so you never forget to update.
-
Requires PHP 4 and MySQL 4. (May work with earlier versions of MySQL, but has not been tested. May possibly work with other databases if you edit the SqlConnection class.)
-
All HTML output should validate XHTML 1.0 Strict.
Demos
View CodeSort frontend demo. This is what the default uncustomized installation of CodeSort looks like. You can easily edit the CSS for styling, and even the PHP coding if you feel confident.
View CodeSort admin area demo. This is what the admin panel for CodeSort looks like. Username: admin. Password: pass. Feel free to test it out by adding data; I periodically go through and purge the database.
Installation Instructions
Follow the instructions (included in readme.txt in the download above) below to install CodeSort version 2.0. If you are upgrading from version 1.5 or 1.6, you will need to enter your current config settings into the NEW codes-config.php file; there are some important changes to that and the old one won’t work. (There is currently no upgrade script for version 1.0, because no one seems to be using it anymore. If you need it, please contact jenny@prism-perfect.net.)
Fresh Install / Version 1.6 or 1.5 Upgrade
- Edit the config file:
Open the file codes-config.php in a plain text editor. Edit the variables for your site. You MUST change theDATABASE VARIABLESfor your MySQL database and theADMIN VARIABLESfor your username and password. TheTABLE VARIABLESonly need to be changed if you want to use CodeSort in conjunction with one of the supported collective management scripts (Enthusiast 3, Flinx Collective, or Fan Admin). If so, you must install CodeSort in THE SAME database as said management script. - Upload CodeSort files:
Upload all of the CodeSort files to an http-accessible directory on your webserver. (Overwrite your current files if you are upgrading.) - Create images folder: (if upgrading, you’ve already got this. skip to step 4)
You will need to create a folder for your images/codes—the default is as a direct sub-directory of your CodeSort directory (ie CodeSort/images). The install script will determine the server path and URL setting for this location, so you should use that if you have no reason not to. - Run install script:
Run theinstall.phpscript by going to
http://yoursite.com/CODESORT_FOLDER/install.php
You’ll need to set some more options for your site here, including the location of your images folder. Then submit the form to create or update the CodeSort database tables. - Once you have successfully run the installation script, be sure to DELETE it from you webserver (you won’t need it anymore). Then you can begin managing codes from the admin panel. If you are using the script stand-alone you’ll first need to add the names of your fanlistings in the ‘Fanlistings’ tab (you won’t have this option if you’re accessing your list of fanlistings from another collective management script).
- Try uploading a code/image. If you get errors about permission denied to move uploaded file, see the note below about folder permissions:
Important: a security note on CHMOD 777
Folder permissions of 777 may be needed to allow PHP to upload files (and there is really no simple alternative), but it is also a very big security risk—it can allow malicious people to upload any files they like into that folder because it is world writable. If your server requires 777 for your own uploads to work (e.g., you get permission denied errors when trying to upload a file with CodeSort), the safest thing you can do is to NOT use CodeSort to upload your images (set do_upload = n in the install options and use your preferred FTP client) and just give CodeSort the file name. You could also manually change the permissions to 777 (via your FTP client), use the CodeSort admin panel with do_upload = y, and then change permissions back to 755 when you are done.
Displaying Codes
To display your codes for a single fanlisting or for your entire collective, visit the admin panel home page and click the buttons for ‘get snippet.’ This will generate a code snippet that you can copy-and-paste into any .php page to display your codes (and donation upload form, if you want to use it).
Please note: This snippet is not compatible with NL-ConvertToPHP/dynamic includes pages! This means you can’t put the inclusion snippet within any PHP coding similar to
if ($_SERVER['QUERY_STRING'] == 'codes') {
If you’re not sure, the best bet is to put the snippet for CodeSort in its own .php page, along with whatever other content you want on your codes page. You CAN put the codes and donation form snippets on the same page, if you like.
Mods
show-codes.mod.zip
A modified version of show-codes.php that mixes donated graphics in with the rest, and links them directly to the donor’s website (rather than under a separate heading, as in the standard version).
User List
Below is a list of sites that are using CodeSort. Go check them out for some ideas of how to customize it.
- stargarden.ws
- baptism-of-blood.net
- fanventory.com
- fan.geekish.net
- blackfrost.dk
- fan.canelinha.net
- lonelydays.net
- moon-prism.net
- jonouchi.com
- beautiful-beast.net
- homeskippy.com
- fan.gekidasa.net
- fan.angelleyez.com
- perfect-destiny.net
- elizabethmk.com
- ancafe.net
- fan-ish.net
- mania.calm-storm.net
- inkognita.org
- fan.almost-twilight.com
- fan.winter-wish.net
- joshuaharrislegacy.net
- love-is-suicide.com
- red-masque.com
- youslayme.net
- seventh-star.net/bea/
- fairybliss.net/fan/
- endless-roll.org
- pure-rhythm.org
PS—See also the CodeSort fanlisting.
Mailing List
Add your email address to the CodeSort mailing list! I will email you ONLY when there is important news regarding CodeSort, such as new releases and bug fixes. No spam, I promise. You can always opt out by replying to any CodeSort announcement emails with unsubscribe in the message body. If you are running any version of CodeSort on your site, feel free to add your URL to the user list as well with the form below. Think of it as a free link just for using the script.
18 Comments
Elizabeth mKFeb 12, 2007
I just went through your version 2.0 demos and I gotta say… The new layout/design is so clean and easy to use! Incredible. The “New Version” notification is a definite bonus! The rest I’m not too sure about even what it is, but I definitely was wondering what “Captcha” is for…
In any event… Awesome, will definitely upgrade from 1.6 when 2.0 is available.
MerviFeb 20, 2007
I just upgraded and I love this script even more now! The Master Controls thing is the coolest feature and I also love all the small improvements like the fact that the file names are kept. Thank you!
KathieMar 26, 2007
I just upgraded to 2.0 & it was such an easy & painless upgrade!! I love the added control of multiple adds, deletion & editing! Thank you so much!
MarshaJul 15, 2007
I absolutely adore this (and all your scripts for that matter). I just installed it and it’s awesome. Thank you muchly!
rabbitJul 18, 2007
hi i wanted to know does the codesort only work for fanlistings or can you use it for like affiliates, havein ppl donate buttons(since it has that feature wit it), and graphics? if a person can use it for more than just fanlistings that would be the best!!!
CarolynneAug 13, 2007
Thank you for releasing this wonderful script…it is so easy to use and I love it! May I please suggest something for the new version. I don’t know if it is even possible. But is there any way we would be able to arrange the buttons on our sites in our own order rather than in ascending or descending order? Does that make sense? Anyway, thanks again.
AzuriteSep 19, 2007
I’m using CodeSort with Enth3, and I’m curious about what the “Whole Collective” area is for— is that for joined and owned, combined codes? So far I only own one FL, but I’ve joined a lot more, and I’d like to sort the joined ones on my collective’s page, though it’s separate from my FL. I think this is doable, but I’m not sure. Perhaps some of the member sites/live examples can be sorted by what they feature CodeSort doing? Or have a sample collective that demonstrates the differences between what CodeSort does for collectives and individual fanlistings?
SaraNov 3, 2007
I’m having some problems while uploading the codes, they appear with that red cross.
TalyanaM.RahlDec 17, 2007
What for Datas must i chmod`? Q_Q
sorry for my very bad english qq
came from austria xx
TalyanaM.RahlDec 17, 2007
and yet the pics dont displayed X_X”’
AmanchamFeb 10, 2008
I downloaded and installed codesort now… but somehow I can’t get it to work. I can’t upload codes. The problem is, though, that it doesn’t display any error-messages. When I try to upload I get the message, that everything worked out. But images are neither displayed nor on the webspace.
I already tried CHMOD 777 on the images—folder. No changes. Don’t have clue why it doesn’t work. :(
Shame really. I would love to use that programm!
DannyFeb 18, 2008
I’m getting the same problem as Amancham.. no error message, just no codes uploaded/updated!
ShirasadeMar 14, 2008
I finally upgraded—and it works like a charm. Thanks so much!
roseApr 2, 2008
I was just noticing in the reading that the folders had to be 777 to upload images.. but I checked my images folder and it’s 755—Is the read me old for that part? It’s working fine like that
AdrienneApr 3, 2008
Bummer, I’ve have the same problem as Amancham and Danny. Images do not load, no error message the code just isn’t there. I actually got the first one to load just fine but the second and third tries, they do not show up.
MeganMay 20, 2008
Hi, im having difficulties with getting this to work. i have put in all the correct database information. the same as enthusiast. i’ve changed the variable telling which script your using to "e" and ive made sure that my collective table’s name is owned. and when i go to domain/codesort/install.php it gives me a 403: you are forbidden to going to this page.
HoshiJul 10, 2008
The "clean up codes" doesn’t exactly work.
My list includes codes that are in use, not codes from fanlistings that I have adopted out, which I have to delete manually. (And go through all codes because I don’t know which is which.)
GhostJul 21, 2008
Is there any answer to the comments on not having the codes actually added? I’ve installed Codesort and whenever I try to add a code, it tells me that I have "0" codes.
Feed: Comments
Leave A Comment
Things to know:
[i] [b] [q] [code]and[url=]