News:

Wondering if this will always be free?  See why free is better.

Main Menu

Join Reason

Started by live627, December 20, 2009, 10:49:47 AM

Previous topic - Next topic

live627

Link to the mod

Join Reason

Support

Package name SMF version Minimmum PHP version
Join Reason 3.0.0 SMF 2.1.x PHP 7.1
Join Reason 1.3 SMF 2.0.x PHP 5.3

View changelog

This mod adds a field on the registration page asking the visitor how he found the site. In addition, if all registrants must be approved by the site administrator, a section is added to the list of members awaiting approval with their join reason.

Original Mod Request


Costa

Cool, congrats  :D


TRANSLATIONS

Code (portuguese_pt) Select
$txt['admin_browse_join_reason'] = 'Motivo para se juntar a nós';
$txt['join_reason'] = 'Como nos encontrou?';


Code (portuguese_pt-utf8) Select
$txt['admin_browse_join_reason'] = 'Motivo para se juntar a nós';
$txt['join_reason'] = 'Como nos encontrou?';


Code (portuguese_brazilian) Select
$txt['admin_browse_join_reason'] = 'Motivo para se juntar a nós';
$txt['join_reason'] = 'Como nos encontrou?';


Code (portuguese_brazilian-utf8) Select
$txt['admin_browse_join_reason'] = 'Motivo para se juntar a nós';
$txt['join_reason'] = 'Como nos encontrou?';
Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

darrenbeige

Like it. 
Code (spanish) Select
$txt['admin_browse_join_reason'] = 'Razón para unirse';
$txt['join_reason'] = '¿Cómo encontrarnos?';


Gargoyle


live627

Updated to 1.1


  • Added languages

    • Portuguese (Thanks Costa)
    • Spanish (Thanks darrenbeige)
  • Added 2.0 RC1 and 2.0 RC2 support

Rohan_

Danish
$txt['admin_browse_join_reason'] = 'Begrundelse for at tilslutte sig';
$txt['join_reason'] = 'Hvordan fandt du os?';


Dutch
$txt['admin_browse_join_reason'] = 'Reden voor deelname aan';
$txt['join_reason'] = 'Hoe heeft u ons gevonden?';


Filipino
$txt['admin_browse_join_reason'] = 'Ang Dahilan para sumali sa';
$txt['join_reason'] = 'Paano ninyo makita sa amin?';


French
$txt['admin_browse_join_reason'] = 'Raison de se joindre à';
$txt['join_reason'] = 'Comment nous avez-vous trouver?';


German
$txt['admin_browse_join_reason'] = 'Grund für den Beitritt';
$txt['join_reason'] = 'Wie haben Sie uns gefunden?';


Russian
$txt['admin_browse_join_reason'] = 'Причина присоединения';
$txt['join_reason'] = 'Как вы узнали о нас?';



if there is some mistake then i am sorry
Proud To Be An Indian

-=[Vyorel]=-

Romanian:
$txt['admin_browse_join_reason'] = 'Motivul pentru aderare';
$txt['join_reason'] = 'Cum ne-ati gasit?';
My mods for SMF - [6].

4b11l

New registrants can not register.

Getting an error in:

Database Error: Unknown column 'join_reason' in 'field list'
Apply Filter: Only show the errors from this file
File: /public_html/Sources/Subs-Members.php
Line: 785

live627


Arantor

Also of interest: how was it installed?

live627

The database problem is fixed in version 1.2

Gargoyle

What about those of us that have not encountered this issue... Is it necessary for us to apply the "database fix" ?

live627

Nope. SMF 1.1.x users are not affected at all.

SoLoGHoST

Congrats on your modification Live.  The problem is that it never creates the column for RC2 since db_extend('packages') never gets called.  Change if (!array_key_exists('db_add_column', $smcFunc)) within the install20.php file to exclude the !.

You also, need to fix the name of the column from join_reaason, to join_reason with 1 a.

Cheers, and that should do it.

Arantor

*cough* use <database> *cough*

4b11l

Version was rc2.0

I recently uninstalled it already. Should I download and reinstall the new package since you said it's upgraded in 1.2?
I am not familiar with modifying the database and would rather not have to do that if I didn't need to.

mirahalo

Hi there,   will you please update the spanish translation ;)

spanish_es
$txt['admin_browse_join_reason'] = 'Raz&oacute;n para unirse';
$txt['join_reason'] = '&iquest;C&oacute;mo nos encontraste?';


spanish_latin
$txt['admin_browse_join_reason'] = 'Raz&oacute;n para unirse';
$txt['join_reason'] = '&iquest;C&oacute;mo nos encontraste?';


spanish_es-utf8
$txt['admin_browse_join_reason'] = 'Razón para unirse';
$txt['join_reason'] = '¿Cómo nos encontraste?';


spanish_latin-utf8
$txt['admin_browse_join_reason'] = 'Razón para unirse';
$txt['join_reason'] = '¿Cómo nos encontraste?';



nice mod  btw ;)

live627

Quote from: Rohan_ on December 22, 2009, 12:36:27 AM
if there is some mistake then i am sorry


Mistake? Only if there is a translation error on your part, but otherwise, everything is okay

Quote from: The Grinch on December 23, 2009, 03:31:49 AM
*cough* use <database> *cough*

*choke* Database adaption blues...

Quote from: 130860 on December 24, 2009, 05:01:55 PM
Hi there,   will you please update the spanish translation ;)

spanish_es
$txt['admin_browse_join_reason'] = 'Raz&oacute;n para unirse';
$txt['join_reason'] = '&iquest;C&oacute;mo nos encontraste?';


spanish_latin
$txt['admin_browse_join_reason'] = 'Raz&oacute;n para unirse';
$txt['join_reason'] = '&iquest;C&oacute;mo nos encontraste?';


spanish_es-utf8
$txt['admin_browse_join_reason'] = 'Razón para unirse';
$txt['join_reason'] = '¿Cómo nos encontraste?';


spanish_latin-utf8
$txt['admin_browse_join_reason'] = 'Razón para unirse';
$txt['join_reason'] = '¿Cómo nos encontraste?';



nice mod  btw ;)


Is UTF8 and ASCII backwards?

mirahalo

nope,  well yeah, but thats  the way to go in this, otherwise you will have weird characters.

   ASCII = &aacute;

UTF8 =  á   

I could be wrong,  but  this how SMF do this AFAIK  ;)
   

Arantor

I have a feeling the non-UTF8 file is encoded in a different scheme to ISO-8859-1 but I'd have to check. If in doubt, what 130860 does is what I do in my mods and it works just fine for me.

Advertisement: