#1 2003-04-21 23:15:36

William
Guest

default picture displayed size for guests

How to customize the vistor?

 

#2 2003-04-21 23:17:38

William
Guest

Re: default picture displayed size for guests

How to customize the vistor?

I mean how to set the maximum pxel of each image for the vistor

 

#3 2003-04-21 23:34:09

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13934

Re: default picture displayed size for guests

For non registered users, you have to modify the user "visiteur" in the database users table phpwebgallery_users. In "maxwidth" put 640 and in "maxheight" place 480 (for instance). Then read what I suggested in this thread : http://forum.phpwebgallery.net/index.php?a...ct=ST&f=5&t=386

Offline

 

#4 2003-04-22 21:21:32

Guest
Guest

Re: default picture displayed size for guests

Hi,

How come this don't work for me???
I tried all of this and still the pictures come up wqay too big, I'd like to have them displayed at 640x480,
but somehow it don't work. Any more tips I can try??

Thanks, Bor 

 

#5 2003-04-30 01:38:38

Borreltje
Member
2003-04-28
11

Re: default picture displayed size for guests

oooops!!!!

:-?  I missed your tip on changing the database users table phpwebgallery_users.
now I've really got a problem because I don't know how to do this!!!!

can anyone give step by step directions?????

any help will be greatly appreciated.


later, Borreltje

Offline

 

#6 2003-05-02 13:14:33

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13934

Re: default picture displayed size for guests

:-?  I missed your tip on changing the database users table phpwebgallery_users.
now I've really got a problem because I don't know how to do this!!!!

can anyone give step by step directions?????

ok, to change something directly in the database, you have to use a database manager, such as PhpMyAdmin (the most famous and the most used for many web hosting servers). Once in PhpMyAdmin, you have access to table structures, and to tables content. Near each line of the table, you can see a link to modify the line (each field).

If you find this really too hard, I'll make an automated script to apply modifications... (but you'd better learn how to modify database, it will surely be a re-usable skill in future !)

Offline

 

#7 2003-05-03 12:09:08

Borreltje
Member
2003-04-28
11

Re: default picture displayed size for guests

OK, I forgot to log-in   :-?

OK, I downloaded PhpMyAdmin, and used it to change the phpwebgallery_users table

maxwidth smallint(6) Yes 640 Change Drop Primary Index Unique Fulltext
maxheight smallint(6) Yes 480 Change Drop Primary Index Unique Fulltext

I hope I did this right, guess not because after changing this, my pictures don't show anymore,
I changed it back but it don't work no more. I get this error message:


Warning: Division by zero in d:\website\borreltje\gallery\include\functions.php on line 887

Warning: Division by zero in d:\website\borreltje\gallery\include\functions.php on line 888


Now what???? do you have any more tips on how to fix this???

regards, Borreltje 

Offline

 

#8 2003-05-03 12:38:32

Borreltje
Member
2003-04-28
11

Re: default picture displayed size for guests

Right, I just found out I changed the wrong setting, It works now, sorry for flooding the board,
it takes a bit getting used to, editting the database with PhpMyAdmin.
I guess I was just to damn fast at changing the first visitor setting I came across  :)

won't happen again, next time I'll just look before I leap   :D


thanks for the help anyway!!

regards, Borreltje

Offline

 

#9 2003-05-03 12:46:49

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13934

Re: default picture displayed size for guests

now that you know how to use PhpMyAdmin, load this request :

Code:

UPDATE phpwebgallery_users SET pseudo = 'visiteur', password = 'd41d8cd98f00b204e9800998ecf8427e', nombre_image_ligne = 5, nombre_ligne_page = 3, theme = 'melodie/blue', status = 'visiteur', language = 'english', maxwidth = '640', maxheight = '480', mail_address = NULL WHERE id = '2';

Tell me if it works fine

Offline

 

#10 2003-05-03 15:25:12

Borreltje
Member
2003-04-28
11

Re: default picture displayed size for guests

  :D  Seems to work just fine, but I don't know if the fact that I allready had it working is of any influence.
after loading the request and looking at the gallery in my browser, it had set the language to english and the color template
back to melody-blue. didn't get any error messaes when loading the request, neither when looking at the gallery after loading the request, so I guess it works fine.

:-P thanks for the help,

Borreltje

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2025 · Contact