Author Topic: Need help ( how to add more levels ) ?  (Read 19690 times)

0 Members and 1 Guest are viewing this topic.

Offline Mr_LovaLove

  • Full Member
  • ***
  • Posts: 233
  • Unkown
    • View Profile
Need help ( how to add more levels ) ?
« on: July 24, 2007, 05:46:40 PM »
Hi there,

im not good at php ! in fact, i do know much better with JSP !

i just anaylize the 4images codes for 4 days ( untill know ) i found something about user_levels

i tried alot to play with these levels ! but as i said im not that good.

 my question is: how can i add more levels ? ( not user groups )

example: i want to add Manager and give him/her  Delete/Modify promission <-- ADMIN has this promission and its available in 4images 

and add another 2 levels one as VIP and the 2nd one as Good Friend ( and they dont have any new promissions they act excatly as member)



Thanks for reading my words and thanks for trying to help

all way to thanks u all

Mr_LovaLove

 
English Please :@

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Need help ( how to add more levels ) ?
« Reply #1 on: July 31, 2007, 02:25:04 PM »
If you post in request for paid, I could do it as a job. I added many different levels on my 4images. :)
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 mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Need help ( how to add more levels ) ?
« Reply #2 on: July 31, 2007, 05:16:37 PM »
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Need help ( how to add more levels ) ?
« Reply #3 on: July 31, 2007, 05:57:31 PM »
This is moderator level. No VIP level.
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 Mr_LovaLove

  • Full Member
  • ***
  • Posts: 233
  • Unkown
    • View Profile
Re: Need help ( how to add more levels ) ?
« Reply #4 on: August 28, 2007, 01:20:16 PM »
well thanks for both of u

yes i know about moderator :)

and its good idea

emmm ,,, need the cost and how ! not a big deal and the time :)

English Please :@

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Need help ( how to add more levels ) ?
« Reply #5 on: August 28, 2007, 01:27:44 PM »
Quote
emmm ,,, need the cost and how ! not a big deal and the time

Need other level with cost ? ...
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 ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: Need help ( how to add more levels ) ?
« Reply #6 on: August 28, 2007, 04:01:13 PM »
hi Mr_LoveLove the Manager is like a moderator images or comments him could delete/modify images or comments and more. I recommend you the mod that said mawenci here
you only have to rename lang files in the mod
after install the mod
search in lang/tu_idioma/main.php 
Code: [Select]
////// Nuevo tipo usuario /////
$lang['userlevel_moderador'] = "Moderador";
///// Fin nuevo tipo usuario ///////
Replace to:
Code: [Select]
////// Nuevo tipo usuario /////
$lang['userlevel_moderador'] = "Manager";
///// Fin nuevo tipo usuario ///////


search in lang/tu_idioma/admin.php[/b]

Code: [Select]
///// Nuevo tipo de usuario /////
$lang['userlevel_moderador'] = "Moderadores";
/////// Fin nuevo tipo de usuario /////
replace to
Code: [Select]
///// Nuevo tipo de usuario /////
$lang['userlevel_moderador'] = "Manager";
/////// Fin nuevo tipo de usuario /////
And if you want usertitle in comments, and profile you have http://www.4homepages.de/forum/index.php?topic=7872.0 in your case VIP and Good Friend ,  no spamking. it is easy
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline Mr_LovaLove

  • Full Member
  • ***
  • Posts: 233
  • Unkown
    • View Profile
Re: Need help ( how to add more levels ) ?
« Reply #7 on: August 28, 2007, 05:10:10 PM »
the site is blocked !

our DSL server blocked that site i dont know why ?

they used to block site like that :@

i search for it ? and ganna search again in the fourm

but if its possible to attached plz do ! if not no worries ganna try to find a proxy to access that site !

thank guyz

thunder ! well, i was aiming for something not what is in this fourm when it will be ready im ganna inform u :)

so still the request on way to you if i didnt do it by myself :)
English Please :@

Offline Mr_LovaLove

  • Full Member
  • ***
  • Posts: 233
  • Unkown
    • View Profile
Re: Need help ( how to add more levels ) ?
« Reply #8 on: August 28, 2007, 05:57:44 PM »
well, i think something is related to google and that why its blocked

anyway, i went to the topic but when i copied the code

i found something strange !

code is different than mine !

" >>> i have this qoutes

and its “   <<<< can u see the differances :S

