4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
August 20, 2018, 03:03:39 PM

Login with username, password and session length
Search:     Advanced search
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
  Show Posts
Pages: [1] 2 3 » »»
1  4images Issues / Ausgaben / 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
2  4images Modifications / Modifikationen / 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?
3  4images Modifications / Modifikationen / Mods & Plugins (Releases & Support) / Re: [Mod] Different Thumbnail sizes on: November 02, 2017, 08:19:43 PM
In the thumbnail bit template, i changed {thumbnail} to {thumbnail_large} but the thumbnails are still showing the old size Sad
4  4images Issues / Ausgaben / Feedback & Suggestions / Re: Face Detection while thumbnail generation on: November 01, 2017, 01:12:02 PM
Is there a way to get a good thumbnail created instead of the images being cut at random?

Maybe something like this - https://onthe.io/learn/en/category/analytic/How-to-detect-face-in-image-with-PHP
5  4images Issues / Ausgaben / 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?
6  4images Issues / Ausgaben / Discussion & Troubleshooting / Re: Remove ./data and replace it with full url on: August 26, 2017, 05:39:49 PM
At the template level there isn't any option to change the path of thumbnails.

It always ends up as ./data

I am hoping there is a change to either config.php or functions.php or category.php where we can replace this ./ with ROOT_URL/data
7  4images Issues / Ausgaben / Discussion & Troubleshooting / Re: Remove ./data and replace it with full url on: August 19, 2017, 08:59:19 AM
Hi,

Thank you. I did not mean that.

In my gallery if u look at the source all the images have <img src="./data/media/122/image.jpg" ....

I want this to be changed to

<img src="http://www.mysite.com/data/media/122/image.jpg" ....

or

<img src="/data/media/122/image.jpg" ....


I do not want that "." at the front
8  4images Issues / Ausgaben / Discussion & Troubleshooting / Remove ./data and replace it with full url on: August 18, 2017, 07:34:39 AM
Hi,

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

Thanks.
9  4images Issues / Ausgaben / Discussion & Troubleshooting / Mod_Cache support / Remove Cache-Control and Pragma No Cache Headers on: April 28, 2016, 06:08:56 AM
<nevermind. fixed>
10  4images Issues / Ausgaben / Feedback & Suggestions / Support for PHP 7? on: April 26, 2016, 02:47:47 PM
Anybody know if 4images work on PHP 7?
11  4images Issues / Ausgaben / Feedback & Suggestions / Re: 4images 1.7.13 - Feedback on: November 20, 2015, 04:49:47 AM

Thanks.
12  4images Issues / Ausgaben / Feedback & Suggestions / Re: 4images 1.7.13 - Feedback on: November 19, 2015, 04:13:55 AM
Can you plz post the changed files? It would be easier to update customized sites.
Thanks.
13  4images Modifications / Modifikationen / Mods & Plugins (Requests & Discussions) / Re: [Request] Top 25 Categories? on: November 17, 2015, 03:53:24 AM
Bump
14  4images Modifications / Modifikationen / 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 Sad

Can someone help?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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);
15  4images Modifications / Modifikationen / Mods & Plugins (Requests & Discussions) / Re: show random images from subcategories? on: September 24, 2013, 09:00:01 AM
A little help please.
Pages: [1] 2 3 » »»
Powered by MySQL Powered by PHP Powered by SMF | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.04 seconds with 18 queries.
Post your comments here