How to customize the vistor?
How to customize the vistor?
I mean how to set the maximum pxel of each image for the vistor
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
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
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
:-? 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
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
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
now that you know how to use PhpMyAdmin, load this request :
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
: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