• [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 246752 times)

0 Members and 1 Guest are viewing this topic.

Offline Melissa67

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: [MOD] Let users add (sub-)categories / User erstellen (Sub-)Kategorien
« Reply #15 on: September 05, 2007, 08:07:19 PM »
Well, I do see the 'New Category' button on the left side but when I type to create a new category with a description nothing shows up in the categories. It does say, however, that it has successfully created a new category at the bottom.

I was confused about the added 'options' . I just left it. Do I add something here?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Let users add (sub-)categories / User erstellen (Sub-)Kategorien
« Reply #16 on: September 05, 2007, 08:09:59 PM »
Quote
// 0 = all / alle , 2 = registered users / registrierte benutzer , 9 = admin

Configure this line in addcat.php file ?

0 = all
2 = registered users
9 = admin

set right value for level for create categories. ;)
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 #17 on: September 05, 2007, 08:13:02 PM »
I've done that already. This is what I did:

  // Rights for the new categorie / Rechte für die neue Kategorie
  // 0 = all / alle , 2 = registered users / registrierte benutzer , 9 = admin
  $auth_viewcat = '0';
  $auth_viewimage = '0';
  $auth_download = '9';
  $auth_upload = '2';
  $auth_directupload = '9';
  $auth_vote = '2';
  $auth_sendpostcard = '2';
  $auth_readcomment = '0';
  $auth_postcomment = '2';

Offline Melissa67

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: [MOD] Let users add (sub-)categories / User erstellen (Sub-)Kategorien
« Reply #18 on: September 05, 2007, 08:14:44 PM »
I didn't really understand this section sort of:

Quote
<!-- Start of Options -->
<tr>
 <td class="row1"><b>{lang_addcat_which_subcat}</b></td>
 <td align="right" class="row1">
 <select name="cat_parent_id" size="">
  <!-- At "value" enter your cat_id and next to it you cat_name -->
  <option value="18">Upload</option>
  <option value="your 2nd id / deine 2 id"></option>
  <option value="...">...</option>
 </select>
 </td>
</tr>
<!-- End of Options -->
At the <option... </option> lines please enter your own values ( value="cat id you wish to contain the subcat" and the Name which is displayed to the user) - you can add more lines or delete some of course.
In den <option... </option> Zeilen bitte die eigenen Werte eintragen ( value="cat id in welcher die subcat erzeugt wird" und daneben der Name, welcher dem User angezeigt wird.) - man kann natürlich Zeilen löschen oder neue hinzufügen

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Let users add (sub-)categories / User erstellen (Sub-)Kategorien
« Reply #19 on: September 05, 2007, 08:16:17 PM »
1 - In addcat.php file,

find:

Quote
$user_access = get_permission();

add after:

Code: [Select]
if ($user_info['user_level'] == ADMIN ) {
    error_reporting(E_ALL);
}

2 - Save & Upload file to server.
3 - Load page.

See any error message on top ?

(if so, no worry - only admin can see - post error and I see). ;)
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 #20 on: September 05, 2007, 08:17:02 PM »
I didn't really understand this section sort of:

Quote
<!-- Start of Options -->
<tr>
 <td class="row1"><b>{lang_addcat_which_subcat}</b></td>
 <td align="right" class="row1">
 <select name="cat_parent_id" size="">
  <!-- At "value" enter your cat_id and next to it you cat_name -->
  <option value="18">Upload</option>
  <option value="your 2nd id / deine 2 id"></option>
  <option value="...">...</option>
 </select>
 </td>
</tr>
<!-- End of Options -->
At the <option... </option> lines please enter your own values ( value="cat id you wish to contain the subcat" and the Name which is displayed to the user) - you can add more lines or delete some of course.
In den <option... </option> Zeilen bitte die eigenen Werte eintragen ( value="cat id in welcher die subcat erzeugt wird" und daneben der Name, welcher dem User angezeigt wird.) - man kann natürlich Zeilen löschen oder neue hinzufügen

This must put in templates/your_template folder (your_template for real template name folder).
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 #21 on: September 05, 2007, 08:18:52 PM »
It's there and uploaded.

I sent you a link to my site for you to take a look at.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
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 #23 on: September 05, 2007, 08:28:06 PM »
Ok. I just did that. I didn't see an error.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Let users add (sub-)categories / User erstellen (Sub-)Kategorien
« Reply #24 on: September 05, 2007, 08:28:35 PM »
When create category with button - no see error ?
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 #25 on: September 05, 2007, 08:31:46 PM »
Yes, I just saw the error:

Notice: Undefined index: addcat_no_rights in /var/www/vhosts/bellevilleart.ca/httpdocs/art-gallery/addcat.php on line 210

 

Offline Melissa67

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: [MOD] Let users add (sub-)categories / User erstellen (Sub-)Kategorien
« Reply #26 on: September 05, 2007, 08:33:07 PM »
I checked Line 210 in add.php. It says this:

  "lang_addcat_no_rights" => $lang['addcat_no_rights']

This should be changed, right?

Offline Melissa67

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: [MOD] Let users add (sub-)categories / User erstellen (Sub-)Kategorien
« Reply #27 on: September 05, 2007, 08:59:06 PM »
So is there anything else I should change? The new category button still does not work.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Let users add (sub-)categories / User erstellen (Sub-)Kategorien
« Reply #28 on: September 05, 2007, 09:10:42 PM »
Quote
This should be changed, right?

Add $lang['addcat_no_rights'] in your lang/your_lang/main.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 #29 on: September 05, 2007, 09:24:25 PM »
Ok. I added that.

I noticed that it says:

1 images in 8 categories.


So there are 8 categories but I cannot see them?