• [MOD] Photo Preview Hack 5 0 5 1
Currently:  

Author Topic: [MOD] Photo Preview Hack  (Read 196835 times)

0 Members and 1 Guest are viewing this topic.

Rembrandt

  • Guest
Re: [MOD] Photo Preview Hack
« Reply #75 on: August 09, 2009, 09:32:47 AM »
Hi!

da öfter danach gefragt wurde wie man die bilderanzahl erhöhen kann, hier ein kleiner code update.
 damit ist es möglich ganz einfach die gewünschte anzahl der vorschaubilder einzustellen.

search:

if($lastPage 6){
    
$start 0;
    
$end $lastPage -1;
} elseif (
$act_key == || $act_key == 1){
    
$start 0;
    
$end   4;
} elseif (
$act_key == $lastPage-|| $act_key == $lastPage -2){
    
$start $lastPage 5;
    
$end $lastPage 1;
} else {
    
$start $act_key -2;
    
$end   $act_key +2;
}

and replace with:


$total 
"7";  // always an odd number e.g. 5,7,9,11... e.t.c

if($lastPage < ($total 1)){ 
    
$start 0;
    
$end $lastPage -1;
} elseif (
$act_key <= (($total-1)/-1)){
    
$start 0;
    
$end   = ($total 1);
} elseif (
$act_key >= $lastPage - (($total-1)/2)){
    
$start $lastPage $total;
    
$end $lastPage 1;
} else {
    
$start $act_key - ($total-1)/2;
    
$end   $act_key + ($total-1)/2;
}


mfg Andi

rinaldos

  • Guest
Re: [MOD] Photo Preview Hack
« Reply #76 on: August 10, 2009, 12:19:52 PM »
@rembrandt.
Danke für diese nette Erweiterung des MOD's :-) klappt einwandfrei :-)

LG
Ingo

Offline fermachado

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
Re: [MOD] Photo Preview Hack
« Reply #77 on: September 25, 2009, 12:29:50 PM »
Hi,

I have a problem with my details.php.

If try with a fresh copy of details.php works fine,but with my file of details.php just show a little square.I attach a image to show the problem.

My details.php

REMOVED
« Last Edit: September 25, 2009, 04:06:39 PM by V@no »
www.globalfoto.net

Sintra - Portugal

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Photo Preview Hack
« Reply #78 on: September 25, 2009, 04:08:01 PM »
please attach your details.php to the post. this forum has a limit of allowed post length, posting entire file as text will not fit into that limit.

P.S.
attach two versions of your details.php:  with AND without the modification from this mod.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline fermachado

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
Re: [MOD] Photo Preview Hack
« Reply #79 on: September 25, 2009, 04:24:40 PM »
Thanks Vano,

I put the two files in attach.

The detailsclean.php is a fresh copy of deyails.php only have this mod

The details.php is the file I use inmy site and have more changes with others mod's.

Thanks
www.globalfoto.net

Sintra - Portugal

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Photo Preview Hack
« Reply #80 on: September 25, 2009, 04:38:16 PM »
Ok, I've updated a little the installation instructions, now you'll need find different string in details.php,
It should work now with any mods
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline fermachado

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
Re: [MOD] Photo Preview Hack
« Reply #81 on: September 25, 2009, 07:21:09 PM »
Thanks lot Vano,


I tried in my PC (localhost) and works very nice.Later make this changes in the site I have online.

Thanks for your work
www.globalfoto.net

Sintra - Portugal

Offline apaunganhote

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: [MOD] Photo Preview Hack
« Reply #82 on: October 16, 2009, 11:04:59 AM »
I just installed it.

I don't know why it doesn't show Previous and Next Image anymore even I still have code in details.html. My previous and next code is like this

Code: [Select]
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr valign="top">
<td class="row2">{if prev_image_name}{lang_prev_image} <b><a href="{prev_image_url}">{prev_image_name}</a></b>
 <br /><br /><a href="{prev_image_url}"><img src="{prev_thumb_file}" border="1"></a>
{endif prev_image_name}</td>
<td align="right" class="row2">{if next_image_name}{lang_next_image} <b><a href="{next_image_url}">{next_image_name}</a></b>
 <br /><br /><a href="{next_image_url}"><img src="{next_thumb_file}" border="1"></a>
{endif next_image_name}</td>
</tr>
</table>

And another one thing i didn't clear is,

It's showing latest image for that category or Latest pic + Oldest Pic ?

Please kindly help me out.

Thanks.

With Regards,

Rembrandt

  • Guest
Re: [MOD] Photo Preview Hack
« Reply #83 on: October 16, 2009, 12:28:50 PM »
Hi!
...
And another one thing i didn't clear is,

It's showing latest image for that category or Latest pic + Oldest Pic ?....
look at my detail page, the horizontal images, is the hack.

mfg Andi

Offline apaunganhote

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: [MOD] Photo Preview Hack
« Reply #84 on: October 16, 2009, 05:43:19 PM »
Hi!
...
And another one thing i didn't clear is,

It's showing latest image for that category or Latest pic + Oldest Pic ?....
look at my detail page, the horizontal images, is the hack.

mfg Andi

Oops yeap, I got it.

I really like your site. Can i ask you one thing about EXIF info ? Is that mod ? The default EXIF info is not too much detail like that one right ? If that's mod, can you please kindly point me out where can i find it ?

And my one still cannot have Previous and Next button even there's code in the details page. Any idea please ?

Thank you.

With Regards,

Rembrandt

  • Guest
Re: [MOD] Photo Preview Hack
« Reply #85 on: October 16, 2009, 07:26:22 PM »
... about EXIF info ? Is that mod ? The default EXIF info is not too much detail like that one right ? If that's mod, can you please kindly point me out where can i find it ?...

http://www.4homepages.de/forum/index.php?topic=21017.msg114214#msg114214

mfg Andi

Offline blastarhymes

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [MOD] Photo Preview Hack
« Reply #86 on: October 22, 2009, 01:52:38 PM »
awsome, thansk for this...will put it too good use:)
BBC Code: Clone Cash System

Offline Bogdan

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • Press Release
Re: [MOD] Photo Preview Hack
« Reply #87 on: December 10, 2009, 10:23:12 PM »
Thank you for the great mod.

One question: what do I need to change to show the thumbnails aligned vertical:
Thumb1
Thumb2
Thumb3...

instead of  Thumb1 Thumb2 Thumb3

Thanks

Rembrandt

  • Guest
Re: [MOD] Photo Preview Hack
« Reply #88 on: December 11, 2009, 05:19:22 AM »
Hi!
..
One question: what do I need to change to show the thumbnails aligned vertical:...
http://www.4homepages.de/forum/index.php?topic=7294.msg138957#msg138957

mfg Andi

Offline Bogdan

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • Press Release
Re: [MOD] Photo Preview Hack
« Reply #89 on: December 11, 2009, 08:24:52 PM »
Thanks Rembrandt

 

Post your comments here