Modification on file "ItemAddFromBrowser.tpl" or the class php about adding photos

ahamada

Joined: 2007-04-10
Posts: 50
Posted: Wed, 2007-04-11 15:41

I want to modify
1- i want add 10 pictures only 10.
I modify the file "ItemAddFromBrowser.tpl"

Quote:
{assign var="UPLOAD_BOX_COUNT" value = "10"}
{assign var="VISIBLE_BOX_COUNT" value = "10"}

and i put in commentary in file ItemAddConfirmation.tpl
to erase the link like that nobody can add others pictures

Quote:
{*
<div class="gbBlock">
<a href="{g->url arg1="view=core.ItemAdmin" arg2="subView=core.ItemAdd"
arg3="itemId=`$ItemAdmin.item.id`"}">
{g->text text="Add more files"}
</a>
</div>

*}

But I want to improve it because there is a problem
The problem is when i add one pictures and i click the button "add items" without add my ten pictures
So I can't add my others pictures
I want :
-the system count number of added pictures (x)
- calculate the difference for exemple resultat=10- x
- and show my last boxes (resultat)

Have you got an idea????
Thanks!!!!