Author Topic: [MOD] Categories upload dropdown form  (Read 58623 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Categories upload dropdown form
« Reply #15 on: July 25, 2006, 12:48:55 AM »
i have error message

Please fill out the Category field!

4images 1.72
Using custom template?
make sure you have this patch applyed:
http://www.4homepages.de/forum/index.php?topic=5935.0
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline sy4k4

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: [MOD] Categories upload dropdown form
« Reply #16 on: July 26, 2006, 12:38:24 AM »
 :D :D :D .... thanks v@no

Offline terryjianlin

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • http://www.2ufj.com
Re: [MOD] Categories upload dropdown form
« Reply #17 on: August 21, 2006, 11:14:52 PM »
V@no,
I am confuse, there is no drop down form on my member upload form.  still display category name on that filed. Am I missed something? or {cat_name} on member upload form have to replace with some else?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Categories upload dropdown form
« Reply #18 on: August 22, 2006, 07:02:42 AM »
It doesnt show dropdown (without the tweek at the end of the post) if cat_id specifyed in the url.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline jackald

  • Newbie
  • *
  • Posts: 41
    • View Profile
Re: [MOD] Categories upload dropdown form
« Reply #19 on: September 25, 2006, 03:37:43 PM »
Is it compatible with 1.7.3 i edited member.php and i cant find

"cat_name" => ($cat_id != 0) ? htmlspecialchars($cat_cache[$cat_id]['cat_name']) : get_category_dropdown($cat_id),


Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [MOD] Categories upload dropdown form
« Reply #20 on: February 03, 2007, 05:54:04 PM »
Hey V@no,
After installing this MOD
i am having following problem.. although the function "image upload" and "category dropdown" is working properly ...
check the attached file:
if i choose following settings, i only get this error if i choose member.php?action=uploadform:
Quote
//    "cat_name" => get_category_dropdown_upload($cat_id),
    "cat_name" => ($cat_id != 0 && (!isset($HTTP_POST_VARS['showdropdown']))) ? htmlspecialchars($cat_cache[$cat_id]['cat_name']) : get_category_dropdown_upload($cat_id)."<input type=\"hidden\" name=\"showdropdown\" value=\"1\">",
but member.php?action=uploadform&cat_id=37 does not show this error.
BUT if i choose following settings, i get this error for both the options:
Quote
    "cat_name" => get_category_dropdown_upload($cat_id),
//    "cat_name" => ($cat_id != 0 && (!isset($HTTP_POST_VARS['showdropdown']))) ? htmlspecialchars($cat_cache[$cat_id]['cat_name']) : get_category_dropdown_upload($cat_id)."<input type=\"hidden\" name=\"showdropdown\" value=\"1\">",

HELP  :( :oops:

HI,

i have the same problem with the 1.7.4 Version. Can anyone say me what is wrong here????
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: [MOD] Categories upload dropdown form
« Reply #21 on: February 03, 2007, 06:03:07 PM »
Schicke mir mal einen FTP Zugang und einen Test User per PN...

Offline glitzer

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • over 7000 E-Cards
Re: [MOD] Categories upload dropdown form
« Reply #22 on: October 26, 2007, 11:41:02 AM »
Hi!

Sorry for the stupid question, but i donīt have a dropdown in my member_upload file.

Where can i get it?

thank you

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Categories upload dropdown form
« Reply #23 on: October 26, 2007, 12:08:40 PM »
"cat_name" => ($cat_id != 0) ? htmlspecialchars($cat_cache[$cat_id]['cat_name']) : get_category_dropdown($cat_id),

Please change this to:

Code: [Select]
"cat_name" => ($cat_id != 0) ? format_text(trim($cat_cache[$cat_id]['cat_name']), 2) : get_category_dropdown($cat_id),

Hi!

Sorry for the stupid question, but i donīt have a dropdown in my member_upload file.

Where can i get it?

thank you

From ... 1st post ? ...
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline __G__

  • Sr. Member
  • ****
  • Posts: 286
    • View Profile
Re: [MOD] Categories upload dropdown form
« Reply #24 on: February 12, 2009, 08:15:35 PM »
Hi i really need this so i can put a link rite on home page to upload page with categ drop down list im running 1.7.6 but on the very first step the orignal line i have is


    "cat_name" => ($cat_id != 0) ? format_text($cat_cache[$cat_id]['cat_name'], 2) : get_category_dropdown($cat_id),
 

This

and the one we should search is     "cat_name" => ($cat_id != 0) ? htmlspecialchars($cat_cache[$cat_id]['cat_name']) : get_category_dropdown($cat_id),

i m not sure if this is gonna work with 1.7.6 does anyone has try this on 1.7.6 or if there is a easy way to create an extra template page that i can make like a form with drop down list of categorieis and give a link to that page in my home page so people can upload images from that page :D

Offline __G__

  • Sr. Member
  • ****
  • Posts: 286
    • View Profile
Re: [MOD] Categories upload dropdown form
« Reply #25 on: February 12, 2009, 09:04:34 PM »
i figured it out thanks guys and yes it works with 1.7.6


all i did was in first step i replaced it like this

Quote
/*
  MOD UPLOAD CATEGORIES DROPDOWN
  ORIGINAL LINE:
    "cat_name" => ($cat_id != 0) ? format_text($cat_cache[$cat_id]['cat_name'], 2) : get_category_dropdown($cat_id),
*/
/*
  MOD UPLOAD CATEGORIES DROPDOWN
  BEGIN REPLACE
*/
//    "cat_name" => get_category_dropdown_upload($cat_id),
    "cat_name" => ($cat_id != 0 && (!isset($HTTP_POST_VARS['showdropdown']))) ? format_text($cat_cache[$cat_id]['cat_name'], 2) : get_category_dropdown_upload($cat_id)."<input type=\"hidden\" name=\"showdropdown\" value=\"1\">",
    "cat_name_required" => addslashes(preg_replace("/".$site_template->start."field_name".$site_template->end."/siU", str_replace(":", "", $lang['category']), $lang['field_required'])),
/*
  MOD UPLOAD CATEGORIES DROPDOWN
  END REPLACE
*/

Offline __G__

  • Sr. Member
  • ****
  • Posts: 286
    • View Profile
Re: [MOD] Categories upload dropdown form
« Reply #26 on: February 12, 2009, 09:25:27 PM »
ok everything works but now if someone try to click direct on  http://www.yoursite.com/member.php?action=uploadform if the person is not logged in the page still shows so can we edit the code somehow so when person is not logged in it redirects to the login page or something :D

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Categories upload dropdown form
« Reply #27 on: February 13, 2009, 01:44:29 AM »
in member.php find:
if ($action == "uploadform") {
  if (
$cat_id != && (!isset($cat_cache[$cat_id]) || !check_permission("auth_upload"$cat_id))) {


Replace with:
if ($action == "uploadform") {
  if ((
$cat_id != && (!isset($cat_cache[$cat_id]) || !check_permission("auth_upload"$cat_id))) || $user_info['user_level'] < USER) {
« Last Edit: February 13, 2009, 02:14:39 AM by V@no »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline __G__

  • Sr. Member
  • ****
  • Posts: 286
    • View Profile
Re: [MOD] Categories upload dropdown form
« Reply #28 on: February 13, 2009, 02:10:41 AM »
thanks v@no quick question after doing this code when i click submit that's when it says you are not logged in is that's how it suppose to work, cause i thought it wont even show the upload forum and it will just tell use to first login before even they see the upload form BTW thanks though even if this doesn't happen atleast now it does say to login after clicking submit when guest try to upload :D

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Categories upload dropdown form
« Reply #29 on: February 13, 2009, 02:15:14 AM »
ops, that was my bad, in the first line supposed to be "uploadform" and not "uploadimage".
I've corrected my post above.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)