• [MOD] V1.3 Let users add (sub-)categories / User erstellen (Sub-)Kategorien 4 0 5 1
Currently:  

Author Topic: [MOD] V1.3 Let users add (sub-)categories / User erstellen (Sub-)Kategorien  (Read 246690 times)

0 Members and 1 Guest are viewing this topic.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Let users add (sub-)categories / User erstellen (Sub-)Kategorien
« Reply #30 on: September 05, 2007, 09:54:56 PM »
Author reply to this.  :mrgreen:
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 thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Let users add (sub-)categories / User erstellen (Sub-)Kategorien
« Reply #31 on: September 05, 2007, 11:13:59 PM »
@Killercookie:

addcat.php -

change:

Quote
mkdir($new_image_folder_path , 0755);
mkdir($new_thumb_folder_path , 0755);

for:

Code: [Select]
mkdir($new_image_folder_path, CHMOD_DIRS);
mkdir($new_thumb_folder_path, CHMOD_DIRS);
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 Melissa67

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: [MOD] Let users add (sub-)categories / User erstellen (Sub-)Kategorien
« Reply #32 on: September 06, 2007, 01:43:05 AM »
Still does not show the new category that was supposedly created. It says that I have 9 categories but only 2 that I had previously created in the admin section shows. Even when I go into the Admin section, only 2 are there!

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Let users add (sub-)categories / User erstellen (Sub-)Kategorien
« Reply #33 on: September 06, 2007, 01:47:33 AM »
After make modification, create a new category ? Is write on FTP ? Can you see in admin ?
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 Melissa67

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: [MOD] Let users add (sub-)categories / User erstellen (Sub-)Kategorien
« Reply #34 on: September 06, 2007, 05:34:44 AM »
Do you mean for addcat.php?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Let users add (sub-)categories / User erstellen (Sub-)Kategorien
« Reply #35 on: September 06, 2007, 02:45:32 PM »
Yes, when create category with addcat.php file.
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 Melissa67

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: [MOD] Let users add (sub-)categories / User erstellen (Sub-)Kategorien
« Reply #36 on: September 06, 2007, 04:58:47 PM »
Whew! I finally got it working!! I had the cat_ID wrong so it couldn't find where it should go to!

Offline KillerCookie

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: [MOD] Let users add (sub-)categories / User erstellen (Sub-)Kategorien
« Reply #37 on: September 08, 2007, 07:09:52 PM »
Author reply to this.  :mrgreen:

Yes... here i am. ;)

I´ll update my first post with new things posted here and i´m trying to describe the options part a bit better.

Für alle, die kein Englisch können: Ich aktualisiere meinen ersten Beitrag nochmal, es sind also alle "Fehler" bis zu diesem Punkt behoben.

Maik

Offline derrick

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: [MOD] V1.3 Let users add (sub-)categories / User erstellen (Sub-)Kategorien
« Reply #38 on: September 16, 2007, 10:10:49 PM »
Hi,

I´m out of ideas  :?. It still write that Your category was created successfully! but category is not in categories tree.. I´m using 4images 1.7.4 and website is http://www.artvision.sk/index.php?l=eng. Test account is - username: test and password: test. Link to Add new category is in left down corner on frontpage. Any suggestion please?
Thanks.

duso 

Offline KillerCookie

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: [MOD] V1.3 Let users add (sub-)categories / User erstellen (Sub-)Kategorien
« Reply #39 on: September 18, 2007, 11:08:01 AM »
Hi,

I´m out of ideas  :?. It still write that Your category was created successfully! but category is not in categories tree.. I´m using 4images 1.7.4 and website is http://www.artvision.sk/index.php?l=eng. Test account is - username: test and password: test. Link to Add new category is in left down corner on frontpage. Any suggestion please?
Thanks.

duso 

Hello derrick!

Thanks for using my AddCat Mod. It seems like the creation process works well but something is wrong with the database. You need to look at the "4images_categories" table at your database interface (phpMyAdmin). If you find some wrong or left out entries then please post this here. (if the category name, parent_id or something is empty at your new category then i can fix the problem).

If you don´t know what to do then please contact me with PN or ICQ and we can look nat this together.

Maik

Offline derrick

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: [MOD] V1.3 Let users add (sub-)categories / User erstellen (Sub-)Kategorien
« Reply #40 on: September 23, 2007, 07:57:32 PM »
Hi,

I´m out of ideas  :?. It still write that Your category was created successfully! but category is not in categories tree.. I´m using 4images 1.7.4 and website is http://www.artvision.sk/index.php?l=eng. Test account is - username: test and password: test. Link to Add new category is in left down corner on frontpage. Any suggestion please?
Thanks.

duso 

Hello derrick!

Thanks for using my AddCat Mod. It seems like the creation process works well but something is wrong with the database. You need to look at the "4images_categories" table at your database interface (phpMyAdmin). If you find some wrong or left out entries then please post this here. (if the category name, parent_id or something is empty at your new category then i can fix the problem).

If you don´t know what to do then please contact me with PN or ICQ and we can look nat this together.

Maik

Hi,

Its fixed! Problem was with the name of the table - in your add-cat-script is predefined table "4images_categories". But I installed 4images twice with other tables and I´m using right now table with name "4images1_categories"..  And that was it! Anybody could insert category right now  :D.
Thanks many times for support and also for this module!
And good luck with 4images  :wink:.

duso   

Offline KillerCookie

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: [MOD] V1.3 Let users add (sub-)categories / User erstellen (Sub-)Kategorien
« Reply #41 on: September 25, 2007, 09:55:24 AM »
Hi,

Its fixed! Problem was with the name of the table - in your add-cat-script is predefined table "4images_categories". But I installed 4images twice with other tables and I´m using right now table with name "4images1_categories"..  And that was it! Anybody could insert category right now  :D.
Thanks many times for support and also for this module!
And good luck with 4images  :wink:.

duso   

Thank your for posting and using my MOD.

Maik

Offline skidpics

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: [MOD] Let users add (sub-)categories / User erstellen (Sub-)Kategorien
« Reply #42 on: September 27, 2007, 02:02:12 AM »
This:

Quote
$cat_parent_id = $_POST["cat_parent_id"];
$do_it = $_POST["do_it"];
$new_cat_name = $_POST["new_cat_name"];
$new_cat_description = $_POST["new_cat_description"];


 :?:

@Mawenzi:

You put MOD in publish ... no 4images SQL code or VARS code (10% is) ... is dangerus.

Are the instructions from the first post the correct instructions to add this feature, or do I need to follow your thread instead?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] V1.3 Let users add (sub-)categories / User erstellen (Sub-)Kategorien
« Reply #43 on: September 27, 2007, 02:43:25 AM »
Quote
Are the instructions from the first post the correct instructions to add this feature, or do I need to follow your thread instead?

Both. First instruction is ok but need edit. Is all. ;)
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 KillerCookie

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: [MOD] V1.3 Let users add (sub-)categories / User erstellen (Sub-)Kategorien
« Reply #44 on: September 27, 2007, 01:44:56 PM »
All updates of this thread are written into the instructions part till this point and i´ll update until there are new problems / extensions.

Maik