• [MOD] Members Templates Select 5 0 5 1
Currently:  

Author Topic: [MOD] Members Templates Select  (Read 83736 times)

0 Members and 1 Guest are viewing this topic.

Offline graficalicus

  • Full Member
  • ***
  • Posts: 235
    • View Profile
Re: [MOD] Members Templates Select
« Reply #15 on: June 04, 2005, 11:07:55 PM »
That did it - I'd done something similar before, but put it one line too far down - -

thanks!  8)

Offline Maniac

  • Newbie
  • *
  • Posts: 45
    • View Profile
Re: [MOD] Members Templates Select
« Reply #16 on: August 27, 2005, 05:03:52 PM »
Went through all the directions a couple of times and I continue to get this error when runing user_template_install.php:

Parse error: parse error, unexpected '{' in /home/anvil/public_html/anvil/gallery/lang/english/main.php on line 391

If I remove the "{" I get this...
Parse error: parse error, unexpected T_STRING in /home/anvil/public_html/anvil/gallery/lang/english/main.php on line 392

Any help woulr be appreciated.

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] Members Templates Select
« Reply #17 on: September 22, 2005, 03:07:02 AM »
You do something wrong in Step 6.
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 beseech

  • Full Member
  • ***
  • Posts: 150
    • View Profile
Re: [MOD] Members Templates Select
« Reply #18 on: October 30, 2005, 06:45:54 PM »
i've a simple question its possible make a option for this work with images (not dropdown) and show in all pages ?

1 image (icon) for each template skin :)

Another question is , when we select another template style this ill get the custum page from that new skin ?

Like :

faq.html (default)

faq.html (new skin)

when we change template this ill get only the pages from new directoty(template).. right ?

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [MOD] Members Templates Select
« Reply #19 on: October 30, 2005, 10:27:22 PM »
the step 3 , this step for who have already a dropdown mod installed, i think not be necessary, i've tried and this say "duplicate" , so i've skip the step 3 , cuz i've the code i've added on dropdown MOD , do that :) well this working for me.

So who have a dropdown MOD installed can skip teh step 3 (last code "before ?>) right ?


Offline mafa1999

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: [MOD] Members Templates Select
« Reply #20 on: November 04, 2005, 09:16:02 AM »
Hello.

Would it be possible to give different user his own template? so the admin give different templates for each user (so u can have different options like webshop-buttons and so on)

would be great for me.

Offline chill

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: [MOD] Members Templates Select
« Reply #21 on: November 18, 2005, 04:30:36 PM »
Great mod :)

Offline Chicco

  • Full Member
  • ***
  • Posts: 211
    • View Profile
    • The Picture World
Re: [MOD] Members Templates Select
« Reply #22 on: March 13, 2006, 02:51:41 PM »
I have this error:

Fatal error: Cannot redeclare get_db_fields_dropdown() (previously declared in /var/www/web517/html/THEPICTUREWORLD/includes/functions.php:1317) in /var/www/web517/html/THEPICTUREWORLD/includes/functions.php on line 1437

This ist my Functions.php:
Code: [Select]
  {
    $ban = $ban_banned;
  }

  return $ban;
}
/*
  MOD BAN
  END INSERT
*/
//--- DB Field Dropdown ---
function get_db_fields_dropdown($key, $val, $value) {
$dropdown = "<SELECT name=\"".$key."\" onkeypress=\"if(window.event.keyCode==13)this.form.submit();\" class=\"select\">";
$i = 0;
foreach ($val[3] as $item) {
 $what = ($val[4]) ? $item : $i;
$dropdown .= "<option value=\"".$what."\"".(($value == $what) ? " selected" : "").">".$item."</option>\n";
$i++;
}
$dropdown .= "</select>\n";
 return $dropdown;
}
//--- End DB Field Dropdown ---

?>

This ist the line 1317 and 1318 of my functions.php:
Code: [Select]
function get_db_fields_dropdown($key, $val, $value) {
  return get_dropdown_options($key, $val[3], $value, $val[4], $val[5], $val[7], 1, "", "select", $val[6]);

And this is the line 1437 of my functions.php (the new mod):
Code: [Select]
function get_db_fields_dropdown($key, $val, $value) {

I have step to step this mod, but i have this error!!!

German:

Ich habe alles genau so installiert wie beschrieben, doch habe ich nun diese Fehlermeldung (siehe oben)

Wie meine functions.php aussieht, eht ihr ja ebenfalls oben. Genauso  wie hier beschrieben.

Was ist der Fehler???


Wissen ist MACHT! Nix zu wissen macht aber auch nix! ;-)

Gruß
Ch¿cco

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] Members Templates Select
« Reply #23 on: March 13, 2006, 02:53:37 PM »
and if you remove code from Step 3 ?
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 Chicco

  • Full Member
  • ***
  • Posts: 211
    • View Profile
    • The Picture World
Re: [MOD] Members Templates Select
« Reply #24 on: March 13, 2006, 02:59:47 PM »
i have now remove step 3 on my functions.php. I have NO error and i can chance the templates on dropdown. But my site is not change after....

1. i go on member edit
2. i change the layout (i have on my server two default-Templates (default and default_xx)
3. i press the button SAVE

BUT my layout ist not change!?!?!?

Sorry, my english is terriblly


Wissen ist MACHT! Nix zu wissen macht aber auch nix! ;-)

Gruß
Ch¿cco

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] Members Templates Select
« Reply #25 on: March 13, 2006, 03:05:49 PM »
did you run the database updater?
look via phpmyadmin in 4images_users table, find your user acount and see if user_template field conteins your default_xx name.
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 Chicco

  • Full Member
  • ***
  • Posts: 211
    • View Profile
    • The Picture World
Re: [MOD] Members Templates Select
« Reply #26 on: March 13, 2006, 03:20:45 PM »
Yes

I have run the database updater and i have in my phpadmin on the 4images_user table the filed "user_template".
But i don´t no "default" oder "default_XX"!!! i have " " or "1" in this fields....

" " = default
"1" = default_xx
You see: Is changed! But not work!

Look:


Wissen ist MACHT! Nix zu wissen macht aber auch nix! ;-)

Gruß
Ch¿cco

Offline Chicco

  • Full Member
  • ***
  • Posts: 211
    • View Profile
    • The Picture World
Re: [MOD] Members Templates Select
« Reply #27 on: March 13, 2006, 03:28:54 PM »
I have rename on FTP the folder "default_xx" in "default". Is work! I have the new Template. hmmmmm

i rename after the "default" in "default_XX". Is not work!


Wissen ist MACHT! Nix zu wissen macht aber auch nix! ;-)

Gruß
Ch¿cco

Offline Chicco

  • Full Member
  • ***
  • Posts: 211
    • View Profile
    • The Picture World
Re: [MOD] Members Templates Select
« Reply #28 on: March 13, 2006, 03:39:42 PM »
Okay.
I have edit on my phpmyadmin the field. i have replace the "1" on "default_XX". Is work!!!! :?

my mod ist not corrently work. His make no "default" or "default_xx" on the database. He make " " or "1". Thast not right!!



Wissen ist MACHT! Nix zu wissen macht aber auch nix! ;-)

Gruß
Ch¿cco

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] Members Templates Select
« Reply #29 on: March 13, 2006, 03:41:54 PM »
What if you replace line in includes/db_field_definitions.php to this:
Code: [Select]
$additional_user_fields['user_template'] = array($lang['user_template'], "dropdown", 0, $templates_cache);
And in step 7.2 replace
Code: [Select]
function show_dropdown_row($title, $name, $value = 0, $array = array(), $value_show = 0){with:
Code: [Select]
function show_dropdown_row($title, $name, $value = 0, $array = array(), $value_show = 1){
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)