News:

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

Main Menu

Pre-filled Content

Started by All Colours Sam, August 10, 2010, 07:28:26 PM

Previous topic - Next topic

All Colours Sam

Link to Mod

Pre-filled Content




- Works with every theme.
- clean install.
- you can choose the boards where the mod will work.
- You can choose which user groups the mod will affect.





Introduction
With this mod you can put content in the text area of the posting area, so when a user create a new topic, the content will appear inside the text area,  useful if you post news or topics that use the same images or words every time, this will help you to save time, it can also be used for support forums so users do not forget to put their data.



Languages
o English/utf8
o Spanish_es/utf8
o Spanish_latin/utf8



Install
Just install the mod with the packager manager, you don't have to worry about custom edits on templates.

Demo

a demo can be found on dev.oharascans.com 

please make a new topic with this details:

user:  smf_user
pass: smf_pass





Change log



1.0 - July 28, 2010
Initial release
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

madman71

screen shots plz.

DEMO site does not demo for us. or do you have a user/pass that we can use?

mirahalo

did you not see the images on the mod's page?

http://custom.simplemachines.org/mods/index.php?action=download;mod=2668;id=152461;image

http://custom.simplemachines.org/mods/index.php?action=download;mod=2668;id=152463;image


thats pretty much all the mod, you set some code or text on the mod settings and that code/text will appear when a user make a new topic inside the textarea,   but yeah, you're right, a truly demo is needed.

franklinrony

oh wow. good mod some years a go i see this modifcation in smf tips,but with some bugs,this really a multipurpose mod, in welcome area,support topics....
good job
http://twitter.com/franklinrony

Entra y aprende a ser un webmaster
www.sv-blog.com
--Si pides ayuda al menos agradece el soporte recibido----

mirahalo

thanks ;) actually yes,  I saw that tip a long time ago was just until a few months back that I decided to make it for 2.0

mirahalo

Quote from: madman71 on August 10, 2010, 07:56:29 PM


DEMO site does not demo for us. or do you have a user/pass that we can use?

alright, I added a demo account:  http://dev.oharascans.com/index.php?board=4.0

you can use this user details:

user:  smf_user
pass: smf_pass

madman71

Quote from: 130860 on August 10, 2010, 08:01:55 PM
did you not see the images on the mod's page?

http://custom.simplemachines.org/mods/index.php?action=download;mod=2668;id=152461;image

http://custom.simplemachines.org/mods/index.php?action=download;mod=2668;id=152463;image


thats pretty much all the mod, you set some code or text on the mod settings and that code/text will appear when a user make a new topic inside the textarea,   but yeah, you're right, a truly demo is needed.

opps! im blind

Exochat

Works great on Default Curve theme, but doesnt work on every theme.

Any ideas what edits needed to be added to custom themes to get this working on them too?

mirahalo

your custom theme have a GenericControls.template.php  file?

why* exactly did the mod not work to you?  erros on install?  different language?   wrong setup?

keep in mind that you have to provide both the user group ID and the board ID  in order for the mod to work properly.

luuuciano

awesome mod!

Ill use it...

btw, what about using more than 1 prefilled content for different boards? is that posible?
No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

mirahalo

its something I have planned, multiple prefills on multiple boards,  unfortunately, someone else will have to do that.

luuuciano

130860, there is any easy way to see the user groups #?
No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

mirahalo

if you go to admin / users/ usergroups

and you edit some group you will see a link something like this:

index.php?action=admin;area=membergroups;sa=edit;group=16

where 16 is the id of that group, currently it only work with  regular groups,  I've  never had the chance to include regular groups.

luuuciano

#13
it is strange... I have added all the groups, separated by commas... and 3 forums, separated by comma too...

but the pre filled content do not appears... it just shows an empty content, as usual...

any idea? where to check?
the mod was installed without problems

news: I have tried looking at the code page,... and the prefilled content is there!
no idea why it is not showed...
No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

mirahalo

perhaps your using regular groups,  if so, on  ./Themes/default/GenericControls.template.php

find  &&  in_array($user_info['groups']['0'], $PFC_denied_groups)

and change the 0 for 1

or you could add this:   ||  in_array($user_info['groups']['1'], $PFC_denied_groups)

like this:

if ( in_array($board_info['id'], $PFC_denied_boards) && !empty($modSettings['PFC_boards']) &&  in_array($user_info['groups']['0'], $PFC_denied_groups) && !empty($modSettings['PFC_enable']) && !empty($modSettings['PFC_groups']) && empty($context['current_topic']) && empty($context['post_error']) ||  in_array($user_info['groups']['1'], $PFC_denied_groups))

luuuciano

well, I tried it and using 0 or 1 is the same result...
I can see the prefilled content in the html code, in the textarea... but for some reason... it is not loaded/showed... or it is emptied/erased... no idea :(

I tried it adding ||  in_array($user_info['groups']['1'], $PFC_denied_groups) too, the same behavior
No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

mirahalo

so, the content its there when you create a new topic but when you post it its gone?

KensonPlays

OP, when will, for example, on "modify board" you can have a different one per-board like the on "post template" mod?

Owner of Mesozoic Haven

luuuciano

Quote from: 130860 on October 01, 2010, 10:24:01 AM
so, the content its there when you create a new topic but when you post it its gone?

well... I have not tried to post it... lets see... there is no way to post it
"Hubo un error mientras se enviaba este mensaje.
El cuerpo del mensaje se dejó vacío."

looking at the source I can see it...:

<textarea class="editor" name="message" id="message" rows="12" cols="60" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);" tabindex="2" style="width: 100%; height: 175px;">Borrar lo que no se use, antes de publicar.

[b]Es una base posible, luego podés personalizar el mensaje de salida a tu gusto.[/b]

Más información sobre las pautas para armar salidas: http://cbabikes.com.ar/foros/index.php/topic,106.0.html
Pautas para armar una salida segura: http://cbabikes.com.ar/foros/index.php/topic,2503.0.html
-------

Lugar/es:

Fecha:

Horarios y puntos de encuentro:

Kilometros aproximados:

Dificultad estimada:

Descripción del recorrido:

Imagen satelital del recorrido:

Imagen representativa de la salida:

Enlace a archivo KMZ/KML (google earth) del recorrido:

Enlaces a temas de interés:
Checklist de seguridad: http://cbabikes.com.ar/foros/index.php/topic,2478.0.html
Equipamiento básico para salir a rodar: http://cbabikes.com.ar/foros/index.php/topic,1759.0.html
Lugares peligrosos: http://cbabikes.com.ar/foros/index.php/topic,1358.0.html

[b]Ciclista sin casco NO rueda con el grupo.[/b]</textarea>


but... it is not showed in the form... no idea why... maybe a javascript collision?
No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

luuuciano

I tried using the curve theme... and it is hapenning there too...
No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

Advertisement: