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

Pages: 1 ... 14 15 16 17 [18]
256
This is probally what you are looking for
http://www.4homepages.de/forum/index.php?topic=6759.0

 :wink:

Or

You could change (Number of "previous" and "next" pages displayed in site navigation)
In you Control panel , in settings.
This u can change it to allow only certain number of numbers show up at one time

257
Mods & Plugins (Releases & Support) / Re: [MOD] Last comments v1
« on: August 28, 2005, 09:41:47 PM »
Waiting for Part 2

 :P

258
That might not be useful to all users as some might use HTTP Auth which would failed to accept automated upload pictures.

I dont know if this is the same, but coudnt it be written not to activate untill a certain point.
You can go threw and upload the file, have it create the thumbnail and everything. but it would become activate for a certain amount of time.

just a thought

259
How can u get this to work for 1.7.1 ?

thanks for the support

this mod works for V1.71 and V1.7 , just follow the instructions

RT

Mine is different
but i put the codes side by side and figured it out


260
How can u get this to work for 1.7.1 ?

thanks for the support

261
Mods & Plugins (Requests & Discussions) / Re: Hotlink image branding
« on: July 11, 2005, 08:23:27 PM »
I have seen where you can change the picture using .htaccess
But nothing the would add my watermark  :(

Most of the people that are hotlinking belong to another forum i frequent and i dont mind them doing it. I just what to add the logo so the people that dont know about the site, will then know.

262
Mods & Plugins (Requests & Discussions) / Hotlink image branding
« on: July 09, 2005, 04:08:38 AM »
Hello all, I was wondering if someone can help me out

Im looking for a way to put a little logo on the bottom left of only my gallery pictures and only on pictures that are hotlinked and displayed on other places on the net.
Is this possible to do? I believe Cardomain.com does this with there images.

Any help would be greatly appreciated
 8)
i dont mind that people hotlink my images, but i want to advertise while they do it.

263
Chit Chat / Re: Missing MODs/FIXes/FAQs (Updated 16-03-2004 08:18 EST)
« on: March 16, 2005, 03:55:59 PM »
Thats all the ones I could find that Chris asked for.



264
Chit Chat / Re: Missing MODs/FIXes/FAQs (Updated 15-03-2004 03:00 EST)
« on: March 15, 2005, 07:10:11 PM »
Post subject: [FIX] Cant upload images when not cat_id specifyed   

Code: [Select]
V@no



Joined: 17 Jul 2002
Posts: 5342
Location: Atlanta, GA, RUSSIA-LATVIA
 Posted: 29.05.2003, 14:27    Post subject: [FIX] Cant upload images when not cat_id specifyed   

--------------------------------------------------------------------------------
 
When u go to http://yoursite.com/4images/member.php?action=uploadform it will show u list of categories avalable for upload.
Even if u select a category, it wont let u upload and show u error message "Please select a category".
To fix that, open /templates/<yourtemplate>/member_uploadform.html
Find:Code:
<input type="hidden" name="cat_id" value="{cat_id}" />

Replace with:Code:
{if cat_id}<input type="hidden" name="cat_id" value="{cat_id}" />{endif cat_id}
 
 

265
Chit Chat / Re: Missing MODs/FIXes/FAQs (Updated 15-03-2004 03:00 EST)
« on: March 15, 2005, 07:05:58 PM »
Post subject: [Bug Fix] Database backup fails in Mozilla and Firefox   

Code: [Select]
V@no



Joined: 17 Jul 2002
Posts: 7348
Location: St. Petersburg, FL, RUSSIA-LATVIA
 Posted: 25.07.2004, 06:35    Post subject: [Bug Fix] Database backup fails in Mozilla and Firefox   

--------------------------------------------------------------------------------
 
dmair wrote:
OK, this is scary! I just tried to do a database backup before archiving my 4Images content and it failed (with all the error info in the .sql file). All the SQL statements had no table name in them. It was caused by a missing equals sign in backup.php where it generates the value attribute for the option tag in the form's select element that contains the table list:

Code:

  $result = $site_db->query("SHOW tables");
  while ($row = $site_db->fetch_array($result)) {
    $table_select .= "<option value\"".$row[0]."\"";
    if (in_array($row[0], $default_tables) && preg_match("/^".$table_prefix."/i", $row[0])) {
      $table_select .= " selected";
    }
    $table_select .= ">".$row[0]."</option>\n";
  }
 


should look like this:

Code:

  $result = $site_db->query("SHOW tables");
  while ($row = $site_db->fetch_array($result)) {
    $table_select .= "<option value=\"".$row[0]."\"";
    if (in_array($row[0], $default_tables) && preg_match("/^".$table_prefix."/i", $row[0])) {
      $table_select .= " selected";
    }
    $table_select .= ">".$row[0]."</option>\n";
  }
 


Before I figured out the cause I downloaded the published 4Images and compared the files with my own copies (I use the same version with a few mods). The equals sign is missing on the version I just downloaded.

What I find weird is that I think backup used to work! Until today I had backups of around 4000kB, today I made one and it was 8.6kB and really only a list of error messages from MySQL
 
 

266
Chit Chat / Re: Missing MODs/FIXes/FAQs (Updated 15-03-2004 03:00 EST)
« on: March 15, 2005, 07:00:48 PM »
Auto fill in additional image fields

Code: [Select]
moritzh



Joined: 11 Mar 2003
Posts: 3
Location: Zurich (CH) / Hamburg (D)
 Posted: 06.08.2003, 19:50    Post subject: Auto fill in additional image fields/Zusätzliche Bild-Felder   

--------------------------------------------------------------------------------
 
If you add additional user and image fields to your gallery following the description in db_field_definitions.php, you will have one problem when including these fields in your templates, such as member_editimage.html:
While the standard fields (such as name of the image) will be filled with the existing (current) values on the member_editimage.html form, all the additional fields will show up empty.
This only happened to me with the additional image fields, not with the additional user fields. Strange...
For instance, I added additional fields like user_name_last and user_name_first and image_photographer. I changed member_editprofile.html and member_editimage.html and member_uploadform.html to let users change these additional fields. However, while all the user_fields worked perfectly alright (meaning that on the page where users can modify their profile (member_editprofile.html) all the existig values where already filled in (e.g. if a last name was stored in user_name_last, it showed up)), the additional image fields didn't (meaning that if something was stored for the name of the photographer in image_photographer, it still did not show up on member_editimage, so the field was blank although a name was stored).
Here is how I resolved it:

#####
OPEN
#####
member.php


#####
FIND
#####
Code:

  $site_template->register_vars(array(
    "image_id" => $image_id,
    "image_name" => htmlspecialchars($image_name),
    "image_description" => htmlspecialchars($image_description),
    "image_keywords" => htmlspecialchars($image_keywords),
    "image_allow_comments_yes" => ($image_allow_comments) ? " checked=\"checked\"" : "",
    "image_allow_comments_no" => (!$image_allow_comments) ? " checked=\"checked\"" : "",
    "lang_edit_image" => $lang['image_edit'],
    "lang_image_name" => $lang['image_name'],
    "lang_description" => $lang['description'],
    "lang_keywords" => $lang['keywords_ext'],
    "lang_allow_comments" => isset($lang['allow_comments']) ? $lang['allow_comments'] : "",
    "lang_submit" => $lang['submit'],
    "lang_reset" => $lang['reset'],
    "lang_yes" => $lang['yes'],
    "lang_no" => $lang['no']
  ));
 
  if (!empty($additional_image_fields)) {
    $additional_field_array = array();
    foreach ($additional_image_fields as $key => $val) {
      if ($val[1] == "radio") {
        $value = (isset($HTTP_POST_VARS[$key])) ? intval($HTTP_POST_VARS[$key]) : 1;
        if ($value == 1) {
          $additional_field_array[$key.'_yes'] = " checked=\"checked\"";
          $additional_field_array[$key.'_no'] = "";
        }
        else {
          $additional_field_array[$key.'_yes'] = "";
          $additional_field_array[$key.'_no'] = " checked=\"checked\"";
        }
      }
      else {
        $value = (isset($HTTP_POST_VARS[$key])) ? htmlspecialchars(stripslashes(trim($HTTP_POST_VARS[$key]))) : "";
      }
      $additional_field_array[$key] = $value;
      $additional_field_array['lang_'.$key] = $val[0];
    }
    if (!empty($additional_field_array)) {
      $site_template->register_vars($additional_field_array);
    }
  }
  $content = $site_template->parse_template("member_editimage");
 



