Template Club Package Silver Pacakage Gold Pacakage Developer Pacakage Accepted Payments Member Login
TemplatePlazza Support Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:A possible solution for the correct thumb aspect (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:A possible solution for the correct thumb aspect
#19434
babak1877 (User)
JuniorPlazzoic
Posts: 20
graphgraph
User Offline Click here to see the profile of this user
A possible solution for the correct thumb aspect 7 Months, 2 Weeks ago Karma: 0  
helper php, from line 795: change the complete function

function fptn_calcsize($srcx, $srcy, &$forcedwidth, &$forcedheight, $aspect)

{
if ($srcx > $srcy && $srcx != 468) {
$forcedwidth = &$forcedwidth;
$forcedheight = round( $forcedwidth / ($srcx/$srcy));
}
else if ($srcx < $srcy && $srcx != 468) {
$forcedheight = &$forcedheight;
$forcedwidth = round ( $forcedheight / ($srcy / $srcx));
}
else if ($srcx = 468) {
$forcedwidth = 468;
$forcedheight = 60;
}
}


May be there is some bug, but I've made it for my own page and it seems to work. I put an extra function into it, if there is a standard 468x60 banner, itt leaves it with it's original size.
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
 
Report to moderator   Logged Logged  
  Reply Quote
#19435
sikumbang (Admin)
Admin
Posts: 1337
graphgraph
User Offline Click here to see the profile of this user
Re:A possible solution for the correct thumb aspect 7 Months, 2 Weeks ago Karma: 65  
thanks for sharing zoltan
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
 
Report to moderator   Logged Logged  
 
  Reply Quote
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
ico spot
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad