You're looking for some 4images templates and styles? Then visit this thread to show websites with 4images templates to download.
0 Members and 1 Guest are viewing this topic.
Photo Of The Day MOD for 4images - Image Gallery Management System.Version: 1.2Author: Silly Little Lamer <sll@dalnet.ru>Description: This Mod shows so called "Photo Of The Day" on the first (and/or any other page) of your gallery. Depending on your settings, the first of the Top Images is selected by rating, number of votes, comments, downloads, hits and its thumbnail is shown as a "Photo Of The Day".New in v.1.2• Random selection mode. (as always, bright idea by V@ano)Installation Level: EasyInstallation Time: 10 MinutesFiles To Edit: 4 /includes/functions.php /includes/page_header.php /includes/constants.php /lang/english/main.php
Will this MOD work if there is already an integration between phpBB and 4images?
function get_potd_image($show_link = 1) { global $site_db, $site_template; switch (POTD_SELECT_MODE) { case "by_rating" : $select_mode = "i.image_rating"; break; case "by_votes" : $select_mode = "i.image_votes"; break; case "by_comments" : $select_mode = "i.image_comments"; break; case "by_downloads" : $select_mode = "i.image_downloads"; break; } $cat_id_sql = get_auth_cat_sql("auth_viewcat", "NOTIN"); $sql = "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name".get_user_table_field(", u.", "user_name")." FROM ".IMAGES_TABLE." i, ".CATEGORIES_TABLE." c LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id) WHERE i.image_active = 1 AND i.cat_id NOT IN ($cat_id_sql) AND c.cat_id = i.cat_id ORDER BY $select_mode DESC LIMIT 1"; $potd_image = $site_db->query_firstrow($sql); $site_db->free_result(); $template = 'potd_image'; show_image($potd_image, "", $show_link); $potd_image = $site_template->parse_template($template); return $potd_image; }
I had that, I didnt forget it... anything else it could be?
I dont know why, must of been my mistake but it didnt post the entire code, well here it is:
now I get this big long list of errors (with the admin login under it):Warning: Cannot add header information - headers already sent by (output started at /home/wwire/public_html/gallery/lang/english/main.php:392) in /home/wwire/public_html/gallery/includes/sessions.php on line 79
Im going out of my mind, why isnt it working?!?!? PLease HELP!