possibility to vary pop up size

17 years 11 months ago #13479 by ffaabbss
possibility to vary pop up size was created by ffaabbss
Hey nant!

i have defined my picture size bigger and now the pop up is too small... could you point me to the code where that is controlled?

there should be a setting in the backend, because changeing that by hardcoding is kind of tiresome;)

or is there a setting possibility i have missed???

see you!
fabs

Please Log in to join the conversation.

17 years 11 months ago #13524 by nant
Replied by nant on topic Re:possibility to vary pop up size
ffaabbss wrote:

Hey nant!

i have defined my picture size bigger and now the pop up is too small... could you point me to the code where that is controlled?

there should be a setting in the backend, because changeing that by hardcoding is kind of tiresome;)

or is there a setting possibility i have missed???

see you!
fabs


The thumbnail generation is done when the upload takes place and according to the parameter sizes at the time.
If you change parameter sizes afterwards you would have to delete and upload the images again with the new sizes

Please Log in to join the conversation.

17 years 11 months ago #13589 by ffaabbss
Replied by ffaabbss on topic Re:possibility to vary pop up size
well. you were only 2 thirds right... the other one third is a tiny problem remaining... following is how my pop up diplays...
there is a padding defined on the left side of the browser and that is exactly what is missing from the image on the right side:(((( i have changed all setting before uploading a thing!

thx
fabs


Please have a look:




p.s. maybe you could implement to pop up the exact size of the image depending if it panorama or portrait... and add the code to close the window when right clicking on it? would make things easier;)is that a feature request and should this go in the forge?

Please Log in to join the conversation.

17 years 11 months ago #13600 by stevebor1
Replied by stevebor1 on topic Re:possibility to vary pop up size
just did a quick google search; you can fiddle with it the code if you want.

www.weberdev.com/get_example-4051.html

Karma Me Up!
File Attachment:


FITcommunity
Joomla! 1.0.12 - Community Builder 1.0.2 - Joomlaboard 1.1.2
Own Mods Featured Profile Mod
My Real Day Job
File Attachment:

Mobile Wallet and Social Lending, Anywhere!

Please Log in to join the conversation.

17 years 11 months ago #13619 by ffaabbss
Replied by ffaabbss on topic Re:possibility to vary pop up size
thanks.. the code there looks quite different from what nant is using in his comp though.. i don't really want to change too much because that always gives me nothing but trouble..

i cannot really link or merge the two- the site you provided and nants code.

i would much rather prefer "adjusting" the code.

i guess this is the code that is in charge of what is going on right?

$style = "style=\"padding:5px;\"";
if ($pgdisplaycount > 0){
// headings go here if needed
switch ($tabparams["cbpgdisplayformat"]){
case 'DF1': // image layout headings and inits
$icon = explode(",",$tabparams["cbpgbuttonslist"]);
$htmltext2 .= "<script language=\"JavaScript\">";

$htmltext2 .= "function pgpopup(pgimagefile,pgimagetitle,pgimagedescription) {\n";
$htmltext2 .= "var newWindow = window.open(\"\",\"newWindow\",\"height=" . ($tabparams["pgmaxheight"]+100) . ",width=" . $tabparams["pgmaxwidth"] . "\" );\n";
$htmltext2 .= "var imageurl = \"<img src=\" + pgimagefile + \">\";\n";
$htmltext2 .= "newWindow.document.open();";
$htmltext2 .= "newWindow.document.writeln(\"<div align='center' >\");\n";
$htmltext2 .= "newWindow.document.writeln(\"<title>Profile Gallery Image: \"+ pgimagetitle + \"</title>\");\n";
$htmltext2 .= "newWindow.document.writeln(imageurl);\n";
$htmltext2 .= "newWindow.document.writeln(\"<br />\");";
$htmltext2 .= "newWindow.document.writeln(pgimagedescription);\n";
$htmltext2 .= "newWindow.document.writeln(\"</div>\");\n";
$htmltext2 .= "newWindow.document.close();\n";
$htmltext2 .= "}\n";
$htmltext2 .= "</script>";


the only question now is what i would have to "adjust" in this code... well.. provided of course i am right on this one;)

ohh.. and it is not the padding value. have already tried to set it to 0 and it doesn't do a thing for me...

thx
fabs

Please Log in to join the conversation.

17 years 11 months ago #13653 by stevebor1
Replied by stevebor1 on topic Re:possibility to vary pop up size
get that the same problem on horizontal pictures, where it's not wide enough. I'll look into a solution.

Karma Me Up!
File Attachment:


FITcommunity
Joomla! 1.0.12 - Community Builder 1.0.2 - Joomlaboard 1.1.2
Own Mods Featured Profile Mod
My Real Day Job
File Attachment:

Mobile Wallet and Social Lending, Anywhere!

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.205 seconds

Facebook Twitter LinkedIn