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

Pages: [1]
1
Discussion & Troubleshooting / How do i replace - with space
« on: June 13, 2020, 07:16:51 AM »
How can I replace all instances of hyphen (-) with space?

My image names are all showing up as text1-text2-01

2
Programming / Has anyone migrated their gallery to Wordpress?
« on: November 01, 2019, 01:35:45 PM »
I have a 10 year old site built using 4images gallery script (4homepages.de). I am trying to find out if the site and its content can be migrated to Wordpress. I already have a blog section for news which is on Wordpress. I want the gallery part of it to be merged with Wordpress. At the moment, there are close to 500,000 images on the gallery.

3
Discussion & Troubleshooting / Check new images goes back to login screen
« on: October 10, 2019, 05:56:56 AM »
Hi,
Suddenly since yday, when i click on Check New Images, it keeps going to the admin login page.

Error log has the following entries

[10-Oct-2019 05:49:10 CET] PHP Warning:  session_name(): Cannot change session name when headers already sent in /home/siteaa/public_html/includes/sessions.php on line 92
[10-Oct-2019 05:49:10 CET] PHP Warning:  Use of undefined constant SID - assumed 'SID' (this will throw an Error in a future version of PHP) in /home/siteaa/public_html/includes/sessions.php on line 112
[10-Oct-2019 05:49:10 CET] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/siteaa/public_html/admin/checkimages.php:1) in /home/siteaa/public_html/includes/sessions.php on line 101
[10-Oct-2019 05:49:10 CET] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/siteaa/public_html/admin/checkimages.php:1) in /home/siteaa/public_html/includes/sessions.php on line 101
[10-Oct-2019 05:49:10 CET] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/siteaa/public_html/admin/checkimages.php:1) in /home/siteaa/public_html/includes/sessions.php on line 101
[10-Oct-2019 05:49:10 CET] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/siteaa/public_html/admin/checkimages.php:1) in /home/siteaa/public_html/admin/admin_functions.php on line 177
[10-Oct-2019 05:49:10 CET] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/siteaa/public_html/admin/checkimages.php:1) in /home/siteaa/public_html/admin/admin_functions.php on line 178
[10-Oct-2019 05:49:10 CET] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/siteaa/public_html/admin/checkimages.php:1) in /home/siteaa/public_html/admin/admin_functions.php on line 179
[10-Oct-2019 05:49:10 CET] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/siteaa/public_html/admin/checkimages.php:1) in /home/siteaa/public_html/admin/admin_functions.php on line 180
[10-Oct-2019 05:49:10 CET] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/siteaa/public_html/admin/checkimages.php:1) in /home/siteaa/public_html/admin/admin_functions.php on line 181
[10-Oct-2019 05:49:10 CET] PHP Warning:  strstr(): Empty needle in /home/siteaa/public_html/includes/sessions.php on line 550
[10-Oct-2019 05:49:10 CET] PHP Warning:  strstr(): Empty needle in /home/siteaa/public_html/includes/sessions.php on line 550
[10-Oct-2019 05:49:10 CET] PHP Warning:  strstr(): Empty needle in /home/siteaa/public_html/includes/sessions.php on line 550
[10-Oct-2019 05:50:54 CET] PHP Warning:  session_name(): Cannot change session name when headers already sent in /home/siteaa/public_html/includes/sessions.php on line 92
[10-Oct-2019 05:50:54 CET] PHP Warning:  Use of undefined constant SID - assumed 'SID' (this will throw an Error in a future version of PHP) in /home/siteaa/public_html/includes/sessions.php on line 112
[10-Oct-2019 05:50:54 CET] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/siteaa/public_html/admin/checkimages.php:1) in /home/siteaa/public_html/includes/sessions.php on line 101
[10-Oct-2019 05:50:54 CET] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/siteaa/public_html/admin/checkimages.php:1) in /home/siteaa/public_html/includes/sessions.php on line 101
[10-Oct-2019 05:50:54 CET] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/siteaa/public_html/admin/checkimages.php:1) in /home/siteaa/public_html/includes/sessions.php on line 101
[10-Oct-2019 05:50:54 CET] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/siteaa/public_html/admin/checkimages.php:1) in /home/siteaa/public_html/admin/admin_functions.php on line 177
[10-Oct-2019 05:50:54 CET] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/siteaa/public_html/admin/checkimages.php:1) in /home/siteaa/public_html/admin/admin_functions.php on line 178
[10-Oct-2019 05:50:54 CET] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/siteaa/public_html/admin/checkimages.php:1) in /home/siteaa/public_html/admin/admin_functions.php on line 179
[10-Oct-2019 05:50:54 CET] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/siteaa/public_html/admin/checkimages.php:1) in /home/siteaa/public_html/admin/admin_functions.php on line 180
[10-Oct-2019 05:50:54 CET] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/siteaa/public_html/admin/checkimages.php:1) in /home/siteaa/public_html/admin/admin_functions.php on line 181
[10-Oct-2019 05:50:54 CET] PHP Warning:  strstr(): Empty needle in /home/siteaa/public_html/includes/sessions.php on line 550
[10-Oct-2019 05:50:54 CET] PHP Warning:  strstr(): Empty needle in /home/siteaa/public_html/includes/sessions.php on line 550
[10-Oct-2019 05:50:54 CET] PHP Warning:  strstr(): Empty needle in /home/siteaa/public_html/includes/sessions.php on line 550
[10-Oct-2019 05:54:27 CET] PHP Warning:  session_name(): Cannot change session name when headers already sent in /home/siteaa/public_html/includes/sessions.php on line 92
[10-Oct-2019 05:54:27 CET] PHP Warning:  Use of undefined constant SID - assumed 'SID' (this will throw an Error in a future version of PHP) in /home/siteaa/public_html/includes/sessions.php on line 112
[10-Oct-2019 05:54:27 CET] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/siteaa/public_html/admin/checkimages.php:1) in /home/siteaa/public_html/includes/sessions.php on line 101
[10-Oct-2019 05:54:27 CET] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/siteaa/public_html/admin/checkimages.php:1) in /home/siteaa/public_html/includes/sessions.php on line 101
[10-Oct-2019 05:54:27 CET] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/siteaa/public_html/admin/checkimages.php:1) in /home/siteaa/public_html/includes/sessions.php on line 101
[10-Oct-2019 05:54:27 CET] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/siteaa/public_html/admin/checkimages.php:1) in /home/siteaa/public_html/admin/admin_functions.php on line 177
[10-Oct-2019 05:54:27 CET] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/siteaa/public_html/admin/checkimages.php:1) in /home/siteaa/public_html/admin/admin_functions.php on line 178
[10-Oct-2019 05:54:27 CET] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/siteaa/public_html/admin/checkimages.php:1) in /home/siteaa/public_html/admin/admin_functions.php on line 179
[10-Oct-2019 05:54:27 CET] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/siteaa/public_html/admin/checkimages.php:1) in /home/siteaa/public_html/admin/admin_functions.php on line 180
[10-Oct-2019 05:54:27 CET] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/siteaa/public_html/admin/checkimages.php:1) in /home/siteaa/public_html/admin/admin_functions.php on line 181
[10-Oct-2019 05:54:27 CET] PHP Warning:  strstr(): Empty needle in /home/siteaa/public_html/includes/sessions.php on line 550
[10-Oct-2019 05:54:27 CET] PHP Warning:  strstr(): Empty needle in /home/siteaa/public_html/includes/sessions.php on line 550
[10-Oct-2019 05:54:27 CET] PHP Warning:  strstr(): Empty needle in /home/siteaa/public_html/includes/sessions.php on line 550

4
Discussion & Troubleshooting / Sort Sub Categories
« on: July 08, 2018, 06:08:40 AM »
On my site, i have created a set of main categories which have plenty of subcategories. Now my main categories are sorted by the admin sort order which is ASC.
But i want my sub cat to be sorted by the recently updated category. How do i do that?

Example structure:

Main Category 1
- sub cat
- sub cat
- sub cat

Main Category 2
- sub cat
- sub cat
- sub cat

Main Category 3
- sub cat
- sub cat
- sub cat

5
Mods & Plugins (Requests & Discussions) / Multiple thumbnail sizes
« on: November 02, 2017, 08:40:28 PM »
I used this mod: http://www.4homepages.de/forum/index.php?topic=30895.0

But i am not able to get it to work..

Is there a way to have multiple thumbnail sizes for images so that i can display one size in category and one size in another page?

6
Feedback & Suggestions / Face Detection while thumbnail generation
« on: October 31, 2017, 07:48:56 PM »
Is there a way to ensure the "faces" do not get cut off during thumbnail generation?

7
Hi,

How i can replace <img src="./data... with <img src="http://www.site.com/data

Thanks.

8
<nevermind. fixed>

9
Feedback & Suggestions / Support for PHP 7?
« on: April 26, 2016, 02:47:47 PM »
Anybody know if 4images work on PHP 7?

10
Mods & Plugins (Requests & Discussions) / [Request] Top 25 Categories?
« on: November 04, 2015, 01:59:33 PM »
I am trying to setup a Top 25 that shows the popular categories in the last one week with a random thumbnail for each category.

After going through the forums, i created this but this does not show unique categories. Instead it shows recently added images :(

Can someone help?


function getDaysInWeek($week="",$year=""){  
  
$year = ($year) ? $year date("Y");
  
$week = ($week) ? $week date("W");
  
$time strtotime($year.'0104+'.($week 1).'weeks');
  
$mondayTime strtotime('-'.(date('w',$time)-1).'days',$time);
  
$dayTimes = array(); 
  for (
$i 0$i 7;++$i){ 
    
$dayTimes[] = strtotime('+'.$i.'days'$mondayTime); 
    
//$dayTimes[] = date("d.m.Y",strtotime('+'.$i.'days', $mondayTime));
  

  return 
$dayTimes
}
$lastweek date("W") -1;
$weekday getDaysInWeek($lastweek);

$num_new_images $config['image_cells'];
$sql "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits".$additional_sql.", c.cat_name".get_user_table_field(", u.""user_name")."
        FROM ("
.IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c)
        LEFT JOIN "
.USERS_TABLE." u ON (".get_user_table_field("u.""user_id")." = i.user_id)
        WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id NOT IN ("
.get_auth_cat_sql("auth_viewcat""NOTIN").") AND i.image_date BETWEEN ".$weekday[0]." AND ".($weekday[6] + 86399)."
        ORDER BY i.image_hits DESC
        LIMIT 25
        "
;
$result $site_db->query($sql);
$num_rows $site_db->get_numrows($result);

if (!
$num_rows)  {
  
$last_week "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\"><tr class=\"imagerow1\"><td>";
  
$last_week .= "No Images last week !";
  
$last_week .= "</td></tr></table>";
}
else  {
  
$last_week "<ul>";
  
$count 0;
  
$bgcounter 0;
  while (
$image_row $site_db->fetch_array($result)){

    if (
$count == 0) {
      
$row_bg_number = ($bgcounter++ % == 0) ? 2;
     
// $last_week .= "<tr class=\"imagerow".$row_bg_number."\">\n";
    
}
    
$last_week .= "<li>\n";

    
show_image($image_row);
    
$last_week .= $site_template->parse_template("thumbnail_bit");
    
$last_week .= "\n</li>\n";
    
$count++;
    if (
$count == $config['image_cells']) {
    
//  $last_week .= "</tr>\n";
      
$count 0;
    }
  } 
// end while

  
if ($count 0)  {
    
$leftover = ($config['image_cells'] - $count);
    if (
$leftover >= 1) {
      for (
$f 0$f $leftover$f++) {
        
$last_week .= "<li>\n&nbsp;\n</li>\n";
      }
      
//$last_week .= "</tr>\n";
    
}
  }
  
$last_week .= "</ul>\n";
// end else

$site_template->register_vars("last_week"$last_week);
unset(
$last_week);

11
I am using this mod here
http://www.4homepages.de/forum/index.php?topic=4259.135

I have a lot of subcategories and i would like to show random pictures from them too.. Is it possible? Can someone help?

Basically i have 2 main categories and lots of subcategories in them. The main categories do not have any images and the subcategories increase on a weekly basis. Sometimes the subcategories will also have subcategories.

So, if i mention only the main category id, can i show random pictures from the subcategories?

12
I have a main category and this has around 400 subcategories.

Is there a way where i can bulk move the subcategories created before 3 months to another category?

Is this possible? Manually moving them is taking a lot of time and i want to find out if there is an easier way.

Thanks.

13
Hi,

I am looking to get couple of modifications done for my gallery site(s) and would pay upto $75 to anyone who can help me with it.
i am running 1.7.7 and 1.7.6 versions.

Mod #1

Option to sort only the sub categories alphabetically.
Current option sorts the categories universally, but instead i only want the sub categories to be sorted alphabetically.

Mod #2

My category structure is somewhat like this

Parent Category 1
  - Sub Category
    - sub sub category a
    - sub sub category b
    - sub sub category x


Parent Category 2
  - Sub Category
    - sub sub category a
    - sub sub category b
    - sub sub category x


Parent Category 3
  - Sub Category
    - sub sub category a
    - sub sub category b
    - sub sub category x


Now, in the homepage i want to show all the new images in 3 rows in the following way


row 1 will have all the new images uploaded to parent category 1 (and its sub/sub sub categories)
row 2 will have all the new images uploaded to parent category 2 (and its sub/sub sub categories)
row 3 will have all the new images uploaded to parent category 3 (and its sub/sub sub categories)

additionally, it would be great if it can list only one image per category that has been updated/added.
so even if a category has 30 new images, it can show only one image and show the other updated categories.

if the image bit is not possible, it would also be good, if it can list down the categories that have been updated.
row 1 can list the recently added/updated categories from that parent category 1
and so on for row 2 and 3.


And in the category page (sub category page), i want to show all the new images uploaded to the various sub sub categories.

so, sub category page will list down the sub sub categories it has and will also show all the new images uploaded to its child categories (irrespective of the depth)




I can also give the url of the site where i am planning to implement this, so that it gives you a clear idea of what i am trying to achieve.

Thanks for looking and please pm me if you can get this done.
and please let me know how long this will take to get done.

Regards,

14
Hi,

I want to list the categories that have been recently updated.

for example, if i add 10 new images to category A, 5 to B and 3 C

then i want to show something like

Recently Updated
A
B
C

with only the distinct category name.


Can someone help me on this please?


i tried to copy the new_images and modify it for this, but it shows the category names multiple times.

Pages: [1]