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.


Messages - Albert

Pages: [1] 2
1
Can anyone help?

2
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!!!

3
Code: [Select]
... for new images on index-page change (or remove) the table-code for $new_images in index.php in ...
Code:
//-----------------------------------------------------
//--- Show New Images ---------------------------------
//-----------------------------------------------------

Ok, I can remove everything on this Show new Images section???  I really don't know any programim in order to know what I can, or cannot change...  Thanks for the help, I will try to change a few things to see if it works...  But if anyone can give me a hand I will really apreciate it!!!

Thanks for the help!!!!!!!d  :lol:

cheers,

Albert

4
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

5
last time you replyied was a year ago.  You do have a working version on your site, we just want to know when do you expect to have it ready to go...

Cheers,

albert

6
Vano, why do you ignore this topic?

7
You have the points and Reward system on your site vano... Are you going to publish it so we can use it too?

8
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 : )

9
yeah... And for images already have it for administrator... so I think it would be fairly simple to do...

Cheers,

Albert Abrantes

10
Is this something hard to do?

11
Image rating should be maximum of 100%.

Let's give Hits, Donwloads and Rating a part of that 100%

      Hits =                 50%
      Downloads =       10%
      Rating =        +    40%
      -----------------------------------------
      Image average =  100%
     
Ok...  Now let's get the value for Hits.

# of Hits of image with most Hits on the site = X
# of Hits from current image being rated       = Y

     X/100 * Y = Z

So "Z" is Value for Hits. But it's only 50% of total so...

     Z/100 * 50 = Hits

Now for downloads we do the same thing.

# of downloads of image with the most downlodas = A
# of downloads from current image being rated      = B

     A/100 * B = C

So "C" is Value for downloads. But it's only 10% of total so...

     Z/100 * 10 = Downloads

Now rating is already a percentage so let's just take that value... But it's only 40% of total value so...

      Actual Value of rating/100 * 40 = Rating

So now adding all values from Hits, Downloads and Rating I think we should get a pretty good average.

The only problem we have now is just the Rating value.  We should only add Rating for images with more than X votes...

Example,

If votes is higher than 10 then we use the formula above.
If votes is less than 10 then we just don't include rating.

Hits =               85%
Downloads =     15%
-----------------------------
Image average= 100%

Well I think this is a very simple ideia, just hope it's good enough to understand... Just simple math..

Cheers,

Albert Abrantes

12
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

13
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

14
Well, let's call it a replacement.. hehe

Cheers,

Albert Abrantes

15
Chit Chat / Re: An "Eastern Egg" from Jan? :D
« on: July 02, 2005, 09:29:08 AM »
Is there a way that I could pull out only the Most Viewed picture from the category with a tag.

Example: The tag {mostviewed_cat130}   would bring out only one thumbnail with a link to the details page.

Is this possible?

Cheers,

Albert Abrantes

Pages: [1] 2