• [MOD] Dropdown options for custom database fields 4 0 5 1
Currently:  

Author Topic: [MOD] Dropdown options for custom database fields  (Read 198578 times)

0 Members and 1 Guest are viewing this topic.

Offline sabba

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: [MOD] Dropdown options for custom database fields
« Reply #45 on: March 30, 2006, 10:06:12 PM »
Is there a way to make it compatible with 1.7.2?

sabba

Offline mx5gr

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: [MOD] Dropdown options for custom database fields
« Reply #46 on: April 25, 2006, 07:00:29 PM »
Is there a way to make it compatible with 1.7.2?

sabba

Any luck?

The problem seems to be member.php

Offline PartyPix

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: [MOD] Dropdown options for custom database fields
« Reply #47 on: May 27, 2006, 06:56:49 PM »
Will the MOD go in Version 1.7.2,too ???

Funktioniert dieser MOD auch in Version 1.7.2 ????


Offline nfprehn

  • Newbie
  • *
  • Posts: 41
    • View Profile
    • How to become a model
Re: [MOD] Dropdown options for custom database fields
« Reply #48 on: June 23, 2006, 08:49:03 PM »
I would be really grateful if someone would explain how this could work with 1.7.2.

THANKS!

Wäre super wenn jemand erklären könnte wie das mit 1.7.2 funtionieren könnte.


DANKE!

Offline sajwal

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: [MOD] Dropdown options for custom database fields
« Reply #49 on: July 26, 2006, 03:52:45 PM »
Hi, I am using 1.7.3 and i did not find members.php but member.php, and secondly in 1.7.3 i did not find this line to edit anywhere?

else {
        $value = (isset($HTTP_POST_VARS[$key])) ? htmlspecialchars(stripslashes(trim($HTTP_POST_VARS[$key]))) : "";
      }
Is it not meant for 1.7.3 or already the dropdown function present in it? how to use if it is there?


Please help, desparate to use dropdown list in registeration

Offline sajwal

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: [MOD] Dropdown options for custom database fields
« Reply #50 on: July 31, 2006, 01:34:47 PM »
V@no pls. reply to my query...to add this feature to my 1.7.3 4images gallery

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] Dropdown options for custom database fields
« Reply #51 on: July 31, 2006, 08:22:13 PM »
Ok, I've added v1.7.3 support
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 sajwal

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: [MOD] Dropdown options for custom database fields
« Reply #52 on: July 31, 2006, 10:58:14 PM »
Thankyou very very much V@no,   :D , i am too happy with your generousity

Offline F2F

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: [MOD] Dropdown options for custom database fields
« Reply #53 on: October 18, 2006, 12:51:46 PM »
Weird...

I get this warning:

Code: [Select]
Warning: Undefined index: image_place in register.php on line 376
image_place is the custom field I created and this is line 376:

Code: [Select]
$value = (isset($HTTP_POST_VARS[$key])) ? $HTTP_POST_VARS[$key] : $user_info[$key];
Everything else is fine. I'm using 1.7.3, any idea? Thanks in advance.

Offline F2F

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: [MOD] Dropdown options for custom database fields
« Reply #54 on: October 18, 2006, 09:51:14 PM »
Nevermind, I managed another way to use custom dropdowns...

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] Dropdown options for custom database fields
« Reply #55 on: October 18, 2006, 11:35:26 PM »
thanks v@no for this very useful and perfectly working modification ...
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 F2F

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: [MOD] Dropdown options for custom database fields
« Reply #56 on: October 19, 2006, 05:16:49 AM »
Oh, yes, a BIG thanks to V@no for all his help and support here, no doubt about that.

Offline Darkness2001

  • Full Member
  • ***
  • Posts: 151
    • View Profile
    • photo-galerie-online
Re: [MOD] Dropdown options for custom database fields
« Reply #57 on: October 25, 2006, 09:58:56 PM »
Hallo,

Vorschlag : Warum baut Ihr diesen Mod nicht als Standard in die neuste Version 1.7.4 mit ein.
Es sind zwar nur ein Paar Schritte aber erspart das erneute einbauen  :?:

Grüße Darkness  :mrgreen:

Offline live@ct

  • Sr. Member
  • ****
  • Posts: 348
    • View Profile
Re: [MOD] Dropdown options for custom database fields
« Reply #58 on: December 20, 2006, 09:06:31 PM »
exist the option to make a if_value_ofthedropdown?

for example

for the gender, you can choose between Male, Female, Bi
if the user choose Male,
you can use something like:

{if_gender_male_dropdown} {endif_gender_male_dropdown}

this to hide or show content for the selection, it can be, foto, portrait, lanscape
if I choose landscape it show only the content and style for landscape pictures, if is it portrait it only show the content and style for portrait etc etc

thanks for your help!
Existen 10 tipos de personas, los que entienden el codigo binario y los que no.

Offline Parasco

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: [MOD] Dropdown options for custom database fields
« Reply #59 on: February 18, 2007, 08:42:00 PM »
Hi all,

In the db_field_def how would we add the $lang['xxx'] to the dropdown options?  I need this cos my site is multilingual