been testing it .. and it is great...
found one little bug.. (or feature? :surprised: )
Example:
A user uploads a pic.. and the sitename, description etc...
everything is fine..
now the user sees he has a typo in the text.. so he edits it.
when he saves it.. everything is fine..
BUT: the picture is gone.. as a matter of fact the file is still there..
but somehow in the db it is gone.. the user sees a broken image.
I think its a little bug in edit_site.php
because when you edit your sites it stores the $key variable into the database. BUT if you have not modified the image.. the variable $key is not defined anywhere (actually it takes the $key variable out of the included global.php)
My workaround is the following (maybe there is a more elegant way to do it)
First make a backup copy of edit_site.php
in edit_site.php
find:
PHP Code:
if (!empty($vbulletin->GPC['image']['name']))
above add:
PHP Code:
$query_key = "";
a little lower find:
PHP Code:
$height = $size[1];
below add:
PHP Code:
$query_key = ", imagecode='" . $key . "' WHERE id='" . $vbulletin->GPC['id'] . "'";
and finally find:
PHP Code:
imagesize='".$image_size."',
imagecode='".$key."' WHERE id='".$vbulletin->GPC['id']."'";
and
replace with:
PHP Code:
imagesize='" . $image_size . "'" . $query_key . "";
this is just a first guess..
maybe its not very elegant.. but it works for me.
which meens that when i edit a site without changing the image.. it does not delete the image.
Felix
-----------
As for the second little problem.. the dynamic image not showing.. its a problem with my localhost apache (test environment) that does not accept .htacess (but some providers dont either).
so what i did was:
rename the file image.png to image.php
then in the template Toplist_HTML_Code i replaced all 4 instances of image.png with image.php
for me its working now!!