Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Albert

Pages: [1]
1
Many pages on the net today I've been noticing they have actual .html files...  Is there a way that I can run a script that will take all pages generated by 4images and save them as html and update the links... Like the site done bellow...

          http://hobby-fotografen.com/img2431.htm

One more thing... How do you do what he did with the picture???

Thanks for the help!!!

2
In the control panel there is an option where you can change Image Table Cells(where you specify the number of Cells you want per row).

What I wanted is for this number not to be fixed, so the browser would ajust automaticaly(Kind of like word wrap) the thumbnails, as you shirnk and maximize your browser window.

Example can be found here:

         http://www.istockphoto.com/file_search.php?action=file&text=countries

I know this isn't something hard to do, but I just have absolutely no knowledge of programim, I woudn't know where to start... If someone can help, I'd really apreciated it.

Cheers,

Albert

3
Mods & Plugins (Requests & Discussions) / Addiotional Mod Events/Calendar
« on: September 12, 2005, 08:08:05 PM »
Hi, I have a friend that's trying to help me create a mod for displaying a list of events on the site... but he keeps the error message   "You are not logged in
or do not have permissions to enter this site!"   will be displayed when trying to submit events into the database.

here is what he has... I'm not a programer...  :oops:

Quote
<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: top.php                                              *
 *        Copyright: (C) 2002 Jan Sorgalla                                *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.7.1                                                *
 *                                                                        *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (Lizenz.txt) fr weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/

$main_template = 'today2';

define('GET_CACHES', 1);
define('ROOT_PATH', './');
include(ROOT_PATH.'global.php');
require(ROOT_PATH.'includes/sessions.php');
$user_access = get_permission();
include(ROOT_PATH.'includes/page_header.php');

$cache_id = create_cache_id(
  'today2',
  array(
    $user_info[$user_table_fields['user_id']],
    $cat_id,
    $config['template_dir'],
    $config['language_dir']
  )
);

if (!$cache_page_top || !$content = get_cache_file($cache_id)) {
if ($cache_page_top) {
  // Always append session id if cache is enabled
  $old_session_mode = $site_sess->mode;
  $site_sess->mode = 'get';
}

//$url_member=$site_sess->url(ROOT_PATH."today_events2.php");

ob_start();

$cat_match_sql = ($cat_id && check_permission("auth_viewcat", $cat_id)) ? "AND i.cat_id = '$cat_id' " : "";
$register_array = array();

$cat_id_sql = get_auth_cat_sql("auth_viewcat", "NOTIN");

// Rating

$site_template->register_vars(array(
    "bbcode" => $bbcode,
    "comment_id" => $comment_id,
    "image_name" => htmlspecialchars($comment_row['image_name']),
    "user_name" => htmlspecialchars($user_name),
    "comment_headline" => htmlspecialchars($comment_headline),
    "comment_text" => htmlspecialchars($comment_text),
    "lang_edit_comment" => $lang['add_event'],
    "lang_image_name" => $lang['image_name'],
    "lang_name" => $lang['name'],
    "lang_headline" => $lang['day'],
    "lang_comment" => $lang['event'],
    "lang_submit" => $lang['submit'],
    "lang_reset" => $lang['reset'],
    "lang_yes" => $lang['yes'],
    "lang_no" => $lang['no']
  ));
  $content = $site_template->parse_template("member_editcomment");

// $site_template->register_vars($register_array);

//-----------------------------------------------------
//--- Save Comment ------------------------------------
//-----------------------------------------------------
$error = 0;
//if ($action == "postcomment" && isset($HTTP_POST_VARS[URL_ID])) {
  $id = intval($HTTP_POST_VARS[URL_ID]);
//   $sql = "SELECT cat_id, image_allow_comments
//           FROM ".IMAGES_TABLE."
//           WHERE image_id = $id";
//   $row = $site_db->query_firstrow($sql);
//
//   if ($row['image_allow_comments'] == 0 || !check_permission("auth_postcomment", $row['cat_id']) || !$row) {
//     $msg = $lang['comments_deactivated'];
//   }
//   else {
    $user_name = un_htmlspecialchars(trim($HTTP_POST_VARS['user_name']));
    $comment_headline = un_htmlspecialchars(trim($HTTP_POST_VARS['comment_headline']));
    $comment_text = un_htmlspecialchars(trim($HTTP_POST_VARS['comment_text']));

    // Flood Check
//     $sql = "SELECT comment_ip, comment_date
//             FROM ".COMMENTS_TABLE."
//             WHERE image_id = $id
//             ORDER BY comment_date DESC
//             LIMIT 1";
//     $spam_row = $site_db->query_firstrow($sql);
//     $spamtime = $spam_row['comment_date'] + 180;
//
//     if ($session_info['session_ip'] == $spam_row['comment_ip'] && time() <= $spamtime && $user_info['user_level'] != ADMIN)  {
//       $msg .= (($msg != "") ? "<br />" : "").$lang['spamming'];
//       $error = 1;
//     }

//     $user_name_field = get_user_table_field("", "user_name");
//     if (!empty($user_name_field)) {
//       if ($site_db->not_empty("SELECT $user_name_field FROM ".USERS_TABLE." WHERE $user_name_field = '".strtolower($user_name)."' AND ".get_user_table_field("", "user_id")." <> '".$user_info['user_id']."'")) {
//         $msg .= (($msg != "") ? "<br />" : "").$lang['username_exists'];
//         $error = 1;
//       }
//     }
//     if ($user_name == "")  {
//       $msg .= (($msg != "") ? "<br />" : "").$lang['name_required'];
//       $error = 1;
//     }
//     if ($comment_headline == "")  {
//       $msg .= (($msg != "") ? "<br />" : "").$lang['headline_required'];
//       $error = 1;
//     }
//     if ($comment_text == "")  {
//       $msg .= (($msg != "") ? "<br />" : "").$lang['comment_required'];
//       $error = 1;
//     }
//
//     if (!$error)  {
//    echo "Hai";
      $sql = "INSERT INTO 4images_addevent (day,event) values('$comment_headline','$comment_text')";
      $site_db->query($sql);
      $commentid = $site_db->get_insert_id();
     // echo "$commentid";
      update_comment_count($id, $user_info['user_id']);
//    }
// }
  unset($row);
  unset($spam_row);
}




