AgentGeek / php-image-host

Automatically exported from code.google.com/p/php-image-host
Other
0 stars 0 forks source link

Rnadom images in side panel + on homepage. #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Enabling Random images on sidepanel
2.Enabling Random images on homepage
3.

What is the expected output? What do you see instead?
thumbnails on sidepanel but just see 'Random Images' title text.

What version of the product are you using? On what operating system?
1.4.0.11.2

Please provide any additional information below.

Original issue reported on code.google.com by zcrai...@googlemail.com on 21 Mar 2010 at 8:28

Attachments:

GoogleCodeExporter commented 9 years ago
It's not a real bug, it's just not implemented for the moment.

I'll give a look, if I can do something for this

Original comment by antoin...@gmail.com on 16 Dec 2010 at 6:48

GoogleCodeExporter commented 9 years ago
well I don't know if your still interested.

But only 'checked' images are displayed. you have 2 choices :
1) Check the images that you want to display
2) change some line in 2 files to display all public images.

for the 2) : 1st file : index.phtml in modules\default\themes\default.
line 37 : $tmp = $images->getimages(array('checked' => 1,'public'=>1),$ob, $od, 
0, 1);
replace by  : $tmp = $images->getimages(array('public'=>1),$ob, $od, 0, 1);

line 63 : $imgs = $images->getimages(array('checked' => 1,'public'=>1),$ob, 
$od, 0, $this->app->config->home_page_images);
replace by : $imgs = $images->getimages(array('public'=>1),$ob, $od, 0, 
$this->app->config->home_page_images);

2nd file : 

Line 51 : $simgs = $images->getimages(array('checked' => 1'public' => 1), 
$orderby, $orderdir, 0, $this->app->config->sidebar_images);

replace by : $simgs = $images->getimages(array('public' => 1), $orderby, 
$orderdir, 0, $this->app->config->sidebar_images);

That's all

Original comment by antoin...@gmail.com on 21 Dec 2010 at 5:58

GoogleCodeExporter commented 9 years ago
Hi 

What was the name of the second file we need to edit?

You wrote "2nd file: " but did not specify what file you were referring to.....

Please advise and thank you for the above code :) 

Original comment by tamarg...@gmail.com on 7 Feb 2012 at 8:08