i tried to change it to " but it tooks time and sometime when i change the  “  to " i found mistakes !!

any comments guyz ?

I FOUND THAT english version is has many mistakes ! and the german or spanish !! is the correct one !

English Please :@

Offline Mr_LovaLove

  • Full Member
  • ***
  • Posts: 233
  • Unkown
    • View Profile
Re: Need help ( how to add more levels ) ?
« Reply #9 on: August 28, 2007, 06:06:46 PM »
i got it !

the owner of this mod used the google transelator !! which effect the " and some other codes !

its better to transelate it to pure english ! can help  :)
English Please :@

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: Need help ( how to add more levels ) ?
« Reply #10 on: August 28, 2007, 06:17:39 PM »
yes, when you translate some page there is that problem. In my case german to spanish.
usually i have original page and translated page open. I copy the code from the original page and i read instructions from translated page.

hehe a help:
Localiza en lang/tu_idioma/main.php   -> Search in lang/tu_idioma/main.php

Añade debajo [/color]  -> Add after

Añade arriba -> Add before

Cambia a: -> Replace to:

Cerrar y guardar cambios.  -> Close and save changes

I think you dont need work with translated version. i would only read translated description. And then read all the steps in original site.

ok, did you see the another mod??? It is perfect to VIP and Good Friend levels
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline Mr_LovaLove

  • Full Member
  • ***
  • Posts: 233
  • Unkown
    • View Profile
Re: Need help ( how to add more levels ) ?
« Reply #11 on: August 28, 2007, 07:47:47 PM »
Code: [Select]
Añade arriba -> Add before
you wanna kill me softly :Pp


was seaching for this i didnt find it lol ! and i did the mod and it works fine ( the Moderator ) and still didnt do the VIP

i got only one error until now !

when i set Moderator for mysite

everything goes okay

but when he post a comment i found that lang set as Guest :S

and he has Moderator function ! :S

have u seen this mistake in the correct topic !

sorry u r my translator nOw :P

( is notify by email the mod for thunderstrike works with u ! if not ! plz go to the topic and try again coz he corrected 2day )
English Please :@

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: Need help ( how to add more levels ) ?
« Reply #12 on: August 28, 2007, 10:51:25 PM »
yes you are right. i saw the mod usertitle that i said you for VIP

and i think you have to
search in details.php
Code: [Select]
        if (!isset($comment_row[$i][$user_table_fields['user_level']]) || (isset($comment_row[$i][$user_table_fields['user_level']]) && $comment_row[$i][$user_table_fields['user_level']] == USER)) {
          $comment_user_info = $lang['userlevel_user'];
        }
        elseif ($comment_row[$i][$user_table_fields['user_level']] == ADMIN) {
          $comment_user_info = $lang['userlevel_admin'];
        }

after add:
Code: [Select]
        elseif ($comment_row[$i][$user_table_fields['user_level']] == MODERADOR) {
          $comment_user_info = $lang['userlevel_moderador'];
        }
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline Mr_LovaLove

  • Full Member
  • ***
  • Posts: 233
  • Unkown
    • View Profile
Re: Need help ( how to add more levels ) ?
« Reply #13 on: August 28, 2007, 11:07:02 PM »
Perfect :)

u saved me time

it works now *so happy*

tomorrow i will try to do the VIP and Good friend

and tell u the result

im really tired

4 hrs to go to my work  need to sleep


talk to u tomorrow and again thanks

yeah before i leave ?

have u solve the FriendList about when user upload pix the number in ur friendlist must change without clicking on the number of images he.she has upload !

*Nighty*
« Last Edit: August 29, 2007, 02:59:51 PM by Mr_LovaLove »
English Please :@

Offline Mr_LovaLove

  • Full Member
  • ***
  • Posts: 233
  • Unkown
    • View Profile
Re: Need help ( how to add more levels ) ?
« Reply #14 on: August 29, 2007, 02:58:59 PM »

@ccsakuweb

well i  tried to add the mod to my site !

yeah as steps its easy :P

but it doesnt work with me

i didnt know how to do this :

Code: [Select]
Then youll have to go to phpmyadmin into the prefix_users table und change the user_level id in this case to 3 (remember: define('SPAMKING', 3); )
yeah i found that i have

-1
1
2
5
9

but i didnt know how to add 3 ?? manual ?

English Please :@