Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
New AddOn: Invite Friends Extension
I wrote a simple extension.
Invite Friends adds a simple form to vanilla with a number of input fields for email addresses, allwoing users and visitors to invite friends to the forum via email.
Maybe this extension helps you to make your forum more popular.
For all you that downloaded the extension yesterday:
I fixed a small typo which caused a bug. V 0.2 is now online.
Any questions, bugs or comments?
Invite Friends adds a simple form to vanilla with a number of input fields for email addresses, allwoing users and visitors to invite friends to the forum via email.
Maybe this extension helps you to make your forum more popular.
For all you that downloaded the extension yesterday:
I fixed a small typo which caused a bug. V 0.2 is now online.
Any questions, bugs or comments?
0
Comments
/yourvanilla/extensions/InviteFriends/
make sure that the folder contains 3 files:
/yourvanilla/extensions/InviteFriends/default.php
/yourvanilla/extensions/InviteFriends/config.php
/yourvanilla/extensions/InviteFriends/template.php
jimw, it seems that the config.php is not included by the default.php.
Is the config-php in the InviteFriends directory?
Maybe you have to edit line 24
include('config.php');
Or I need to check and change the include statement to an absolute path.
I hope you all can help a bit and give me some further information.
Please try to replace line 24
include('config.php');
with [edited]
include($Context->Configuration['EXTENSIONS_PATH'].'InviteFriends/config.php'); // after
and line 128
include('template.php');
with [edited]
include($Context->Configuration['EXTENSIONS_PATH'].'InviteFriends/template.php'); // after
And give me feeback if something changed.
Without any configuration changes the link to the InviteFriends form should appear in the Account Panel.
Btw.: @jimw, the .DS_Store files is not needed. It comes form my os x.
Thanks for your patient,
Michael
@jimw: the inclusion warnings results form the above error "undefined variable: Configuration". I edited my posting above. Maybe you can try
$Context->Configuration[...
instead of$Configuration[..
For you local installation you can also try the following:
line 24:
include('D:\Program Files\xampp\htdocs\Vanilla.1\extensions\InviteFriends/config.php');
line 128:
include('D:\Program Files\xampp\htdocs\Vanilla.1\extensions\InviteFriends/template.php');
Hope we get this running for you, too.
I found this in config.php but it does not actually display...
$Context->Dictionary["InviteFriends_Success"] = "Thank you!<br /> Your Invitation was sent to \\1 friends.";
Otherwise it works very well, oh and I put this in the template so it appears just before the Invite button...
A link to the forum will be automatically added to your invitation.
this should work now with new version 0.3.
Thanks for this info..
Yes Michael, works a treat now.
Thanks buddy, love your work.
Invite Friends