Forums / Cotonti / Extensions / TOS (terms of service)

young mone
#1 2010-02-28 16:06
ok so i have started working on this basic tos plugin that will allow admins to edit at will by updating their rules there or whatever but i cant find out how to make it where you can edit it trough configuration , not in the ftp any help?
[url=<a href="">http://pspw.co.cc]All</a> your game needs and more[/url]
Trustmaster
#2 2010-02-28 21:15
May the Source be with you!
young mone
#3 2010-03-01 02:32
hmm it didnt help that much

Added 2 minutes later:

i seem to get this error
--> Parse error: syntax error, unexpected '.' in /home3/mediaeli/public_html/plugins/tos/tos.php on line 31
[url=<a href="">http://pspw.co.cc]All</a> your game needs and more[/url]
Trustmaster
#4 2010-03-01 03:41
What code is that?
May the Source be with you!
young mone
#5 2010-03-01 03:47
its this
$cfg['plugin']['myplugin']['myvar1']
$cfg['plugin']['myplugin']['myvar2']
$cfg['plugin']['myplugin']['myvar3']
$cfg['plugin']['myplugin']['myvar4']
and
[BEGIN_SED_EXTPLUGIN_CONFIG]
myvar1=01:string::50:This is my first variable
myvar2=02:select:1,2,3,4,5,6,7,8,9,10:7:This is my second variable
myvar3=03:radio:Yes,No:Yes:This is my third variable
myvar4=04:text::Default text goes here:This is my fourth variable 
[END_SED_EXTPLUGIN_CONFIG]


Added 1 minute later:

hers what i have
<?PHP
/* ====================
[BEGIN_SED]
File=plugins/tos/tos.setup.php
Version=0.0.2
Updated=feb
Type=Plugin
Author=Neocrome & Cotonti Team
Description=Cotonti - Website engine http://www.cotonti.com Copyright (c) Cotonti Team 2009 BSD License
[END_SED]

[BEGIN_SED_EXTPLUGIN]
Code=tos
Name=Tos
Description=Helps keep the rules in one place
Version=1.0
Date=feb
Author=Mone http://pspw.co.cc/ 
Copyright=Partial copyright (c) 2008 Cotonti Team
Notes=BSD License
SQL=
Auth_guests=R
Lock_guests=W12345A
Auth_members=R
Lock_members=W12345A
[END_SED_EXTPLUGIN]

[BEGIN_SED_EXTPLUGIN_CONFIG]
$plugin_title=:string::put yours here:Title
$plugin_body=:text::Put your info here:Body 
[END_SED_EXTPLUGIN_CONFIG]
==================== */

?>
[url=<a href="">http://pspw.co.cc]All</a> your game needs and more[/url]