• Resolved Nordavind

    (@nordavind)


    Hello Daniel, thank you a lot for your previous help, I have another question:

    is it possible to change fields with DMSGuestbook? For example I would have NAME, EMAIL and WHERE ARE YOU FROM? so, instead of having “Website” I would have “Where are you from?”

    Is it posible? I tried to change language settings but there is always an error

    https://www.ads-software.com/plugins/dmsguestbook/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author DanielSchurter

    (@danielschurter)

    Yes, look at “../plugins/dmsguestbook/language/english.txt”.

    Dani

    Thread Starter Nordavind

    (@nordavind)

    thanks for the reply!

    at …/plugins/dmsguestbook/language/italian.txt I tried to change a field, for example the field <url>Sito Web</url> with a new field, but it doesn’t run …what should I write?

    thanks again Dani

    Plugin Author DanielSchurter

    (@danielschurter)

    Did you clear the browser cache?

    Thread Starter Nordavind

    (@nordavind)

    yes, and if for example, instead an URL I write the name of a city, there’s an error message: “Invalid website address!” because I think the field runs only if I write an URL

    Thread Starter Nordavind

    (@nordavind)

    in that file:

    /* Daniel Schurter *** DMSGuestbook(at)DanielSchurter(dot)net */
    
    <name>Name</name>
    <email>Email</email>
    <url>Website</url>
    <message>Text</message>
    ...
    ...

    how should I write instead <url>Website</url>? For example, <text>Where are you from?</text>
    I tried but have had no success

    Plugin Author DanielSchurter

    (@danielschurter)

    Hi Nordavind,

    this isn’t simple, you need some PHP experience to do that.

    1) If you want add new tags eg: <text></text>, you have to add that in dmsguestbook.php on line 817. Search for variable $string_flag and add the keyword in the array at the end.

    2) After that create a new variable on line 136, after
    $lang_spam_detect = html_entity_decode($language[14], ENT_QUOTES);

    e.g:
    $lang_nordavind_text = html_entity_decode($language[15], ENT_QUOTES);
    ($language[15] is necessary, it’s the last entry of array )

    3) Add $lang_nordavind_text in following lines: 411, 624, 630.

    A good example is $lang_url. Search for that and see where this variable is set.

    4) open default.tpl on “../plugins/dmsguestbook/template/form” with an editor and set $lang_nordavind_text where you want.

    A quick win solution: You can also add your text directly on default.tpl if you like ??

    Greetings,
    Dani

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘change fields / custom fields’ is closed to new replies.