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 - sigma.

Pages: 1 2 3 [4] 5 6 7 8 ... 10
46
Mods & Plugins (Requests & Discussions) / Re: [ADD-ON] Image Zoomer
« on: August 15, 2008, 05:41:12 AM »
Thanks V@no, that did the trick. Only problem is the shadows for the zoom window don't want to work. Something in the jpg.html needs to be called or a variable has to be set to allow the shadows to render.

not sure where it has to be. The shadows have to be in the dropshadow directory where your html file is.

47
Mods & Plugins (Requests & Discussions) / Re: [ADD-ON] Image Zoomer
« on: August 14, 2008, 01:46:37 PM »
it was never a problem in 1.7.1
I just follow instructions.
When it comes to code i dont know whats going on.

48
Mods & Plugins (Requests & Discussions) / Re: [ADD-ON] Image Zoomer
« on: August 14, 2008, 06:57:33 AM »
true, but you know what they say. If its not broken, why fix it. :)
removed but no change.

49
@ Matthias

... da hab ich aber den falschen query rausgepickt ... sorry ...
... es muss ja der sein aus dem [Mod] Keep Track Of Each action ... !
... und der sieht so aus ... unmittelbar vor ---Clickstream---
Code: [Select]
//-------------------------------------------[ [Mod] Keep Track Of Each action ]
    if ($user_info['user_level'] >= USER)
    add_to_stats_user_ids($image_id, "h"); // Mod: Track User action (images hits)
//-------------------------------------------[/[Mod] Keep Track Of Each action ]

Does this MOD still exsist on the forum somewhere? I had it installed on my 1.7.1 but need to reinstall. Cant find it anywhere.
http://www.4homepages.de/forum/index.php?topic=1954.msg72627#msg72627

50
Mods & Plugins (Releases & Support) / Re: [Mod] Latest News and Archive
« on: August 14, 2008, 02:48:58 AM »
looks like {if} comments from the [MOD] Last comments v1 that i had embedded in the same archive.html were causing the problem. Because I dont have that MOD installed back yet, it broke the page. Which is odd to me but oh well. There were no missing }

Thanks for letting me think outloud! :)

51
Mods & Plugins (Releases & Support) / Re: [Mod] Latest News and Archive
« on: August 13, 2008, 06:09:36 PM »
Interesting. I guess it pays to have a separate and new install of 4images on a server. Testing the mod out and Im still getting those errors. I guess it could be in the html files since im just copying the old templates from my old 1.7.1 setup.

Which would mean the code on the first page of this thread has been updated??
or its just me... which is the more likely answer :)

ignore me, i'll figure it out

52
Installation, Update & Configuration / Re: New Install
« on: August 13, 2008, 02:59:14 PM »
thanks V. up too late last night. of course phpmyadmin has all the answers.

problem solved

53
Mods & Plugins (Releases & Support) / Re: [Mod] Latest News and Archive
« on: August 13, 2008, 02:40:04 PM »
looks like when I open the site in IE every page has an error with the missing } comment. The only difference is the news archive page doesnt load at all. IE just shows "This page has errors" at the bottom left. Looks like I messed up somewhere along the road to MOD recovery. Did things too fast.

I've been searching everywhere for a missing } and I can't find one. The template can't be the issue because the line it refers to (archive.html) is the last line and I've read in most cases it never is in the html file. This is a pain.

The search continues.

| end of line |


54
Installation, Update & Configuration / New Install
« on: August 13, 2008, 06:19:33 AM »
Newb question here (having the worst time with this)

After a new install whats the default admin login!? or how to you reset it?


55
Mods & Plugins (Releases & Support) / Re: [MOD] Download limit v1
« on: August 11, 2008, 02:38:02 PM »
very nice. thanks again V@no.
I wish I had your php knowledge. I feel bad buggin you guys all the time.

56
Mods & Plugins (Releases & Support) / Re: [MOD] Download limit v1
« on: August 11, 2008, 02:11:13 PM »
ok so i was wrong. the last bit is giving me an error

Code: [Select]
Parse error: syntax error, unexpected '}' in /home/cydonian/public_html/photos/download.php on line 231
In my download.php i find this between lines 225 and 241
Code: [Select]
/*
  MOD DOWNLOAD LIMIT
  BEGIN REPLACE
*/
      $file['file_data'] = $zipfile->send(time().".zip");
      exit;
    }
    else {
      if (!check_dl_limit(0))
      {
        $site_sess->set_session_var("msg_error", addslashes($lang['dl_limit_reached']));
      }
      redirect($url);
/*
  MOD DOWNLOAD LIMIT
  END REPLACE
*/

lines 230,231,232
Code: [Select]
      exit;
    }
    else {

Anyone know whats missing here?

57
Mods & Plugins (Requests & Discussions) / Re: [ADD-ON] Image Zoomer
« on: August 10, 2008, 06:56:08 PM »
mawenzi, i come to you for knowledge once again.

This time the zoom tool has been upgraded. See new version TJPzoom 3 - http://valid.tjp.hu/tjpzoom/index_en.html ( no longer need arrow keys!)

After upgrading to 1.7.6 i reinstalled the original mod you put together but it did not work. I'm not sure why but I just cant get it to activate over my images. I tried to figure out how to get the new version to work instead and still no luck.

Heres what I've done. Please tell me if you see any problems.

Opened /templates/<your_template>/media/jpg.html

To restrict guests from using Zoom Tool

Find:
Code: [Select]
<img src="{media_src}" border="1" alt="{image_name}"{width_height} /><br />
Replace with:
Code: [Select]
{if user_loggedout}
<img src="{media_src}" border="1" alt="{image_name}"{width_height} /><br />
{endif user_loggedout}

To give Registered users Zoom Tool
Add line:
Code: [Select]
{if user_loggedin}
<head>
<script type="text/javascript" src="http://cydonian.com/photos/templates/default/media/tjpzoom.js"></script>
<script type="text/javascript" src="http://cydonian.com/photos/templates/default/media/tjpzoom_config_relative.js"></script>
</head>
<div>
<img src="{media_src}" onmouseover="TJPzoom(event,{width},{height},'{media_src}','{media_src_2}');">
</div>
{endif user_loggedin}

Open includes/functions.php
Find:
Code: [Select]
    $site_template->register_vars(array(
      "media_src" => $media_src,

Replace with:
Code: [Select]
$media_src_2 = $site_sess->url(ROOT_PATH."images/download/".$media_file_name);

$site_template->register_vars(array(
     "media_src" => $media_src,
     "media_src_2" => $media_src_2,

side note: This code, previous to today, gave me a Parse error.
Code: [Select]
$media_src_2 = $site_sess->url(ROOT_PATH."images/download/".$media_file_name."".jpg);I replaced it with the one i show above
Code: [Select]
$media_src_2 = $site_sess->url(ROOT_PATH."images/download/".$media_file_name);
what am I missing?

58
Just updated to 1.7.6 tried to implement this mod again but the code in member.php has changed. I can't get it to work.

Anyone else have luck getting this mod to work with the latest?

59
Mods & Plugins (Releases & Support) / Re: [Mod] Latest News and Archive
« on: August 10, 2008, 12:13:15 AM »
Hi mawenzi,

Thanks for the reply. I tried to figure it out but I cant seem to narrow down where the missing { is. Any suggestions?

60
Mods & Plugins (Releases & Support) / Re: [MOD] Download limit v1
« on: August 10, 2008, 12:09:14 AM »
Just tried my best and got it to work. Some of the code in download.php 1.7.6 doesn't match.
Follow this step 2 insted of the first post

Step 2
Open download.php
Find:
Code: [Select]
$user_access = get_permission();
Insert Below
Code: [Select]
/*
  MOD DOWNLOAD LIMIT
  BEGIN INSERT
*/
$dl = 0;
function check_dl_limit($dl)
{
  global $user_info, $config;
  if ($user_info['user_level'] != ADMIN && $user_info['user_dl_limit'] != -1 && $user_info['user_dl_limit'] && time() - $user_info['user_dl_time'] <= 60*60*$config['user_dl_time'] && $user_info['user_dl_count'] + $dl >= $user_info['user_dl_limit'])
  {
    return false;
  }
  elseif ($user_info['user_level'] != ADMIN && $user_info['user_dl_limit'] != -1 && $user_info['user_dl_limit'] && time() - $user_info['user_dl_time'] > 60*60*$config['user_dl_time'] && $dl >= $user_info['user_dl_limit'])
  {
    return false;
  }
  return true;
}
function update_dl_limit($dl)
{
  global $user_info, $site_db, $site_sess, $config;
  if ($user_info['user_level'] == ADMIN) return;
  $time = time();
  if (!$user_info['user_dl_time'] || $time - $user_info['user_dl_time'] > 60*60*$config['user_dl_time'])
  {
    $time_sql = ", user_dl_time = ".$time;
    $user_info['user_dl_count'] = $dl;
    $user_info['user_dl_time'] = $time;
  }
  else
  {
    $time_sql = "";
    $user_info['user_dl_count'] += $dl;
  }
  if ($user_info['user_level'] > GUEST)
  {
    $sql = "UPDATE ".USERS_TABLE."
            SET user_dl_count = ".$user_info['user_dl_count'].$time_sql."
            WHERE user_id = ".$user_info['user_id'];
    $site_db->query($sql);
  }
  $site_sess->set_cookie_data('data', base64_encode($user_info['user_dl_count']." ".$user_info['user_dl_time']), 1, 60*60*$config['user_dl_time']);
}
/*
  MOD DOWNLOAD LIMIT
  END INSERT
*/


Step 2.3
Find:
Code: [Select]
else {
      redirect("lightbox.php?empty=1");
    }
  }
}

Insert Below
Code: [Select]
/*
  MOD DOWNLOAD LIMIT
  BEGIN REPLACE
*/
      $file['file_data'] = $zipfile->send(time().".zip");
      exit;
    }
    else {
      if (!check_dl_limit(0))
      {
        $site_sess->set_session_var("msg_error", addslashes($lang['dl_limit_reached']));
      }
      redirect($url);
/*
  MOD DOWNLOAD LIMIT
  END REPLACE
*/

worked for me.

Pages: 1 2 3 [4] 5 6 7 8 ... 10