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 - getcom

Pages: [1]
1
can anyone tell me where steps 1 to 4 are. This MOD starts at step 4

thanks

2
Mods & Plugins (Releases & Support) / Re: [Mod] DropShadow on thumbnails
« on: November 11, 2007, 09:29:40 PM »
Hi Anderson

I think Harry's mod only works with IE. Mine (top of page 3) works for all browsers and you can also have a dropdown shadow on anything you like, not just the images.

Getcom


3
Hi Jan

Is there a way to add or alter this code so it will work when no activation is needed. I would like them to register without the need to activate but still be place in a user group.

Many thanks

Gary

4
Mods & Plugins (Requests & Discussions) / Keyword Dropdown lists
« on: September 07, 2007, 01:25:44 PM »
OK I know we can do searches by typing the word "and" directly into the link:
mywebsite.com/search.php?search_keywords=keyword1 and keyword2

Which will appear in the address bar like this when the results come up:
mywebsite.com/search.php?search_keywords=keyword1%20and%20keyword2

Is it possible to add dropdown lists to the search_form.html that will allow you to do the same sort of thing. Say we have 3 dropdown lists so you can search for 3 different keywords, list 1, list 2 and list 3 would then be linked together as link1+AND+link2+AND+link3 and the result after hitting the search button would be the same as typing it into the keyword box or in the URL address line.

Willing to pay for this

Many thanks

Gary

5
Discussion & Troubleshooting / Re: Advanced Search Links
« on: September 07, 2007, 01:18:57 PM »
Do you think it is possible to add say 3 dropdown list for the keyword1 keyword2 and weyword3 and have the search look for all 3 keywords

6
Great mod, but can this be changed so you could have more than one dropdown list say like a dropdown list for colour and one for shape and one for 3d or not. so the search would then do a search for say the colour red+AND+square+AND+3d. this way they could have 3 choices to choose from or use all three.

Would be great if could be done

Many thanks

7
Does anyone have any ideas about this. I could really use it and have tried to add the code everywhere I thought it should go. I just need new users to be added to a default group with or with the need for an activation key. need them to be added to a default group no matter what the settings page says about Account activation. None, e-mail or admin

Can anyone help

Many thanks

8
Hi mawenzi, can you tell me where this code should be placed please, i'm having a little trouble

Many thanks

9
Hi
Is there a way of chnaging this code here http://www.4homepages.de/forum/index.php?topic=6945.0 for default usergroup for new users to allow it to work for users who don't have to activate their account by email.

Many thanks

10
Thank you. But not too sure where to place this code. there looks like there are a few queries in the memberlist.php.

Thank you for your help on this

11
Hi Nicky

Is there a way to hide users who have chosen to hide their online status. I am getting a few complaints that their user names are showing up on the members list when they want to stay hidden.

Many thanks

12
Discussion & Troubleshooting / Re: Help -- can not add member from ACP
« on: April 17, 2007, 01:00:23 AM »
you can and it works if you make a few small changes to the install file like below.

See $user_limit tags in bold, or just use this file as your user limit install file.

Quote
################################################################################################
## Title: User Upload Limits for 4images - Image Gallery Management System.
## Version: 1.2
## Author: Silly Little Lamer <sll@dalnet.ru>
## Description: This Mod sets limits to the number of images, that user could upload to the gallery.
##      Default limit is set to all existing users during installation of this MOD, and can
##      be changed later via Control Panel. Individual upload limits for every user can also
##      be changed via Edit User Panel. Since this MOD is altering 4images database, please
##      go Control Panel and backup you database!
##
## New in v.1.2 - Daily limits + ability to check uploaded but not yet validated images.
##
##
## Installation Level:   Medium
## Installation Time:   20 Minutes
##
## Files To Edit: 6
##   /4images/member.php
##   /4images/register.php
##   /4images/admin/users.php
##   /4images/admin/settings.php
##   /4images/lang/english/admin.php
##   /4images/lang/english/main.php
##
################################################################################################
## BEFORE ADDING THIS MOD, YOU SHOULD BACK UP ALL FILES RELATED TO 4IMAGES INCLUDING DATABASE!
################################################################################################
#
#
# Unpack install_user_limits.php to your 4images root directory and run it. If you see "Success!"
# message, than all required fields and records were added to your database. Close this file, do
# not try to run in twice!
#
# Alternatively, you can perform these two queries manualy:
#
#   ALTER TABLE `4images_users` ADD `user_limit` SMALLINT(3) DEFAULT '5' NOT NULL;
#   INSERT INTO `4images_settings` (`setting_name`, `setting_value`) VALUES ('default_upload_limit', '5');
#
# Then modify all neccessary files as disribed below:
#
#-----[ OPEN ]----------------------------------------
#

/4images/member.php

#
#-----[ FIND ]----------------------------------------
#

