PEAK XOOPS - Add Photo Preset to 'Current' Category? in englishin japanese

Add Photo Preset to 'Current' Category?

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2006/7/5 10:32
khuhner  办霹始   Posts: 11
I'd like have the 'Add Photo' functionality preselect the current category in the drop down.

On my site I allow users to upload lots of pictures. So I added a "Add Photo" link in the templates so when they are viewing a category, the can select "Add Phot" and the resultant page should have the category preselected to the current category. However, the drop down for Categories is always set to nothing. I'd like it to be preset to the current categfory where the add photo link was clicked.

Suggestions?
Votes:1 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/7/7 4:42
khuhner  办霹始   Posts: 11
Found it in another template. Looks like I overwrote the default.

The code is:

<{if $lang_add_photo}><a href="submit.php?cid=<{$category_id}>"><{$lang_add_photo}><img src="<{$mod_url}>/images/pictadd.gif" border="0" alt="<{$lang_add_photo}>" title="<{$lang_add_photo}>" /></a><{/if}>


Note the CID part.

Votes:1 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2006/7/8 14:43
GIJOE  黎扦烦菱   Posts: 4110
Yes.
Just set 'cid' for submit.php
Votes:0 Average:0.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!