4images Forum & Community

4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: knsin0 on January 03, 2007, 04:17:59 PM

Title: Upload button in header>>>>> New question here
Post 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
Code: [Select]
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:
Code: [Select]
www.fondos10.net
*Upload button at the right top.

Thanks!  :D

pd:using 1.7.3
Title: Re: Upload button in header (in all pages)
Post by: Acidgod on January 03, 2007, 04:24:08 PM
without the cat_id it doesn't work... no way...
Title: Re: Upload button in header (in all pages)
Post by: knsin0 on January 03, 2007, 10:26:38 PM
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?  :(
Title: Re: Upload button in header>>>>> New question here
Post by: knsin0 on January 07, 2007, 12:52:48 AM
nobody know something?
Title: Re: Upload button in header>>>>> New question here
Post by: CeJay on January 07, 2007, 03:21:08 AM

Here is my site:
Code: [Select]
www.fondos10.net

When I go to your site I went right to:
Quote
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.  :?:
Title: Re: Upload button in header>>>>> New question here
Post by: knsin0 on January 07, 2007, 10:33:25 PM
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  :|
Title: Re: Upload button in header>>>>> New question here
Post by: CeJay on January 08, 2007, 06:45:31 AM
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.
Title: Re: Upload button in header>>>>> New question here
Post by: knsin0 on January 08, 2007, 07:51:52 PM
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:  :?
Code: [Select]
http://www.fondos10.net/member.php?action=uploadform
Title: Re: Upload button in header>>>>> New question here
Post by: CeJay on January 08, 2007, 08:58:40 PM
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:
Code: [Select]
<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
Code: [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.
Title: Re: Upload button in header>>>>> New question here
Post by: knsin0 on January 10, 2007, 01:53:52 AM

Code: [Select]
<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
Code: [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
Title: Re: Upload button in header>>>>> New question here
Post by: CeJay on January 10, 2007, 05:36:59 AM
I have never had that problem starting as early as version 1.7. - 1.7.4

By looking at your code you have
Code: [Select]
  <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.
Title: Re: Upload button in header>>>>> New question here
Post by: knsin0 on January 11, 2007, 12:17:59 AM
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... :?
Title: Re: Upload button in header>>>>> New question here
Post by: CeJay on January 11, 2007, 12:35:44 AM
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.
Title: Re: Upload button in header>>>>> New question here
Post by: knsin0 on January 11, 2007, 01:41:57 AM
i have uploaded the original html file and dont work,
after trying that i have elimitated the code you said, this one:
Code: [Select]

<input type="hidden" name="action" value="uploadimage" />
 <input type="hidden" name="cat_id" value="{cat_id}" />
and still not working...  :(
Code: [Select]
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...
Title: Re: Upload button in header>>>>> New question here
Post by: CeJay on January 11, 2007, 06:05:54 AM
what error message do you get when you use the uploadform?  Not the javascript.
Title: Re: Upload button in header>>>>> New question here
Post by: knsin0 on January 11, 2007, 06:58:37 PM
it says "Rellene el campo categoria" that mean something like "fill the category area" or "select a category"
Title: Re: Upload button in header>>>>> New question here
Post by: CeJay on January 11, 2007, 08:02:09 PM
Ok try this, open /templates/<yourtemplate>/member_uploadform.html

Find:
Code: [Select]
<input type="hidden" name="cat_id" value="{cat_id}" />
Replace with:
Code: [Select]
{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.
Title: Re: Upload button in header>>>>> New question here
Post by: knsin0 on January 11, 2007, 11:42:44 PM
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
Title: Re: Upload button in header>>>>> New question here
Post by: CeJay on January 12, 2007, 12:59:47 AM
Glad to hear that worked!