//-----------------------------------------------------
//--- Clickstream -------------------------------------
//-----------------------------------------------------
$clickstream = "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'];
if ($cat_id && isset($cat_cache[$cat_id])) {
  $clickstream .= get_category_path($cat_id, 1).$config['category_separator'];
}
$clickstream .= $lang['top_images']."</span>";

//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
// $site_template->register_vars(array(
//   "msg" => $msg,
//   "clickstream" => $clickstream,
//   "lang_top_image_hits" => $lang['top_image_hits'],
//   "lang_top_image_downloads" => $lang['top_image_downloads'],
//   "lang_top_image_rating" => $lang['top_image_rating'],
//   "lang_top_image_votes" => $lang['top_image_votes']
// ));
// $site_template->print_template($site_template->parse_template($main_template));

$site_template->register_vars(array(
  "content" => $content,
  "msg" => $msg,
  "clickstream" => $clickstream,
  "lang_control_panel" => $lang['control_panel']
));
$site_template->print_template($site_template->parse_template($main_template));

$content = ob_get_contents();
ob_end_clean();

if ($cache_page_top) {
  // Reset session mode
  $site_sess->mode = $old_session_mode;

  save_cache_file($cache_id, $content);
}

//} // end if get_cache_file()

echo $content;

include(ROOT_PATH.'includes/page_footer.php');
?>

Can someone help please : )

4
The idea for this mod is simple.  It's just the average for all other ratings(hits, downloads, ratings, etc...).  This average will bring up the best image of all.

Cheers,

Albert Abrantes

5
V@NO I remember about a year ago you had on your site a list of all the new updates you where working on, and I remember something similar to a points and Reward system that member get points for uploading and navigating on the website, and those points could be later exchanged for a reward.

So is this system finished? I've been anciously waiting for something like this for over a year!! hehe

Cheers,

Albert Abrantes

6
A mod to list all categories and subcateries in one page would be great.  Just like the administrator can see on the Control Panel when Edit Category is clicked.

This way member can take at everything on the website in one single page.

Cheers,

Albert Abrantes

7
I have seen a lot of people confused asking over and over for mods that are already placed here on the forum.  I am sure that a webpage just to list the mods listed here would be great.

I just wanted to know if someone is volunteering to do this, since V@NO is already too busy, I think we could help him out with this. 

Add some replies, and I hope everyone sees this as a good idea and if no one volunteers, I can do it myself.

What do you think V@NO?

Cheers,

Albert Abrantes

8
Is there a mod, or just a tag that will pull out the most viewed picture of a certain category?

Example:
If i wanted to show the most viewed picture of a category called Cars wich is folder numer 130 I would do this.

{mostviewed_130}

That's it... Is this something easy to do?

Cheers,

Albert Abrantes

Pages: [1]