####
REPLACE WITH
####

Code:

  $site_template->register_vars(array(
    "image_id" => $image_id,
    "image_name" => htmlspecialchars($image_name),
    "image_description" => htmlspecialchars($image_description),
    "image_keywords" => htmlspecialchars($image_keywords),
    "image_allow_comments_yes" => ($image_allow_comments) ? " checked=\"checked\"" : "",
    "image_allow_comments_no" => (!$image_allow_comments) ? " checked=\"checked\"" : "",
    "lang_edit_image" => $lang['image_edit'],
    "lang_image_name" => $lang['image_name'],
    "lang_description" => $lang['description'],
    "lang_keywords" => $lang['keywords_ext'],
    "lang_allow_comments" => isset($lang['allow_comments']) ? $lang['allow_comments'] : "",
    "lang_submit" => $lang['submit'],
    "lang_reset" => $lang['reset'],
    "lang_yes" => $lang['yes'],
    "lang_no" => $lang['no']
  ));
   
  // BEGIN MOD Auto fill in for additional image fields
  $sql2 = "SELECT image_id".$additional_sql."
          FROM ".IMAGES_TABLE."
          WHERE image_id = $image_id";
  $image_row2 = $site_db->query_firstrow($sql2);
  // END MOD Auto fill in for additional image fields
 
  if (!empty($additional_image_fields)) {
    $additional_field_array = array();
    foreach ($additional_image_fields as $key => $val) {
      if ($val[1] == "radio") {
        // BEGIN MOD Auto fill in for additional image fields
        $value = (isset($HTTP_POST_VARS[$key])) ? intval($HTTP_POST_VARS[$key]) : intval($image_row2[$key]);
        // END MOD Auto fill in for additional image fields     
        if ($value == 1) {
          $additional_field_array[$key.'_yes'] = " checked=\"checked\"";
          $additional_field_array[$key.'_no'] = "";
        }
        else {
          $additional_field_array[$key.'_yes'] = "";
          $additional_field_array[$key.'_no'] = " checked=\"checked\"";
        }
      }
      else {
        // BEGIN MOD Auto fill in for additional image fields
        $value = (isset($HTTP_POST_VARS[$key])) ? htmlspecialchars(stripslashes(trim($HTTP_POST_VARS[$key]))) : htmlspecialchars(stripslashes($image_row2[$key]));
        // END MOD Auto fill in for additional image fields
      }
      $additional_field_array[$key] = $value;
      $additional_field_array['lang_'.$key] = $val[0];
    }
    if (!empty($additional_field_array)) {
      $site_template->register_vars($additional_field_array);
    }
  }
  $content = $site_template->parse_template("member_editimage");
 



Please note: I have quite a few modifications in my code, so I don't know if it was me (the modifications) that caused the bug or if this was already in the original version of the code. Also, I have very limited knowledge about PHP and MySQL, so this solution might not be very elegant. But it worked for me...
 

267
Chit Chat / Re: Missing MODs/FIXes/FAQs (Updated 15-03-2004 03:00 EST)
« on: March 15, 2005, 06:56:43 PM »
Post subject: [FIX] Subcategories columns dont show proportionaly

Code: [Select]
V@no



Joined: 17 Jul 2002
Posts: 5351
Location: Atlanta, GA, RUSSIA-LATVIA
 Posted: 26.12.2002, 09:23    Post subject:   

--------------------------------------------------------------------------------
 
I think it's little bug....
here is the fix:

1. Open /includes/functions.php file.
1.2. Find:Code:
      if ($total <= $table_columns && $table_columns > 1) {
        $table_rows = 1;
      }
      else {
        $table_rows = $total / $table_columns;
        if ($total >= $table_columns && !is_integer($table_rows)) {
          $table_rows = intval($table_rows) + 1;
        }
      }
Just delete it.
 
 

268
Chit Chat / Re: Missing MODs/FIXes/FAQs (Updated 15-03-2004 03:00 EST)
« on: March 15, 2005, 06:51:35 PM »
[Bug Fix 1.7] Back btn fails in Admin CP Edit Users/Images   

Code: [Select]
vividviews

Joined: 11 May 2002
Posts: 3060
Location: USA
 Posted: 23.10.2003, 18:58    Post subject: [Bug Fix 1.7] Back btn fails in Admin CP Edit Users/Images   

--------------------------------------------------------------------------------
 
This bug fix applies to 4images version 1.7

Problem
When editing users from the admin control panel and a multipage list is returned, the "Back" button does not work. The same holds true for "Edit Images".

Edit Users Solution
Open admin/users.php and locate this block of code:
Code:
  echo "<div align=\"right\">";
  echo "<form action=\"".$site_sess->url("users.php")."\" name=\"form2\" method=\"post\">\n";

  if ($limitnumber != 5000 && $limitfinish < $countusers['users']) {
    show_hidden_input("action", "findusers");
    show_hidden_input("user_level", $user_level);
    show_hidden_input("user_name", $user_name, 1);
    show_hidden_input("user_email", $user_email, 1);
    show_hidden_input("dateafter", $dateafter);
    show_hidden_input("datebefore", $datebefore);
    show_hidden_input("lastactionafter", $lastactionafter);
    show_hidden_input("lastactionbefore", $lastactionbefore);

    show_hidden_input("orderby", $orderby, 1);
    show_hidden_input("direction", $direction, 1);
    show_hidden_input("limitstart", $limitstart + $limitnumber + 1);
    show_hidden_input("limitnumber", $limitnumber);

    echo "<input type=\"submit\" value=\"   ".$lang['search_next_page']."   \" class=\"button\">\n";
  }
  echo "<input type=\"button\" value=\"   ".$lang['back']."   \" onclick=\"history.go(-1)\" class=\"button\">\n";
  echo "</form>";
  echo "</div>";
}

REPLACE the entire block with this:
Code:
  echo "<div align=\"right\">";
  echo "<form action=\"".$site_sess->url("users.php")."\" name=\"form2\" method=\"post\">\n";

  //if ($limitnumber != 5000 && $limitfinish < $countusers['users']) {
    show_hidden_input("action", "findusers");
    show_hidden_input("user_level", $user_level);
    show_hidden_input("user_name", $user_name, 1);
    show_hidden_input("user_email", $user_email, 1);
    show_hidden_input("dateafter", $dateafter);
    show_hidden_input("datebefore", $datebefore);
    show_hidden_input("lastactionafter", $lastactionafter);
    show_hidden_input("lastactionbefore", $lastactionbefore);
    show_hidden_input("orderby", $orderby, 1);
    show_hidden_input("direction", $direction, 1);
    show_hidden_input("limitstart", $limitstart + $limitnumber + 1);
    show_hidden_input("limitnumber", $limitnumber);

  if( $limitstart > 1 )
  echo "<input type=\"button\" value=\"   ".$lang['back']."   \" onclick=\"limitstart.value=limitstart.value-limitnumber.valu
e*2;submit();\" class=\"button\">\n";
  if ($limitnumber != 5000 && $limitfinish < $countusers['users']) {
    echo "<input type=\"submit\" value=\"   ".$lang['search_next_page']."   \" class=\"button\">\n";
  }
  // echo "<input type=\"button\" value=\"   ".$lang['back']."   \" onclick=\"history.go(-1)\" class=\"button\">\n";
  echo "</form>";
  echo "</div>";
}



Edit Images Solution
Open admin/images.php and locate this block of code:
Code:
  echo "<div align=\"right\">";
  echo "<form action=\"".$site_sess->url("images.php")."\" name=\"form2\" method=\"post\">\n";
 
  if ($limitnumber != 5000 && $limitfinish < $countimages['images']) {
    show_hidden_input("action", "findimages");
    show_hidden_input("image_id", $image_id);
    show_hidden_input("image_name", $image_name, 1);
    show_hidden_input("image_description", $image_description, 1);
    show_hidden_input("image_keywords", $image_keywords, 1);
    show_hidden_input("cat_id", $cat_id);
    show_hidden_input("image_media_file", $image_media_file, 1);
    show_hidden_input("image_thumb_file", $image_thumb_file, 1);
    show_hidden_input("dateafter", $dateafter);
    show_hidden_input("datebefore", $datebefore);
    show_hidden_input("downloadsupper", $downloadsupper);
    show_hidden_input("downloadslower", $downloadslower);
    show_hidden_input("ratingupper", $ratingupper);
    show_hidden_input("ratinglower", $ratinglower);
    show_hidden_input("votesupper", $votesupper);
    show_hidden_input("voteslower", $voteslower);
    show_hidden_input("hitsupper", $hitsupper);
    show_hidden_input("hitslower", $hitslower);

    show_hidden_input("orderby", $orderby, 1);
    show_hidden_input("direction", $direction, 1);
    show_hidden_input("limitstart", $limitstart + $limitnumber + 1);
    show_hidden_input("limitnumber", $limitnumber);

    echo "<input type=\"submit\" value=\"   ".$lang['search_next_page']."   \" class=\"button\">\n";
  }
  echo "<input type=\"button\" value=\"   ".$lang['back']."   \" onclick=\"history.go(-1)\" class=\"button\">\n";
  echo "</form>";
  echo "</div>";
}


REPLACE the entire block with this:
Code:
  echo "<div align=\"right\">";
  echo "<form action=\"".$site_sess->url("images.php")."\" name=\"form2\" method=\"post\">\n";
 
  //if ($limitnumber != 5000 && $limitfinish < $countimages['images']) {
    show_hidden_input("action", "findimages");
    show_hidden_input("image_id", $image_id);
    show_hidden_input("image_name", $image_name, 1);
    show_hidden_input("image_description", $image_description, 1);
    show_hidden_input("image_keywords", $image_keywords, 1);
    show_hidden_input("cat_id", $cat_id);
    show_hidden_input("image_media_file", $image_media_file, 1);
    show_hidden_input("image_thumb_file", $image_thumb_file, 1);
    show_hidden_input("dateafter", $dateafter);
    show_hidden_input("datebefore", $datebefore);
    show_hidden_input("downloadsupper", $downloadsupper);
    show_hidden_input("downloadslower", $downloadslower);
    show_hidden_input("ratingupper", $ratingupper);
    show_hidden_input("ratinglower", $ratinglower);
    show_hidden_input("votesupper", $votesupper);
    show_hidden_input("voteslower", $voteslower);
    show_hidden_input("hitsupper", $hitsupper);
    show_hidden_input("hitslower", $hitslower);

    show_hidden_input("orderby", $orderby, 1);
    show_hidden_input("direction", $direction, 1);
    show_hidden_input("limitstart", $limitstart + $limitnumber + 1);
    show_hidden_input("limitnumber", $limitnumber);

  if( $limitstart > 1 )
    echo "<input type=\"button\" value=\"   ".$lang['back']."   \" onclick=\"limitstart.value=limitstart.value-limitnumber.value*2;submit();\" class=\"button\">\n";
  if ($limitnumber != 5000 && $limitfinish < $countimages['images']) {
    echo "<input type=\"submit\" value=\"   ".$lang['search_next_page']."   \" class=\"button\">\n";
  }
  //echo "<input type=\"button\" value=\"   ".$lang['back']."   \" onclick=\"history.go(-1)\" class=\"button\">\n";
  echo "</form>";
  echo "</div>";
}
 
 
 
 

269
Chit Chat / Re: Missing MODs/FIXes/FAQs (Updated 15-03-2004 03:00 EST)
« on: March 15, 2005, 06:43:43 PM »
Post subject: [FIX] details.php with mode=lightbox next/prev maybe wrong

Code: [Select]
V@no
Post subject: [FIX] details.php with mode=lightbox next/prev maybe wrong   

--------------------------------------------------------------------------------
 
This is a little bug, that will show u next/previous links in lightbox mode to images even if u dont have permission to view them and

because u dont have permission to view details of those images, u'll be redirected to index.php
(to check it try this: set view_cat permissions to ALL, set view_image permissions to ADMIN, add images in your lightbox, then add one

image from another category where u have permission to view_cat and view_image. Then go to lightbox, click on that image in details.php

u'll see link to next image that will redirect u to index.php when u click on it)

FIX:
Open /details.php
Find:Code:
            WHERE image_active = 1 AND image_id IN ($image_id_sql) AND cat_id IN (".get_auth_cat_sql("auth_viewcat").")
Replace with:Code:
            WHERE image_active = 1 AND image_id IN ($image_id_sql) AND (cat_id IN (".get_auth_cat_sql("auth_viewimage").") AND cat_id IN

(".get_auth_cat_sql("auth_viewcat")."))

Pages: 1 ... 14 15 16 17 [18]