4images Forum & Community
4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: knsin0 on January 03, 2007, 04:17:59 PM
-
I want to insert the upload button in the header, i want it to appear in all pages, including in the index page, i have added an image and linked to
http://www.mysite.com/member.php?action=uploadform
But it doesnt work because is needed to include the category id in the url, how can i fix this for showing the upload button in the index?
Here is my site:
www.fondos10.net
*Upload button at the right top.
Thanks! :D
pd:using 1.7.3
-
without the cat_id it doesn't work... no way...
-
i have "solved" it by adding an expandable menu in javascript (created with dreamweaver), now when you place the mouse over the "upload image" appear a menu with a link for uploading in each category (cat_id) but it dont work once is uploaded to the site, the menu doesnt appear...why? :(
-
nobody know something?
-
Here is my site:
www.fondos10.net
When I go to your site I went right to: http://www.YOURSITE.net/member.php?action=uploadform
and was able to choose the category for where I would want the image to go to.
Don't understand where the problem is since you can choose what category you want the image to go to. :?:
-
the problem is that i made a javascript expandable menu (with dreamweaver) for insert it in header for chose in what category you want to upload an image, but when i upload header.html the expandable menu dont work... look like 4image block the javascript code :|
-
You should not need the javascript menu if you can choose it in the form.
Have you tried that lately?
I can't help with javascript, but have added the button to the top and linked to the up load form before and never had an issue.
-
You should not need the javascript menu if you can choose it in the form.
Have you tried that lately?
I can't help with javascript, but have added the button to the top and linked to the up load form before and never had an issue.
there is a problem with the "http://www.YOURSITE.net/member.php?action=uploadform" link, with that link you can choose the category but when you have completed the upload form and press the send button it says that you dont have selected the category. Is a 4image bug... just try by youtself: :?
http://www.fondos10.net/member.php?action=uploadform
-
Did you modify the entire uploadform?
What version are you using? I can't find that in the copyright.
I don't think it is a bug as I have used versions 1.7 -1.7.4 (numerous sites for friends and family) and have used the uploadform on all of them like this and never had an issue.
Well anyway I did look at the code which looks completely different then I thought it would.
I did find:
<input type="hidden" name="cat_id" value="0" />
Shouldn't that have to be set to one of the numbers for it to tell what category it needs? I thought by leaving it as a "0" it would select <option value="0">Seleccionar Categorķa</option>
.
I may be wrong, but just trying to help as I have never had this issue with the 4images galleries I have installed.
-
<input type="hidden" name="cat_id" value="0" />
Shouldn't that have to be set to one of the numbers for it to tell what category it needs? I thought by leaving it as a "0" it would select <option value="0">Seleccionar Categorķa</option>
.
I may be wrong, but just trying to help as I have never had this issue with the 4images galleries I have installed.
thats the problem, 4images needs de cat id in the link, read the first answer for this post (http://www.4homepages.de/forum/index.php?topic=16037.msg85711#msg85711)
For that reason im trying to add a javascript menu in the header with one link to each upload form for each category, but look loke javascript dont work
-
I have never had that problem starting as early as version 1.7. - 1.7.4
By looking at your code you have
<input type="hidden" name="action" value="uploadimage" />
<input type="hidden" name="cat_id" value="0" />
above the submit button on the uploadform.
Now when I look at the ones I have installed they do not have that.
If anything try removing that.
Or at the very least put the original upload form in there again and try again. Maybe something went haywire with the code modification.
-
thanks for your help cejay, wich file do i have to edit? i have been lookin for that code in the 4image files but i havent found it... :?
-
in templates (what ever one you are using) find member_uploadform.html
The code for the submit button is close to the bottom of that code.
Do you have a back up of the original member_uploadform.html?
If so try using that before any modifications.
-
i have uploaded the original html file and dont work,
after trying that i have elimitated the code you said, this one:
<input type="hidden" name="action" value="uploadimage" />
<input type="hidden" name="cat_id" value="{cat_id}" />
and still not working... :(
http://www.fondos10.net/member.php?action=uploadform
i have read in this forum that without the cat_id included in the link the upload form doesnt work... for that reason i wanted to add the javascript menu...
-
what error message do you get when you use the uploadform? Not the javascript.
-
it says "Rellene el campo categoria" that mean something like "fill the category area" or "select a category"
-
Ok try this, open /templates/<yourtemplate>/member_uploadform.html
Find:
<input type="hidden" name="cat_id" value="{cat_id}" />
Replace with:
{if cat_id}<input type="hidden" name="cat_id" value="{cat_id}" />{endif cat_id}
Of course any javascript that you are using I can not help on as I do not know javascript, but if you can at least get the uploadform working then javascript would not be needed, unless you wanted to try to add that as a second option.
-
that works! :lol: thanks a lot cejay, you can see it working by clicking in the image at the right of the banner in header,
thanks! :D
-
Glad to hear that worked!