if ($action == "uploadform") {
  if ($cat_id != 0 && (!isset($cat_cache[$cat_id]) || !check_permission("auth_upload", $cat_id))) {
    show_error_page($lang['no_permission']);
    exit;
  }

#
#-----[ REPLACE WITH ]--------------------------------
#

//-----------------------------------------------------
// --- Check User Limits ------------------------------
//-----------------------------------------------------

$user_id = $user_info['user_id'];

$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['file_upload_error']."</span>";

   $site_template->register_vars(array(
      "clickstream" => $clickstream,
      "lang_no_limits" => $lang['no_limits'],
      "lang_no_limits_text" => $lang['no_limits_text'],
      "lang_already_loaded" => $lang['already_loaded'],
      "lang_show_my_images" => $lang['show_my_images'],
      "url_show_user_images" => $site_sess->url(ROOT_PATH."search.php?search_user=".$user_info['user_name'])
   ));


function check_daily_picture_limit($user_id) {
   global $site_db, $site_template;

$sql = "SELECT user_limit FROM ".USERS_TABLE." WHERE user_id = $user_id";
$result = $site_db->query($sql);
$row = $site_db->fetch_array($result);
$upload_limit = ($row['user_limit']);
$site_template->register_vars("upload_limit", $upload_limit);

$limit_cutoff = time() - 60 * 60 * 24;

$sql = "SELECT COUNT(*) AS num_rows_all
FROM ".IMAGES_TABLE."
WHERE image_active = 1 AND user_id=$user_id AND image_date > $limit_cutoff";
$row = $site_db->query_firstrow($sql);
$images_per_user = $row['num_rows_all'];

$site_template->register_vars("images_per_user", $images_per_user);

if($images_per_user >= $upload_limit) {
return false;
} else {
return true;
   }
}

function check_picture_limit($user_id) {
   global $site_db, $site_template;

$sql = "SELECT user_limit FROM ".USERS_TABLE." WHERE user_id = $user_id";
$result = $site_db->query($sql);
$row = $site_db->fetch_array($result);
$upload_limit = ($row['user_limit']);

$site_template->register_vars("upload_limit", $upload_limit);

$sql = "SELECT image_id FROM ".IMAGES_TABLE." WHERE user_id=$user_id";
$result = $site_db->query($sql);
$images_per_user = $site_db->get_numrows($result);

// $sql = "SELECT image_id FROM ".IMAGES_TEMP_TABLE." WHERE user_id=$user_id";
// $result = $site_db->query($sql);
// $tmp_images_per_user = $site_db->get_numrows($result);
// $images_per_user = $tmp_images_per_user + $images_per_user;

// Uncomment above four lines if you also want to check uploaded but not yet validated images against the user limit

$site_template->register_vars("images_per_user", $images_per_user);

if($images_per_user >= $upload_limit) {
return false;
} else {
return true;
   }
}

if ($action == "uploadform") {
 if ($cat_id != 0 && (!isset($cat_cache[$cat_id]) || !check_permission("auth_upload", $cat_id))) {
  show_error_page($lang['no_permission']);
  exit;
 }

if ($cat_id != 0 && (!isset($cat_cache[$cat_id]) || !check_picture_limit($user_id))) {
// if ($cat_id != 0 && (!isset($cat_cache[$cat_id]) || !check_daily_picture_limit($user_id))) {

//
// Depending on your requirements, you can either check against global or daily limit. For global check leave it as it is now.
// For daily limit comment first line and uncomment second one.
//

$site_template->print_template($site_template->parse_template("over_limit"));
include(ROOT_PATH.'includes/page_footer.php');
exit;
}

//-----------------------------------------------------

#
#-----[ OPEN ]----------------------------------------
#

/4images/register.php

#
#-----[ FIND ]----------------------------------------
#

    $sql = "INSERT INTO ".USERS_TABLE."
            (".get_user_table_field("", "user_id").get_user_table_field(", ", "user_level").get_user_table_field(", ", "user_name").get_user_table_field(", ", "user_password").get_user_table_field(", ", "user_email").get_user_table_field(", ", "user_showemail").get_user_table_field(", ", "user_allowemails").get_user_table_field(", ", "user_invisible").get_user_table_field(", ", "user_joindate").get_user_table_field(", ", "user_activationkey").get_user_table_field(", ", "user_lastaction").get_user_table_field(", ", "user_lastvisit").get_user_table_field(", ", "user_comments").get_user_table_field(", ", "user_homepage").get_user_table_field(", ", "user_icq").$additional_field_sql.")
            VALUES
            ($user_id, $user_level, '$user_name', '".md5($user_password)."', '$user_email', $user_showemail, $user_allowemails, $user_invisible, $current_time, '$activationkey', $current_time, $current_time, 0, '$user_homepage', '$user_icq'".$additional_value_sql.")";

#
#-----[ REPLACE WITH ]--------------------------------
#

    $user_limit= $config['default_upload_limit'];
    $sql = "INSERT INTO ".USERS_TABLE."
            (".get_user_table_field("", "user_id").get_user_table_field(", ", "user_level").get_user_table_field(", ", "user_name").get_user_table_field(", ", "user_password").get_user_table_field(", ", "user_email").get_user_table_field(", ", "user_showemail").get_user_table_field(", ", "user_allowemails").get_user_table_field(", ", "user_invisible").get_user_table_field(", ", "user_joindate").get_user_table_field(", ", "user_activationkey").get_user_table_field(", ", "user_lastaction").get_user_table_field(", ", "user_lastvisit").get_user_table_field(", ", "user_comments").get_user_table_field(", ", "user_homepage").get_user_table_field(", ", "user_icq").(", ").('user_limit').$additional_field_sql.")
            VALUES
            ($user_id, $user_level, '$user_name', '".md5($user_password)."', '$user_email', $user_showemail, $user_allowemails, $user_invisible, $current_time, '$activationkey', $current_time, $current_time, 0, '$user_homepage', '$user_icq', '$user_limit'.$additional_value_sql.")";


#
#-----[ OPEN ]----------------------------------------
#


/4images/admin/users.php

#
#-----[ FIND ]----------------------------------------
#


$user_icq = (intval(trim($HTTP_POST_VARS['user_icq']))) ? intval(trim($HTTP_POST_VARS['user_icq'])) : "";

#
#-----[ AFTER ADD ]------------------------------------
#

$user_limit = intval($HTTP_POST_VARS['user_limit']);

#
#-----[ FIND ]----------------------------------------
#

    $sql = "UPDATE ".USERS_TABLE."
            SET ".get_user_table_field("", "user_level")." = $user_level, ".get_user_table_field("", "user_name")." = '$user_name',$passinsert ".get_user_table_field("", "user_email")." = '$user_email', ".get_user_table_field("", "user_showemail")." = $user_showemail, ".get_user_table_field("", "user_allowemails")." = $user_allowemails, ".get_user_table_field("", "user_invisible")." = $user_invisible, ".get_user_table_field("", "user_joindate")." = $user_joindate, ".get_user_table_field("", "user_lastaction")." = $user_lastaction, ".get_user_table_field("", "user_homepage")." = '$user_homepage', ".get_user_table_field("", "user_icq")." = '$user_icq'".$additional_sql."
            WHERE ".get_user_table_field("", "user_id")." = $user_id";

#
#-----[ REPLACE WITH ]--------------------------------
#

    $sql = "UPDATE ".USERS_TABLE."
    SET ".get_user_table_field("", "user_level")." = $user_level, ".get_user_table_field("", "user_name")." = '$user_name',$passinsert ".get_user_table_field("", "user_email")." = '$user_email', ".get_user_table_field("", "user_showemail")." = $user_showemail, ".get_user_table_field("", "user_allowemails")." = $user_allowemails, ".get_user_table_field("", "user_invisible")." = $user_invisible, ".get_user_table_field("", "user_joindate")." = $user_joindate, ".get_user_table_field("", "user_lastaction")." = $user_lastaction, ".get_user_table_field("", "user_homepage")." = '$user_homepage', ".get_user_table_field("", "user_icq")." = '$user_icq', user_limit='".$user_limit."'".$additional_sql."
            WHERE ".get_user_table_field("", "user_id")." = $user_id";

#
#-----[ FIND ]----------------------------------------
#

      $sql = "INSERT INTO ".USERS_TABLE."
            (".get_user_table_field("", "user_id").get_user_table_field(", ", "user_level").get_user_table_field(", ", "user_name").get_user_table_field(", ", "user_password").get_user_table_field(", ", "user_email").get_user_table_field(", ", "user_showemail").get_user_table_field(", ", "user_allowemails").get_user_table_field(", ", "user_invisible").get_user_table_field(", ", "user_joindate").get_user_table_field(", ", "user_activationkey").get_user_table_field(", ", "user_lastaction").get_user_table_field(", ", "user_lastvisit").get_user_table_field(", ", "user_comments").get_user_table_field(", ", "user_homepage").get_user_table_field(", ", "user_icq").$additional_field_sql.")
                VALUES
              ($user_id, $user_level, '$user_name', '$user_password', '$user_email', $user_showemail, $user_allowemails, $user_invisible, $current_time, '$activationkey', $current_time, $current_time, 0, '$user_homepage', '$user_icq'".$additional_value_sql.")";

#
#-----[ REPLACE WITH ]--------------------------------
#

      $sql = "INSERT INTO ".USERS_TABLE."
            (".get_user_table_field("", "user_id").get_user_table_field(", ", "user_level").get_user_table_field(", ", "user_name").get_user_table_field(", ", "user_password").get_user_table_field(", ", "user_email").get_user_table_field(", ", "user_showemail").get_user_table_field(", ", "user_allowemails").get_user_table_field(", ", "user_invisible").get_user_table_field(", ", "user_joindate").get_user_table_field(", ", "user_activationkey").get_user_table_field(", ", "user_lastaction").get_user_table_field(", ", "user_lastvisit").get_user_table_field(", ", "user_comments").get_user_table_field(", ", "user_homepage").get_user_table_field(", ", "user_icq").(", user_limit").$additional_field_sql.")
                VALUES
              ($user_id, $user_level, '$user_name', '$user_password', '$user_email', $user_showemail, $user_allowemails, $user_invisible, $current_time, '$activationkey', $current_time, $current_time, 0, '$user_homepage', '$user_icq', '$user_limit'".$additional_value_sql.")";

#
#-----[ FIND ]----------------------------------------
#

show_input_row($lang['field_icq'], "user_icq", $user_row['user_icq'], $textinput_size);

#
#-----[ AFTER ADD ]------------------------------------
#

show_input_row($lang['field_limit'], "user_limit", $user_row['user_limit']);

#
#-----[ OPEN ]----------------------------------------
#

/4images/admin/settings.php

#
#-----[ FIND ]----------------------------------------
#

show_setting_row("max_media_size");

#
#-----[ AFTER ADD ]------------------------------------
#

show_setting_row("default_upload_limit");

#
#-----[ OPEN ]----------------------------------------
#

/4images/lang/english/admin.php

#
#-----[ FIND ]----------------------------------------
#

$setting['max_media_size'] = "Max. image size in KB";

#
#-----[ AFTER ADD ]------------------------------------
#

$setting['default_upload_limit'] = "Maximum number of images to upload<br /><span class=\"smalltext\">This value will be assigned to all new users as a default limit.</span>";

#
#-----[ FIND ]----------------------------------------
#

$lang['field_usergroup_name'] = "Name of User Group";

#
#-----[ AFTER ADD ]------------------------------------
#

$lang['field_limit'] = "Maximum number of images to upload";

#
#-----[ OPEN ]----------------------------------------
#

/4images/lang/english/main.php

#
#-----[ FIND ]----------------------------------------
#

//-----------------------------------------------------
//--- Admin Links -------------------------------------
//-----------------------------------------------------

#
#-----[ BEFORE ADD ]-----------------------------------
#

//-----------------------------------------------------
//--- Over Limits -------------------------------------
//-----------------------------------------------------

$lang['show_my_images'] = "You have uploaded {images_per_user} images to this site. Show all images uploaded by you?";
$lang['already_loaded'] = "<span class=\"smalltext\"><b>For your information:</b> you have uploaded <b>{images_per_user}</b> images out of <b>{upload_limit}</b> allowed for you.</span>";
$lang['no_limits'] = "Limit exceeded";
$lang['no_limits_text'] = "You have the limit of {upload_limit} images to upload to this site, and unfortunately you have reached this limit already.
                     You are not allowed to upload new images, but you still have the possibility to delete one or more of the images,
                     already uploaded by you. After that you will be able to upoad images here again.<br /><br />
                     If you feel, that it's absolutely neccessary for you to upload more images, please contact the <a href=\"mailto:{site_email}\">
                     Site Administrator.</a> Probably, your limits would be reconsidered...";
#
#-----[ COPY FILE ]----------------------------------------
#

over_limit.html to your template directory

#
#-----[ SAVE/UPLOAD ALL FILES ]-------------------------------------
#
#
# EoM

13
What if you have account activation set in the setting as by admin, then go in and set the account to registered user. How can I set the system to automatically send a e-mail to that user. Better still if the system could send an e-mail when ever the account status has changed. Any ideas

14
Dropdown shaddows for IE and Firefox.

Add this to the end of your style.css file

Quote
.ds_right   { background: url(images/ds_right.jpg) no-repeat }
.ds_corner  { background: url(images/ds_corner.jpg) no-repeat center }
.ds_bottom   { background: url(images/ds_bottom.jpg) no-repeat left  }



The code for your content in your template files is:

Quote
<table border="0" cellspacing="0" cellpadding="0"><tr><td>

{thumbnail} NOTE THIS CAN BE ANY CONTENT NOT JUST {thumbnail}. TRY IT WITH {image} OR ANYTHING

</td><td valign="top" width="7" class="ds_right" ></td></tr><tr height="7"><td align="left" height="7" class="ds_bottom" ></td><td width="7" height="7" class="ds_corner"></td></tr></table>


Download the images. You can change these to something else if you wish

d_shaddow_images.zip

Unzip them to your template/image folder.


Now all you have to do is add the above table to your template files anywhere you want a dropshaddow.

Hope this helps

15
There is a way of adding shadows so they can be seen in firefox as well as IE using html and css. If anyone is interested let me know and I'll post it.

Pages: [1]