Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=653)
This MOD adds an invite system to SMF. Users get invite credits which they can use to invite people to the forum, and showing who invited whom. The forum can also be set to only accept registrations through invitations, meaning that you need to be invited to join.
Admin options are in "Features and Options" -> "Invite", and "Manage Permissions".
As always, I'm open to feedback and improvement ideas.
If you're installing this on a custom theme, go to http://server.daniel15.com/smf/package.php, upload it there, and select "Only Theme edits". It will show you what to do.
A few useful posts in this topic:
How to install the menu button manually on a custom theme (http://www.simplemachines.org/community/index.php?topic=154999.msg998334#msg998334)
How to show top inviters in a TinyPortal block (http://www.simplemachines.org/community/index.php?topic=154999.msg1000732#msg1000732)
I just installed this on a very heavily modified SMF 1.1.1 and it worked like a charm. We will see how it works for others. Thanks for this.
No problems with installation, just when invitee accepted and clicked on link I found this in error log:
8: Undefined variable: invite_key
File: /forum/Sources/Register.php
Line: 340
Was he able to register and all that without a problem. ??? Did the link do what it was supposed to. ???
sweet. I'll be looking out for this thread. Once the kinks are ironed out, I'll be sure to install.
Quote from: Bigguy on March 03, 2007, 04:24:07 PM
Was he able to register and all that without a problem. ??? Did the link do what it was supposed to. ???
Yup, everything worked as it should, but that error in the log.
Quote from: RoarinRow on March 03, 2007, 04:06:00 PM
No problems with installation, just when invitee accepted and clicked on link I found this in error log:
8: Undefined variable: invite_key
File: /forum/Sources/Register.php
Line: 340
This should be fixed in 1.04, and it was caused when I renamed a variable and good ol' copy+paste. It also made it not register who invited the member.
Thanks for letting me know.
I have over 50 mods and some supplement ones too (so 59 total) and this one installed like a charm and havent noticed a problem. I even did a bit of tinkering with it to fit a bit better and all worked fantastically. Everyone is pretty excited about this new forum feature. Great Job!
Quote from: littleone on March 04, 2007, 02:19:37 AM
Everyone is pretty excited about this new forum feature. Great Job!
Thanks! :D
Quote from: littleone on March 04, 2007, 02:19:37 AM
I even did a bit of tinkering with it to fit a bit better
I'd be interested in what this was, and any ideas on how to improve the mod.
I installed this mod and I have found a problem. Even if the mod is not set on 'invite only' the message in the invite box says: 'This forum is set to only accept new registrations through invitations. You can invite someone new if you have invite credits by making a new key and sending them the link.' However you can register as normal anyway... Can I change this text, and if so how?
Quote from: Sarke on March 04, 2007, 01:25:48 AM
Quote from: RoarinRow on March 03, 2007, 04:06:00 PM
No problems with installation, just when invitee accepted and clicked on link I found this in error log:
8: Undefined variable: invite_key
File: /forum/Sources/Register.php
Line: 340
This should be fixed in 1.04, and it was caused when I renamed a variable and good ol' copy+paste. It also made it not register who invited the member.
Thanks for letting me know.
Great, thanks! Looking forward to the upgrade 8)
Quote from: Sarke on March 04, 2007, 04:36:56 AM
Quote from: littleone on March 04, 2007, 02:19:37 AM
Everyone is pretty excited about this new forum feature. Great Job!
Thanks! :D
Quote from: littleone on March 04, 2007, 02:19:37 AM
I even did a bit of tinkering with it to fit a bit better
I'd be interested in what this was, and any ideas on how to improve the mod.
Oh I just change some of the modification.english txt. You had it read that the forum was ONLY invite only even if it wasnt. So I just changed it to ready. This forum ACCEPTS invites....blah blah. (make it more general, cause thats the first thing I was ask was if people could only join via invite because of the way it was written).
Then I also removed the column where it printed out the key next to the link. I didnt see need to have it on the Inviters page, so that shrunk it up cause it made the page really long to scroll. Thats all :P
This is looking and sounding like a very cool Mod and great idea. Will watch a bit longer to see if there are any other issues to arise. ;)
I missed something in 1.04 but it's now fixed and I uploaded it as 1.04b. I suggest everyone updates it. It still wasn't showing the inviter properly because I forgot to update the query with the correct variable. I've tested it all again and it's fully functional.
Dude, I got an installation error... (SMF 1.1.2)
1. Extract File ./Sources/Invite.php
2. Extract File ./Themes/default/Invite.template.php
3. Execute Code db.php
4. Execute Modification ./Sources/ModSettings.php Test successful
5. Execute Modification ./Sources/ManagePermissions.php Test successful
6. Execute Modification ./Sources/Register.php Test successful
7. Execute Modification ./Sources/Profile.php Test successful
8. Execute Modification ./Themes/default/Profile.template.php Test failed
9. Execute Modification ./Themes/default/Register.template.php Test successful
10. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
Could you please check it out for me?!
Could you send me a copy of your Profile.template.php?
Thanks Sarke! If fixed my other reported issue. I had a new one with a failed modification.english.php, but that was an easy fix 8)
Here's a copy of the file...
http://www.globalcurves.com/Profiletemplate.zip (http://www.globalcurves.com/Profiletemplate.zip)
Thanks!
Looks like you have the "Show Topics" mod installed, and it also changes the "Additional Information" area. I'm changing the code so it'll work for the next version of my mod.
If you want to make it work now the simplest way would be to uninstall the "Show Topics" mod, install "Invite", and then install "Show Topics" again. Looking at the code this should work. The bad thing about doing it this way though is that if you want to do it this way and want to uninstall "Invite" you have to remember to uninstall "Show Topics" before uninstalling "Invite".
I think I'll wait for the next version...
Thanks
Well you didn't have to wait long, 1.05 is up now with some minor improvements.
french translation would be appreciated :)
Sorry, I don't speak french. You can always translate it yourself.
Version 1.06 is up, with a few new features, like having it's own menu link and page, as well as a mailing feature.
It hasn't been fully tested yet so stick with 1.05 if you must have it working 100%. Please let me know of any errors in 1.06.
Installed 1.0.6. Looks good - I like it in the menubar instead of profile. I'll check to make sure the emails went through, but I did notice that in this area
Number of days for members to get a new invite credit.
(0 for no limit, admins are exempt)
Max number of invite credits.
(0 for no limit, admins are exempt)
Number of days for an invite key to be valid.
(0 for no limit)
When I punched in "0" and then saved it, the fields were blank again.
Is there no way guests can invite too? Thanks for the mod. Very good!
question : could there be a functionality problem with the invited members if someone uninstall the mod ?
Quote from: choloman05 on March 05, 2007, 07:25:17 PM
When I punched in "0" and then saved it, the fields were blank again.
It's ok, 0 and empty string is the same to SMF.
Quote from: choloman05 on March 05, 2007, 07:25:17 PM
Is there no way guests can invite too? Thanks for the mod. Very good!
No, I really didn't see a point in making that. There would be no way of tracking how many invite credits they have, and there wouldn't be a "invited by" either.
Quote from: MinasC on March 05, 2007, 08:09:12 PM
question : could there be a functionality problem with the invited members if someone uninstall the mod ?
No, it should work fine. The settings and the table containing the invite keys and related info is still there after uninstall, so you can reinstall and it'll keep working. If you simply want to get rid of it, that works too.
Quote from: choloman05 on March 05, 2007, 07:25:17 PM
Installed 1.0.6. Looks good - I like it in the menubar instead of profile. I'll check to make sure the emails went through, but I did notice that in this area
Number of days for members to get a new invite credit.
(0 for no limit, admins are exempt)
Max number of invite credits.
(0 for no limit, admins are exempt)
Number of days for an invite key to be valid.
(0 for no limit)
When I punched in "0" and then saved it, the fields were blank again.
Is there no way guests can invite too? Thanks for the mod. Very good!
same thing happens to me when i put in zeros and hit save.
New Install - Great idea, poor install...
Type Action Description
1. Extract File ./Sources/Invite.php
2. Extract File ./Themes/default/Invite.template.php
3. Execute Code db.php
4. Execute Modification ./index.php Test successful
5. Execute Modification ./Sources/ModSettings.php Test successful
6. Execute Modification ./Sources/ManagePermissions.php Test failed
7. Execute Modification ./Sources/Register.php Test successful
8. Execute Modification ./Themes/default/index.template.php Test failed
9. Execute Modification ./Themes/default/Profile.template.php Test successful
10. Execute Modification ./Themes/default/Register.template.php Test successful
11. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
So what's failed?
Ok, thanks for that Sarke (that 0 and blank = same thing).
I don't mean to sounds like a jerk or like I expect you to do this at all ... I can see some functionality of having guests able to invite - where they (or all users instead of their username) would enter whatever name they choose (as it's their friends who will be receiving the email, and their friends might not know their username). Just a thought. Cool mod though. And thanks for the quick support.
Quote from: christicehurst on March 05, 2007, 10:54:18 PM
Great idea, poor install...
Maybe another mod was "poorly installed"?
You'll have to install those two files manually. This will help: http://server.daniel15.com/smf/package.php
Quote from: choloman05 on March 05, 2007, 10:58:15 PM
Ok, thanks for that Sarke (that 0 and blank = same thing).
I don't mean to sounds like a jerk or like I expect you to do this at all ... I can see some functionality of having guests able to invite - where they (or all users instead of their username) would enter whatever name they choose (as it's their friends who will be receiving the email, and their friends might not know their username). Just a thought. Cool mod though. And thanks for the quick support.
Np, and they can always enter their real name in the message area. The email will also be from the senders email, and not the forum email, so that should help too. I might add a box for aliasing the senders name in a coming version. Guests though, that I'll probably leave just because I'd have to change qquite a bit and I still see minimal use for it. They can always IM or email them themselves. :P
First of all Thanks for this fantastic Mod!!!
I installed it today and get these errors when i'm working in the Invite page:
Quote2: Invalid argument supplied for foreach()
Ficheiro: */Sources/Invite.php
Linha: 338
: Undefined variable: invitees
Ficheiro: */Sources/Invite.php
Linha: 200
I'm running 1.06 and I installed it smoothly. And these errors only happen with me (Administrator).
I think that everything is working OK although I wanted to end this error reports.
Thanks, I'll sort that out for next version. It's just a notice that the array is empty, it doesn't really affect anything except that it's being logged.
After members went to the invite page they show those errors too afterall and not only to me as Administrator. There are others errors much the same that if you want (in case you don´t know them) I can post them here.
Thanks for the fast answer.
If it doesn´t hurt there's no problem! =)
GL with the upcoming version. It will be a perfect system if you correct the errors because you achieved very much already.
Thanks again! I've got my "second wind" with this mod now that it's been approved. :P
I might as well fix this right now...
1.07 out, the above being the only change.
If there are other errors, please post them.
I just installed 1.07 and these are the errors that it shows me sometimes:
Quote8: Undefined variable: txt
Ficheiro: */Sources/Invite.php
Linha: 187
8: Undefined variable: user_profile
Ficheiro: */Sources/Invite.php
Linha: 144
I hope it helped.
i think its just me but i cant seem to find the
"Features and Options" -> "Invite", and "Manage Permissions".
I can't see the "Invite" thingy. I installed 1.07.
Quote from: Sarke on March 06, 2007, 04:24:22 AM
Quote from: christicehurst on March 05, 2007, 10:54:18 PM
Great idea, poor install...
Maybe another mod was "poorly installed"?
You'll have to install those two files manually. This will help: http://server.daniel15.com/smf/package.php
Well this is going to be fun...
so when a member invites a friend.. they get a credit?
is that how it works?
1.08 released.
Quote from: Stirred on March 06, 2007, 06:19:10 PM
I just installed 1.07 and these are the errors that it shows me sometimes:
Quote8: Undefined variable: txt
Ficheiro: */Sources/Invite.php
Linha: 187
8: Undefined variable: user_profile
Ficheiro: */Sources/Invite.php
Linha: 144
I hope it helped.
Thanks, this is now fixed.
i think i would like the users to get points for successfully inviting people.. not need credits to invite people ...
Quote from: mrbear on March 06, 2007, 07:06:52 PM
i think its just me but i cant seem to find the
"Features and Options" -> "Invite", and "Manage Permissions".
I can't see the "Invite" thingy. I installed 1.07.
That's in the admin panel. The direct links are:
index.php?action=featuresettings;sa=invite
index.php?action=permissions
The first one might not show up if you're using something other than english as your language.
The "Invite" button in the menu will only show up on the default theme, so you'll have to edit index.template.php manually if you want it to show up on another theme.
Quote from: 3mrhythm on March 06, 2007, 10:19:20 PM
so when a member invites a friend.. they get a credit?
is that how it works?
User's get credits every X number of days (set by the admin), or it can be set to unlimited.
Quote from: 3mrhythm on March 06, 2007, 11:42:53 PM
i think i would like the users to get points for successfully inviting people.. not need credits to invite people ...
You can just set the credits to unlimited, and you can view a list of the members invited by the user. I'll probably expand on this though; maybe add a "Number of users invited" to the profile summary... Thanks.
EDIT: To add a bit more about this, I think it's very important to be able to set limits on how many invitations members can send. If you're using this to only allowed invited people to register you don't want members handing out invitations to strangers. If there's a limit they'll think more about who they invite.
If you're just using it as a "Tell a Friend" sort of thing, then just set it to unlimited as I mentioned.
yeah more of like a tell a friend sort of thing . i Run a paintball forum and am always fishing for new members on myspace and through other networks.. it would be nice to be able to have a points system where if my members get like 100 people to sign up i can see that they have 100 credits and get like a free tee shirt or something .. just for a while to get my exposure up there :)
thanks btw im excited to use this once i feel it will suit my needs :)
Great mod.
Gonna see if it's something I can use on my forum!
Thanks for it!
is it automatically sending an email to invitees with the registration link now ??? (1.0.7 i mean) is it totally stable now (bugs fixed) ???
Sarke thanks for the update. I just installed without problems. And nothing shows up on Error Report.
If something appears to me later I'll come to report. =)
Well done!! It's one of the best Mods for SMF.
Quote from: MinasC on March 07, 2007, 06:03:13 AM
is it automatically sending an email to invitees with the registration link now ??? (1.0.7 i mean) is it totally stable now (bugs fixed) ???
You have the option to send an email with the link, but you have to enter the email address and name of course. As of 1.08, all the bugs I know of are fixed.
And thanks for the feedback guys! :D
hey , we should be thanking you for that great mod !!!
wow , i just tried to uninstall 1.03 and it returned 2 "test failed" errors : in "ManagePermissions.php" and in "Modifications.english.php" !!! even if i try to install 1.08 anyway (wouldn't do it , just wanted to see what happens) it returns an installation error : Test failed in "index.template.php" and in "Profile.template.php" , which is because i have 1.03 installed !!!
This package is already installed, and no upgrade was found!
You should uninstall the old version first to avoid problems, or ask the author to create an upgrade from your old version.
Please remember to always make regular backups of your sources and database before installing mods, especially beta versions.
why can't i uninstall 1.03 ? what should i do ?
thnx !!!
It sounds like something has modified the same area of the code after you install 1.03 (probably another mod installed after). Reversing these changes will allow you to uninstall 1.03 and install 1.08.
how do i reverse them ? i have many mods installed !!!
Uninstall the mods that also modifies ManagePermissions.php that you installed after Invite 1.03, then 1.03 should uninstall correctly.
Another option would be to uninstall 1.03 manually (this one is probably less work if there are many mods involved). Uninstall it even though it gives you errors, and then remove the code manually from those files that gave errors.
If ManagePermissions.php and Modifications.english.php are the only ones that failed, here's how you do it.
In ManagePermissions.php, remove the following rows:
'invitees_any',
'invite',
'invitees_own',
'invite' => array(
'invite' => false,
'invitees' => true,
),
'invite',
In Modifications.english.php, remove the following rows and all rows in between:
// Invite MOD.
$txt['invite_title'] = 'Invite';
to
$txt['registration_invite_expired'] = 'Sorry, the invite key has expired.';
Thanks for the update! 8)
Quote from: RoarinRow on March 07, 2007, 04:36:06 PM
Thanks for the update! 8)
No problem. Everything should work like expected now. Until the next few features are added of course. :P
New update, 1.09. Basically I just moved the invitees list to the same page as the members list is (so it all looks neat and integrated), and I added a total in the profile page (for those keeping score :P).
I tested this one a bit more than usual (considering the changes I made) and I didn't find any errors, so hopefully it's all clean and good to go.
Oh, and some new screenshots.
how can i use this mod on a different theme?
Go to http://server.daniel15.com/smf/package.php, upload it there, and select "Only Theme edits". It will show you what to do.
Thank you
Quote from: Sarke on March 07, 2007, 03:03:40 PM
Uninstall the mods that also modifies ManagePermissions.php that you installed after Invite 1.03, then 1.03 should uninstall correctly.
Another option would be to uninstall 1.03 manually (this one is probably less work if there are many mods involved). Uninstall it even though it gives you errors, and then remove the code manually from those files that gave errors.
If ManagePermissions.php and Modifications.english.php are the only ones that failed, here's how you do it.
In ManagePermissions.php, remove the following rows:
'invitees_any',
'invite',
'invitees_own',
'invite' => array(
'invite' => false,
'invitees' => true,
),
'invite',
In Modifications.english.php, remove the following rows and all rows in between:
// Invite MOD.
$txt['invite_title'] = 'Invite';
to
$txt['registration_invite_expired'] = 'Sorry, the invite key has expired.';
did it but couldn't find
'invitees_any',
and
'invite' => array(
'invite' => false,
'invitees' => true,
),
and
'invite',
in ManagePermissions.php (everything ok with Modifications.english.php though) !!! so i uninstalled 1.03 and deleted the files !!!
nevertheless when i tried to install 1.09 it returned an error : test failed in index.template.php !!!
any ideas ? plz help , there are many members asking me to invite people and i don't know what to do !!!
I installed 1.09, there were no errors except in index.template.php, which I disregarded, but I don't have the following updates like in your last two screen shots from the mod page - http://custom.simplemachines.org/mods/index.php?mod=653
I don't either, I can't see who has invited who, like I was able to do on previous versions.
Yes i just installed 1.09 and those things happen to me.
I'm back to 1.08 until those things are right.
Quote from: Stirred on March 08, 2007, 03:43:36 PM
Yes i just installed 1.09 and those things happen to me.
I'm back to 1.08 until those things are right.
I did the same ;)
You people are on drugs... I tested it again and it works fine.
Are you using the default theme?
lol... actually atm no. =P
About the default theme, that's a no but I changed install.xhtml and made all the changes that are equal on Profile.template.php and Index.template.php of default to my custom theme, so don´t think the problem is from there.
If you want me I can post my files to you just to be sure.
I use 1.08 not in default theme and it works perfect. So I don´t think the problem is from making the lines to the custom.
Could you post your profile.template.index please (the one with 1.09 installed), and also if you would test it using the default theme as well.
yup, i tested on the default theme.
Rightnow i don´t have 1.09 installed and i can´t install because my site is online, it was off during the day. I'll post the files with 1.08 installed and working fine: (tomorrow day i can do it with 1.09)
Link: http://rapidshare.com/files/20104448/stirred_invite_1.08.zip.html
I have to say that i don´t use the top menu on index like you did to default index. But the other changes are all equal to what you made in the default theme.
I switched it to the default theme to test it, and see if it would work on it with no success...
Everything worked fine except there was no link to the invitee list in the profiles and nothing different with the member list.
Sorry, that won't help me. If 1.08 is working and 1.09 isn't, then sending me the 1.08 file won't let me see the error in 1.09.
However, I've looked this over again, and re-installed it on both my test forum (default 1.1.2) and my live forum (custom 1.1.2) and it works like expected on both.
Remember that the "Invited by" and "Members invited" will only show up if there is any info to show.
Amigo!
I got this installation error. Can you please check this out for me?
Installing this package will perform the following actions:
Type Action Description
1. Extract File ./Sources/Invite.php
2. Extract File ./Themes/default/Invite.template.php
3. Execute Code db.php
4. Execute Modification ./index.php Test successful
5. Execute Modification ./Sources/ModSettings.php Test successful
6. Execute Modification ./Sources/ManagePermissions.php Test successful
7. Execute Modification ./Sources/Register.php Test successful
8. Execute Modification ./Sources/Memberlist.php Test successful
9. Execute Modification ./Themes/default/index.template.php Test failed
10. Execute Modification ./Themes/default/Profile.template.php Test successful
11. Execute Modification ./Themes/default/Register.template.php Test successful
12. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
could you send me a copy of that file?
Amigo!
This is the version I tried to install. I recently installed SMF and then upgraded it to 1.1.2. Actually I am looking ONLY for this module as I don't want to give a free registration. Please help me out.
Sorry, I ment a copy of your index.template.php
Sorry, I didn't understood initially what you asked for. Now I am sending you the index.template.php.
You have a few other mods installed that conflict with this one. Install the mod anyways (even though it says there's an error), and then open your index.template.php and find
if (in_array($context['current_action'], array('tags','gallery','search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
replace it with
if (in_array($context['current_action'], array('tags','gallery','search', 'invite', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
then find
// If the user is a guest, show [login] button.
replace it with
// Invite MOD.
if (allowedTo('invite'))
{
global $modSettings;
echo ($current_action == 'invite' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'invite' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=invite">' , (!empty($modSettings['invite_menu_title']) ? $modSettings['invite_menu_title'] : $txt['invite_title']) , '</a>
</td>' , $current_action == 'invite' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
}
// If the user is a guest, show [login] button.
Thank you very much amigo. Yes it is working now. Great! :D
:( Sorry, I didn't observe initially. Now I am getting two "Invite" buttons.
Np. :D
:( Sorry, I didn't observe initially. I am getting two "Invite" buttons.
Open up index.template.php again and remove one of these (you have an extra one by mistake):
// Invite MOD.
if (allowedTo('invite'))
{
global $modSettings;
echo ($current_action == 'invite' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'invite' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=invite">' , (!empty($modSettings['invite_menu_title']) ? $modSettings['invite_menu_title'] : $txt['invite_title']) , '</a>
</td>' , $current_action == 'invite' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
}
:D ;D 8) Thank you
I did furtherlooking into the differences.
And now from the profile I can´t go to the invitees list of that person. But that is on purpose, right? But i can´t see too who invited who in the memberlist and that happens on default/custom.
The invite page only shows the invite keys.
I attach my files with 1.09 for you to check, but from what i see, the only problem for the changes you made is not showing up in the memberlist.
And in my opinion the invite page of one person should show the invitees, is good to keep track of whom we invited.
If you have any invitees then there should be a number next to "Members Invited: " in the profile. Clicking that number will take you to the list, and currently that is the only way to get to the list.
EDIT: it looks to be installed correctly.
hi
i got a problem with the button, am using the satlite theme by Inbetwee. After adding the button am getting a blue box around it.this is my code
global $modSettings;
echo ($current_action == 'invite' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td align="center" valign="top"><img src="' . $settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td valign="top" class="maintab_' , $current_action == 'invite' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=invite">' , (!empty($modSettings['invite_menu_title']) ? $modSettings['invite_menu_title'] : $txt['invite_title']) , '</a>
</td>' , $current_action == 'invite' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
if you want to see, please check
http://www.ezhostlive.com/forums
ur: ezdemo
ps: ezdemo
Many themes use different code for the menu buttons (this wouldn't be a problem if SMF had a loop instead of each menu item on it's own, but anyways...). Here's an very general manual install of the menu button for most themes that will use the themes' own code.
1. Open index.template.php
2. Put 'invite' in the $context['current_action'] array.
if (in_array($context['current_action'], array('search', 'invite', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
$current_action = $context['current_action'];
3. Make a copy of the menu button code and insert it right after. The code block usually starts with
// the [member] list button
You should now have two "Members" buttons in the menu, right next to each other.
4. In the second block of code (the copy you just made), replace
// the [member] list button
if ($context['allow_memberlist'])
with
// Invite MOD.
if (allowedTo('invite'))
{
global $modSettings;
and add a closing curly bracket "}" after the code block.
5. In the same block of code, replace all occurances of
mlist
with
invite
Make sure you don't replace it in the entire document, but just this block of code.
6. In the same block of code, replace
$txt[331]
with
(!empty($modSettings['invite_menu_title']) ? $modSettings['invite_menu_title'] : $txt['invite_title'])
7. Save and you're done!
Well just installed and checked it again I see now the changes and it's working well. =)
Good to know. I'll make this a bit more obvious in the next release so the list of invitees is easier to find.
Quote from: MinasC on March 08, 2007, 01:04:27 PM
Quote from: Sarke on March 07, 2007, 03:03:40 PM
Uninstall the mods that also modifies ManagePermissions.php that you installed after Invite 1.03, then 1.03 should uninstall correctly.
Another option would be to uninstall 1.03 manually (this one is probably less work if there are many mods involved). Uninstall it even though it gives you errors, and then remove the code manually from those files that gave errors.
If ManagePermissions.php and Modifications.english.php are the only ones that failed, here's how you do it.
In ManagePermissions.php, remove the following rows:
'invitees_any',
'invite',
'invitees_own',
'invite' => array(
'invite' => false,
'invitees' => true,
),
'invite',
In Modifications.english.php, remove the following rows and all rows in between:
// Invite MOD.
$txt['invite_title'] = 'Invite';
to
$txt['registration_invite_expired'] = 'Sorry, the invite key has expired.';
did it but couldn't find
'invitees_any',
and
'invite' => array(
'invite' => false,
'invitees' => true,
),
and
'invite',
in ManagePermissions.php (everything ok with Modifications.english.php though) !!! so i uninstalled 1.03 and deleted the files !!!
nevertheless when i tried to install 1.09 it returned an error : test failed in index.template.php !!!
any ideas ? plz help , there are many members asking me to invite people and i don't know what to do !!!
sarke you forgot to answer to me , plz help !!! i'm sending you my index.template.php via pm !!!
i'm using smf 1.1.2 default theme/tp 0.971
well i just realised i can't attach to pms so here it is !!!
FYI Sarke, yesterday when I uninstalled 1.09 and reinstalled 1.08 I noticed that both modifications.english.php codes were there. I tested it on two different forums.
Quote from: MinasC on March 09, 2007, 12:54:11 PM
well i just realised i can't attach to pms so here it is !!!
I need your ManagePermissions.php
Quote from: RoarinRow on March 09, 2007, 01:19:53 PM
FYI Sarke, yesterday when I uninstalled 1.09 and reinstalled 1.08 I noticed that both modifications.english.php codes were there. I tested it on two different forums.
You mean that the code from both 1.08 and 1.09 was there? Did it give you an error when you uninstalled 1.09?
FYI, Stirred confirmed that 1.09 is working like expect.
Quote from: Sarke on March 09, 2007, 11:19:48 AM
If you have any invitees then there should be a number next to "Members Invited: " in the profile. Clicking that number will take you to the list, and currently that is the only way to get to the list.
here it is !!!
Do you always yell? :P
Looks like you've uninstalled 1.03 successfully. Install 1.09 even though it gives you the error in index.template.php and then follow these instructions:
http://www.simplemachines.org/community/index.php?topic=154999.msg998334#msg998334
Quote from: Sarke on March 09, 2007, 01:23:29 PM
Quote from: MinasC on March 09, 2007, 12:54:11 PM
well i just realised i can't attach to pms so here it is !!!
I need your ManagePermissions.php
Quote from: RoarinRow on March 09, 2007, 01:19:53 PM
FYI Sarke, yesterday when I uninstalled 1.09 and reinstalled 1.08 I noticed that both modifications.english.php codes were there. I tested it on two different forums.
You mean that the code from both 1.08 and 1.09 was there? Did it give you an error when you uninstalled 1.09?
FYI, Stirred confirmed that 1.09 is working like expect.
Quote from: Sarke on March 09, 2007, 11:19:48 AM
If you have any invitees then there should be a number next to "Members Invited: " in the profile. Clicking that number will take you to the list, and currently that is the only way to get to the list.
yes both codes were there and it did not give an error message when i uninstalled 1.09 or reinstalled 1.08.
Quote from: Sarke on March 09, 2007, 01:36:52 PM
Do you always yell? :P
Looks like you've uninstalled 1.03 successfully. Install 1.09 even though it gives you the error in index.template.php and then follow these instructions:
http://www.simplemachines.org/community/index.php?topic=154999.msg998334#msg998334
did installed 1.09 successfully , but before i do the changes you describe in that link , may i ask what they are for ??? i have the "invite" button showing in the menu and the "invite" submenu in admin>features and options , but i cannot see who invited who , and when i send an invite mail it doesn't get to the recipient !!! what should i do ?
Quote from: RoarinRow on March 09, 2007, 02:01:44 PM
yes both codes were there and it did not give an error message when i uninstalled 1.09 or reinstalled 1.08.
Strange, it hasn't happened to me. The code must have been left there after uninstalling 1.09, maybe because another mod changed the file too. You can just delete the extra code.
Quote from: MinasC on March 09, 2007, 02:02:43 PM
Quote from: Sarke on March 09, 2007, 01:36:52 PM
Do you always yell? :P
Looks like you've uninstalled 1.03 successfully. Install 1.09 even though it gives you the error in index.template.php and then follow these instructions:
http://www.simplemachines.org/community/index.php?topic=154999.msg998334#msg998334
did installed 1.09 successfully , but before i do the changes you describe in that link , may i ask what they are for ??? i have the "invite" button showing in the menu and the "invite" submenu in admin>features and options , but i cannot see who invited who , and when i send an invite mail it doesn't get to the recipient !!! what should i do ?
If you already have the invite button showing then there's no need to do that. I thought you said the install failed on that file? Are you using the default theme?
yes , but the "invite" button is there and the "invite" submenu in admin>features and options too !!! so , i don't need to make the changes in the index.template.php you said in the link ??? and what about i cannot see invitees (who invited who) and the registration mail doesn't go to the recipient ??? is there a solution there ???
)p.s. : thnx a lot for the incredible support !!!)
Are you getting any errors in the forum error log?
Quote from: Sarke on March 09, 2007, 02:14:31 PM
Quote from: RoarinRow on March 09, 2007, 02:01:44 PM
yes both codes were there and it did not give an error message when i uninstalled 1.09 or reinstalled 1.08.
Strange, it hasn't happened to me. The code must have been left there after uninstalling 1.09, maybe because another mod changed the file too. You can just delete the extra code.
yup i already did. just bumped into it by accident while fixing another mod.
no , none !!! it seems like it sends the mail but it doesn't !!!
where should i be able to see the invitees ?
Quote from: MinasC on March 09, 2007, 02:41:07 PM
no , none !!! it seems like it sends the mail but it doesn't !!!
Try sending it to yourself, and make sure the address is correct.
EDIT: Also, make sure it doesn't end up in a spam folder.
Quote from: MinasC on March 09, 2007, 02:41:07 PM
where should i be able to see the invitees ?
Click on the number next to "Members Invited:" in the profile summary.
i did try sending mail to myself but never came !!!
there is no "members invited" in the profile summary of any member !!!
STOP YELLING!
Has there been any members who have signed up using the invite key?
i am not yelling , it's just a habbit , sorry !
yes there have been but they where invited and registered while i had 1.03 installed .
Can you give me a link to your forum, and allow guests to view any invitees?
i sent you the link with pm ! give me a minute to change permissions !
i need to thank sarke for all the attention he has given to my little forum's problems mentioned in my previous posts !
my friend , my congrats on the support of your mods and , most of all , my congrats on your intention to help ! that's very rare nowadays !
I was wondering if there is a way to show the top 5 inviters in a block with Tiny Portal?
I also tip my hat to sarke
sarke .. great job.. i'm going to install it now :) fingers crossed :)
Installed the invite system. All works 100% not a problem at all!
Thanks!
Quote from: Lord Anubis on March 09, 2007, 09:30:50 PM
I was wondering if there is a way to show the top 5 inviters in a block with Tiny Portal?
This shouldn't be too hard. I'll post a code snippet either later tonight or most likely tomorrow.
Thanks for the kind words everyone. :)
Here's the code snippet for top 5 inviters for TP. It does not check permissions since you set this with the TP.
global $user_profile, $db_prefix, $scripturl;
$request = db_query("
SELECT ID_MEMBER, COUNT(*) as invitees
FROM {$db_prefix}invites
WHERE ID_REGISTRATION != 0
GROUP BY ID_MEMBER
ORDER BY invitees
LIMIT 5
", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($request))
{
$top_inviters[$row['ID_MEMBER']] = $row['invitees'];
}
mysql_free_result($request);
echo '
<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">';
foreach ($top_inviters as $id => $invitees)
if(loadMemberData(array($id)))
{
if (!empty($user_profile[$id]['member_group_color']))
$color = ' style="color: ' . $user_profile[$id]['member_group_color'] . '"';
elseif (!empty($user_profile[$id]['post_group_color']))
$color = ' style="color: ' . $user_profile[$id]['post_group_color'] . '"';
else
$color = '';
echo '
<tr>
<td><a href="', $scripturl, '?action=profile;u=', $id, '"><span', $color, '>', $user_profile[$id]['realName'], '</span></a></td>
<td align="right"><a href="', $scripturl, '?action=mlist;sa=search;inviter=', $id, '">', $invitees, '</a></td>
</tr>';
}
echo '
</table>';
please add it to the next version
Quote from: mgaidia on March 10, 2007, 03:56:39 AM
please add it to the next version
The code blocks for TP are entered manually (it's easy enough to copy+paste), and TP is not part of the regular SMF. However, there will be an addition to the stats page in the coming version.
Thanks for the block code works like a charm!
1.10 is out, with stats.
I also included the top inviter code in a function, so it's now easier to implement as block code and change. Here's the new block code:
global $sourcedir;
require_once($sourcedir . '/Invite.php');
$top_inviters = top_inviters(5);
echo '
<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">';
foreach ($top_inviters as $id => $inviter)
echo '
<tr>
<td>', $inviter['name'], '</td>
<td align="right">', $inviter['invitees'], '</a></td>
</tr>';
echo '
</table>';
Man I had JUST installed 1.9 five minutes before you posted 1.10, I was on my way to say thanks for a great mod and found 1.10
So, THANKS! I love it.
I'm assuming that's a php block for TP? Please excuse my ignorance.
Quote from: texasflats on March 10, 2007, 08:47:37 PM
So, THANKS! I love it.
You're welcome! :D
Quote from: texasflats on March 10, 2007, 08:47:37 PM
I'm assuming that's a php block for TP? Please excuse my ignorance.
Correct, but it can also be used in other situations (like SSI pages, etc).
Yeah, you're really on a role w/this thing. Nice job.
Sorry Sarke I've got this error with version 1.10 on the default theme:
2: arsort() expects parameter 1 to be array, null given
File: /forum/Sources/Invite.php
Line: 476
Quote from: RoarinRow on March 10, 2007, 10:08:00 PM
Sorry Sarke I've got this error with version 1.10 on the default theme:
2: arsort() expects parameter 1 to be array, null given
File: /forum/Sources/Invite.php
Line: 476
Ah crap, I pulled the old "forgot to initialise the array in case it's empty" routine... I'll have a fix up in a bit.
P.S. 300 is awesome.
Ok, 1.11 is up, with the only change being the fix (hopefully :P) for what RoarinRow posted. I included an upgrade, so you don't need to uninstall 1.10 but you can just install right on top of it.
Quote from: Sarke on March 11, 2007, 12:44:42 AM
Ok, 1.11 is up, with the only change being the fix (hopefully :P) for what RoarinRow posted. I included an upgrade, so you don't need to uninstall 1.10 but you can just install right on top of it.
ok sweet, i'll test it out. FYI - we'll be watching '300' tomorrow on IMAX. 8)
ok it fixed that error, thanks. but even in 1.10 i could not see the who invited the member in the user's profile template or in the member's list. i checked the codes and it's there in profile.tempate.php and memberlist.php, but it's not there when i got to those pages. any idea?
Judging by the error you got (empty array), you don't have any invited members yet. This will only show up in the profile if there is any info to show.
One thing I noticed with the block code is that if you register someone and delete them it still shows that up that they invited someone...Where is the database for this at so I can manually delete these entries. Also, the profile and the member list aren't showing any links for invitees, even when the person's account has invitees...Any idea why this might be? In 1.08 it worked ???
Quote from: Lord Anubis on March 11, 2007, 01:47:19 AM
One thing I noticed with the block code is that if you register someone and delete them it still shows that up that they invited someone...Where is the database for this at so I can manually delete these entries.
Yes, it does count deleted members (but doesn't try to display them). Some will want this (e.g. they should still get credit for the invite, even though the member was eventually deleted), and some will not. It was done this way because of the work (both programming and server processing) required to filter out the deleted members. In a future version I'll probably include an option for it.
To delete these, find and delete the rows in the smf_invite table where the ID_REGISTRATION are that of the deleted members.
I also noticed that I forgot to sort the block code. This will be fixed in the next version.
Quote from: Lord Anubis on March 11, 2007, 01:47:19 AM
Also, the profile and the member list aren't showing any links for invitees, even when the person's account has invitees...Any idea why this might be? In 1.08 it worked ???
Not sure why this is. Does your theme have a custom Profile.template.php? If not, can you send me your Profile.template.php?
You can still reach the member list of invitees by clicking on the number in the block code.
No the theme doesn't have a custom Profile.template.php it uses the default...
Attached is the profile.template.php
Haha, sorry but I have to laugh (not at you, just the cause and solution being so simple). I've been trying to figure out what could possibly be wrong but this sure explains it: you've commented out the part of the code.
I looks like you made a copy of parts of the code and made changes to it (the karma part) while leaving the original commented out. So the changes the mod made were applied but they were inside the commented area and weren't being run.
Here, try using this:
Works now thanks ;)
installed 1.09 lol and installed 1.11 amazing! no issues love the new stats! lol works great no errors on the install or anything.. flawless!
Good to hear!
I figured the admins keeping score for the top members could use the invitees' posts stat. The only reason I came up with that though was because it would look wierd having an empty box in the stats page. :P
Cool Sarke! I copied the code from your attached profile.template.php and put it into my modified file and now everything shows as it should.
Thanks for all your hard work! 8)
Quote from: Sarke on March 11, 2007, 12:44:42 AM
Ok, 1.11 is up, with the only change being the fix (hopefully :P) for what RoarinRow posted. I included an upgrade, so you don't need to uninstall 1.10 but you can just install right on top of it.
i have 1.05 installed ! do i have to uninstall it or the upgrade works with 1.05 too ? can i install right on top of it ?
Interesting, it seems both of you have the Karma Description mod installed and it is what, simply put, messed that section up. Quite an intrusive mod.
Quote from: MinasC on March 11, 2007, 07:44:28 PM
Quote from: Sarke on March 11, 2007, 12:44:42 AM
Ok, 1.11 is up, with the only change being the fix (hopefully :P) for what RoarinRow posted. I included an upgrade, so you don't need to uninstall 1.10 but you can just install right on top of it.
i have 1.05 installed ! do i have to uninstall it or the upgrade works with 1.05 too ? can i install right on top of it ?
You need to uninstall 1.05 first. You can only upgrade from 1.10.
1.05 only gave me the option to delete , so i did (still it says "This package is already installed, and no upgrade was found!
You should uninstall the old version first to avoid problems, or ask the author to create an upgrade from your old version.
Please remember to always make regular backups of your sources and database before installing mods, especially beta versions.") ! installation of 1.11 returned error "test failed" in Profile.template.php ! should i go on with the installation ?
OK, I'm not helping you anymore. By deleting 1.05 instead of uninstalling it you've left all the code in there. You have to remove all the code manually now and then you can install it properly.
i'm sorry but as i already told you it didn't give me that option ! (why else would i delete it ?) is there much code left ?
lol.. what code would would i throw in my display to put like Invites:1 under the avatar section?
Quote from: MinasC on March 11, 2007, 08:10:25 PM
i'm sorry but as i already told you it didn't give me that option ! (why else would i delete it ?) is there much code left ?
Well there would be a reason for why it didn't give you that option. Although without knowing more about it I couldn't tell you why. Go to http://server.daniel15.com/smf/package.php, upload Invite_1.05.zip, and choose "Uninstall" and it will show you what to remove.
Quote from: 3mrhythm on March 12, 2007, 12:42:53 AM
lol.. what code would would i throw in my display to put like Invites:1 under the avatar section?
Are you talking about the invite credits, or members invited?
Quote from: Sarke on March 12, 2007, 09:20:55 AM
Quote from: 3mrhythm on March 12, 2007, 12:42:53 AM
lol.. what code would would i throw in my display to put like Invites:1 under the avatar section?
Are you talking about the invite credits, or members invited?
thnx a lot !!! i got 1.11 installed now !!! all seem to be working (except mailing off course , but that's minor) !!!
Sarke one new feature that I come to think off, is having the possibility to choose one group or members to have unlimited credits as the admin when there is a credit limit, i have it defined to 4.
I thought of this because I have a member that invites many active people and i'm the one who has to send the invites to him in order to send them to other people.
Quote from: Stirred on March 12, 2007, 08:30:45 PM
Sarke one new feature that I come to think off, is having the possibility to choose one group or members to have unlimited credits as the admin when there is a credit limit, i have it defined to 4.
I thought of this because I have a member that invites many active people and i'm the one who has to send the invites to him in order to send them to other people.
Good idea, I'll see if I can include that in a coming release.
I installed pervious versions on 2 different (but very similar) test sites. I installed v1.11 on my live site, and all the tests went through fine, but then:
QuoteFatal error: Cannot redeclare modifyinvitesettings() (previously declared in /***********/Sources/ModSettings.php:345) in /**********/Sources/ModSettings.php on line 352
lol. :'( Could I get some help w/this please? Thanks.
Looks like you have managed to install it twice. Uninstall it and then remove any extra code left from the duplicate.
Could I just remove some extra code in Modsettings.php?
Cause the only problem it seems to cause is that:
1) I have to "invite"s in my menubar
2) I can't access "Features and Options" in my admin center.
There will also be errors when members register. But it's your forum.
Hm. Ok, I'll go w/the uninstall. Hopefully no problems w/that. But I'll be back if there is. lol. Thanks for the help Sarke.
Quote from: Sarke on March 10, 2007, 08:01:54 PM
1.10 is out, with stats.
I also included the top inviter code in a function, so it's now easier to implement as block code and change. Here's the new block code:
global $sourcedir;
require_once($sourcedir . '/Invite.php');
$top_inviters = top_inviters(5);
echo '
<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">';
foreach ($top_inviters as $id => $inviter)
echo '
<tr>
<td>', $inviter['name'], '</td>
<td align="right">', $inviter['invitees'], '</a></td>
</tr>';
echo '
</table>';
thanks for this block code! 8)
Well, that was fun. :P
Now I just have to gather up the courage to re-install. lol.
Hey, that block code is to work w/TP after installing the mod, correct? (Thanks for that, too!)
What type of block do you put that in. I have tried php and script and it doesn't work for me.
Quote from: Bigguy on March 13, 2007, 06:21:52 PM
What type of block do you put that in. I have tried php and script and it doesn't work for me.
in a php block.
New version out, some significant additions.
1.12 (Mar 13, 2007)
- Changed how the mod works when "invitation only" isn't set; instead of invite keys, an inviter can use the same link several times.
- Added permission to grant membergroups unlimited credits.
- Fixed the top_inviter() function for block code so it sorts the inviters properly.
Quote from: Sarke on March 13, 2007, 07:49:26 PM
New version out, some significant additions.
1.12 (Mar 13, 2007)
- Changed how the mod works when "invitation only" isn't set; instead of invite keys, an inviter can use the same link several times.
- Added permission to grant membergroups unlimited credits.
- Fixed the top_inviter() function for block code so it sorts the inviters properly.
SWEET! Sarke you are the best! You included the karma mod so no changes were needed!!! Not just that you are on top of everything!!! Cant wait for your NEXT mod...
Thanks for the new additions they were exactly what I wanted ;)
Hey guys, I was editing out the code for this mod yesterday and I accidentally went a little too far. Does anyone know where that original bit of code goes? Thanks a lot. :D (I posted this whole big chunk for reference.)
</add>
</operation>
</file>
- <file name="$themedir/Stats.template.php" error="fatal">
- <operation error="fatal">
- <search position="replace" regexp="false" whitespace="exact">
- <![CDATA[ </tr><tr>
<td class="catbg" colspan="4"><b>', $txt['smf_stats_5'], '</b></td>
]]>
</search>
- <add>
- <![CDATA[ </tr><tr>
<td class="catbg" colspan="2" width="50%"><b>', $txt['top_inviters'], '</b></td>
<td class="catbg" colspan="2" width="50%"><b>', $txt['top_inviters_by_posts'], '</b></td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/stats_posters.gif" width="20" height="20" alt="" /></td>
<td class="windowbg2" width="50%" valign="top">
<table border="0" cellpadding="1" cellspacing="0" width="100%">';
foreach ($context['top_inviters'] as $inviter)
echo '
<tr>
<td width="60%" valign="top">', $inviter['link'], '</td>
<td width="20%" align="left" valign="top">', $inviter['num'] > 0 ? '<img src="' . $settings['images_url'] . '/bar.gif" width="' . $inviter['percent'] . '" height="15" alt="" />' : ' ', '</td>
<td width="20%" align="right" valign="top">', $inviter['num'], '</td>
</tr>';
echo '
</table>
</td>
<td class="windowbg" width="20" valign="middle" align="center" nowrap="nowrap"><img src="', $settings['images_url'], '/stats_posters.gif" width="20" height="20" alt="" /></td>
<td class="windowbg2" width="50%" valign="top">
<table border="0" cellpadding="1" cellspacing="0" width="100%">';
foreach ($context['top_inviters_by_posts'] as $inviter)
echo '
<tr>
<td width="60%" valign="top">', $inviter['link'], '</td>
<td width="20%" align="left" valign="top">', $inviter['num'] > 0 ? '<img src="' . $settings['images_url'] . '/bar.gif" width="' . $inviter['percent'] . '" height="15" alt="" />' : ' ', '</td>
<td width="20%" align="right" valign="top">', $inviter['num'], '</td>
</tr>';
echo '
</table>
</td>
</tr><tr>
<td class="catbg" colspan="4"><b>', $txt['smf_stats_5'], '</b></td>
]]>
Not sure what you're asking.
Whoa I tried to use 1.12 and something didn't work out right.
It installed without any failed test, however, when I went to Features and Settings, the page would not load.
I had to go back to Packages and uninstall the new package. I clicked on Features and Settings and I was able to see the page again, however, the 'Invite' tab was still there.
I went to my FTP program, and modified Modsettings.php and deleted the entries for the Invite Mod and re-upload. Although I uninstalled the package and there was no notifications of any failed tests, the uninstall did not clean up that file.
Also, when I checked on my Profile, the Profiletemplate.php was messed up somehow. I used a backup to restore that file.
Just a heads up Sarke.
Not sure why that would have happened, it's worked fine all the times I've uninstalled and reinstalled the different versions. When many mods are installed on top of each other sometimes it can give unexpected results. I would suggests cleaning out the code and then installing 1.12 fresh.
I need to put this back into my Stats.php (I accidentally erased it)
</tr><tr>
<td class="catbg" colspan="4"><b>', $txt['smf_stats_5'], '</b></td>
But I don't know where it goes.
Just look at the default stats.template.php
oh yeah. duh. Thanks. And btw, RoarinRow, I think that's the same problem I had.
Intersting. It sounds like both of you had a problem where it only removed the files added and didn't reverse the install properly. Again not sure why it would do that, but I think it goes beyond my mod.
Who knows. It probably does have to do w/mods messing each other up.
nevermind, I'm retarded.
Hehe, ok you wait here, I'll sort it out... :P
Starting on line 174 of the default Stats.template.php from SMF 1.1.2:
echo '
</table>
</td>
</tr><tr>
<td class="catbg" colspan="4"><b>', $txt['smf_stats_5'], '</b></td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/stats_history.gif" width="20" height="20" alt="" /></td>
<td class="windowbg2" colspan="4">';
if (!empty($context['monthly']))
{
Quote from: choloman05 on March 14, 2007, 02:26:48 PM
oh yeah. duh. Thanks. And btw, RoarinRow, I think that's the same problem I had.
I also had to reverse the code from Stats.template.php and Stat.php :o
Wait, you mean you had to switch the codes from Stats.template and Stats.php ?
Cause, I'm having a problem right now. Everything should be fine. But when trying to apply v1.12 now, I keep getting an error in Stats.template.php.
If you'll send me your stats.template.php I'll have a look at it.
Thanks a lot Sarke. It's comin.
btw- I have to say your support for your mod is top notch. Nice job.
Here ya go. sorry bout the wait.
You have spaces in some places where the default has tabs. Other than the whitespace yours is identical to the defult though, so I would suggest just uploading the deafult one.
Quote from: choloman05 on March 14, 2007, 03:22:18 PM
Wait, you mean you had to switch the codes from Stats.template and Stats.php ?
Cause, I'm having a problem right now. Everything should be fine. But when trying to apply v1.12 now, I keep getting an error in Stats.template.php.
Just finished going through the install package and deleting the mod that supposed cleared the uninstall tests. I'll wait awhile before installing again. Gotta do some clean up on my test site first.
Well I couldn't connect to smf for the past 5 minutes. ...
And, it worked, kinda. Unfortunately, I've got the double "invite"s in the menubar and the same problem with "Features and Options" as before. ????
Sounds like there was some code left from the previous install. All the code changes by this mod can be found by searching for "invite".
That's what it seems like. The weirder thing is that I took it all out manually. File by file.
Whatever though. I can still keep it working if I go through the files and edit any double code that might be there, right?
As long as all the duplicates are removed, sure.
Quote from: choloman05 on March 14, 2007, 03:54:10 PM
Well I couldn't connect to smf for the past 5 minutes. ...
And, it worked, kinda. Unfortunately, I've got the double "invite"s in the menubar and the same problem with "Features and Options" as before. ????
I'd recommended going through the install package and manually checking to see if the previous version was truely uninstalled.
Yeah, I did that last time, but I still had all this double-code showing up. I don't know why. I'm just getting things so that they work now.
Hey, anyone know which file I should edit specifically to get rid of those double "invite"s on the menubar - is that boardindex? Thanks. Nevermind. index.template
Quote from: choloman05 on March 14, 2007, 04:32:42 PM
Yeah, I did that last time, but I still had all this double-code showing up. I don't know why. I'm just getting things so that they work now.
Hey, anyone know which file I should edit specifically to get rid of those double "invite"s on the menubar - is that boardindex? Thanks.
Should be index.template.php
lol. Thanks RoarinRow.
Sarke you are doing an incredible job with this mod!
Thanks for making the membergroup permission real. =)
Thanks, and you're welcome. :D
6. Execute Modification ./Sources/ManagePermissions.php Test failed
thats the error i get.
running smf 1.1.2 / TP 0.9.7
Could you send me that file?
Thanks Sarke, this mod super.
Hey man, I got the same exact thing when I tried to uninstall. I went through the file and couldn't find the problems.
Does this only install on the default board or is it added to the menu? It is not showing up for me on my template which is just a copy of defualt with color changes?
It only installs on the default.
thanks, very great feature!!!
found a bug.. well not really a bug..
if you delete someone, the invitee list does not get updated.. so if they invited 1 person, and that person eventually gets deleted, it wlil still show 1 for the amount of invites, but will not show the persons name when you click then link
Yes, that is intended. As it is right now I don't want to have to go through the whole memberlist to check if the member is deleted or not (performence reason). In a future version I will most likely change how the information is stored and make this more feasible.
Besides, some people will most likely want to still get credit for inviting someone, even though they were eventually deleted.
thats a good point.. thanks for the response
I would like to see a feature that deletes every user invited by user that gets deleted. This should delete whole user-tree that's rooted in deleted user.
That's a pretty powerful deletion there. I'll think about it.
how do u give ppl invite credits??
like exactly the way how, like admin>something>something
I have another idea regarding deletion. There could be a list of several choices.
"What to do with users this user invited?
-> leave them alone (default)
-> delete them recursively
-> assign to:"
after choosing the last option a textbox could appear to enter the name of user.
Quote from: The_Abhorred on March 24, 2007, 01:54:39 AM
how do u give ppl invite credits??
like exactly the way how, like admin>something>something
It's in the readme file.
Quote from: Minder on March 24, 2007, 06:00:24 AM
-> delete them recursively
I can see this going very wrong for some people. I think the benefits are outweighed by the dangers.
Quote from: Minder on March 24, 2007, 06:00:24 AM
-> assign to:"
after choosing the last option a textbox could appear to enter the name of user.
What's the point of this? Why should someone else get credit for inviting them when they didn't?
thanks for the creator of this mod....it is very nice mod....
i have installed in modified theme and work perfectly....
i would like the inviter receive pm when the member invited has joined....
anybody can teach me how to modify and make it work?
your kindness will much appreciated....thanks
You have an error in your SQL syntax near 'character set utf8 NOT NULL default '',
PRIMARY KEY (ID_INVITE),
KEY ID_M' at line 6
File: /home/shadoe/public_html/smf/Packages/temp/db.php
Line: 16
is where it fails.
What's your MySQL version?
Hey Sarke, sorry to bother you about this but I just noticed that (after all the edits I had to do) When I go into "Features and Options", the "invite" link is there, but nothing happens when I click on it. I must have deleted something that I shouldn't have. Could you let me know what I need to make sure I have? Thanks
Go here:
http://modparser.dev.dansoftaustralia.net/index.php
Do the changes that apply to ModSettings.php
That's it - Modsettings.php. Thanks Sarke. I checked out that modparser too. That's a great idea. I can see it getting used a whole lot around here. Looked like it worked just fine too. Thanks again.
Hello!
I'm sorry not speaking a so good English, I'm French...
Then I tried to install the mod and it told me all is allright, but I don't find button nor administrative panel...
I use frech version of smf and dilbert mc Theme.
Could you please help me?
Thank you very much !
Bye bye
Quote from: Macfplus on March 30, 2007, 11:13:34 AM
Hello!
I'm sorry not speaking a so good English, I'm French...
Then I tried to install the mod and it told me all is allright, but I don't find button nor administrative panel...
I use frech version of smf and dilbert mc Theme.
Could you please help me?
Thank you very much !
Bye bye
You have to translate the english files into french and upload to your forum. I have the same problem. Alså use dilber mc but need the norwegian language. Have translated the files but don't know which folder to put the translated files in so that it will work on my forum. Maybe you can help me Sarke?
Yup, you need to translate it like Lemare said. Save them as
Themes/default/languages/Modifications.french.php
Themes/default/languages/Modifications.norwegian.php
Hello Sarke
I will move my posting in here since I found this thread. I am trying to upload my translated files to my forum but something is wrong. First of all: I use norwegian utf8 on my forum. In the themes/default/language files i can only find Modifications.norwegian-utf8.php an I put my translated files in there. But that didn't work. I got an errormessages when doing this. Look at my other post at
http://www.simplemachines.org/community/index.php?topic=160697.15 (http://www.simplemachines.org/community/index.php?topic=160697.15)
I have written some things in there you might take look at, so that I wont have to repeat it all here. Hope you will know what to do. Metallica has been very helpful but I think I am a little confused. Thought maybe you have experience with this since it is you mod so I ask you here instead. I have tried out his suggestion except the last one about deleting the dilber mc lanugage files from that theme and put them into default instead
I use the Dilber MC theme and v.1.1.2 of smf
The translation should go in the Themes/default/languages/Modifications.norwegian-utf8.php file.
It sounds like you tried the correct file, but got a syntax error. Could you post the file you tried?
Well, I translated the modifications file in the French one... It seems it's ok but:
I imagine the way to send an invitation is to go in our profile, yes? (I think so 'cause I see a blank line in my profile's menu)
But then, I don't see it in my profile nor anymhere else...
Did I forget something?
Thanks
You probably have to do some custom edits since you're using a custom theme.
would you know on which file I have to make these changes?
Thaks
Ok. These are the files I tried to upload
]<?php
// Version: 1.1; Modifications
Quote// Invite MOD.
$txt['invite_title'] = 'Inviter';
$txt['invite_only'] = 'Tillat kun registrering via epost.';
$txt['invite_menu_title'] = 'Invite menu title.';
$txt['invite_days'] = 'Antall dager før medlemmet får lov til å invitere igjen.<div class="smalltext">(0 for no limit, admins are exempt)</div>';
$txt['invite_max'] = 'Max antall invitasjoner.<div class="smalltext">(0 for ingen grense, admins er unntatt)</div>';
$txt['invite_expire'] = 'Antall dager en ivitasjonsnøkkel skal gjelde.<div class="smalltext">(0 for ingen grense)</div>';
$txt['invite_group_settings'] = 'Bestem gruppetillatelser for sending av inviteringer;
$txt['invite_email_disable'] = 'Slå av postefunksjon.';
$txt['invite_email_subject'] = 'E-post emne.';
$txt['invite_email_message'] = 'E-post melding.
<div class="smalltext">{invitee} = Mottakers navn</div>
<div class="smalltext">{inviter} = Avsenders nick</div>
<div class="smalltext">{forum} = Forum navn</div>
<div class="smalltext">{link} = Link til registreringsside(med nøkkel)</div>
<div class="smalltext">{message} = Melding fra avsender</div>';
$txt['invite_default_email_subject'] = '{invitee}, du har mottatt en invitasjon til {forum} fra {inviter}!';
$txt['invite_default_email_message'] = 'Hei {invitee},
Du har mottatt en invitasjon til {forum}, klikk på følgende link for å registrere deg:
{link}
{inviter} har også sendt deg følgende melding:
{message}
Denne meldingen er ikke søppelpost.';
$txt['invite_someone'] = 'Inviter en person';
$txt['invite_info'] = 'Du kan invitere en ny person, hvis du har invitasjonskreditt, ved å lage ny nøkkel og sende dem linken.';
$txt['invite_link'] = 'Du kan ivitere en ny person ved å sende følgende link.';
$txt['invitees'] = 'Inviterte';
$txt['invitees_info'] = 'Liste over medlemmer som du har invitert.';
$txt['no_invitees'] = 'Det er ingen iviterte å vise'. ;
$txt['invite_unlimited'] = 'ubegrenset';
$txt['invite_max_reached'] = 'max antall oppnådd';
$txt['make_new_invite_key'] = 'Lag ny invitasjonsnøkkel';
$txt['invite_credits'] = 'Invitasjonskreditt';
$txt['next_invite_credit'] = 'Neste kreditt';
$txt['invite_key'] = 'invitasjonsnøkkel';
$txt['invite_email'] = 'Invitasjons E-post';
$txt['invite_send_email'] = 'Send invitasjons e-post';
$txt['invite_expires'] = 'Utgår';
$txt['invited_by'] = 'Invitert av';
$txt['invitees_count'] = 'Inviterte medlemmer';
$txt['show_invitees'] = 'Vis medlemmer invitert av denne personen';
$txt['invite_email_info'] = 'Skriv inn epost og navnt til den personen du ønsker å invitere og en invitasjonslink vil bli sendt til dem.';
$txt['invite_recipient_name'] = 'Mottaker\'s navn';
$txt['invite_recipient_email'] = 'Mottaker\'s e-post';
$txt['invite_message'] = 'Personlig melding til mottaker';
$txt['invite_sent'] = 'Invitasjonen er sendt.';
$txt['invite_no_name'] = 'Du skrev ikke inn et navn.';
$txt['invite_no_email'] = 'Du skrev ikke inn en gyldig e-post adresse.';
$txt['cannot_send_invite'] = 'Beklager, invitasjonsnøkkelen ble ikke sendt(allerede sendt kanskje?).';
$txt['permissiongroup_invite'] = 'Inviter';
$txt['permissionname_invite'] = 'Inviter';
$txt['permissionhelp_invite'] = 'Dersom forumet blir satt til kun å akseptere registrering via invitasjon, vil denne tillatelsen la en medlemsgruppe få invitere andre til forumet slik at disse kan registrere seg.';
$txt['permissionname_invite_unlimited'] = 'Ubegrenset invitasjonskreditt';
$txt['permissionhelp_invite_unlimited'] = 'Når forumet er satt til kun å akseptere registrering via invitasjon, vil dette gjøre at en medlemsgruppe får ubegrenset invitasjonskreditt.';
$txt['permissionname_invitees'] = 'Vis inviterte';
$txt['permissionhelp_invitees'] = 'Denne vil vise en liste over hvor mange medlemmer brukeren har invitert til forumet.';
$txt['permissionname_invitees_own'] = 'Egne inviterte';
$txt['permissionname_invitees_any'] = 'Andre\'s inviterte';
$txt['cannot_invite'] = 'Beklager, du har ikke rett til å sende invitasjoner.';
$txt['cannot_invite_as_other'] = 'Beklager, du kan ikke sende invitasjoner som en annen.';
$txt['cannot_invitees_any'] = 'Beklager, du har ikke rett til å se denne brukerens inviterte medlemmer.';
$txt['registration_invite_only'] = 'Beklager, registrering er kun for inviterte.<br /><br />Hvis du har en gyldig invitasjonsnøkkel, vennligst skriv den inn nedenfo:<br /><form method="POST" action="index.php?action=register"><input type="text" name="invite_key" size="40"> <input type="submit" value="Register"></form>';
$txt['registration_invite_expired'] = 'Sorry, the invite key has expired.';
$txt['top_inviters'] = 'Top Inviterere (by Invitees)';
$txt['top_inviters_by_posts'] = 'Top Inviterere (av Inviterte\' Posts)';
// End Invite MOD.
?>
Lemare, there are some syntax errors at the end of these strings.
$txt['invite_group_settings'] = 'Bestem gruppetillatelser for sending av inviteringer;
should be
$txt['invite_group_settings'] = 'Bestem gruppetillatelser for sending av inviteringer';
and
$txt['no_invitees'] = 'Det er ingen iviterte å vise'. ;
should be
$txt['no_invitees'] = 'Det er ingen iviterte å vise.';
Quote from: Macfplus on April 02, 2007, 11:14:48 AM
would you know on which file I have to make these changes?
Thaks
Use http://modparser.dev.dansoftaustralia.net/index.php and choose "Theme Only"
Thank you Sarke. Invite is up an running now...
Looks great. I'll be watching this mod heavily.
i got this error....
The package you tried to upload either is not a valid package or has become corrupted.
..........................................
How to manually install the Database change.....can u give in sql format....
Quote from: sbm on April 05, 2007, 01:43:15 PM
i got this error....
The package you tried to upload either is not a valid package or has become corrupted.
chmod packages derectorie to 777
Awesome MOD, especially since my forum will be registration by invite only. However I'm having problems making the buttons show up properly. I've done the package parser thing, and tried to edit the file using the suggestions from page 5 of this topic but can't seem to make it work right.
Here is my file: http://www.dreamraver.com/forum/Themes/Aa_New_Damage/index.template.php
any help would be greatly appreciated...
Also, I have another theme that when I do the package parser thing, I can't find the sections of code i'm supposed to look for at all.
http://www.dreamraver.com/forum/Themes/Red_Darkness_Theme/index.template.php
Thanks again
PHP files can't be accessed directly. You can zip the files and attach it to the post.
ok here it is
Is there any way to send the invitation manually? I only need an example of this: "{link} = Link to registration page (with key)".
I need this because i'm on a free host with no smtp-support.
/jespereh
jespereh, yes there is; you can disable the mailing option.
Dream Raver, that's a custom theme that uses images for the menu buttons. You'll have to make a new image.
Quote from: Sarke on April 07, 2007, 11:55:19 PM
jespereh, yes there is; you can disable the mailing option.
Thank you very much sir :D
I have installed the mod but I am the only one who can see the Invite menu item, I'm an administrator. I went into permissions and clicked Modify, but there's nothing there about inviting.
EDIT: Fixed; didn't install it correctly :)
Actually, can someone tell me how I can edit the joomla-smf registration component to work with this mod?
Everything went smoothly, but I don't see anything in either Features and Options or in Manage Permissions. It is my first mod, and I am not smart enough to do anything fancy. Where did I go wrong?
It's hard to say without any information. Could you explain how you installed it?
Quote from: pieto on April 11, 2007, 01:28:52 PM
Everything went smoothly, but I don't see anything in either Features and Options or in Manage Permissions. It is my first mod, and I am not smart enough to do anything fancy. Where did I go wrong?
Do you use english on your forum?
I'm trying to install via the package installer, and keep getting an error with managepermissions.php in the test installation. Could someone take a look at it for me, pwetty pwease?
http://www.longwinterfarm.com/ManagePermissions (http://www.longwinterfarm.com/ManagePermissions)
I'm so excited to get this mod working! Thanks for making it available, Sarke!
Sarke - I installed the package but am not able to view the menu link - there were no errors during installation and I can't find the code I'm supposed to alter in my index... can you plz take a look and let me know what I need to do to get this operating - thnx.
http://www.urbaninjun.com/temp/index.template.zip
Forum version: SMF 1.1 RC3
Current SMF version: SMF 1.1.2
Quote from: Lemare on April 11, 2007, 04:39:52 PM
Quote from: pieto on April 11, 2007, 01:28:52 PM
Everything went smoothly, but I don't see anything in either Features and Options or in Manage Permissions. It is my first mod, and I am not smart enough to do anything fancy. Where did I go wrong?
Do you use english on your forum?
Yes, I do.
Quote from: Sarke on April 11, 2007, 02:04:34 PM
It's hard to say without any information. Could you explain how you installed it?
I downloaded the .zip file to my PC, and then used Package Manager to install it to to the SMF forum. I am using the Scribbles11 skin. As I said, everything went fine, only confirmation messages. The mod shows under "installed" mods. (It is the only one!)
See also Spy009's post above
Quote from: pieto on April 11, 2007, 11:59:59 PM
Quote from: Lemare on April 11, 2007, 04:39:52 PM
Quote from: pieto on April 11, 2007, 01:28:52 PM
Everything went smoothly, but I don't see anything in either Features and Options or in Manage Permissions. It is my first mod, and I am not smart enough to do anything fancy. Where did I go wrong?
Do you use english on your forum?
Ok. Then the language is not the problem. Sorry I couldn't be anymore help
Yes, I do.
Sarke - hey :)
Having a few probs with your mod, can you help??
I get this error when installing:
15. Execute Modification ./Themes/default/languages/Modifications.english.php Test failed
The file is attached... any good? Anything I can do to get it working?
Thanks in advance
UK ;)
Quote from: longwfarm on April 11, 2007, 06:20:31 PM
I'm trying to install via the package installer, and keep getting an error with managepermissions.php in the test installation. Could someone take a look at it for me, pwetty pwease?
http://www.longwinterfarm.com/ManagePermissions (http://www.longwinterfarm.com/ManagePermissions)
I'm so excited to get this mod working! Thanks for making it available, Sarke!
Anybody?
you just need to do that part of the installation manually. You have another mod that is confliction with this one, so you will manually need to adjust the code in the managepermissions file
For me it doesnt seem to be sending the invite key at all...just a normal link
http://www.domain.com/index.php?action=register;inviter=1
And when a user clicks on that link in there email....it just goes to the index...doesnt redirect to the registration page at all....ive tried uninstalling and reinstalling....its really strange.
When i first installed the mod it worked....but somethings gone weird on me.
Update:
If i select the option to register by invite only...I can send the key, and all seems to work properly...but if I allow straight board registration as well....thats when I run into the above problem.
Quote from: pieto on April 12, 2007, 12:05:23 AM
Quote from: Sarke on April 11, 2007, 02:04:34 PM
It's hard to say without any information. Could you explain how you installed it?
I downloaded the .zip file to my PC, and then used Package Manager to install it to to the SMF forum. I am using the Scribbles11 skin. As I said, everything went fine, only confirmation messages. The mod shows under "installed" mods. (It is the only one!)
However, after all that, the mod is invisible. Nohting under "Features and Options, nothing under "Registrations".
I have tried uninstalling and reinstalling. I also tried opening and closing my car's doors. Neither worked.
See also Spy009's post above
Anybody?
Quote from: pieto on April 15, 2007, 02:32:15 AM
However, after all that, the mod is invisible. Nohting under "Features and Options, nothing under "Registrations".
I have tried uninstalling and reinstalling. I also tried opening and closing my car's doors. Neither worked.
See also Spy009's post above
Anybody?
Have you cheked if it is visible in the default smf theme? You can switch over to default by writing "?theme=1" in the end of the URL. without the"" (in case you didn't know)
Quote from: Lemare on April 15, 2007, 01:01:37 PM
Quote from: pieto on April 15, 2007, 02:32:15 AM
However, after all that, the mod is invisible. Nohting under "Features and Options, nothing under "Registrations".
I have tried uninstalling and reinstalling. I also tried opening and closing my car's doors. Neither worked.
See also Spy009's post above
Anybody?
Have you cheked if it is visible in the default smf theme? You can switch over to default by writing "?theme=1" in the end of the URL. without the"" (in case you didn't know)
Quote from: Lemare on April 15, 2007, 01:01:37 PM
Quote from: pieto on April 15, 2007, 02:32:15 AM
However, after all that, the mod is invisible. Nohting under "Features and Options, nothing under "Registrations".
I have tried uninstalling and reinstalling. I also tried opening and closing my car's doors. Neither worked.
See also Spy009's post above
Anybody?
Have you cheked if it is visible in the default smf theme? You can switch over to default by writing "?theme=1" in the end of the URL. without the"" (in case you didn't know)
Yes, I have done.
pieto:
I belive you must do the modifying of the scribbles index.template.php manually. You will also have to make an invite button to your theme. You add the button in this file as well.
When it comes to missing sentences and words you might have to copy the $txt strings for Invite Mod to your languages folder of the scribbles theme here:
languages/ThemeStrings.english.php
I belive you will find the $txt strings for invite mod in here.
themes/default/languages/Modifications.english.php
Now, these are only guessings and thinkings so you should test it on a test forum or at least have good backup of you forum before doing this.
If you can't find the $txt strings I can get them for you an post them here.
Quote from: longwfarm on April 13, 2007, 07:24:21 PM
Quote from: longwfarm on April 11, 2007, 06:20:31 PM
I'm trying to install via the package installer, and keep getting an error with managepermissions.php in the test installation. Could someone take a look at it for me, pwetty pwease?
http://www.longwinterfarm.com/ManagePermissions (http://www.longwinterfarm.com/ManagePermissions)
I'm so excited to get this mod working! Thanks for making it available, Sarke!
Anybody?
I tried manually editing managepermissions.php, and received all kinds of syntax errors in the permissions section of the admin panel. "Unexpected "," in line 1072," "Something about lines in 1073" when I messed with the "," in 1072, etc. I majored in English, not code. Could someone please give me some detailed help?
Quote from: Lemare on April 16, 2007, 07:16:30 AM
pieto:
I belive you must do the modifying of the scribbles index.template.php manually. You will also have to make an invite button to your theme. You add the button in this file as well.
When it comes to missing sentences and words you might have to copy the $txt strings for Invite Mod to your languages folder of the scribbles theme here:
languages/ThemeStrings.english.php
I belive you will find the $txt strings for invite mod in here.
themes/default/languages/Modifications.english.php
Now, these are only guessings and thinkings so you should test it on a test forum or at least have good backup of you forum before doing this.
If you can't find the $txt strings I can get them for you an post them here.
This all seems too difficult for me. See the word "Simple" in "Simplemachines"
Pieto. I have noticed something. First I hav macromedia dremweaver to do the editing with but Dreamweaver does not seem to find this in the scribbles11 index.template.php:
// If the user is a guest, show [login] button
And that might be a broblem since that file has to be modified to make the invite button work.
U see this:
// Invite MOD.
if (allowedTo('invite'))
{
global $modSettings;
echo ($current_action == 'invite' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'invite' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=invite">' , (!empty($modSettings['invite_menu_title']) ? $modSettings['invite_menu_title'] : $txt['invite_title']) , '</a>
</td>' , $current_action == 'invite' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
}
Is supposed to be added before it.
I suggest you go to the scribbles11 theme thread if it is something like that in here and ask i that is correct. Maybe i am wrong. But it is very odd since the search function in dreamveawer can't find it.
Also I must add, I am new to this an might be wrong about the whole thing. But I rembember when I installed this mod, I had to do the editing manually to my themes index.template.php
Quote from: Lemare on April 17, 2007, 06:44:55 AM
Pieto. I have noticed something. First I hav macromedia dremweaver to do the editing with but Dreamweaver does not seem to find this in the scribbles11 index.template.php:
// If the user is a guest, show [login] button
And that might be a broblem since that file has to be modified to make the invite button work.
U see this:
// Invite MOD.
if (allowedTo('invite'))
{
global $modSettings;
echo ($current_action == 'invite' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'invite' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=invite">' , (!empty($modSettings['invite_menu_title']) ? $modSettings['invite_menu_title'] : $txt['invite_title']) , '</a>
</td>' , $current_action == 'invite' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
}
Is supposed to be added before it.
I suggest you go to the scribbles11 theme thread if it is something like that in here and ask i that is correct. Maybe i am wrong. But it is very odd since the search function in dreamveawer can't find it.
Also I must add, I am new to this an might be wrong about the whole thing. But I rembember when I installed this mod, I had to do the editing manually to my themes index.template.php
Thank you so much for all the trouble you have gone to. The problem is not scribbles11 related. I cahnged the theme to the standard vanilla smf theme, and I have no other mods installed.
Quote from: pieto on April 18, 2007, 12:56:56 AM
Quote from: Lemare on April 17, 2007, 06:44:55 AM
Pieto. I have noticed something. First I hav macromedia dremweaver to do the editing with but Dreamweaver does not seem to find this in the scribbles11 index.template.php:
// If the user is a guest, show [login] button
Have you solved your problem, then?
And that might be a broblem since that file has to be modified to make the invite button work.
U see this:
// Invite MOD.
if (allowedTo('invite'))
{
global $modSettings;
echo ($current_action == 'invite' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'invite' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=invite">' , (!empty($modSettings['invite_menu_title']) ? $modSettings['invite_menu_title'] : $txt['invite_title']) , '</a>
</td>' , $current_action == 'invite' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
}
Is supposed to be added before it.
I suggest you go to the scribbles11 theme thread if it is something like that in here and ask i that is correct. Maybe i am wrong. But it is very odd since the search function in dreamveawer can't find it.
Also I must add, I am new to this an might be wrong about the whole thing. But I rembember when I installed this mod, I had to do the editing manually to my themes index.template.php
Thank you so much for all the trouble you have gone to. The problem is not scribbles11 related. I cahnged the theme to the standard vanilla smf theme, and I have no other mods installed.
Can anyone help me install this using the smf+joomla bridge? It's all installed but I don't know what to change in the register file.
Quote from: MiCCAS on April 18, 2007, 11:21:15 PM
Can anyone help me install this using the smf+joomla bridge? It's all installed but I don't know what to change in the register file.
I would also greatly appreciate nay help in this regard.
I am using smf 1.12 with the default theme and just installed invite 1.13. It seemed to install satisfactorily however when I look in the admin panel under "features and options" I do not see any reference to invite. If I enter the following in browser
http://www.mydomain.com/smf/index.php?action=featuresettings;sa=invite
it does respond and shows a box with
invite_menu_title
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
invite_email_subject
invite_email_message
Any help is appreciated. Thanks.
chemdata, it looks like the language tafs didn't install. You'll have to do that manually.
Sarke thanks for quick feedback. What are the "language tafs" and where can I find it. Also where will I install them to. Sorry to ask you so many questions. If you can refer me to docs that cover this I can go there and read them. Once again thanks.
I found someone to help me manually alter managepermissions.php, and now the invite tab in features and options only shows up for certain administrators, not including myself. It's not a matter of uploading a graphic; the link simply is not present. When viewing the admin page on invites (by direct link) we can't see any text next to the fields. www.longwinterfarm.com/invitepanel.jpg (http://www.longwinterfarm.com/invitepanel.jpg) This is a screen shot of the problem. PLEASE HELP!
ETA: Oops, just saw the above post. Does that screen shot look familiar, chemdata? (I have no idea what "language tafs" are either, btw... :'()
Longwfarm, except for the color (mine is colorless) its exactly the same.
Quote from: chemdata on April 20, 2007, 11:39:10 AM
Longwfarm, except for the color (mine is colorless) its exactly the same.
Yeah, I've been trying to figure out how to change the pepto, but that's for another post...
I searched for "language taf*" in this forum and found nothing. Think it could have been a typo?
http://custom.simplemachines.org/mods/index.php?mod=55 ??? I'm just not nerdy enough for any of this!
Sorry, typo: language tags. It's not related to the mod you found. What you do is open up /Themes/default/languages/Modifications.english.php, and add this before the closing ?>
// Invite MOD.
$txt['invite_title'] = 'Invite';
$txt['invite_only'] = 'Only allow registrations through invitation.';
$txt['invite_menu_title'] = 'Invite menu title.';
$txt['invite_days'] = 'Number of days for members to get a new invite credit.<div class="smalltext">(0 for no limit, admins are exempt)</div>';
$txt['invite_max'] = 'Max number of invite credits.<div class="smalltext">(0 for no limit, admins are exempt)</div>';
$txt['invite_expire'] = 'Number of days for an invite key to be valid.<div class="smalltext">(0 for no limit)</div>';
$txt['invite_group_settings'] = 'Set group permission for sending invites';
$txt['invite_email_disable'] = 'Disable mailing feature.';
$txt['invite_email_subject'] = 'E-mail subject.';
$txt['invite_email_message'] = 'E-mail message.
<div class="smalltext">{invitee} = Recipient\'s name</div>
<div class="smalltext">{inviter} = Inviter\'s memebername</div>
<div class="smalltext">{forum} = Forum name</div>
<div class="smalltext">{link} = Link to registration page (with key)</div>
<div class="smalltext">{message} = Message by inviter</div>';
$txt['invite_default_email_subject'] = '{invitee}, you have received an invitation to {forum} by {inviter}!';
$txt['invite_default_email_message'] = 'Hi {invitee},
You have received an invitation to {forum}, click the following link to register:
{link}
{inviter} also sent this comment to you:
{message}
This message is not spam.';
$txt['invite_someone'] = 'Invite someone';
$txt['invite_info'] = 'You can invite someone new if you have invite credits by making a new key and sending them the link.';
$txt['invite_link'] = 'You can invite someone new by sending them the following link.';
$txt['invitees'] = 'Invitees';
$txt['invitees_info'] = 'The following list which members you have invited.';
$txt['no_invitees'] = 'There are no invitees to display';
$txt['invite_unlimited'] = 'unlimited';
$txt['invite_max_reached'] = 'max reached';
$txt['make_new_invite_key'] = 'Make new invite key';
$txt['invite_credits'] = 'Invite credits';
$txt['next_invite_credit'] = 'Next credit';
$txt['invite_key'] = 'Invite Key';
$txt['invite_email'] = 'Invitation E-mail';
$txt['invite_send_email'] = 'Send invitation e-mail';
$txt['invite_expires'] = 'Expires';
$txt['invited_by'] = 'Invited by';
$txt['invitees_count'] = 'Members invited';
$txt['show_invitees'] = 'Show members invited by this person';
$txt['invite_email_info'] = 'Enter the name and email of the person you wish to invite, and the invite link will be sent to them.';
$txt['invite_recipient_name'] = 'Recipient\'s name';
$txt['invite_recipient_email'] = 'Recipient\'s e-mail';
$txt['invite_message'] = 'Personal message to recipient';
$txt['invite_sent'] = 'The invitation has been sent.';
$txt['invite_no_name'] = 'You did not enter a name.';
$txt['invite_no_email'] = 'You did not enter a valid e-mail address.';
$txt['cannot_send_invite'] = 'Sorry, the invite key could not be sent (already sent maybe?).';
$txt['permissiongroup_invite'] = 'Invite';
$txt['permissionname_invite'] = 'Invite';
$txt['permissionhelp_invite'] = 'When the forum is set to accept registrations by invitation only, this permission will allow a membergroup to invite people to the forum so they can register.';
$txt['permissionname_invite_unlimited'] = 'Unlimted invite credits';
$txt['permissionhelp_invite_unlimited'] = 'When the forum is set to accept registrations by invitation only, this permission will allow a membergroup to have unlimited invite credits.';
$txt['permissionname_invitees'] = 'View invitees';
$txt['permissionhelp_invitees'] = 'This will show a list of members that the user has invited to the forum using the Invite MOD.';
$txt['permissionname_invitees_own'] = 'Own invitees';
$txt['permissionname_invitees_any'] = 'Any invitees';
$txt['cannot_invite'] = 'Sorry, you\'re not allowed to send invitations.';
$txt['cannot_invite_as_other'] = 'Sorry, you can\'t send invitations as someone else.';
$txt['cannot_invitees_any'] = 'Sorry, you\'re not allowed to view this member\'s invitees.';
$txt['registration_invite_only'] = 'Sorry, registration is by invitation only.<br /><br />If you have a valid invite key enter it below:<br /><form method="POST" action="index.php?action=register"><input type="text" name="invite_key" size="40"> <input type="submit" value="Register"></form>';
$txt['registration_invite_expired'] = 'Sorry, the invite key has expired.';
$txt['top_inviters'] = 'Top Inviters (by Invitees)';
$txt['top_inviters_by_posts'] = 'Top Inviters (by Invitees\' Posts)';
// End Invite MOD.
Thank you, thank you, thank you! I'll try it now.
Nope, the code was already there...
I added the code to Modifications.english-utf8.php and it works! But, the main (non-admin) link bar does not include "invite". I thought the two problems were connected, but I guess not! Is it a matter of creating a button?
Quote from: longwfarm on April 20, 2007, 12:13:06 PM
I added the code to Modifications.english-utf8.php and it works! But, the main (non-admin) link bar does not include "invite". I thought the two problems were connected, but I guess not! Is it a matter of creating a button?
http://www.simplemachines.org/community/index.php?topic=154999.msg998334#msg998334
The code is already there in my version of Modifications.english.php also.
Quote from: chemdata on April 20, 2007, 01:25:42 PM
The code is already there in my version of Modifications.english.php also.
You might be using English-utf8, in which case the file is Modifications.english-utf8.php
Sarke you are correct when I read your reply to longwfarm I entered it in modifications.english-utf8.php and it works. My problems seem to be the same as longwfarms so I will just follow along from your instructions to her. Thanks to you and longwfarm.
Sarke thank you very much for the help. I finally went back and made the suggested modifications to the index.template.php and everything is working as it should be. Once again thanks for the help. Great mod as it does exactly what I needed, namely to allow registration by invitation only. Once again thanks.
You're welcome! :)
^ Me too!
Quote from: MattJ on April 14, 2007, 09:05:02 PM
Update:
If i select the option to register by invite only...I can send the key, and all seems to work properly...but if I allow straight board registration as well....thats when I run into the above problem.
ANyone got a solution for this, or am I the only one with this problem?...
Hey Sarke!
I had a new ideia for you mod, I have the late version working 100%!
Is it possible to have an area for guest to generate 10 (specific number) free invites for every day (24h). I would like to give a chance to guests to go to a page similar that members have and able do create their own invite but restricted by X for every day so they must be fast to gain their key.
What do you guys think about this? It's like the old rapidshare.de thing.
Quote from: Sarke on March 09, 2007, 12:21:56 PM
Many themes use different code for the menu buttons (this wouldn't be a problem if SMF had a loop instead of each menu item on it's own, but anyways...). Here's an very general manual install of the menu button for most themes that will use the themes' own code.
1. Open index.template.php
2. Put 'invite' in the $context['current_action'] array.
if (in_array($context['current_action'], array('search', 'invite', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
$current_action = $context['current_action'];
3. Make a copy of the menu button code and insert it right after. The code block usually starts with
// the [member] list button
You should now have two "Members" buttons in the menu, right next to each other.
4. In the second block of code (the copy you just made), replace
// the [member] list button
if ($context['allow_memberlist'])
with
// Invite MOD.
if (allowedTo('invite'))
{
global $modSettings;
and add a closing curly bracket "}" after the code block.
5. In the same block of code, replace all occurances of
mlist
with
invite
Make sure you don't replace it in the entire document, but just this block of code.
6. In the same block of code, replace
$txt[331]
with
(!empty($modSettings['invite_menu_title']) ? $modSettings['invite_menu_title'] : $txt['invite_title'])
7. Save and you're done!
I was scared... but I did it... and it worked PERFECTLY! THANK YOU SOOOO MUCH! Here's what the END result of my code looks like:
// Invite MOD
if (allowedTo('invite'))
{
global $modSettings; echo' <td valign="top" class="mentab_' , $current_action == 'invite' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=invite">' , (!empty($modSettings['invite_menu_title']) ? $modSettings ['invite_menu_title'] : $txt['invite_title']) , '</a>
</td>';
}
hi sarke , thanks for making such a great mod!
i been having trouble modifying it so that after registration it gives the referral some points from the shop mod and karma , which some various weird effects ..i think i am putting the wrong fields somewhere , heres my modified code from register.php .strangely the administrator gets the points in the open invite mode and not with keys..my lack of php experience is not helpin :P maybe someone can help me out?
// Invite MOD; looks like registration went ok, let's mark the invite key as used and who it was used by.
if ($context['invite_key'] !== false)
{
db_query("
UPDATE {$db_prefix}invites
SET ID_REGISTRATION = '$memberID'
WHERE inviteKey = '{$context['invite_key']}'
LIMIT 1", __FILE__, __LINE__);
}
elseif (!empty($_REQUEST['inviter']) && (int)$_REQUEST['inviter'] !== 0)
{
db_query("
INSERT INTO {$db_prefix}invites (ID_MEMBER, ID_REGISTRATION, inviteTime)
VALUES ('" . (int)$_REQUEST['inviter'] . "', '$memberID', " . time() . ")
", __FILE__, __LINE__);
if ($getID)
{
$ID = $getID['ID_MEMBER'];
$addMoney = 100;
db_query("
UPDATE {$db_prefix}members
SET money = money + '$addMoney'
WHERE ID_MEMBER = '$ID'
LIMIT 1", __FILE__, __LINE__);
}
}
hi Sarke
firstly i wanna thank u for this mod, i really need it, i installed it successfully and i fill the activation mail but no emails come to the receipent's email adress... can u plz help me?? i guess its about the forum webmaster email adress....
best regards
Hello, I have installed this mod on my SMF 1.1.2 board and it all seemed to go fine, all test were succesful and it told me it has installed. However When I go to "Features and Options" there is nothing there to do with invites or manage permissions. When I go to the features and options all i have is a 'basic features' tab, a 'layout and options' tab & a 'Karma' tab.
Have I installed it wrong? I installed it through the package manager.
preddy25, where are you getting $getID from? This will give you the inviter's id:
(int)$_REQUEST['inviter']
denislici, some people have had problems sending the email and I don't know why. My mod uses the SMF built in email sender. There is an option to disable the email, so if you can't get it to work then you can just disable it.
shinnster, which language are you using? Are there any errors in the forum error logs?
"preddy25, where are you getting $getID from? This will give you the inviter's id:"
isnt the inviter id getting the same value with ID_MEMBER in smf_members? if its wrong what should it be?
thanks!
Sarke I am trying to install this mod but keep getting this error.
any ideas. I am also running shop mod 3.0
Type Action Description
1. Extract File ./Sources/Invite.php
2. Extract File ./Themes/default/Invite.template.php
3. Execute Code db.php
4. Execute Modification ./index.php Test successful
5. Execute Modification ./Sources/ModSettings.php Test successful
6. Execute Modification ./Sources/ManagePermissions.php Test failed
7. Execute Modification ./Sources/Register.php Test successful
8. Execute Modification ./Sources/Memberlist.php Test successful
9. Execute Modification ./Sources/Stats.php Test successful
10. Execute Modification ./Sources/Profile.php Test successful
11. Execute Modification ./Themes/default/index.template.php Test successful
12. Execute Modification ./Themes/default/Profile.template.php Test successful
13. Execute Modification ./Themes/default/Stats.template.php Test successful
14. Execute Modification ./Themes/default/Register.template.php Test successful
15. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
help please.
I've got a problem with this; all my members seem to have unlimited credits. I've checked the user permissions, and they shouldn't. The configuration is set so they should only have two.
I'm not amazing at PHP, but I thought I'd have a quick look at Invite.php, and I found that if I changed $context['invite_credits'] to 2, it would appear that people would have 2, but they don't get deducted when creating a new invitation.
Any ideas?
It there a way to add how many invites someone has on their posts....
for instance under their avatar there would be:
Members Invited : #
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/shomazta/public_html/smf/Sources/ManagePermissions.php on line 1051
before it was unexpected ',' on line 1050 so I removed the ,...
now its that ^^^
HELP PLEASE!!!!
shomazta, try this one.
Anyone else having problems installing, use http://server.daniel15.com/smf/package.php
Hi,
I'm trying to use this mod with Leviathan theme but I'm unable to find where to edit in the index.template.php file. Please see attached file if you can help... I love this mod...
It works fine with the default theme.
Thanks in advance.
Quote from: Sarke on May 08, 2007, 12:44:44 AM
shomazta, try this one.
Anyone else having problems installing, use http://server.daniel15.com/smf/package.php
thanks alot =)
Quote from: bigmo on May 08, 2007, 02:14:43 PM
Hi,
I'm trying to use this mod with Leviathan theme but I'm unable to find where to edit in the index.template.php file. Please see attached file if you can help... I love this mod...
It works fine with the default theme.
Thanks in advance.
Nice, that theme does things the way SMF
should have made it (using variables and a loop). All you need to do is put
// invite button
$context['menubox'][]=array(
'title' => (!empty($modSettings['invite_menu_title']) ? $modSettings['invite_menu_title'] : $txt['invite_title']),
'link' => $scripturl.'?action=invite',
'chosen' => 'invite',
'memberonly' => true,
'guestonly' => false,
'permission' => allowedTo('invite'),
);
before
// login button - just for guests
Hi !! ,
I also get this error ..
./Sources/ManagePermissions.php Test failed
Can anyone help me ?
Thank You
in my installation all seems ok, all files tested sucessfull (see the attach)
but when i click install now appears this text:
QuoteFatal error: require() [function.require]: Failed opening required '/home/madleiloex/domains/pmteam.org/public_html/mixedminds/Packages/temp/./db.php' (include_path='.:/usr/local/lib/php') in /home/madleiloex/domains/pmteam.org/public_html/mixedminds/Sources/Packages.php on line 552
Plz help me :(
I know you will tell me to use parser but ... i already used .. and failed
GhoXt, that error is unreleated to my mod. I would suggest trying the support board.
Dear Sarke,
Can you help with my ManagePermissions.php ?
Thanks !! (9999999 times) ^_^
Quote from: Sarke on May 11, 2007, 08:48:52 PM
GhoXt, that error is unreleated to my mod. I would suggest trying the support board.
ok Sarke
I installed the mod fine and everything was succesful, the invite options are seen and all that. My problem is that when I go to the invite page and click on the invite key button I get this error:
Quote
Unable to verify referring url. Please go back and try again.
This mod is a must for me so any help would be appreciated. Also, I am using a custom theme but that link I've seen referred here isn't loading for me.
dork313, I'm not sure why that is because that error message is not in my mod. Also, nothing in my mod checks the reffering url, so it's most likely something else. Maybe another mod, or perhaps a security feature on your server?
any idea what that means as far as what is the referring url?
Hi Sarke !
Can you help me about this error
./Sources/ManagePermissions.php Test failed
I know it need to edit managepermissions.php but don't know edit which one...
Can you help me ?
Thanks !!! :)
1.14 is out. It only deals with installation and there are no new features, so unless you're having problems installing it, there's no need to upgrade.
Draco_Wolf, it looks like the mod is installed properly in that file.
dork313, I already replied. That error message is not from my mod.
Quote from: Sarke on May 15, 2007, 10:34:57 PMdork313, I already replied. That error message is not from my mod.
I was only asking if you maybe had an idea. Thanks for the help.
I install the packed
http://custom.simplemachines.org/mods/index.php?mod=653
and now i can not find any invitation option
please help....
(http://img216.imageshack.us/img216/5118/invitationproblemyz8.th.gif) (http://img216.imageshack.us/my.php?image=invitationproblemyz8.gif)
nimfosant, you need to translate it if you're using it for another language.
please go on
profil>>korisnicki racun>jezik>> and select english
registration entri is
user name:test
PASS:test
Ok... so, I've installed the Invite MOD... loving it... though,
I can't seem to find the list of invitees anywhere... help?
The list should be linked from the members profile, next to "Members invited:"
I don't see that... and I went through all of the code in the install.xml and the package-info.xml... and all of it is in there correctly... so, I have no clue why that's not working...
Can i suggest the removal of CREDITS and using only invitations on a per-days basis ? Also, i would love to have the 'Give invitations' button to give an amount of invitations (user or group or all).
This would probably be a HIT :)
Quote from: SchaOn on June 03, 2007, 02:25:30 PM
I don't see that... and I went through all of the code in the install.xml and the package-info.xml... and all of it is in there correctly... so, I have no clue why that's not working...
You probably have a custom theme that has it's own profile page, in which case you'd have to apply those template changes manually to that theme.
Quote from: madalin on June 03, 2007, 03:14:17 PM
Can i suggest the removal of CREDITS and using only invitations on a per-days basis ?
I'm not sure what you mean exactly.
Quote from: madalin on June 03, 2007, 03:14:17 PM
i would love to have the 'Give invitations' button to give an amount of invitations (user or group or all).
You mean from the admin? It has been suggested before, and it's something I might add depending on how I could implement it.
Great mod.. fits perfectly for what I need to do. I placed it on a test forum and it works perfectly, but when I placed it into production, all the options are there, it just wont generate an invite key. It just sits there and spins, giving up the ghost after a couple of minutes.
There are no other mods, and using the default theme. Any thoughts?
Thanks
Sarke, thanks a lot!!!!
Same problem here.
Installed flawless, but no "invite" link between "members" and "logout" in menu ...
see: http://programsofprofit.com/forum/index.php
Quid???
Other packages installed:
- TinyPortal 0.983
- Registered Links 1.0
- Ad Management 2.3
regards,
netwerker
Quote from: Sarke on June 04, 2007, 01:25:07 AM
I'm not sure what you mean exactly.
I mean, there should be no credits. There should be only invitations. As for, 3 credits would mean 3 invitations. Get my point ? What about the give invitations feature ?
Quote from: pman_jim on June 05, 2007, 07:14:45 PM
Any thoughts?
Quote from: verduyckt on June 06, 2007, 07:18:16 PM
Quid???
No idea, to either. Just try going through the code and see if it was actually installed. I've seen the SMF installer say "successful" when in fact it wasn't installed at all. Probably some sort of bug. Not sure what causes it though, since most people can install and use it fine.
Quote from: madalin on June 07, 2007, 09:45:21 AM
I mean, there should be no credits. There should be only invitations. As for, 3 credits would mean 3 invitations. Get my point ? What about the give invitations feature ?
"Invite credits", "invitations", what's the difference? Seems like you're only talking about semantics.
So if i have 4 invite credits let's say does this mean i can invite 4 persons ?
What about the GIVE invitations feature ?
Quote from: madalin on June 08, 2007, 10:25:46 AM
So if i have 4 invite credits let's say does this mean i can invite 4 persons ?
Yes.
Quote from: madalin on June 08, 2007, 10:25:46 AM
What about the GIVE invitations feature ?
Quote from: Sarke on June 04, 2007, 01:25:07 AM
Quote from: madalin on June 03, 2007, 03:14:17 PM
i would love to have the 'Give invitations' button to give an amount of invitations (user or group or all).
You mean from the admin? It has been suggested before, and it's something I might add depending on how I could implement it.
sarke, i'm having a problem.
i installed the mod. i edited the files manually as required. there is no menu option in the admin > features and options for the invites. i tried in every theme, including the smf default.
so i used the direct link that you provided somewhere on here to the index.php?action=featuresettings;sa=invite
on that page, a little blank spot for the menu button appears, but there's no text next to most of the fields, so i don't know what i'm supposed to have in there.
there's invite_menu_title and a field.
under that there are 3 fields preceded by what i assume is a checkbox.
under that there is another checkbox field and it has invite_email_subject and invite_email_message.
but it's those fields with no text that i don't understand. in fact, i'm not sure what to put in the invite_menu_title field either.
i haven't even looked at the other direct link to the permissions that you posted.
i'm so lost and confused!
Either you're using a language other than English, or the language tags didn't install properly.
hmmm. i'm using english, it's the only language i know... any suggestions on reinstalling the language tags? i'm having the same problem with another mod i just installed.
sarke,
i've doublechecked my edits to my theme's index.template.php file, and they are correct. the other files that the package parser said to edit aren't included in my theme's directory... but i DID manually edit (yesterday) the others in the default theme directory.
it appears that i'd duplicated what had been done automatically, so now the necessary strings of code are in each one twice. i'm about to fix that issue....
i'm just afraid that i'm going to remove the duplicate strings and still have the same issue to deal with, because i've already checked the other mod too, and i had not duplicated anything there because i'd not done any manual edits to it)... i'd run it automatically only and it had change the files accordingly.
could my duplication error with this mod possibly be affecting the other one too?
ok, i took out the duplicate strings of code and re-uploaded them, and it hasn't changed anything....
the files i edited were (as per the package parser) the index.template.php, register.template.php, stats.template.php and profile.template.php
you said the language tags didn't install properly... would those be in a language file? because i unzipped the mod onto my hard drive, and there were no language files in it. the files included in the zip were 3 php files, 2 xml files and one readme txt file... db, invite, invite.template, install and package info.
surprisingly there wasn't even an image file, which i would have expected for the menu tab... did i install the wrong version of this mod or something? (1.14)
ok, as per the install xml file, i opened up the english modifications file. it looks right to me...
<?php
// Version: 1.1; Modifications
$txt['miniclip'] = 'MiniClip';
$txt['youtube'] = 'YouTube';
$txt['avatar'] = 'Avatar';
// Invite MOD.
$txt['invite_title'] = 'Invite';
$txt['invite_only'] = 'Only allow registrations through invitation.';
$txt['invite_menu_title'] = 'Invite menu title.';
$txt['invite_days'] = 'Number of days for members to get a new invite credit.<div class="smalltext">(0 for no limit, admins are exempt)</div>';
$txt['invite_max'] = 'Max number of invite credits.<div class="smalltext">(0 for no limit, admins are exempt)</div>';
$txt['invite_expire'] = 'Number of days for an invite key to be valid.<div class="smalltext">(0 for no limit)</div>';
$txt['invite_group_settings'] = 'Set group permission for sending invites';
$txt['invite_email_disable'] = 'Disable mailing feature.';
$txt['invite_email_subject'] = 'E-mail subject.';
$txt['invite_email_message'] = 'E-mail message.
<div class="smalltext">{invitee} = Recipient\'s name</div>
<div class="smalltext">{inviter} = Inviter\'s memebername</div>
<div class="smalltext">{forum} = Forum name</div>
<div class="smalltext">{link} = Link to registration page (with key)</div>
<div class="smalltext">{message} = Message by inviter</div>';
$txt['invite_default_email_subject'] = '{invitee}, you have received an invitation to {forum} by {inviter}!';
$txt['invite_default_email_message'] = 'Hi {invitee},
You have received an invitation to {forum}, click the following link to register:
{link}
{inviter} also sent this comment to you:
{message}
This message is not spam.';
$txt['invite_someone'] = 'Invite someone';
$txt['invite_info'] = 'You can invite someone new if you have invite credits by making a new key and sending them the link.';
$txt['invite_link'] = 'You can invite someone new by sending them the following link.';
$txt['invitees'] = 'Invitees';
$txt['invitees_info'] = 'The following list which members you have invited.';
$txt['no_invitees'] = 'There are no invitees to display';
$txt['invite_unlimited'] = 'unlimited';
$txt['invite_max_reached'] = 'max reached';
$txt['make_new_invite_key'] = 'Make new invite key';
$txt['invite_credits'] = 'Invite credits';
$txt['next_invite_credit'] = 'Next credit';
$txt['invite_key'] = 'Invite Key';
$txt['invite_email'] = 'Invitation E-mail';
$txt['invite_send_email'] = 'Send invitation e-mail';
$txt['invite_expires'] = 'Expires';
$txt['invited_by'] = 'Invited by';
$txt['invitees_count'] = 'Members invited';
$txt['show_invitees'] = 'Show members invited by this person';
$txt['invite_email_info'] = 'Enter the name and email of the person you wish to invite, and the invite link will be sent to them.';
$txt['invite_recipient_name'] = 'Recipient\'s name';
$txt['invite_recipient_email'] = 'Recipient\'s e-mail';
$txt['invite_message'] = 'Personal message to recipient';
$txt['invite_sent'] = 'The invitation has been sent.';
$txt['invite_no_name'] = 'You did not enter a name.';
$txt['invite_no_email'] = 'You did not enter a valid e-mail address.';
$txt['cannot_send_invite'] = 'Sorry, the invite key could not be sent (already sent maybe?).';
$txt['permissiongroup_invite'] = 'Invite';
$txt['permissionname_invite'] = 'Invite';
$txt['permissionhelp_invite'] = 'When the forum is set to accept registrations by invitation only, this permission will allow a membergroup to invite people to the forum so they can register.';
$txt['permissionname_invite_unlimited'] = 'Unlimted invite credits';
$txt['permissionhelp_invite_unlimited'] = 'When the forum is set to accept registrations by invitation only, this permission will allow a membergroup to have unlimited invite credits.';
$txt['permissionname_invitees'] = 'View invitees';
$txt['permissionhelp_invitees'] = 'This will show a list of members that the user has invited to the forum using the Invite MOD.';
$txt['permissionname_invitees_own'] = 'Own invitees';
$txt['permissionname_invitees_any'] = 'Any invitees';
$txt['cannot_invite'] = 'Sorry, you\'re not allowed to send invitations.';
$txt['cannot_invite_as_other'] = 'Sorry, you can\'t send invitations as someone else.';
$txt['cannot_invitees_any'] = 'Sorry, you\'re not allowed to view this member\'s invitees.';
$txt['registration_invite_only'] = 'Sorry, registration is by invitation only.<br /><br />If you have a valid invite key enter it below:<br /><form method="POST" action="index.php?action=register"><input type="text" name="invite_key" size="40"> <input type="submit" value="Register"></form>';
$txt['registration_invite_expired'] = 'Sorry, the invite key has expired.';
$txt['top_inviters'] = 'Top Inviters (by Invitees)';
$txt['top_inviters_by_posts'] = 'Top Inviters (by Invitees\' Posts)';
// End Invite MOD.
?>
Looks fine. Do you have a Modifications.english-utf8.php file in the language dir?
yes, in the themes/default/languages...
sarke, i just removed my entire forum and started over from scratch.... fresh installation of smf 1.1.2.
i have not added any custom themes at all, and yours was the first mod i installed... and i'm getting the same exact problem! so, if something in the file you just mentioned can solve this problem, i'll be eternally grateful!
OMG you're a genius... or maybe i am... somebody is! for some reason when i installed the board it set the server settings for language to the english-utf8! all i had to do was edit that to the regular english, and it worked perfectly!
i could KISS you!
(but my husband would get jealous LOL)
bump for kisses ;D
And hey Sarke,
I'm getting these two errors. Especially strange I thought bc they're coming from a guest and guests cannot see the "invite" option.
2: arsort() expects parameter 1 to be array, null given
File: /****/Sources/Invite.php
Line: 457
2: Invalid argument supplied for foreach()
File: /****/Sources/Invite.php
Line: 458
I get that second error for lines 476 and 477 too.
Quote from: Sarke on March 09, 2007, 12:21:56 PM
Many themes use different code for the menu buttons (this wouldn't be a problem if SMF had a loop instead of each menu item on it's own, but anyways...). Here's an very general manual install of the menu button for most themes that will use the themes' own code.
1. Open index.template.php
2. Put 'invite' in the $context['current_action'] array.
if (in_array($context['current_action'], array('search', 'invite', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
$current_action = $context['current_action'];
3. Make a copy of the menu button code and insert it right after. The code block usually starts with
// the [member] list button
You should now have two "Members" buttons in the menu, right next to each other.
4. In the second block of code (the copy you just made), replace
// the [member] list button
if ($context['allow_memberlist'])
with
// Invite MOD.
if (allowedTo('invite'))
{
global $modSettings;
and add a closing curly bracket "}" after the code block.
5. In the same block of code, replace all occurances of
mlist
with
invite
Make sure you don't replace it in the entire document, but just this block of code.
6. In the same block of code, replace
$txt[331]
with
(!empty($modSettings['invite_menu_title']) ? $modSettings['invite_menu_title'] : $txt['invite_title'])
7. Save and you're done!
I did but no button shows up
I have just tried to install this and got the following:
Installations actions for "Invite":
Installing this package will perform the following actions: Type Action Description
1. Extract File ./Sources/Invite.php
2. Extract File ./Themes/default/Invite.template.php
3. Execute Code db.php
4. Execute Modification ./index.php Test successful
5. Execute Modification ./Sources/ModSettings.php Test successful
6. Execute Modification ./Sources/ManagePermissions.php Test successful
7. Execute Modification ./Sources/Register.php Test successful
8. Execute Modification ./Sources/Memberlist.php Test successful
9. Execute Modification ./Sources/Stats.php Test successful
10. Execute Modification ./Sources/Profile.php Test successful
11. Execute Modification ./Themes/default/index.template.php Test failed
12. Execute Modification ./Themes/default/Profile.template.php Test successful
13. Execute Modification ./Themes/default/Stats.template.php Test successful
14. Execute Modification ./Themes/default/Register.template.php Test successful
15. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
So at that point I stopped.
The mods I have installed are:
- 1. Ad Managment 2.3
- 2. User Control Panel By Alan S 1.1
- 3. SMF Achat ALPHA 0.2.0
- 4. User Email System 1.1.3
- 5. Googlebot & Spiders Mod 2.0.3
- 6. No Spam by Guests! 0.1
So is there a way to fix this so I can get it up and running quickly, cheers. Oh and before I go its the default template....
Ok I tried to install on default now, but still no button shows up,
sir i am having this always and i can't install it coz i file failed before the installation, how can i solve this problem? thanks
Installing this package will perform the following actions:
Type Action Description
1. Extract File ./Sources/Invite.php
2. Extract File ./Themes/default/Invite.template.php
3. Execute Code db.php
4. Execute Modification ./index.php Test successful
5. Execute Modification ./Sources/ModSettings.php Test failed
6. Execute Modification ./Sources/ManagePermissions.php Test successful
7. Execute Modification ./Sources/Register.php Test successful
8. Execute Modification ./Sources/Memberlist.php Test successful
9. Execute Modification ./Sources/Stats.php Test successful
10. Execute Modification ./Sources/Profile.php Test successful
11. Execute Modification ./Themes/default/index.template.php Test successful
12. Execute Modification ./Themes/default/Profile.template.php Test successful
13. Execute Modification ./Themes/default/Stats.template.php Test successful
14. Execute Modification ./Themes/default/Register.template.php Test successful
15. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
hey Sarke, is there a way to link this mod to the Karma system so that members can be rewarded based on "unique" invited guests that continue and register. The system can include a report showing each member plus a list of all invited guests and posts number of posts.
;D Only a suggestion.
Quote from: ibexy on June 18, 2007, 06:28:04 PM
hey Sarke, is there a way to link this mod to the Karma system so that members can be rewarded based on "unique" invited guests that continue and register.
Possibly, you'd have to make sure it doesn't affect the limits applied by the karma system.
Quote from: ibexy on June 18, 2007, 06:28:04 PM
The system can include a report showing each member plus a list of all invited guests and posts number of posts.
This is already included.
Quote from: Sarke on June 19, 2007, 12:09:03 AM
Possibly, you'd have to make sure it doesn't affect the limits applied by the karma system.
Dont understand what you mean here. How can I get the karma updating automatically?
Quote from: ibexy on June 18, 2007, 06:28:04 PM
The system can include a report showing each member plus a list of all invited guests and posts number of posts.
Am using a custom theme. I have got it working but cant see where to pull the reports except in Forum Statistics.
i installed, seems fine but i dont see any memebrs having points or anything to that extent. i made 0 days with 10 max and 7 days for it to be valid. site dragox.org any ideas?
i invited my self through a different email, cna see wher eit would show that i invited the user or anything? am i missing something?
@Sarke
hey this is great mod. i want this to be integrated with the upcoming releases. cheers.
just one question how to run db.php ?
Quote from: RaXavier69 on June 27, 2007, 01:31:57 AM
i invited my self through a different email, cna see wher eit would show that i invited the user or anything? am i missing something?
It shows up in the profile section
Great mod - thanks! :D
problem solved. how to limit registration only for invites ?
great mod!!!
is it possible to limit to how many credit a member from a certain membergroups from the post counts have.
Newbie: 2 Invites
Jr Member: 4 Invites
Member: 10 Invites
Advanced: 20 Invites
and so on
Quote from: GhoXt on July 02, 2007, 01:05:55 PM
how to limit registration only for invites ?
Check "Only allow registrations through invitation." It's sort of obvious...
Quote from: 05185736 on July 05, 2007, 02:53:25 AM
is it possible to limit to how many credit a member from a certain membergroups from the post counts have.
Not how it is now, no.
I didn't see this mentioned or asked for anywhere ...
I would love for a member to be able to invite someone to a specific group. This way they can invite someone and when they register they are automatically assigned to a primary group.
For example someone from group "A" has permission to invite someone to group "A" or group "C" and they can send an invitation to someone inviting them to the forum as a group "C" member. When the person gets the invite they follow the link to register and are automatically registered as a member of group "C"
Hope that made sense 8)
Not to mention that having it at all is great ;D
I'm having some problems sending invites on my forum. Here is what I get...
(http://img409.imageshack.us/img409/1743/scr4dc49eafc9.png)
This always happens when I try to send it. Any Ideas on how to fix this?
Thanks
hey man
i m using smf 1.1.3, theme dilber MC
so the prob is
i susscesfuly installed this package
BUT
i cant see anything on feature and option
and there is no invite link on navigation bar
any idea?
Quote from: Sarke on July 05, 2007, 10:58:42 PM
Quote from: GhoXt on July 02, 2007, 01:05:55 PM
how to limit registration only for invites ?
Check "Only allow registrations through invitation." It's sort of obvious...
i know its obvious lol, but the mod works great but dont apear none option like that at registration modes :(
(http://aycu18.webshots.com/image/20337/2002529405581661256_rs.jpg)
i searched through the forums but i couldn't find an answer to my question?
how can i fix the invite mod, if its broken that is. it gives me this invite error, after i try to send the invite key:
"An Error Has Occurred!
Sorry, the invite key could not be sent (already sent maybe?)."
can anyone help me with this?
Is it possible to make it ask the user to invite a defined number of people before they can complete there registration.
i think there should be a way to delete the invitations from "INTIVE" section. cause there are some invitations there and i cant delete em. by the way i really like this mod. Thank you.
Hey Sarke, How are u dude, I hope u remember me ( Owner of www.Da-Pirates.com ),
Is there any chance for Multiple invitations... by seperating email ids with comma.
can I put multiple emails in one invitation? like comma after an email.
SMF Version: SMF 1.1.3
hello,
I am using invite mod by sarge. But I saw that only one can email can be sended..
I mean, i want to send invites to my 50 friends.. So, I need to send 50 invites.. Is it possible to type all the emails in the "Recipent Email" box seperated by a semocolon or comma?
Any help would be appreciated..
Thanks in advance
and I want one more thing. as soon as some one registers .. i want him to redirect to this invite page so that he can invite his/her friends...
thanks and coolll.
I´m using the dilbermc theme as a default on the forum and I added this. on the default is working. I went to the default smf theme index.profile and copied the invite code that showed the link on index. then maked some changes and the link was showed on the dilbermc theme that I´m using but when the invite page is active the button is not showed as active. The code in the dilbermc index.profile is that way:
// Invite MOD.
if (allowedTo('invite'))
{
global $modSettings;
echo ($current_action == 'invite' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td align="center" class="menubg' , $current_action == 'invite' ? '2' : '' , '">
<a href="', $scripturl, '?action=invite">' , (!empty($modSettings['invite_menu_title']) ? $modSettings['invite_menu_title'] : $txt['invite_title']) , '</a>
</td>' , $current_action == 'invite' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
}
// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo'
<td align="center" class="menubg' , $current_action == 'login' ? '2' : '' , '">
<a href="', $scripturl, '?action=login">' , $txt[34] , '</a>
</td>';
// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo'
<td align="center" class="menubg' , $current_action == 'register' ? '2' : '' , '">
<a href="', $scripturl, '?action=register">' , $txt[97] , '</a>
</td>';
I´m just testing the forum on my pc without a host and when i try to send a inv this error is always showed:
An Error Has Occurred!
Sorry, the invite key could not be sent (already sent maybe?).
and it never send a mail. Registering with the code works perpect.
if someone already registered with a mail(I tried with mail never used and valids) it sent a messaqge saying that and denies the inv? and if the mail is not valid?
I want to add a option that the admin can add invites individualy to a user, it can be on the user profile page or in the admin control panel. what code I should add?
when you put 0 in this option:
Max number of invite credits.
(0 for no limit, admins are exempt):
it stop giving invs? if not what code I should add.
What code I should that makes that when a person is not logged he can only see the login page.
thanks
Quote from: ryuchio on July 12, 2007, 12:20:20 AM
i searched through the forums but i couldn't find an answer to my question?
how can i fix the invite mod, if its broken that is. it gives me this invite error, after i try to send the invite key:
"An Error Has Occurred!
Sorry, the invite key could not be sent (already sent maybe?)."
can anyone help me with this?
I got the same problem so I uninstalled this mod until it is fixed. I installed "Invite a Friend" for now which is very simple but works. I am still waiting for an update of this mod though.
this erros: "An Error Has Occurred!
Sorry, the invite key could not be sent (already sent maybe?)."
appear even when it´s hosted?
it´s showed always to me but I´m using it on my pc so I think it´s not possible to send the mail trough the pc.
Gentlemen please I need help,
I'm geting this error message each time i try to send new invitation " Sorry, the invite key could not be sent (already sent maybe?)"
It started just after i installed galery to my forum, i uninstalled the galery but the problem still remain, please help because most of members are by invitation, I'm using SMF 1.1.3 Defaut theme.
THANKS.
Thanks for this stunning mod :D
Finally a referral system that works great :D
Cheers mate :)
Hi I installed the mod, and it gives me a message that mod was succesfully installed. But in admin panel--features and options---there're isn't an INVITE button? what I did wrong? Also i'm using a different theme, to add an invite button would be the same as a default theme?
I have the same problem as above .. no "invite" buttons, im using the standard theme so dont understand what the problem could be .. PLEASE HELP .. its driving me crazy .. :)
Hello mates,
think this thing when you use a custom theme (also if based on the Core Theme):
A lot of mouse are for the default theme (Core Theme), so you have to add manually the button. Simply add the button using this syntax into Themes/YourTheme/index.template.php:
// the [invite] button
if ($context['allow_memberlist'])
echo ($current_action == 'invite' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'invite' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=invite">' , $txt[117] , '</a>
</td>' , $current_action == 'invite' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
Basically you have to add this syntax for every button you want.
Let opened the window of index.template.php
Then you have to set the name that appears on the button opening the Themes/default/languages/index.yourlanguage.php (where your languages index.english.php or index.italian.php).
Open this file with an editor like the Sciite (open source).
You'll simply set a cell of an array(correct me if i wrong) adding this:
$txt[117] = 'Invite';
Check obliviously if the $txt[117] is free or full..if there isn't in the file it is empty. If you want to add another thing, simply change the text into the apices ''. For example if you want that on the button there's written "Porcaccio mondo"
$txt[117] = 'Porcaccio mondo';
Save and exit. Remember to add the $txt[117] for every index.laguage_you_have.php
Then we have to call the action of the button. Specifically for the SMF Invite mod the action is called invite so change all the camps $current_action and $scripturl, '?action to invite, independently from what's writte into (this into index.tempalte.php).
Save and exit.
I don't know where understand how is setted the action of a specific mod..i simply go "a culo". :P
However also if you do this the invite mod gives the error "Sorry, the invite key could not be sent (already sent maybe?)."
And for this we have to wait some experienced user :)
bye bye,
F.
Quote from: JohnyB on July 28, 2007, 02:50:32 AM
Quote from: ryuchio on July 12, 2007, 12:20:20 AM
i searched through the forums but i couldn't find an answer to my question?
how can i fix the invite mod, if its broken that is. it gives me this invite error, after i try to send the invite key:
"An Error Has Occurred!
Sorry, the invite key could not be sent (already sent maybe?)."
can anyone help me with this?
I got the same problem so I uninstalled this mod until it is fixed. I installed "Invite a Friend" for now which is very simple but works. I am still waiting for an update of this mod though.
I had this too and this is what i did to get it back up....
First of all my mailing type was setup to smtp using the same setup for my email logins, instead of php....
then i disabled the mailing feature, saved, went back and re-enabled....now it works under smtp.
Quote from: GhoXt on July 10, 2007, 01:56:57 PM
Quote from: Sarke on July 05, 2007, 10:58:42 PM
Quote from: GhoXt on July 02, 2007, 01:05:55 PM
how to limit registration only for invites ?
Check "Only allow registrations through invitation." It's sort of obvious...
i know its obvious lol, but the mod works great but dont apear none option like that at registration modes :(
(http://aycu18.webshots.com/image/20337/2002529405581661256_rs.jpg)
It's not in the registration page, it's on the Invite mod's config page (under Features and Options).
Quote from: retire_young2005 on July 15, 2007, 10:40:40 PM
Is it possible to make it ask the user to invite a defined number of people before they can complete there registration.
No, that feature is not part of the mod, and I don't plan to add it. I don't see the point because why would someone want to invite someone else to a forum that they themselves can't be on? I don't see it being practical.
Quote from: PLAYBOY on July 17, 2007, 12:38:14 PM
i think there should be a way to delete the invitations from "INTIVE" section. cause there are some invitations there and i cant delete em.
Hmm.. I hadn't thought about deleting invitations. They will expire after a set time though. Something I might add in a future version.
Quote from: PLAYBOY on July 17, 2007, 12:38:14 PM
by the way i really like this mod. Thank you.
Thank you.
Quote from: kichu on July 21, 2007, 08:05:47 PM
Hey Sarke, How are u dude, I hope u remember me ( Owner of www.Da-Pirates.com ),
Is there any chance for Multiple invitations... by seperating email ids with comma.
Something I might add later on. Seems like a spam thing though...
Quote from: perro88 on July 27, 2007, 10:22:37 AM
I´m using the dilbermc theme as a default on the forum and I added this. on the default is working. I went to the default smf theme index.profile and copied the invite code that showed the link on index. then maked some changes and the link was showed on the dilbermc theme that I´m using but when the invite page is active the button is not showed as active.
http://www.simplemachines.org/community/index.php?topic=154999.msg998334#msg998334
Hi!
I've just installed this mod and it's working great! Thank you for it!
I have a suggestion. This mod would be just perfect if it would create a group to use in the forum boards.
This way only an invited member could access a specific board.
Ofcourse the invite (encrypted) key would have to be a part of any invitation.
Anyway..... Great job!
Thank you for this wonderful mod.
Quote from: pintas on August 17, 2007, 08:36:01 PM
Hi!
I've just installed this mod and it's working great! Thank you for it!
I have a suggestion. This mod would be just perfect if it would create a group to use in the forum boards.
This way only an invited member could access a specific board.
Ofcourse the invite (encrypted) key would have to be a part of any invitation.
Anyway..... Great job!
Thank you for this wonderful mod.
Thanks, and you're welcome.
I don't quite understand your suggestion though. Do you mean that the invited members should be put into a specific group, instead of no group? I'm not quite sure what you mean when you say it should create a group.
Yes, exactly.
Suppose you want to have a VIP zone in your forum. And only invited members could be a part of it.
You would invite a person, he would automatically be registered as a VIP and would have access to VIP zone (board of whatever).
How awsome would that be? ;)
Quote from: pintas on August 18, 2007, 08:45:52 PM
Yes, exactly.
Suppose you want to have a VIP zone in your forum. And only invited members could be a part of it.
You would invite a person, he would automatically be registered as a VIP and would have access to VIP zone (board of whatever).
How awsome would that be? ;)
WOW! tha sounds really cool actually...
Quote from: Sarke on March 09, 2007, 12:21:56 PM
Many themes use different code for the menu buttons (this wouldn't be a problem if SMF had a loop instead of each menu item on it's own, but anyways...). Here's an very general manual install of the menu button for most themes that will use the themes' own code.
1. Open index.template.php
2. Put 'invite' in the $context['current_action'] array.
if (in_array($context['current_action'], array('search', 'invite', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
$current_action = $context['current_action'];
3. Make a copy of the menu button code and insert it right after. The code block usually starts with
// the [member] list button
You should now have two "Members" buttons in the menu, right next to each other.
4. In the second block of code (the copy you just made), replace
// the [member] list button
if ($context['allow_memberlist'])
with
// Invite MOD.
if (allowedTo('invite'))
{
global $modSettings;
and add a closing curly bracket "}" after the code block.
5. In the same block of code, replace all occurances of
mlist
with
invite
Make sure you don't replace it in the entire document, but just this block of code.
6. In the same block of code, replace
$txt[331]
with
(!empty($modSettings['invite_menu_title']) ? $modSettings['invite_menu_title'] : $txt['invite_title'])
7. Save and you're done!
OKAY buddy ... this is really confusing ..... is say
QuotePut 'invite' in the $context['current_action'] array
i dun kno where do i hav to put "invite"
do u want me to put before $context ?
or in the bracket [current_action] ?
after the bracket ?
after ARRAY ?????
and rest of the stufff is confusing tooo ....
i've successfully installed this mod ... but i neeed to have a button on top tooo
i m using DILBER MC THEME, SMF 1.1.3 ...
plzzz help
Quote from: pintas on August 18, 2007, 08:45:52 PM
Yes, exactly.
Suppose you want to have a VIP zone in your forum. And only invited members could be a part of it.
You would invite a person, he would automatically be registered as a VIP and would have access to VIP zone (board of whatever).
How awsome would that be? ;)
Ah, so you want the invitER to get access to the group, not the invitED?
QuoteAh, so you want the invitER to get access to the group, not the invitED?
It actually works both ways. If you want to offer already VIP's the chance to invite someone else to the VIP zone it would also work.
What you think of it?
Will this Invite Mod also work when I have the language of my forum changed to Dutch?
Patrick.
can anyone plzz help me to put a INVITE button on top ............................. i m using dilber mc theme and smf 1.1.3
Quote from: verduyckt on August 19, 2007, 05:54:44 PM
Will this Invite Mod also work when I have the language of my forum changed to Dutch?
Patrick.
It logs some errors in german. i know that much but i guess thas because of the language files.
is there anyway we could do a mass invite at a time?
this mod will only invite one email/user at a time.
Quote from: verduyckt on August 19, 2007, 05:54:44 PM
Will this Invite Mod also work when I have the language of my forum changed to Dutch?
Patrick.
Bump!
Have a problem installing using SMF 1.1.3
1. Extract File ./Sources/Invite.php
2. Extract File ./Themes/default/Invite.template.php
3. Execute Code db.php
4. Execute Modification ./index.php Test successful
5. Execute Modification ./Sources/ModSettings.php Test successful
6. Execute Modification ./Sources/ManagePermissions.php Test successful
7. Execute Modification ./Sources/Register.php Test successful
8. Execute Modification ./Sources/Memberlist.php Test successful
9. Execute Modification ./Sources/Stats.php Test successful
10. Execute Modification ./Sources/Profile.php Test successful
11. Execute Modification ./Themes/default/index.template.php Test successful
12. Execute Modification ./Themes/default/Profile.template.php Test successful
13. Execute Modification ./Themes/default/Stats.template.php Test successful
14. Execute Modification ./Themes/default/Register.template.php Test successful
15. Execute Modification ./Themes/default/languages/Modifications.english.php Test failed
All fine until the last step.
Only entries in that file are from SMF Arcade.
Could I do this bit manually? It would be easy enough to copy and paste the relevant text from the install file into Modifications.english.php if that's all that needs doing to make it work.
I read this whole thread and couldn't find where i can view the attached window, i am using 1.1.3. the mod seams to work fine but i can't fine anywhere how to view the stats or report. Thanks in advance,
I noticed no activity here for a while, is this topic closed? this is a great mod and hate to see it abandoned. anyone can help, please see above post. thanks.
how can i give credit to each individual as many as i want?
I think there should be a way to set permissions for each individual.
What a dummy! never mind i found it, its in the Statistics Center. great mod, thank you Sarke.
I've installed this mod and can't find anything to say how to activate it (if I need to).
Any help please???
You should see an invite button in the to pmenu bar.
If you are using a custom theme, you may need to o some edits.
Hmmm...I am using the default theme, and there are no invite buttons appearing. I did notice that ther are four boxes in the permissions area with no text next to them, or a heading.
Okay,
When I look at the error logs, there are about a dozen or so errors dealing with various php files, but they all essentially refer to the same thing, as below:
8: Undefined index: invite_title
File: /home/webweave/public_html/forum/Themes/default/Themes.template.php (main_above sub template - eval?)
Line: 578
As I said, I am using the Default Theme: SMF Default Theme - Core.
Any help would be great, as I'd like to give the members invite priveleges.
Thanx,
Rhys
Quote from: arihantjain on July 25, 2007, 04:15:10 AM
SMF Version: SMF 1.1.3
hello,
I am using invite mod by sarge. But I saw that only one can email can be sended..
I mean, i want to send invites to my 50 friends.. So, I need to send 50 invites.. Is it possible to type all the emails in the "Recipent Email" box seperated by a semocolon or comma?
Any help would be appreciated..
Thanks in advance
and I want one more thing. as soon as some one registers .. i want him to redirect to this invite page so that he can invite his/her friends...
thanks and coolll.
I need the same modification. Does anyone know how to do the above modification??
This mod could well become the best smf mod.
If someone could please answer my previous posts, I might agree ;D
Rhys
ANY help for my previous post?
I want to add this but got an error message in Themes/default/Stats.template.php via the package manager. I went over and used the package parser to see what I needed to change and then looked at it. I found the code that I need to change but have a question. I also have the Enhanced Forum Statistics mod installed which is right in the code area that I need to change/replace. will there be any issues by replacing that section of code with the new? is anyone running both this mod with the Enhanced Statistics mod? any issues?
Hey guys, i installed this mod on the aa_new_damage, the installation went very well. But when i give a a invitation code to somone, it says its good the nlets them register and when they finished registering they press register it returns them to the place were it asks for the code before registering and tells them its wrong, it works well if i set my board to the default theme, please help me
Regards, JbOy4life
I'm looking at my code again and was wondering if someone would be kind enough to help me here. according to the package parser I need to replace this:
Quote</tr><tr>
<td class="catbg" colspan="4"><b>', $txt['smf_stats_5'], '</b></td>
with this:
Quote</tr><tr>
<td class="catbg" colspan="2" width="50%"><b>', $txt['top_inviters'], '</b></td>
<td class="catbg" colspan="2" width="50%"><b>', $txt['top_inviters_by_posts'], '</b></td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/stats_posters.gif" width="20" height="20" alt="" /></td>
<td class="windowbg2" width="50%" valign="top">
<table border="0" cellpadding="1" cellspacing="0" width="100%">';
foreach ($context['top_inviters'] as $inviter)
echo '
<tr>
<td width="60%" valign="top">', $inviter['link'], '</td>
<td width="20%" align="left" valign="top">', $inviter['num'] > 0 ? '<img src="' . $settings['images_url'] . '/bar.gif" width="' . $inviter['percent'] . '" height="15" alt="" />' : ' ', '</td>
<td width="20%" align="right" valign="top">', $inviter['num'], '</td>
</tr>';
echo '
</table>
</td>
<td class="windowbg" width="20" valign="middle" align="center" nowrap="nowrap"><img src="', $settings['images_url'], '/stats_posters.gif" width="20" height="20" alt="" /></td>
<td class="windowbg2" width="50%" valign="top">
<table border="0" cellpadding="1" cellspacing="0" width="100%">';
foreach ($context['top_inviters_by_posts'] as $inviter)
echo '
<tr>
<td width="60%" valign="top">', $inviter['link'], '</td>
<td width="20%" align="left" valign="top">', $inviter['num'] > 0 ? '<img src="' . $settings['images_url'] . '/bar.gif" width="' . $inviter['percent'] . '" height="15" alt="" />' : ' ', '</td>
<td width="20%" align="right" valign="top">', $inviter['num'], '</td>
</tr>';
echo '
</table>
</td>
</tr><tr>
<td class="catbg" colspan="4"><b>', $txt['smf_stats_5'], '</b></td>
in my themes/default/stats.template.php.
however my current code looks like this:
Quote</tr><tr>
<!-- //-Enhanced Forum Statistics MOD- Start -->
<td class="catbg" colspan="4"><b>', $txt['smf_stats_5'], '</b></td>
I'm sure this is a stupid question but how do I insert that bit of code with the enhanced forum statistics already there? I'm guessing its probably really easy but I don't want to mess up my board.
I installed your latest version on SMF latest version. The install seemed to go ok, all the files tested ok, but I have not Invite buttons any where! Features and Options does not have the buttons there for Invite or permissions.
Please advise. Thx
so has support for this mod stopped?
I guess it must have...I've been waiting ages for a reply!
I'm sorry if someone has already asked this, but I already tried searching "1.1.4" in this topic and it didn't come back with any result.
Does anyone know if this works on SMF 1.1.4? The description says it works on 1.1.1 and 1.1.2...
I encountered a problem! after i upgraded to 1.1.4 the invite record disappeared on the user information. it used to show who the user was invited by and who the user invited. what could have changed? the stats still displays okay in the stats center but nit in the use profile.
i am using the default theme.
As I have said in previous posts, I can't get the thing to work at all. I was on 1.1.3 and have upgraded to 1.1.4. I'm using the Default Theme. See previous posts for details of errors.
Thanx
This is one of the best mods, too bad no one is responding. i see so many an answered questions!
I agree that it sounds like a great mod. I have a small group on my forum, and would love to give the ability for members to invite people - I mean, let's face it, I don't quite know everyone in the world :P
I just hope someone can answer some of these questions...
Anyone knows if this mod has been abandoned?
I don't know. I'm still waiting in line for a response or answer to my question. :( It has been quite a while...
Where I can see who invite which member ??
I found:
Profile > Account Related Settings > Invited by (ID):
but can it be that there is writen username not ID ??
Quote from: Dumpling on October 12, 2007, 03:23:42 PM
I'm sorry if someone has already asked this, but I already tried searching "1.1.4" in this topic and it didn't come back with any result.
Does anyone know if this works on SMF 1.1.4? The description says it works on 1.1.1 and 1.1.2...
Yes, it works on 1.1.4, i tested and it's working 100% as it should on 1.1.4
Quote from: EZ Picker on October 05, 2007, 09:52:18 AM
I installed your latest version on SMF latest version. The install seemed to go ok, all the files tested ok, but I have not Invite buttons any where! Features and Options does not have the buttons there for Invite or permissions.
Please advise. Thx
http://www.simplemachines.org/community/index.php?topic=154999.msg998334#msg998334
That should work, if you need further help advise ;)
Sorry, it does not work 100% on 1.1.4, once i upgraded from 1.1.3 to 1.1.4 the info/stats on the user profile has disappeared! i can still see it in the stats but not on the user profile. it used to display who the user has invited and who the user was invited by, i don't see that anymore. anyone know how i can bring the stats to show on the user profile?
can u upgrade to 1.1.4?
Where I can find who is invited by who ?
Something like this:
Mike ------ Luke
|- Charlie
|- John
Philip ------- Lucy
|- George
|- Nik
In system like now is I'm confused.
Now I can see only, if someone register by invite code, an ID of person who invited him.
Quote from: shumar on October 31, 2007, 09:40:31 PM
Where I can find who is invited by who ?
Something like this:
Mike ------ Luke
|- Charlie
|- John
Philip ------- Lucy
|- George
|- Nik
In system like now is I'm confused.
Now I can see only, if someone register by invite code, an ID of person who invited him.
That should be in the user profile, unfortunately as soon as i upgraded from 1.1.3 to 1.1.4 that feature disappeared, i can still see how many have been invited in the forum stats but i can tell who invited who! i have been begging for a while for someone to help fix the code, but no luck, looks like this mod has been abandoned. Good luck
Tried installing the mod on a fresh 1.1.4. auto-package install went well:
QuoteInstalling this package will perform the following actions:
Type Action Description
1. Extract File ./Sources/Invite.php
2. Extract File ./Themes/default/Invite.template.php
3. Execute Code db.php
4. Execute Modification ./index.php Test successful
5. Execute Modification ./Sources/ModSettings.php Test successful
6. Execute Modification ./Sources/ManagePermissions.php Test successful
7. Execute Modification ./Sources/Register.php Test successful
8. Execute Modification ./Sources/Memberlist.php Test successful
9. Execute Modification ./Sources/Stats.php Test successful
10. Execute Modification ./Sources/Profile.php Test successful
11. Execute Modification ./Themes/default/index.template.php Test successful
12. Execute Modification ./Themes/default/Profile.template.php Test successful
13. Execute Modification ./Themes/default/Stats.template.php Test successful
14. Execute Modification ./Themes/default/Register.template.php Test successful
15. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
But, afterwards when I check in the Admin "Features and Options", I get this error message:
QuoteFatal error: Cannot redeclare modifyinvitesettings() (previously declared in /home/u1/darkmoebius/thesandlot/html/Sources/ModSettings.php:315) in /home/u1/darkmoebius/thesandlot/html/Sources/ModSettings.php on line 322
Any suggestions on how to fix this?
BTW, great mod.
I just found out that the Invite mod and the Karma Description Mod conflict. as soon as i install the Karma Description mod the feature that displays the stats for the invites in user profile disappears. one is conflicting with the other. unfortunately looks like this mod is abandoned, no updates for 1.1.4!
Can anyone actually give a definite answer? Does this MOD work or not? ???
Quote from: Paracelsus on November 07, 2007, 04:26:18 AM
Can anyone actually give a definite answer? Does this MOD work or not? ???
When i do new installs it works fine until i install the "Karma Description Mod" then it starts conflicting. i have installed many popular mods and none of then conflicted but these two did, the Karma Description Mod and Invite!
I have tried ti install this mod on 2 different boards...everything tests okay and seems to be fine, but I get errorss - please see my previous posts...I'm starting to look at other boards as I would like to have an invite feature.
Cheers
The Karma Description Mod is known to cause conflicts because of the way it is coded -- it doesn't change the original code but comments it out and adds it's own code separately (some of which is identical). This causes duplicate code (one of which is commented out) and when another mod tries to change anything that is in the same part as Karma Description then the second mod will fail (even though it might say success on install). A bad way of modding and coding.
I have contacted the Karma Description Mod author in the past about this issue, but I guess nothing has been done.
My mod has gone un-updated for a while now because of the constant support and time required to maintain a mod. The majority of problems stem not from the mod itself, but from issues relating to installation (conflict with other mods). It's simply not worth my time. I will not be supporting this mod in its current form, but might do something down the road with this.
Thank Sarke for the respond, i agree with you regarding the karma mod conflict. at least now we know where this mod stands.
Thanks,
I don't have any other mods installed, so still my answers go unanswered. I think I'll try a new forum altogether. The support here is not that great!
RhysJo, are you using custom theme?
No, I'm using the default theme as stated in previous posts.
Well i went back and read your posts, i too upgraded from 1.1.3 to 1.1.4 but things got screwy, so i installed a new SMF and imported the database and its working fine. you may have to install a new SMF. if you need help with that I'll be more than happy to do it. he is the advise i was given. try not to install too many mods, only the necessary ones. be careful with importing and exporting database, if you don't backup the database properly you will loose many things and it could cost you allots of money to fix it. i suggest that you install a new fresh copy and use a new database just to see how things work first and then you can do a the conversion or the move to the new install. let me know if you need help, I'll be more than happy to assist you. you can email me at
[email protected]
Quote from: RhysJo on November 08, 2007, 01:24:43 AM
I don't have any other mods installed, so still my answers go unanswered. I think I'll try a new forum altogether. The support here is not that great!
I haven't updated this mod since SMF 1.1.2 (as stated in the description), and I haven't tested it with any later versions.
Quote from: bassbass on November 08, 2007, 01:44:31 AM
i suggest that you install a new fresh copy and use a new database just to see how things work first and then you can do a the conversion or the move to the new install. let me know if you need help, I'll be more than happy to assist you. you can email me at [email protected]
Thanks for the offer, and I did try what you suggested, but it didn't work with a new installation. Nor, as I remember, did it work on 1.1.13. It is too much trouble, especially if the developer isn't going to support it anyway...
Again, thanks for your help...
Please help me....
I used a custom theme
I install the mod, make the modifications on index template and can see the inveti on top.
I send one invite to one friend.
That friend click on link with the key, write his nick, email and pass and click Ok.
The system show one message : "An Error Has Occurred!
Sorry, registration is by invitation only.
If you have a valid invite key enter it below: "
They write the key and see the same message?
Can you help me?
Is there a way to view all the members with their current number of successfully invited people in tables like the member list? I am having difficulty tracking the top 100 members who invite the most since the "more stats" shows only like top 10 people who invited
Thanks
I just installed this mod on SMF 1.1.4. with SMF Orangie template.
I found in first post how to add link in menu, but don't understand where to paste code for Top Inviters.
Can you help me to find where are "Top Inviters" ?
Can I have in admin panel TopInviters and
can eash user see in profile how many new users he invited ?
It works with all versions!
I have it running perfectly in my sites.
nikola8 the code is for TinyPortal Script Blocks.
Quote from: will888 on November 14, 2007, 02:25:18 PM
Is there a way to view all the members with their current number of successfully invited people in tables like the member list? I am having difficulty tracking the top 100 members who invite the most since the "more stats" shows only like top 10 people who invited
Thanks
Any updates...thanks
Hey Folks :)
I have massive problems to add the invitation mod to the insideBB Theme. The mod is working fine so far, if i enter the url by hand i.e. http://localhost/smf/index.php?action=invite
But i dont see a link in the upper menu. I can't get it to work because i dont know php that well. I also read the topics on how to add a mod manual. This won't help me, because the code in insideBB Theme is totally different from the examples.
Can someone please help me adding this to my index.template.php?
Many thanks in advance
<?php
// Version: 1.1; index
/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.
The init sub template should load any data and set any hardcoded options.
The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.
The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.
The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.
The menu sub template should display all the relevant buttons the user
wants and or needs.
For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/
// Initialize the template... mainly little settings.
function template_init()
{
global $context, $settings, $options, $txt;
/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';
/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';
/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1';
/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = false;
/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = false;
/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = false;
}
// The main sub template above the content.
function template_main_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '><head>
<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
<meta name="description" content="', $context['page_title'], '" />', empty($context['robot_no_index']) ? '' : '
<meta name="robots" content="noindex" />', '
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "', $settings['theme_url'], '";
var smf_images_url = "', $settings['images_url'], '";
var smf_scripturl = "', $scripturl, '";
var smf_iso_case_folding = ', $context['server']['iso_case_folding'] ? 'true' : 'false', ';
var smf_charset = "', $context['character_set'], '";
// ]]></script>
<title>', $context['page_title'], '</title>
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?fin11" media="print" />';
/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';
// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="', $scripturl, '?action=help" target="_blank" />
<link rel="search" href="' . $scripturl . '?action=search" />
<link rel="contents" href="', $scripturl, '" />';
// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="', $context['forum_name'], ' - RSS" href="', $scripturl, '?type=rss;action=.xml" />';
// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=next" />';
// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' . $scripturl . '?board=' . $context['current_board'] . '.0" />';
// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
</head>
<body>';
// The logo, user information, news, and menu.
echo '
<table cellspacing="0" cellpadding="0" border="0" align="center" width="900" background="', !empty($settings['header_logo_url']) ? $settings['header_logo_url'] : $settings['images_url'] . '/headerbg.png', '">
<tr>
<td height="141px"><div style="color:#f8f8f8; font-family: Georgia, sans-serif; font-size: 30px; margin-left:40px; margin-right:40px; float: left;">', $context['forum_name'], '</div></td>
<td style="color:#CCCCCC">';
// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
', $txt['hello_member'], ' <b>', $context['user']['name'], '</b>', $context['allow_pm'] ? ', ' . $txt[152] . ' <a href="' . $scripturl . '?action=pm" class="msg">' . $context['user']['messages'] . ' ' . ($context['user']['messages'] != 1 ? $txt[153] : $txt[471]) . '</a>' . $txt['newmessages4'] . ' ' . $context['user']['unread_messages'] . ' ' . ($context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1']) : '', '.';
// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '<br />
', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=viewmembers;sa=browse;type=approve" class="msg">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'];
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '<br />
<b>', $txt[616], '</b>';
}
// Otherwise they're a guest - so politely ask them to register or login.
else
echo '
', $txt['welcome_guest'];
echo '
<br />', $context['current_time'], '
</td>
</tr>
<tr>
<td colspan="2" height="45px" valign="middle" align="center">';
// Show the menu here, according to the menu sub template.
template_menu();
echo '
</td>
</tr>';
// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<tr class="windowbg2">
<td colspan="2" style="border-top: 1px solid #70A422; padding:10px; border-bottom: 1px solid #EBEBEB">
<b>', $txt[102], ':</b> ', $context['random_news_line'], '
</td>
</tr>';
echo '
</table>
<table cellspacing="0" cellpadding="10" border="0" align="center" width="900">
<tr><td valign="top" style="background-color: #ffffff;">';
}
function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;
echo '
</td></tr>
</table>';
// Don't show a login box, just a break.
echo '
<br />';
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '<table cellspacing="0" cellpadding="3" border="0" align="center" width="880">
<tr style="background-color: #ffffff;">
<td width="44%" valign="middle" align="center">
', theme_copyright(), '<p class="smalltext">Template Design By <a href="http://www.nunoguerra.com">Nuno Guerra</a></p>
</td>
</tr>
</table>';
// Show the load time?
if ($context['show_load_time'])
echo '
<div align="center" class="smalltext">
', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '
</div>';
// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;', $context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' : '', '">', $txt['ajax_in_progress'], '</div>';
// And then we're done!
echo '
</body>
</html>';
}
// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context, $settings, $options;
// Folder style or inline? Inline has a smaller font.
echo '<span class="nav"', $settings['linktree_inline'] ? ' style="font-size: smaller;"' : '', '>';
// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show the | | |-[] Folders.
if (!$settings['linktree_inline'])
{
if ($link_num > 0)
echo str_repeat('<img src="' . $settings['images_url'] . '/icons/linktree_main.gif" alt="| " border="0" />', $link_num - 1), '<img src="' . $settings['images_url'] . '/icons/linktree_side.gif" alt="|-" border="0" />';
echo '<img src="' . $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" /> ';
}
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];
// Show the link, including a URL if it should have one.
echo '<b>', $settings['linktree_link'] && isset($tree['url']) ? '<a href="' . $tree['url'] . '" class="nav">' . $tree['name'] . '</a>' : $tree['name'], '</b>';
// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];
// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo $settings['linktree_inline'] ? ' | ' : '<br />';
}
echo '</span>';
}
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;
// Show the [home] and [help] buttons.
echo '
<a href="', $scripturl, '" class="menu">', $txt[103] , '</a>', $context['menu_separator'], '
<a href="', $scripturl, '?action=help" class="menu">', $txt[119] , '</a>', $context['menu_separator'];
// How about the [search] button?
if ($context['allow_search'])
echo '
<a href="', $scripturl, '?action=search" class="menu">', $txt[182] , '</a>', $context['menu_separator'];
// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '
<a href="', $scripturl, '?action=admin" class="menu">', $txt[2] , '</a>', $context['menu_separator'];
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '
<a href="', $scripturl, '?action=profile" class="menu">', $txt[467] , '</a>', $context['menu_separator'];
// Invite someone
if ($context['allow_invite'])
echo '
<a href="', $scripturl, '?action=invite" class="menu">', $txt[45] , '</a>', $context['menu_separator'];
// The [calendar]!
if ($context['allow_calendar'])
echo '
<a href="', $scripturl, '?action=calendar" class="menu">', $txt['calendar24'] , '</a>', $context['menu_separator'];
// If the user is a guest, show [login] and [register] buttons.
if ($context['user']['is_guest'])
{
echo '
<a href="', $scripturl, '?action=login" class="menu">', $txt[34] , '</a>', $context['menu_separator'], '
<a href="', $scripturl, '?action=register" class="menu">', $txt[97] , '</a>';
}
// Otherwise, they might want to [logout]...
else
echo '
<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '" class="menu">', $txt[108] , '</a>';
}
// Generate a strip of buttons, out of buttons.
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
global $settings, $buttons, $context, $txt, $scripturl;
if (empty($button_strip))
return '';
// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . ($value['lang'] ? $context['user']['language'] . '/' : '') . $value['image'] . '" alt="' . $txt[$value['text']] . '" border="0" />' : $txt[$value['text']]) . '</a>';
$button_strip[$key] = $buttons[$key];
}
echo '
<td ', $custom_td, '>', implode($context['menu_separator'], $button_strip) , '</td>';
}
?>
a lil quest ... can we send request to multiple email one time ?????
and how many invitation we can send in one click .....
Is there a way to reset the invite database making all the inviter 0 having invitees to all members?
Quote from: NascarFan on November 19, 2007, 04:24:17 PM
Hey Folks :)
I have massive problems to add the invitation mod to the insideBB Theme. The mod is working fine so far, if i enter the url by hand i.e. http://localhost/smf/index.php?action=invite
But i dont see a link in the upper menu. I can't get it to work because i dont know php that well. I also read the topics on how to add a mod manual. This won't help me, because the code in insideBB Theme is totally different from the examples.
Can someone please help me adding this to my index.template.php?
Many thanks in advance
<?php
// Version: 1.1; index
/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.
The init sub template should load any data and set any hardcoded options.
The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.
The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.
The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.
The menu sub template should display all the relevant buttons the user
wants and or needs.
For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/
// Initialize the template... mainly little settings.
function template_init()
{
global $context, $settings, $options, $txt;
/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';
/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';
/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1';
/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = false;
/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = false;
/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = false;
}
// The main sub template above the content.
function template_main_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '><head>
<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
<meta name="description" content="', $context['page_title'], '" />', empty($context['robot_no_index']) ? '' : '
<meta name="robots" content="noindex" />', '
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "', $settings['theme_url'], '";
var smf_images_url = "', $settings['images_url'], '";
var smf_scripturl = "', $scripturl, '";
var smf_iso_case_folding = ', $context['server']['iso_case_folding'] ? 'true' : 'false', ';
var smf_charset = "', $context['character_set'], '";
// ]]></script>
<title>', $context['page_title'], '</title>
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?fin11" media="print" />';
/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';
// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="', $scripturl, '?action=help" target="_blank" />
<link rel="search" href="' . $scripturl . '?action=search" />
<link rel="contents" href="', $scripturl, '" />';
// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="', $context['forum_name'], ' - RSS" href="', $scripturl, '?type=rss;action=.xml" />';
// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=next" />';
// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' . $scripturl . '?board=' . $context['current_board'] . '.0" />';
// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
</head>
<body>';
// The logo, user information, news, and menu.
echo '
<table cellspacing="0" cellpadding="0" border="0" align="center" width="900" background="', !empty($settings['header_logo_url']) ? $settings['header_logo_url'] : $settings['images_url'] . '/headerbg.png', '">
<tr>
<td height="141px"><div style="color:#f8f8f8; font-family: Georgia, sans-serif; font-size: 30px; margin-left:40px; margin-right:40px; float: left;">', $context['forum_name'], '</div></td>
<td style="color:#CCCCCC">';
// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
', $txt['hello_member'], ' <b>', $context['user']['name'], '</b>', $context['allow_pm'] ? ', ' . $txt[152] . ' <a href="' . $scripturl . '?action=pm" class="msg">' . $context['user']['messages'] . ' ' . ($context['user']['messages'] != 1 ? $txt[153] : $txt[471]) . '</a>' . $txt['newmessages4'] . ' ' . $context['user']['unread_messages'] . ' ' . ($context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1']) : '', '.';
// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '<br />
', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=viewmembers;sa=browse;type=approve" class="msg">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'];
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '<br />
<b>', $txt[616], '</b>';
}
// Otherwise they're a guest - so politely ask them to register or login.
else
echo '
', $txt['welcome_guest'];
echo '
<br />', $context['current_time'], '
</td>
</tr>
<tr>
<td colspan="2" height="45px" valign="middle" align="center">';
// Show the menu here, according to the menu sub template.
template_menu();
echo '
</td>
</tr>';
// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<tr class="windowbg2">
<td colspan="2" style="border-top: 1px solid #70A422; padding:10px; border-bottom: 1px solid #EBEBEB">
<b>', $txt[102], ':</b> ', $context['random_news_line'], '
</td>
</tr>';
echo '
</table>
<table cellspacing="0" cellpadding="10" border="0" align="center" width="900">
<tr><td valign="top" style="background-color: #ffffff;">';
}
function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;
echo '
</td></tr>
</table>';
// Don't show a login box, just a break.
echo '
<br />';
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '<table cellspacing="0" cellpadding="3" border="0" align="center" width="880">
<tr style="background-color: #ffffff;">
<td width="44%" valign="middle" align="center">
', theme_copyright(), '<p class="smalltext">Template Design By <a href="http://www.nunoguerra.com">Nuno Guerra</a></p>
</td>
</tr>
</table>';
// Show the load time?
if ($context['show_load_time'])
echo '
<div align="center" class="smalltext">
', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '
</div>';
// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;', $context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' : '', '">', $txt['ajax_in_progress'], '</div>';
// And then we're done!
echo '
</body>
</html>';
}
// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context, $settings, $options;
// Folder style or inline? Inline has a smaller font.
echo '<span class="nav"', $settings['linktree_inline'] ? ' style="font-size: smaller;"' : '', '>';
// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show the | | |-[] Folders.
if (!$settings['linktree_inline'])
{
if ($link_num > 0)
echo str_repeat('<img src="' . $settings['images_url'] . '/icons/linktree_main.gif" alt="| " border="0" />', $link_num - 1), '<img src="' . $settings['images_url'] . '/icons/linktree_side.gif" alt="|-" border="0" />';
echo '<img src="' . $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" /> ';
}
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];
// Show the link, including a URL if it should have one.
echo '<b>', $settings['linktree_link'] && isset($tree['url']) ? '<a href="' . $tree['url'] . '" class="nav">' . $tree['name'] . '</a>' : $tree['name'], '</b>';
// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];
// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo $settings['linktree_inline'] ? ' | ' : '<br />';
}
echo '</span>';
}
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;
// Show the [home] and [help] buttons.
echo '
<a href="', $scripturl, '" class="menu">', $txt[103] , '</a>', $context['menu_separator'], '
<a href="', $scripturl, '?action=help" class="menu">', $txt[119] , '</a>', $context['menu_separator'];
// How about the [search] button?
if ($context['allow_search'])
echo '
<a href="', $scripturl, '?action=search" class="menu">', $txt[182] , '</a>', $context['menu_separator'];
// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '
<a href="', $scripturl, '?action=admin" class="menu">', $txt[2] , '</a>', $context['menu_separator'];
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '
<a href="', $scripturl, '?action=profile" class="menu">', $txt[467] , '</a>', $context['menu_separator'];
// Invite someone
if ($context['allow_invite'])
echo '
<a href="', $scripturl, '?action=invite" class="menu">', $txt[45] , '</a>', $context['menu_separator'];
// The [calendar]!
if ($context['allow_calendar'])
echo '
<a href="', $scripturl, '?action=calendar" class="menu">', $txt['calendar24'] , '</a>', $context['menu_separator'];
// If the user is a guest, show [login] and [register] buttons.
if ($context['user']['is_guest'])
{
echo '
<a href="', $scripturl, '?action=login" class="menu">', $txt[34] , '</a>', $context['menu_separator'], '
<a href="', $scripturl, '?action=register" class="menu">', $txt[97] , '</a>';
}
// Otherwise, they might want to [logout]...
else
echo '
<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '" class="menu">', $txt[108] , '</a>';
}
// Generate a strip of buttons, out of buttons.
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
global $settings, $buttons, $context, $txt, $scripturl;
if (empty($button_strip))
return '';
// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . ($value['lang'] ? $context['user']['language'] . '/' : '') . $value['image'] . '" alt="' . $txt[$value['text']] . '" border="0" />' : $txt[$value['text']]) . '</a>';
$button_strip[$key] = $buttons[$key];
}
echo '
<td ', $custom_td, '>', implode($context['menu_separator'], $button_strip) , '</td>';
}
?>
Same Here. I use Phobos theme and the Invite mod is nowhere. Not even in features and options. Please somebody make this mod "Theme Friendly"
ok, i have SMF 1.1.4
Its a fresh install... I don't have any other mods installed
The text said successful for everything
i am on the standard core theme
but i have no buttons to get to the invite, and i have no words on the page when i try to go there by http://example.com/index.php?action=featuresettings;sa=invite
So i am not sure what i am doing wrong
any help would be much appreciated, i wanted to build a small community that was set up by invite only, so this mod was perfect for it
Oh and i don't have the basic karma enabled
I'm having major problems with Invitation Only, I really want it for my site, and whenever I install it with any version, even if SMF has been updated, it never works, it says its installed but when I click Features and Options its not anywhere to be seen?
Anyone know the problem, thanks
Modifications.english.php test failed.
I have smf arcade installed if thats relevent. and i also got SMF Shoutbox,Karma Description Mod, Auto Embed Video Clips, and the new topic button installed. What is the problem here???
i have uploaded it ad got this (
Fatal error: Cannot redeclare modifyinvitesettings() (previously declared in /home/pokertea/public_html/Sources/ModSettings.php:332) in /home/pokertea/public_html/Sources/ModSettings.php on line 339 )
dont know what it to do this is exactley what i need is there any fix
Quote from: Sarke on March 06, 2007, 11:46:57 PM
Quote from: mrbear on March 06, 2007, 07:06:52 PM
i think its just me but i cant seem to find the
"Features and Options" -> "Invite", and "Manage Permissions".
I can't see the "Invite" thingy. I installed 1.07.
That's in the admin panel. The direct links are:
index.php?action=featuresettings;sa=invite
index.php?action=permissions
The first one might not show up if you're using something other than english as your language.
The "Invite" button in the menu will only show up on the default theme, so you'll have to edit index.template.php manually if you want it to show up on another theme.
ok. i thought i was crazy... so how do i go about doing the above mentioned?
Quote from: supermastereu on November 13, 2007, 08:03:35 PM
Please help me....
I used a custom theme
I install the mod, make the modifications on index template and can see the inveti on top.
I send one invite to one friend.
That friend click on link with the key, write his nick, email and pass and click Ok.
The system show one message : "An Error Has Occurred!
Sorry, registration is by invitation only.
If you have a valid invite key enter it below: "
They write the key and see the same message?
Can you help me?
I had the same problem using a custom theme with a Register.template.php file.
I needed to manually add some code to it.
I went here (http://www.smfhacks.com/packageparser/) and uploaded the package, and told it I wanted to see only the theme changes.
At first I made a mistake and put the code down in the admin section. It needs to be added above the submit button in the section where the user fills in their information.
Quote from: projectg on December 05, 2007, 04:12:25 AM
Modifications.english.php test failed.
I have smf arcade installed if thats relevent. and i also got SMF Shoutbox,Karma Description Mod, Auto Embed Video Clips, and the new topic button installed. What is the problem here???
I had a problem with the arcade mod. Try this.
Open the Default/Modifications.english.php file and look at the last line. if it ends in code and ?> without a space add 1 blank line between the code and then put ?> on its own line at the end.
Forgot about my question.
I want to use a different email than what address it it using. I tried to change the email from the server settings, but it is still sending from the old address. any idea where to change this?
UPDATE
Nevermind. I didn't realize it was sending email under the users (inviter's) email as the sender name, not the forums email address
i have smf 1.1.4 package manager says the Invite mod installed successfully but i cannot find it anywhere all i get are these error logs pertaining to it. i have un-installed and re-installed the mod but get the same stuff.
512: package_flush_cache(): some files are still not writable
File: d:\home\hnt5a095\forum\Sources\Subs-Package.php
Line: 1905
2: fopen(d:\home\hnt5a095\forum/index.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: d:\home\hnt5a095\forum\Sources\Subs-Package.php
Line: 1901
2: fclose(): supplied argument is not a valid stream resource
File: d:\home\hnt5a095\forum\Sources\Subs-Package.php
Line: 1908
2: fopen(d:\home\hnt5a095\forum/index.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: d:\home\hnt5a095\forum\Sources\Subs-Package.php
Line: 1901
Hello. :)
I tried to install this Mod on 1.1.4 even though I knew it was for 1.1.2 only. Now everything went well except for the Modifications.english.php file - as stated in earlier posts the Mod doesn't edit it right (due to the version of the forum).
Now I am in dire need of this invitation only code so that it's possible for us to monitor who joins by our request only, partially due to contests we hold and people entering only for the prizes, not to contribute to the community.
Would it be possible for you to upgrade this Mod to be compatible with version 1.1.4 of SMF anytime soon?
Thank you for your time. :)
P.S. Before you report any errors people, check if your version of SMF is compatible with the Mod. The Mod clearly says it's for SMF 1.1.2, so everyone who's running 1.1.4 will clearly run into errors! The Mod doesn't work with 1.1.4 version. :/
I have it running on 1.1.4 Here is what I did:
I installed using the package manager. Test showed the Modifications.english.php failure. I installed anyway
Used my FTP and downloaded the modifications.english.php file
added this code to the end, plus a blank line before "?>"
// Invite MOD.
$txt['invite_title'] = 'Invite';
$txt['invite_only'] = 'Only allow registrations through invitation.';
$txt['invite_menu_title'] = 'Invite menu title.';
$txt['invite_days'] = 'Number of days for members to get a new invite credit.<div class="smalltext">(0 for no limit, admins are exempt)</div>';
$txt['invite_max'] = 'Max number of invite credits.<div class="smalltext">(0 for no limit, admins are exempt)</div>';
$txt['invite_expire'] = 'Number of days for an invite key to be valid.<div class="smalltext">(0 for no limit)</div>';
$txt['invite_group_settings'] = 'Set group permission for sending invites';
$txt['invite_email_disable'] = 'Disable mailing feature.';
$txt['invite_email_subject'] = 'E-mail subject.';
$txt['invite_email_message'] = 'E-mail message.
<div class="smalltext">{invitee} = Recipient\'s name</div>
<div class="smalltext">{inviter} = Inviter\'s memebername</div>
<div class="smalltext">{forum} = Forum name</div>
<div class="smalltext">{link} = Link to registration page (with key)</div>
<div class="smalltext">{message} = Message by inviter</div>';
$txt['invite_default_email_subject'] = '{invitee}, you have received an invitation to {forum} by {inviter}!';
$txt['invite_default_email_message'] = 'Hi {invitee},
You have received an invitation to {forum}, click the following link to register:
{link}
{inviter} also sent this comment to you:
{message}
This message is not spam.';
$txt['invite_someone'] = 'Invite someone';
$txt['invite_info'] = 'You can invite someone new if you have invite credits by making a new key and sending them the link.';
$txt['invite_link'] = 'You can invite someone new by sending them the following link.';
$txt['invitees'] = 'Invitees';
$txt['invitees_info'] = 'The following list which members you have invited.';
$txt['no_invitees'] = 'There are no invitees to display';
$txt['invite_unlimited'] = 'unlimited';
$txt['invite_max_reached'] = 'max reached';
$txt['make_new_invite_key'] = 'Make new invite key';
$txt['invite_credits'] = 'Invite credits';
$txt['next_invite_credit'] = 'Next credit';
$txt['invite_key'] = 'Invite Key';
$txt['invite_email'] = 'Invitation E-mail';
$txt['invite_send_email'] = 'Send invitation e-mail';
$txt['invite_expires'] = 'Expires';
$txt['invited_by'] = 'Invited by';
$txt['invitees_count'] = 'Members invited';
$txt['show_invitees'] = 'Show members invited by this person';
$txt['invite_email_info'] = 'Enter the name and email of the person you wish to invite, and the invite link will be sent to them.';
$txt['invite_recipient_name'] = 'Recipient\'s name';
$txt['invite_recipient_email'] = 'Recipient\'s e-mail';
$txt['invite_message'] = 'Personal message to recipient';
$txt['invite_sent'] = 'The invitation has been sent.';
$txt['invite_no_name'] = 'You did not enter a name.';
$txt['invite_no_email'] = 'You did not enter a valid e-mail address.';
$txt['cannot_send_invite'] = 'Sorry, the invite key could not be sent (already sent maybe?).';
$txt['permissiongroup_invite'] = 'Invite';
$txt['permissionname_invite'] = 'Invite';
$txt['permissionhelp_invite'] = 'When the forum is set to accept registrations by invitation only, this permission will allow a membergroup to invite people to the forum so they can register.';
$txt['permissionname_invite_unlimited'] = 'Unlimted invite credits';
$txt['permissionhelp_invite_unlimited'] = 'When the forum is set to accept registrations by invitation only, this permission will allow a membergroup to have unlimited invite credits.';
$txt['permissionname_invitees'] = 'View invitees';
$txt['permissionhelp_invitees'] = 'This will show a list of members that the user has invited to the forum using the Invite MOD.';
$txt['permissionname_invitees_own'] = 'Own invitees';
$txt['permissionname_invitees_any'] = 'Any invitees';
$txt['cannot_invite'] = 'Sorry, you\'re not allowed to send invitations.';
$txt['cannot_invite_as_other'] = 'Sorry, you can\'t send invitations as someone else.';
$txt['cannot_invitees_any'] = 'Sorry, you\'re not allowed to view this member\'s invitees.';
$txt['registration_invite_only'] = 'Sorry, registration is by invitation only.<br /><br />If you have a valid invite key enter it below:<br /><form method="POST" action="index.php?action=register"><input type="text" name="invite_key" size="40"> <input type="submit" value="Register"></form>';
$txt['registration_invite_expired'] = 'Sorry, the invite key has expired.';
$txt['top_inviters'] = 'Top Inviters (by Invitees)';
$txt['top_inviters_by_posts'] = 'Top Inviters (by Invitees\' Posts)';
// End Invite MOD.
Uploaded the mod file.
Checked the admin to see if settings were there.
added button to the custom theme
all was well
OK, I am just a dumb old fart, and starting to have senior moments :) .
I looked in my files and cannot find the Modifications.english.php :P
Also, pauledude, where is "?>"
Themes\default\languages
Even if you are using a custom theme it will be in the default theme folder. Most custom themes look back at the default theme for common items.
/?> should be the very last thing in the file.
here is some instructions on how to install things manually
http://docs.simplemachines.org/index.php?topic=402
It is a little confusing on the before and after. so read that carefully if you plan to use there directions.
okay, got the code loaded into the languages folder but nothing is showing on 'features & options' CP for setting the invite mod.
Am I missing something??
here is a quick note.
when i put the code from pauledude in the Modifications.english.php - it disabled the 'Are you Human?' mod
why?
I am sorry David. I don't know why the code stopped the human mod. I went and put the Human mod in my board and everything is working.
I look back at my last post. I had a typo where I said /?> should be the last thing. I should have just typed ?>
The Mod file on a new install has nothing it just looks like this
<?php
// Version: 1.1; Modifications
?>
All your mods just add code before ?> at the end.
If you want to post your mod file here we could look and see if someone can figure it out
Thanks for the reply pauledude.
I have the human mod working again and then copied your code for the invite mod behind that and before ?> at the end. But the invite stuff does not show up. There are no error logs either. So here is the Modifications.english.php file. Hopefully we can get this figured out.
<?php
// Version: 1.1; Modifications
$txt['are_you_human'] = 'Are You Human? (Bot Check)';
$txt['are_you_human_no'] = 'No';
$txt['are_you_human_yes'] = 'Yes';
$txt['are_you_human_unsure'] = 'Unsure';
$txt['are_you_bot_unsure'] = 'The minimum bar for registration is being human. Please decide whether you are human or a bot.';
$txt['are_you_bot_yes'] = 'Bots are not welcome. You must confirm that you are human in order to register.';
// Invite MOD.
$txt['invite_title'] = 'Invite';
$txt['invite_only'] = 'Only allow registrations through invitation.';
$txt['invite_menu_title'] = 'Invite menu title.';
$txt['invite_days'] = 'Number of days for members to get a new invite credit.<div class="smalltext">(0 for no limit, admins are exempt)</div>';
$txt['invite_max'] = 'Max number of invite credits.<div class="smalltext">(0 for no limit, admins are exempt)</div>';
$txt['invite_expire'] = 'Number of days for an invite key to be valid.<div class="smalltext">(0 for no limit)</div>';
$txt['invite_group_settings'] = 'Set group permission for sending invites';
$txt['invite_email_disable'] = 'Disable mailing feature.';
$txt['invite_email_subject'] = 'E-mail subject.';
$txt['invite_email_message'] = 'E-mail message.
<div class="smalltext">{invitee} = Recipient\'s name</div>
<div class="smalltext">{inviter} = Inviter\'s memebername</div>
<div class="smalltext">{forum} = Forum name</div>
<div class="smalltext">{link} = Link to registration page (with key)</div>
<div class="smalltext">{message} = Message by inviter</div>';
$txt['invite_default_email_subject'] = '{invitee}, you have received an invitation to {forum} by {inviter}!';
$txt['invite_default_email_message'] = 'Hi {invitee},
You have received an invitation to {forum}, click the following link to register:
{link}
{inviter} also sent this comment to you:
{message}
This message is not spam.';
$txt['invite_someone'] = 'Invite someone';
$txt['invite_info'] = 'You can invite someone new if you have invite credits by making a new key and sending them the link.';
$txt['invite_link'] = 'You can invite someone new by sending them the following link.';
$txt['invitees'] = 'Invitees';
$txt['invitees_info'] = 'The following list which members you have invited.';
$txt['no_invitees'] = 'There are no invitees to display';
$txt['invite_unlimited'] = 'unlimited';
$txt['invite_max_reached'] = 'max reached';
$txt['make_new_invite_key'] = 'Make new invite key';
$txt['invite_credits'] = 'Invite credits';
$txt['next_invite_credit'] = 'Next credit';
$txt['invite_key'] = 'Invite Key';
$txt['invite_email'] = 'Invitation E-mail';
$txt['invite_send_email'] = 'Send invitation e-mail';
$txt['invite_expires'] = 'Expires';
$txt['invited_by'] = 'Invited by';
$txt['invitees_count'] = 'Members invited';
$txt['show_invitees'] = 'Show members invited by this person';
$txt['invite_email_info'] = 'Enter the name and email of the person you wish to invite, and the invite link will be sent to them.';
$txt['invite_recipient_name'] = 'Recipient\'s name';
$txt['invite_recipient_email'] = 'Recipient\'s e-mail';
$txt['invite_message'] = 'Personal message to recipient';
$txt['invite_sent'] = 'The invitation has been sent.';
$txt['invite_no_name'] = 'You did not enter a name.';
$txt['invite_no_email'] = 'You did not enter a valid e-mail address.';
$txt['cannot_send_invite'] = 'Sorry, the invite key could not be sent (already sent maybe?).';
$txt['permissiongroup_invite'] = 'Invite';
$txt['permissionname_invite'] = 'Invite';
$txt['permissionhelp_invite'] = 'When the forum is set to accept registrations by invitation only, this permission will allow a membergroup to invite people to the forum so they can register.';
$txt['permissionname_invite_unlimited'] = 'Unlimted invite credits';
$txt['permissionhelp_invite_unlimited'] = 'When the forum is set to accept registrations by invitation only, this permission will allow a membergroup to have unlimited invite credits.';
$txt['permissionname_invitees'] = 'View invitees';
$txt['permissionhelp_invitees'] = 'This will show a list of members that the user has invited to the forum using the Invite MOD.';
$txt['permissionname_invitees_own'] = 'Own invitees';
$txt['permissionname_invitees_any'] = 'Any invitees';
$txt['cannot_invite'] = 'Sorry, you\'re not allowed to send invitations.';
$txt['cannot_invite_as_other'] = 'Sorry, you can\'t send invitations as someone else.';
$txt['cannot_invitees_any'] = 'Sorry, you\'re not allowed to view this member\'s invitees.';
$txt['registration_invite_only'] = 'Sorry, registration is by invitation only.<br /><br />If you have a valid invite key enter it below:<br /><form method="POST" action="index.php?action=register"><input type="text" name="invite_key" size="40"> <input type="submit" value="Register"></form>';
$txt['registration_invite_expired'] = 'Sorry, the invite key has expired.';
$txt['top_inviters'] = 'Top Inviters (by Invitees)';
$txt['top_inviters_by_posts'] = 'Top Inviters (by Invitees\' Posts)';
// End Invite MOD.?>
Thanks for helping :D
Wel I don't know if I am acually helping. But at least I am giving you hope.
Only thing I can see is maybe you need to change the last line of your mod from
// End Invite MOD.?>
tohave a blank line before the end tag of ?>
// End Invite MOD.
?>
ALso, just in case under the confusion it was forgotten. You did install the rest of the mod thru the package manager didn't you? There are more than just the mod file that needs new code. the mod is just the one that had the failure. that is why I did it manualy
Yes, according to the package manager everything said 'Test Successful' except 'modifications.english.php' showed test failure, 'Extract ./Sources/Invite.php', 'Extract .\Themes\default\Invite.template.php', & 'Execute code db php', did not show anything.
I added the blank line etc. as you showed me, pauledude, but still nothing shows up.
Well I am not sure. I went thru it again with another board. You should be good to go with what you have blank, and fixing the mod file manualy.
There is nothing here?
www.roughhewnministries.com/forum/index.php?action=featuresettings;sa=invite;sesc=485d9c6b948656461412ca52a5fc4541
or here?
www.roughhewnministries.com/forum/index.php?action=featuresettings
invite should be theer by what you are saying. if not, I am stumped
Mine is working
http://www.flehm.com/Forum/index.php
http://www.flehm.com/Forum/index.php?action=invite
I did have to put that button in manualy for the custom theme
How come I don't see "Members Invited"???
I am using a custom theme.
Sorry, pauledude, its still not there. :(
I wonder if Sarke could help figure this out or perhaps I should do a package parser and try a manual install?
I just don't understand why nothing is working even though the install showed Test Successful. I checked for the files Invite.php & invite.template.php and they are both there. What else should I look for?
When I click "Make new invite key" it returns:
Field 'inviteEmail' doesn't have a default value
File: [url here]\frigorifico\Sources\Invite.php
Line: 223
I've checked table invites_smf and it's empty, probably it's because it's not fetching data.
"Disable mailing feature." it's checked.
Please help me or give me some hints.
Thank you for your time.
Okay, anybody know where Sarke is and can he help us with these problems ??? ???
Hello,
is this mod compatible with SMF version 1.1.4?
Thanks
Best regards
translated in Portuguese:
// Invite MOD.
$txt['invite_title'] = ' Convidar';
$txt['invite_only'] = 'Apenas permitir o registo por convites.';
$txt['invite_menu_title'] = 'Menu da Página de Convites.';
$txt['invite_days'] = 'Número de dias para os membros terem um novo convite.<div class="smalltext">(0 para não ter limite, administradores estão isentos)</div>';
$txt['invite_max'] = 'Número máximo de convites enviados.<div class="smalltext">(0 para não ter limite, administradores estão isentos)</div>';
$txt['invite_expire'] = 'Número de dias para um código do convite ser válido.<div class="smalltext">(0 para não ter limite)</div>';
$txt['invite_group_settings'] = 'Editar a permissão dos grupos para enviar convites';
$txt['invite_email_disable'] = 'Desactivar a característica de envio pelo correio.';
$txt['invite_email_subject'] = 'Assunto de E-mail.';
$txt['invite_email_message'] = 'Mensagem do E-mail.
<div class="smalltext">{invitee} = Nome do Destinatário</div>
<div class="smalltext">{inviter} = Nome do Membro que convida</div>
<div class="smalltext">{forum} = Nome de Fórum</div>
<div class="smalltext">{link} = Link para a página de registo (com código)</div>
<div class="smalltext">{message} = Mensagem pelo membro que convida</div>';
$txt['invite_default_email_subject'] = '{invitee}, você recebeu um convite para o {forum} por {inviter}!';
$txt['invite_default_email_message'] = 'Olá {invitee},
Você recebeu um convite para o {forum}, clique no seguinte link para se registar:
{link}
{inviter} também enviou este comentário para si:
{message}
Esta mensagem não é spam.';
$txt['invite_someone'] = 'Convidar alguém';
$txt['invite_info'] = 'Você pode convidar alguém novo se você tiver créditos de convites por fazer um novo código e enviar-lhes o link.';
$txt['invite_link'] = 'Você pode convidar alguém novo enviando-lhes o seguinte link.';
$txt['invitees'] = 'Convidados';
$txt['invitees_info'] = 'Esta lista mostra os membros que convidou.';
$txt['no_invitees'] = 'Não há convidados para mostrar';
$txt['invite_unlimited'] = 'ilimitado';
$txt['invite_max_reached'] = 'máximo atingido';
$txt['make_new_invite_key'] = 'Fazer um novo código de convite';
$txt['invite_credits'] = 'Créditos de convites';
$txt['next_invite_credit'] = 'Próximo crédito';
$txt['invite_key'] = 'Código de convite';
$txt['invite_email'] = 'E-mail de convite';
$txt['invite_send_email'] = 'Enviar e-mail de convite';
$txt['invite_expires'] = 'Expira';
$txt['invited_by'] = 'Convidado por';
$txt['invitees_count'] = 'Membros convidados';
$txt['show_invitees'] = 'Mostrar membros convidados por esta pessoa';
$txt['invite_email_info'] = 'Insira o nome e e-mail da pessoa que quer convidar, e o link de convite vai ser enviado para ela.';
$txt['invite_recipient_name'] = ' Nome do Destinatário ';
$txt['invite_recipient_email'] = ' E-mail do Destinatário ';
$txt['invite_message'] = 'Mensagem pessoal para o Destinatário';
$txt['invite_sent'] = 'O convite foi enviado.';
$txt['invite_no_name'] = 'Você não inseriu um nome.';
$txt['invite_no_email'] = ' Você não inseriu um endereço de e-mail válido.';
$txt['cannot_send_invite'] = 'Desculpe, o código de convite não pode ser enviado (será que já foi enviado?).';
$txt['permissiongroup_invite'] = 'Convidar';
$txt['permissionname_invite'] = ' Convidar';
$txt['permissionhelp_invite'] = 'Quando o fórum aceitar apenas registo por convites, esta permissão vai permitir um grupo de membros convidar pessoas para o fórum para eles se poderem registar.';
$txt['permissionname_invite_unlimited'] = 'Créditos ilimitados de convites';
$txt['permissionhelp_invite_unlimited'] = ' Quando o fórum aceitar apenas registo por convites, esta permissão vai permitir um grupo de membros ter créditos ilimitados de convites.';
$txt['permissionname_invitees'] = 'Ver convidados';
$txt['permissionhelp_invitees'] = 'Isto vai mostar a lista de membros convidados por este user usando o modo de convites.';
$txt['permissionname_invitees_own'] = 'Convidados próprios';
$txt['permissionname_invitees_any'] = 'Quaisquer convidados';
$txt['cannot_invite'] = 'Desculpe, você não está permitido a enviar convites.';
$txt['cannot_invite_as_other'] = 'Desculpe, você não pode enviar convites como qualquer um.';
$txt['cannot_invitees_any'] = 'Desculpe, você não está permitido ver os membros convidados por este membro.';
$txt['registration_invite_only'] = 'Desculpe, o registo é apenas por convites.<br /><br />Se você tiver um código de convite válido insira-o em baixo:<br /><form method="POST" action="index.php?action=register"><input type="text" name="invite_key" size="40"> <input type="submit" value="Register"></form>';
$txt['registration_invite_expired'] = 'Desculpe, o código de convite já expirou.';
$txt['top_inviters'] = 'Top de quem convida (por convidados)';
$txt['top_inviters_by_posts'] = 'Top de quem convida (por mensagens dos convidados)';
// End Invite MOD.
It works okay if you don't have too many mods installed. i recommend installing a test form, import your existing database, install all the mods you have currently and then install this one. this is what i did, just to make sure it works, however, once i installed it i can't un-installed automatically. if you want to un-install it you have to do it manually.
I wanted to define one number minimum of topics to earn an invitation credit.
Example:
10 topics -> 1 invitation
20 topics -> 2 invitation
30 topics -> 3 invitation
40 topics -> 4 invitation
50 topics -> 5 invitation
...
...
...
100 topics -> 10 invitation
for all of the groups...
somebody helps me? Please...
Hi Guys
I have an issue and I have searched this thread without finding a solution. Most of my members are government employees in South Australia and as such thier email extension is ".sa.gov.au"
When I go to invite a new member through their email address the Invite Mod tells me it is not a valid email address. I have tested this with other email extensions such as ".com.au" and it works fine . It just fails to recognise the government extension.
What to I have to do to get the mod to recognise this extension.
Update
I forgot to say I am using 1.1.4 on the default theme
Anyone??
Sorry Bluey you are not getting help on this one, unfortunately this mod i snot supported anymore. its too bad because its a good one.
The best mod i have ever used.
I don't think this has anything to do with the mod...Does SMF send newsletters to the gov addresses .sa.gov.au. ???
Quote from: Bluey on February 06, 2008, 01:10:15 AM
Hi Guys
I have an issue and I have searched this thread without finding a solution. Most of my members are government employees in South Australia and as such thier email extension is ".sa.gov.au"
When I go to invite a new member through their email address the Invite Mod tells me it is not a valid email address. I have tested this with other email extensions such as ".com.au" and it works fine . It just fails to recognise the government extension.
What to I have to do to get the mod to recognise this extension.
Update
I forgot to say I am using 1.1.4 on the default theme
I have solved the issue. Thanks for your help anyway
Ok, glad you have it solved. What was the cause of the error. ??? How did you solve it. it may help other users to know. :)
Well it was my mistake I think. When I did it I don't think I put ther name in the field requiring the name. I just placed their email. When I used the package parser to have a look at the code I worked out this trigger the error.
Place their name in the field and it works fine. Like I said my stuff up.
Quote from: Bluey on February 15, 2008, 03:40:35 AM
Well it was my mistake I think. When I did it I don't think I put ther name in the field requiring the name. I just placed their email. When I used the package parser to have a look at the code I worked out this trigger the error.
Place their name in the field and it works fine. Like I said my stuff up.
Good end.
I can't see the "Members Invited by in my Custom Theme"
I have tried package parser. Its tells me to edit some files but they do not even exist in my theme folder. Then I go into the default theme folder and those files already have the edits.
I'm confused :S . I'm using Outline TP theme by DzinerStudios.
Any help would be appreciated.
Most of the mods are made for the default Theme.
Yea but we can do edits to make them work in a custom theme
Editing, that's where problems come's in.
Quote from: ne.miguelito on January 24, 2008, 10:56:44 AM
I wanted to define one number minimum of topics to earn an invitation credit.
Example:
10 topics -> 1 invitation
20 topics -> 2 invitation
30 topics -> 3 invitation
40 topics -> 4 invitation
50 topics -> 5 invitation
...
...
...
100 topics -> 10 invitation
for all of the groups...
somebody helps me? Please...
Help me...
Is it possible to view all the invited members by a particular account in a list view?
This mod is not supported anymore, its been conflicting with other mods i have, so on my next install i will remove it. too bad its a good concept!
Quote from: bassbass on February 28, 2008, 04:41:45 PM
This mod is not supported anymore, its been conflicting with other mods i have, so on my next install i will remove it. too bad its a good concept!
What a pity, the best mod so far for me.
Is there any chance to block some invite keys ?
Like 2 keys sent to 1 member and I wish to block one of keys ?
thanks for this nice mod... now this mod work fine in my forum... but can anybody tell me why mail send in Bulk.. for test i send it to my yahoo id and i find the main in Bulk....
sorry for my english :-\
Anyway...
Mod have only this feature:
"Only allow registrations through invitation."
Is possible make (or i haven't understand how do it):
"Allow registrations WITH and WITHOUT invitation"?
I'll try to explain.
For example in the register page make a classic free registration (for all user) but with the registration code field of "INVITE MOD"
So everyone can register (with or without invite) but if you use the code, you can view who donate this in smf forum like in "INVITE MOD".
This is usefull for me because all users can register and at the same time you can view invitations through statistics and you can for example donate free mail or access to restrict forum and so on to users that made X invitations number...
I hope you understand...
If my english is very bad i'll try to explain with an image :D
ps: great mod!
thanks :P
I hope that i get you right, the invite mod got nothing to do with the normal registration.
Quote from: Oga123 on March 10, 2008, 03:24:29 AM
I hope that i get you right, the invite mod got nothing to do with the normal registration.
I see.. imho could be a nice feature, but perhaps i'm the only one that think so :D
thanks anyway for your reply :)
You're welcome.
This mod installed fine for me (on 1.1.4), however the email system is not working (its been an hour and no emails as of yet have been received), and the stats on the stats page are blank.
Any ideas?
edit: emails finaly received. Still having the issue with the stats sections being there but they are blank. :(
Hi, I hope you're still helping users with this mod.
It is great and thank you for that. But I have a little problem. I've managed to install it on a custom theme, but in that topic where you described that you gave just the description how to make it work, but not how to and what to change to make invited users and used invites on a custom theme, could you please help me with that.
I edited only index.template.php
Could anyone explain to why this code (from Profile.template) won't work in Display.template? :
global $sourcedir;
require_once($sourcedir . '/Invite.php');
if (($context['user']['is_owner'] && allowedTo('invitees_own')) || allowedTo('invitees_any'))
{
if (inviter($context['member']['id']))
echo '
<tr>
<td><b>', $txt['invited_by'], ': </b></td>
<td><a href="', $scripturl, '?action=profile;u=', $context['member']['invited_by'], '">', $context['member']['invited_by_name'], '</a></td>
</tr>';
if ($context['member']['invitees_count'] = invitees($context['member']['id']))
echo '
<tr>
<td><b>', $txt['invitees_count'], ': </b></td>
<td><a href="', $scripturl, '?action=mlist;sa=search;inviter=', $context['member']['id'], '">', $context['member']['invitees_count'], '</a></td>
</tr>';
}
It produces this (within the post display):
QuoteDatabase Error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND ID_REGISTRATION != 0' at line 4
File: /home/kota069/public_html/Forums/SMF/Sources/Invite.php
Line: 384
I'm sure I'm missing something but it's the exact code from Profile.template that shows the number of Invitees for the user.
It's difficult to find help on sundays.
Quote from: Oga123 on March 16, 2008, 05:48:41 PM
It's difficult to find help on sundays.
Ah, but it's only Saturday here. >:(
I'm in France, it's sunday in europe.
this mod isnt supported by the creator anymore so its gonna be hard to find help with it period :(
Quote from: Kimmie on March 16, 2008, 10:09:17 PM
this mod isnt supported by the creator anymore so its gonna be hard to find help with it period :(
Hmmmm........
OK.
Thanks.
Are there any other invite mods? I want a mod that will just keep track of the number of new members a current member invites.
we need this mod to be compatible with smf 2.0
can anybody help about this?
I installed this mod and I see the admin page for it ok but nothing shows up on the public forum. I've been trying to read through these messages to find out what I need to do. I gather that I need to modify the custom theme files to get it to show up but the instructions do not correspond to what is in my files.
Quote from: Sarke on March 03, 2007, 02:47:51 PM
If you're installing this on a custom theme, go to http://server.daniel15.com/smf/package.php, upload it there, and select "Only Theme edits". It will show you what to do.
A few useful posts in this topic:
How to install the menu button manually on a custom theme (http://www.simplemachines.org/community/index.php?topic=154999.msg998334#msg998334)
$context['current_action'] does not exist in my index.template.php file. Also the other link referenced (http://server.daniel15.com/smf/package.php) does not work right now.
Are there instructions anywhere on what I need to do to make it work? I have SMF 1.1.4.
Thanks in advance,
Aidan
Quote from: aidanc on April 17, 2008, 07:44:39 PM
... but nothing shows up on the public forum. .....
What do you mean?
Nothing is supposed to "show up on the public forum".
What you have is a menu/index Tab (in the Tab row at the top) that says "INVITE".
That takes you to the Invite template where you send an Invite email and shows your link.
The only other thing (besides Admin settings) is the invited/invitee information in the Profile summary.
Quote from: kota069 on April 17, 2008, 08:02:37 PM
What do you mean?
Nothing is supposed to "show up on the public forum".
What you have is a menu/index Tab (in the Tab row at the top) that says "INVITE".
I mean "INVITE" does not show up in the menu or anywhere else on the forum home page.
Quote from: aidanc on April 18, 2008, 12:10:59 AM
I mean "INVITE" does not show up in the menu or anywhere else on the forum home page.
OK.
I realize (now) that you're not using the default theme.
I thought I'd try to help since there's no longer any official support for this Mod and the thread goes mostly ignored.
I use nothing but the default/core theme (keeps everything simple and easy). My appologies for jumping in.
I hope someone else will pick this up and help you with it.
someone can upgrade this mod to 2.0 ? i really need it
Hey people, i have a problem with installing Invite_1.14.zip mode...
i successfully uploaded, but i can't apply this mode, this is the message i get "An Error Has Occurred!
You cannot download or install new packages because the Packages directory or one of the files in it are not writable!",
i have "Forum version: SMF 1.1.4
Current SMF version: SMF 1.1.5"
and don't know how to resolve this problem, can you please help me....
Because the Packages directory or one of the files in it are not writable!
Change the permissions this directory (777) for the example
hello.. ok i can tell this mod is no longer supported which it is ok. I installed the MOD anyway on 1.1.5 default theme and no probs... i was able to test invites they went out no problem... the only problem was as the ADMIN i expected to click the "Invite" tab in the menu bar and see a list of invites... the only thing I see it that I can invite people with the feilds to complete but no where do I see the list of invites pending... permissions is not an issue because as ADMIN i have the permissions.. do i view the pending invites some place I am missing?
Quote from: ne.miguelito on May 02, 2008, 11:36:54 AM
Because the Packages directory or one of the files in it are not writable!
Change the permissions this directory (777) for the example
like i didnt try that ...
but there is some good protection and wont allow me to overwrite :(
help...
Quote from: Filipina on May 02, 2008, 04:16:25 PM
hello.. ok i can tell this mod is no longer supported which it is ok. I installed the MOD anyway on 1.1.5 default theme and no probs... i was able to test invites they went out no problem... the only problem was as the ADMIN i expected to click the "Invite" tab in the menu bar and see a list of invites... the only thing I see it that I can invite people with the feilds to complete but no where do I see the list of invites pending... permissions is not an issue because as ADMIN i have the permissions.. do i view the pending invites some place I am missing?
Invites only show if the "Invitee" has registered. You can send out a thousand invites and none will show - except those who have registered via the Invite Link.
Quote from: vinston84 on May 02, 2008, 06:39:45 PM
Quote from: ne.miguelito on May 02, 2008, 11:36:54 AM
Because the Packages directory or one of the files in it are not writable!
Change the permissions this directory (777) for the example
like i didnt try that ...
but there is some good protection and wont allow me to overwrite :(
help...
maybe u have a windows server
Quote from: kota069 on May 02, 2008, 07:57:28 PM
Quote from: Filipina on May 02, 2008, 04:16:25 PM
hello.. ok i can tell this mod is no longer supported which it is ok. I installed the MOD anyway on 1.1.5 default theme and no probs... i was able to test invites they went out no problem... the only problem was as the ADMIN i expected to click the "Invite" tab in the menu bar and see a list of invites... the only thing I see it that I can invite people with the feilds to complete but no where do I see the list of invites pending... permissions is not an issue because as ADMIN i have the permissions.. do i view the pending invites some place I am missing?
Invites only show if the "Invitee" has registered. You can send out a thousand invites and none will show - except those who have registered via the Invite Link.
I am sorry but maybe i am mistaken. I thought one of the functions of the MOD was to be able to " show a list of members that the user has invited to the forum using the Invite MOD."
So the ADMIN cannot view/delete pending invites?
EDIT - This is the screen below I cannot find as ADMIN
http://custom.simplemachines.org/mods/index.php?action=download;mod=653;id=28974;image
Quote from: ALEJO on May 02, 2008, 08:08:53 PM
Quote from: vinston84 on May 02, 2008, 06:39:45 PM
Quote from: ne.miguelito on May 02, 2008, 11:36:54 AM
Because the Packages directory or one of the files in it are not writable!
Change the permissions this directory (777) for the example
maybe u have a windows server
like i didnt try that ...
but there is some good protection and wont allow me to overwrite :(
help...
and this wont work on windows only on linux?
yeah stupid windows does it again....
friend has linux and install it without problem :)
but, i cant see this option i features and options :(
this is what i get
QuoteFatal error: require() [function.require]: Failed opening required '/home/httpd/vhosts/svetlapozornice.com/httpdocs/Packages/temp/./db.php' (include_path='.:.:') in /home/httpd/vhosts/svetlapozornice.com/httpdocs/Sources/Packages.php on line 552
and my friend tryied on his forum, and it works like a charm but on myne wont, and i was doing exactly what i was supposed...
hi
after sooo many troubles - I installed this package - and got this mssg:
QuoteExtracting
Extracting Package
The package was installed successfully. You should now be able to use whatever functionality it adds or changes; or not be able to use functionality it removes.
but, I cannot see that
Invite part in
Features and Options, as it should be.
any suggestions?
we have only two themes on our board, Classic one and Orange-lt114v1 (if that matters..).
thank you in advance.
in windows u have to ask ur hosting to chmod ur files i think :S
hey i tried manualy and got everything right,
but there is something that is bothering me, and of course i cant see invite option on "Features and Options" as it should be!!!
this i dont get
QuoteCode
db.php
This file should not be able to execute standalone. You may have to run the following queries manually.
Query: [Select]
CREATE TABLE IF NOT EXISTS {$db_prefix}invites ( ID_INVITE mediumint(8) unsigned NOT NULL auto_increment, ID_MEMBER mediumint(8) unsigned NOT NULL default '0', ID_REGISTRATION mediumint(8) unsigned NOT NULL default '0', inviteTime int(10) unsigned NOT NULL default '0', inviteKey varchar(64) NOT NULL default '', PRIMARY KEY (ID_INVITE), KEY ID_MEMBER (ID_MEMBER), KEY inviteTime (inviteTime), KEY inviteKey (inviteKey) )
Query: [Select]
SHOW COLUMNS FROM {$db_prefix}invites
Query: [Select]
ALTER TABLE {$db_prefix}invites ADD inviteEmail TINYTEXT NOT NULL
so can you help me ?
I installed it on 1.1.5 and it shows perfect. But when i try to send an invitation it says "invalid reference site" and no mail is sent.
The Invite Mod looks brilliant! I'm hoping it will be the answer for me, as I'm looking at setting up a private forum for an organisation with >1k members.
What would be really handy would be the facility to copy and paste a large list of email addresses and for a unique invitation code to be emailed to each email address.
I also would only want admins to be able to see the "Invite" tab and make invitations. I.e. I would not want ordinary users to be able to send any invitations.
Is it easy to customise the Invite mod in this way, or should I consider another solution?
Many thanks for any suggestions.
[Cross-posted to "Bulk Registration Invitation" topic - hope this isn't against the rules]
It technically is so I deleted your other post and I'll reply here :)
I've never used the mod itself however:
QuoteI also would only want admins to be able to see the "Invite" tab and make invitations
The mod description says you can restrict who can send invites with permissions :)
Thanks so much for your help, H. Sorry to have infringed posting rules.
Thanks for pointing out that I can restrict inviting permissions. I just need to figure out a way of sending individual invitations a large list of email addresses and I'll be most of the way there!
Thanks again for your help
OK, so even though "Invite" may not quite be 100% what I might have hoped for, I've taken the plunge and installed as my first patch!
The install seemed to go just fine: no error messages anywhere. However, there's still no sign of any change in the forum itself, not even the "INVITE" tab at the top. I've tried logging out and back in under a different login to no avail.
This was a fresh SMF 1.1.5 install with no custom themes or patches. Here's the link to phpinfo.php: http://www.cosgrove.f2s.com/SMF/phpinfo.php (http://www.cosgrove.f2s.com/SMF/phpinfo.php) and the forum itself: http://www.cosgrove.f2s.com/SMF (http://www.cosgrove.f2s.com/SMF).
I'm painfully aware that this is likely to be an annoyingly simple question from a Newbie, but I'd be particularly grateful for help getting of the ground here. If I do go live with SMF, I'm going to need to install numerous mods!!
Hello, i am using your invitemod for a few months now and noticed a HUGE
performance issue with it in the stats part.
You use loadmemberdata 2 times in getting the inviter/e stats
As the result that the stats page would have 10000+ querys only because of the
invite stats.
Suggestion:
You should make a special sql query that gets the data not the functions not
intended for that kind of stuff :)
Thanks otherwise for this mod.
Regards Mike
Hi.
I just installed this mod and works fine; great job.
But I only have one question:
Are there any way to allow normal users registry and registry by invitation (both at the same time)?
Regards.
I currently run SMF 1.1.2 and TinyPortal 0.98, along with a few other mods ...
vMulticolor-Stars Mod 0.99
Avatars at Index Mod 1.3
However, I am getting ready to upgrade to SMF 1.1.5 and TinyPortal 1.05 Beta. I won't upgrade the Forum to 2.0 until there is a stable release of TinyPortal that works with it.
I have read the entire 27 pages of messages on this invite mod, and I must say that in the beginning I was very excited to install it on my Forum, because the way we have our Forum setup is that a member must be approved by an Admin before becoming a member. I thought that I could avoid that by using this mod. I decided to wait until I upgraded the Forum before I planned to install it since I would probably just have to turn around and unintall it after upgrading.
Anyway, I must say that in these last 3 or 4 pages I have become quite disheartened with the attitude of the mod's author. I can certainly understand that somebody gets tired of something but to just come right out and say they are abandoning the project just plain sucks, especially since it sounds like it could quite possibly be one of the best, if not the best, mods I've ever seen for SMF.
I use a couple of custom themes on my Forum and will have to do some edits (one is Helios, which would require me to make an invite button). The link to the parser to get directions for modifying themes that is listed on the first page no longer works ...
http://server.daniel15.com/smf/package.php
I think this is a horrible way for the author to treat people who have given him such high praise for an excellent mod. Since Sarke has chosen to no longer support this mod, is there any way that an SMF Customizer or somebody else who is somewhat proficient in php could pickup this project and carry on with it, upgrading it at least for use with 1.1.5, if not 2.0?
I hope that Sarke is not Daniel15 because I have always been amazed with how brilliant he is and somewhat pleased that has always been willing to help people in the past.
ZP :(
I had installed but it is not working on my forum.. Pls help to resolve this issue :'(
I m using classic YaBB se theme & version is 1.1.5
Expecting a good response in this thing
Is this compatible with SMF 1.5?
I use it on 1.1.5 on my default theme and both my custom themes and it works fine.
For those of you using it on a theme other than the default, you need to manually edit the files that your theme is using as well as add the button or the mod will not work on your custom themes
Posts #500 & #523 indicated that the link to the parser doesn't work. Try this one: http://sleepycode.com/PackageParser/index.php
I hope that helps :)
I am using this mod on smf 1.15 and it's working ok. I can see the invite in the menu and can setup it in the admin panel. It also shows on the general stat page as Top Inviters (by Invitees) and Top Inviters (by Invitees' Posts).
BUT: I cannot see a list in memberlist or in profile, maybe somecan can post the command in the url to see a list of 1 member.
Thanks for creating this mod!
Hi
Can registration email be formatted using HTML? I know we can edit its text in Admin. But I want to make it look colourful and if possible, with image in it.
Please tell me they way I can manage this.
Thanks.
Quote from: theSuda on August 17, 2008, 09:32:02 AM
Hi
Can registration email be formatted using HTML? I know we can edit its text in Admin. But I want to make it look colourful and if possible, with image in it.
Please tell me they way I can manage this.
Thanks.
Can anybody help me here? Is there any way we can format the emails using at least HTML?
Quote from: theSuda on August 18, 2008, 10:13:20 AM
Quote from: theSuda on August 17, 2008, 09:32:02 AM
Hi
Can registration email be formatted using HTML? I know we can edit its text in Admin. But I want to make it look colourful and if possible, with image in it.
Please tell me they way I can manage this.
Thanks.
Can anybody help me here? Is there any way we can format the emails using at least HTML?
Am I at wrong thread to ask this question? Any senior member, please guide me if this is the case.
Thanks.
Czech translation of the MOD. Made by me, and it isnt working so well... Look like this... I dont understand, it is instaled on czech-utf8 forum, and is it in modifications.czech-utf8.php and still the special chars are displayed wrong. Any help please ?
(http://www.imghost.sk/up/images/v3yonxe5dkvfpygx78o_thumb.png) (http://www.imghost.sk/up/images/v3yonxe5dkvfpygx78o.png)
thanks :)
Is there a Title bug or only I got it. The page that sending invitation via email have no title tag, its shown as empty <title></title>
Quote from: theSuda on August 17, 2008, 09:32:02 AM
Hi
Can registration email be formatted using HTML? I know we can edit its text in Admin. But I want to make it look colourful and if possible, with image in it.
Please tell me they way I can manage this.
Thanks.
Yes you can use html tags inside of "E-mail message" text. I tried this one and it succeded;
This is <b>bold</b> text.
Is there somebody gonna make this mod for 1.1.6? and 2.0?
I also think it would be good if you add the translations in mod page.
Quote from: PLAYBOY on September 17, 2008, 06:13:47 AM
Is there somebody gonna make this mod for 1.1.6? and 2.0?
I also think it would be good if you add the translations in mod page.
Just change 1.1.5 into 1.1.6 (or add near of it) in package-info.xml, both for install and uninstall section.
2.0, I dunno.
I am using the 1.16 version of SMF and Installed the Invite Mod. However when I am using the Dilber MC Theme I do not see Invite on the Menu. Should I be seeing it somewhere else? Or do I need to be doing something differently?
hey i am trying to get this to work on a custome theme and i did what you said but my invite menu looks like this: http://i36.tinypic.com/xkvwut.jpg
this is what my index.template looks like: http://pastebin.com/m62322b00
also when i log out and go to the register page it shows this instead of the "you have to be invited" text: http://i33.tinypic.com/2vwwrp0.jpg
Quote from: patrickVO on October 01, 2008, 12:29:35 AM
I am using the 1.16 version of SMF and Installed the Invite Mod. However when I am using the Dilber MC Theme I do not see Invite on the Menu. Should I be seeing it somewhere else? Or do I need to be doing something differently?
I am using DİlberMC either, as always you need manual edit on your custom theme.
Use mod parser in mod download page (written as "manual instructions" or something).
Quote from: kontagio.us on October 01, 2008, 05:24:51 PM
hey i am trying to get this to work on a custome theme and i did what you said but my invite menu looks like this: http://i36.tinypic.com/xkvwut.jpg
this is what my index.template looks like: http://pastebin.com/m62322b00
also when i log out and go to the register page it shows this instead of the "you have to be invited" text: http://i33.tinypic.com/2vwwrp0.jpg
Is it working on default theme?
I am asking this to check you properly installed it.
yeah it works 100% with the default theme
im going to download the package again and go to that parsing website to see what more i need to do
can you link me to it im still looking :/
Quote from: kontagio.us on October 01, 2008, 08:14:39 PM
yeah it works 100% with the default theme
im going to download the package again and go to that parsing website to see what more i need to do
can you link me to it im still looking :/
It seems you didnt edit your custom theme correctly.
To do this;
- Click here http://custom.simplemachines.org/mods/index.php?mod=653
- Choose # Invite_1.14.zip
- Choose yoor forum's version in "Manual Install Instructions for SMF"
- Then "submit"
Next page will show the instructions.
Dear Developers
Does this mod installs automatically ( without manual editing) on SMF 2.0 B4? if I have the default theme?
Quote from: shereif on October 08, 2008, 04:02:46 PM
Dear Developers
Does this mod installs automatically ( without manual editing) on SMF 2.0 B4? if I have the default theme?
This mod doesnt support 2.x versions. SO you cant install it.
Hi,
Installed this mod no problem,
I created a button for it in my custom index.template.php file no problem there,
everything works fine but is there suppose to be a button to show who they invited?
When i click on invite it shows (see screen shot) is it suppose to show who I invited ? as it not showing
The only way i can see who i invited is by going to my profile and clicking on the members invited, is that the only way i can see who i invited?
I have selected the to show invites etc in permissions
thanks
mathew
Bump,
If mod creator could reply, thank you
Quote from: genieuk on October 11, 2008, 10:33:50 AM
Bump,
If mod creator could reply, thank you
This is like how my site is working. I mean there are no any entry about "who I invited" in invitation page. There shouldn't be either. I dunno why its necessary to see while you inviting. Maybe you want to check double invitation?
Hi,
No i just wanted to make sure I did not install it wrong, that all ;)
Thanks
Mathew
Everything installed fine for me except the stats.template.php. I am trying to edit that file manually, but can't find the section to add the code to. I am also using the enhanced stats mod if that matters.
Can someone point me in the right direction, please?
Thanks in advance,
Flip
I have a question.
Can i send ''invite credis'' ( invites) by group.
For ex. i want users to have 2 invites,power users 4 invites and etc. How can i do this? Thanks.
Quote from: 1923 on November 04, 2008, 10:34:53 AM
I have a question.
Can i send ''invite credis'' ( invites) by group.
For ex. i want users to have 2 invites,power users 4 invites and etc. How can i do this? Thanks.
Somone?
Conditions are located in "invite.php" and InviteMain function.
Quote from: SONSiVRi on November 07, 2008, 12:08:48 PM
Conditions are located in "invite.php" and InviteMain function.
Can you tell me the line,code. Thanks.
I want something like this:
:: User - 2 invite. ::
:: Power User - 3 invites. ::
:: Elite users - 4invites. ::
:: Donor - 5 invites. ::
:: VIP - 5 invites. ::
:: Moderator , Administrator - Unlimited
bump
I re-made this mod from beginning, added fancy features.
Guests can create topic to tell about themselves and ask for an invitation. You need to create special board for invitation asking of guests and specify that board's ID in settings page.
- Guests will see "Invitation Request" button instead of "Post New Topic"
- They need to fill the form and post it.
- Email confirmation required to prevent spammers.
- Using the link posted in email, guest's topic will then appear (Will be deleted if it doesn't confirmed in 2 days).
- Registered members can use the button located in invitation topic to invite guests (invite key creation and emailing are fully automated, no manual work needed).
- Invitation will be sent via email that guest specified (sponsor won't see it, namely email is hidden).
- There will be automated message repplies to inform rest of members, which step of process is going on.
- After all that, you can trace in user's profile if user asked for invitation and which topic it is.
I dunno how system works in changing of modifications. Do author has a permission to disallow me to publish? I dunno.
So for that, I can't give it to you yet.
Quote from: 1923 on November 08, 2008, 11:48:58 AM
Quote from: SONSiVRi on November 07, 2008, 12:08:48 PM
Conditions are located in "invite.php" and InviteMain function.
Can you tell me the line,code. Thanks.
I want something like this:
:: User - 2 invite. ::
:: Power User - 3 invites. ::
:: Elite users - 4invites. ::
:: Donor - 5 invites. ::
:: VIP - 5 invites. ::
:: Moderator , Administrator - Unlimited
There is no line. I told you where calculations are happening and you need to code it yourself. I am hearing you are asking "why I have to do it alone myself?"
Here is why;
As I saw in your "last posts" you are not helpful guy and asking always "how", "please", "ok"...
In my principle you cannot always take. Ahhh, I dont mention everyone should publish useful mods or serve great codes. Its matter of behaviour, if you have your own smf then you know how to setup and configure. You can help people "how to" with these details.
Also I have a simple mathematical equation for you: if you didn't give any help here, how can you always ask?
P.S: Don't take it personally, I am talking about people always take and not give.
Hello, i want to ask if this mod can be able to invite more than one person at a time?
Quote from: sam_milla on November 12, 2008, 08:53:19 AM
Hello, i want to ask if this mod can be able to invite more than one person at a time?
If you talking about comma seperated maillist and you have enough credits, yeah it can be modified that way.
Thanks for the mod, i would need this mod for smf 2b4.
can you make it compatible? would be great :)
Hi Sarke,
Could we please have this mod compatible with smf 2.4 ...
Thanks mate.
Quote from: Sarke on November 08, 2007, 12:26:03 AM
My mod has gone un-updated for a while now because of the constant support and time required to maintain a mod. The majority of problems stem not from the mod itself, but from issues relating to installation (conflict with other mods). It's simply not worth my time. I will not be supporting this mod in its current form, but might do something down the road with this.
This mod looks like it was abandoned, if anyone wants to contact the original author about taking it over to do a port to smf 2b4 that would be appreciated.
I do enhanced version of this mod, it works fantastic now. And lots of options in it. But all these for 1.1.7. I never use 2.x since its still beta.
there are manual installation instructions for editing the files to make it work with 2b4... has anyone tried doing it manually to see if it would work? if not, i may give it a shot next week...
Has anyone tried the manual install for 2b4? If so, did it work (LadyC???)? If not, does anyone still plan to?
Has anyone made plans to upgrade the mod for 2.x? For 1.1.7, it's a great mod, works wonderful. My opinion, it should be core for 2.0 - it's a great thing that I think all admins should at least have the option to do.
Thanks,
Flip
tried, doesn't work. some of the files that need to be edited no longer exist in 2b4, and in some other files, the code has been rewritten so differently that the segments that need to be edited can't be found.
i've got an administrator who is a wiz at programming, she's going to try and modify it for me, but i don't know how long it will be before she has time to get to it. she said she'll work on it christmas day, but i've told her she needs to spend that day doing christmas stuff, not programming stuff.
This is very cool mods but I need just one more function in this.. Can yo please do it for me please?
Members are invited by some existing member but they dont always send Invitee link. Thats why there should be an option to select invitee while registering for membership.
Just like this referral mod
http://custom.simplemachines.org/mods/index.php?action=download;mod=1114;id=50549;image
Quote from: danishj on December 22, 2008, 03:20:57 AM
This is very cool mods but I need just one more function in this.. Can yo please do it for me please?
Members are invited by some existing member but they dont always send Invitee link. Thats why there should be an option to select invitee while registering for membership.
Just like this referral mod
http://custom.simplemachines.org/mods/index.php?action=download;mod=1114;id=50549;image
You are talking about "registrations are only by invitation" mode? If its, users doesn't had to choose referrer, system does automatically.
Has anyone got this working with the babylon theme? The manual edit won't work because it is set up different and uses actual images for buttons.
I have it working great on the core theme and the modified clone of it that I am customizing.
I also do not see this "invited by" tab even on the default (core) theme http://custom.simplemachines.org/mods/index.php?action=download;mod=653;id=28982;image
It is the 5th image on the mod download page
http://custom.simplemachines.org/mods/index.php?mod=653
was it modded out in version 1.1.4? It's still on the screen shots for the mod.
found it http://www.simplemachines.org/community/index.php?topic=154999.msg998252#msg998252 for anyone else with the same question.
I also do not see the option to send an invite link without a key as in a screen capture from another poster, I will reread the entire thread to see if it was code given rather than in the mod itself.
btw this is a new install of 1.1.7
Quote from: SilentMoon on December 23, 2008, 08:04:27 PM
Has anyone got this working with the babylon theme? The manual edit won't work because it is set up different and uses actual images for buttons.
I have it working great on the core theme and the modified clone of it that I am customizing.
I also do not see this "invited by" tab even on the default (core) theme http://custom.simplemachines.org/mods/index.php?action=download;mod=653;id=28982;image
It is the 5th image on the mod download page
http://custom.simplemachines.org/mods/index.php?mod=653
was it modded out in version 1.1.4? It's still on the screen shots for the mod.
found it http://www.simplemachines.org/community/index.php?topic=154999.msg998252#msg998252 for anyone else with the same question.
Quote from: Sarke on March 09, 2007, 11:19:48 AM
If you have any invitees then there should be a number next to "Members Invited: " in the profile. Clicking that number will take you to the list, and currently that is the only way to get to the list.
EDIT: it looks to be installed correctly.
Still do not see a way to tell who has been invited by whom until they validate the link. The key screen only shows the key not who it was issued to. They do not show until the register as part of that number.
I also do not see the option to send an invite link without a key as in a screen capture from another poster, I will reread the entire thread to see if it was code given rather than in the mod itself.
btw this is a new install of 1.1.7
SONSiVRi, what's the update on your revamp of this mod? my board desperately needs what you are offering!!!
as I said, I dunno permissions to publish or overtaken. Besides that, I made it fully compatible for my board, so it cannot be installed yours in this state.
If a key expires and is the link is followed from the email it goes to a page to enter a valid invite key. If the expired key is entered it reloads the same screen, it does not put show that the key is expired. I had thought it would since the line
$txt['registration_invite_expired'] = 'Sorry, the invite key has expired.';
is in ./Themes/default/languages/Modifications.english.php
Hello, ive smf 1.1.7 and uploaded Invite (registration through invitation)....
problem is it doesnt show in the admin as per instructions and successful installations.
Hello, ive smf 1.1.7 and uploaded Invite (registration through invitation) MOD from ....
problem is it doesnt show in the admin as per instructions and successful installations. ... please help
If your board is using English utf-8, try changing it to english.
Quote from: SilentMoon on January 03, 2009, 10:03:23 AM
If a key expires and is the link is followed from the email it goes to a page to enter a valid invite key. If the expired key is entered it reloads the same screen, it does not put show that the key is expired. I had thought it would since the line
$txt['registration_invite_expired'] = 'Sorry, the invite key has expired.';
is in ./Themes/default/languages/Modifications.english.php
registration_invite_expired is used in invite.php, but condition maybe written wrong. I saw that problem before, but I didn't mind it. I'll look at it when I have time.
Thank you.
Quote from: SilentMoon on January 06, 2009, 06:17:07 AM
If your board is using English utf-8, try changing it to english.
This is the thing that did it for me! But, I'm using it for a Norwegian forum, so I would like to be able to use the Norwegian language on the forum, is there annyway of changing somthing in the modification that would make it work with another language? Because even when I do "index.php?action=invite" I get to the invite page, but it dosent actully work, if annyone could help me with this you would make me a grateful man :)
Btw, I'm using a newly installed version 1.1.7
If you need any other information, let me know!
Hi guys, this mod isn't available to: SMF 1.1.7
someone knows how install this mod to SMF 1.1.7 ????
or somebody knows a similar MOD to SMF 1.1.7 ??
I need close my forum only under user invitation. how can i do it ?
sorry guys.. right now the mod is available to SMF 1.1.7
;D
Prolly already asked ... but can more then one person be invited ?? emails names separated by comma ??
Also, where do i go to see a list of people that have sent invitations ??
After installing this mod ... 2 people registered and im seeing this error in the logs
QuoteDatabase Error: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation 'like'
File: /home/xxxxxxx/public_html/forum/Sources/Subs-Members.php
Line: 899
Any idea ??
Please i need someone to help me out with the installing of Invite System on Smf 1.1..7 it upload successfully but it is not on the menu bar
i'm confused about how i get this to appear/function on my forum:
(http://www.weerez.com/atnw/invite.png)
i've installed the mod successfully but i can't get this feature to show up anywhere. additionally, i can't seem to get this to appear either (although this may be due to the ultimate profile mod i have installed):
(http://www.weerez.com/atnw/invite2.png)
anyone have any ideas about how i get this working so i can see who is inviting who?
Will this work on 1.1.8?
Quote from: fivewinds on March 06, 2009, 11:52:34 PM
Will this work on 1.1.8?
Yup ..... thats what im using it on
i'm hoping for the day when it'll work on the 2x series.... but in the meantime, i just disabled registration, and when we want to invite someone, we register them in the admin panel! not ideal, but a workable alternative for now!
Quote from: aw06 on March 07, 2009, 12:02:14 AM
Quote from: fivewinds on March 06, 2009, 11:52:34 PM
Will this work on 1.1.8?
Yup ..... thats what im using it on
Did you have to add the menu button manually? It's not showing up for me.
I have this slight problem
I have installed the component on 1.1.8. I use a customised template that is, in reality, very close to the default one, and everything seems fine
Except, I have set the maximum credits to 5, but it is showing UNLIMITED on the Invite Someone page.
Any thoughts?
nothing like this for 2.0?
thanks
Quote from: greg04 on February 04, 2009, 02:14:41 PM
i'm confused about how i get this to appear/function on my forum:
(http://www.weerez.com/atnw/invite.png)
i've installed the mod successfully but i can't get this feature to show up anywhere. additionally, i can't seem to get this to appear either (although this may be due to the ultimate profile mod i have installed):
(http://www.weerez.com/atnw/invite2.png)
anyone have any ideas about how i get this working so i can see who is inviting who?
Quote from: derby on January 31, 2009, 05:49:32 PM
Please i need someone to help me out with the installing of Invite System on Smf 1.1..7 it upload successfully but it is not on the menu bar
You two didn't apply on custome theme, there are some files need to be edited in custom themes too; index.template.php Profile.template.php ...
Quote from: jsanglier on March 25, 2009, 10:19:24 AM
I have this slight problem
I have installed the component on 1.1.8. I use a customised template that is, in reality, very close to the default one, and everything seems fine
Except, I have set the maximum credits to 5, but it is showing UNLIMITED on the Invite Someone page.
Any thoughts?
Because you have unlimited credits by permissions. There is a membergroup permission about that. You can seperately assign for administrators, moderators....
Quote from: AlreeGator on March 10, 2009, 12:20:57 AM
Quote from: aw06 on March 07, 2009, 12:02:14 AM
Quote from: fivewinds on March 06, 2009, 11:52:34 PM
Will this work on 1.1.8?
Yup ..... thats what im using it on
Did you have to add the menu button manually? It's not showing up for me.
Yes you should manually edit your files if you are using custome theme.
can somebody explain me how to install this mod, im a verry newbie :)
Quote from: SERGIUx on April 22, 2009, 02:35:19 PM
can somebody explain me how to install this mod, im a verry newbie :)
Why don't you simply check before posting? You don't think you are the first newbie wants to install mod, do you?
There is a "Getting started..." in
mod site, http://custom.simplemachines.org/mods/
interesting huh? somebody already answered your problem before, this must be your lucky day.
thx a lot
Quote from: jbernabe on March 26, 2009, 08:09:31 AM
nothing like this for 2.0?
thanks
Search it to for smf 2.0 :(
Is this mod supposed to work with 1.1.9? I just installed it and it installed without any errors but it's not showing up in the Features and Options.
Quote from: JCox on May 22, 2009, 12:01:25 AM
Is this mod supposed to work with 1.1.9? I just installed it and it installed without any errors but it's not showing up in the Features and Options.
Probably you are using custom theme, you need to edit those files too.
Is there any chance to make this mod work on SMF 2.0 RC1 ?
For SMF 2.0 would be great ;D ;D
Quote from: Xarus on May 24, 2009, 08:12:06 AM
Is there any chance to make this mod work on SMF 2.0 RC1 ?
Yeah, would love an update for 1-1 =D
will be updated for the new version? (rc1-1 and 1.1.9)
Quote from: WannaBeDie on June 28, 2009, 01:33:49 PM
will be updated for the new version? (rc1-1 and 1.1.9)
Its already compatible with 1.1.9, what you get as an error?
I do not get the 1.1.9 error.I would ask for the other versions(2.0rc1-1)
Hey,
Installed the mod and set it up, only to realize that you cannot see it (the invite button in the menu) in the theme... in fact the only theme that does see it on my forum is the SMF Core theme.. What do i have to put in the theme files?
Running SMF 1.1.8
Any Ideas?
Got is working for the kani theme (Sort of) its a little hacky but you need to change this
// Invite MOD.
if (allowedTo('invite'))
{
global $modSettings;
echo ($current_action == 'invite' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'invite' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=invite">' , (!empty($modSettings['invite_menu_title']) ? $modSettings['invite_menu_title'] : $txt['invite_title']) , '</a>
</td>' , $current_action == 'invite' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
}
To this
// Invite MOD.
if (allowedTo('invite'))
{
global $modSettings;
echo ($current_action == 'invite' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<li class="' , $current_action == 'invite' ? 'current' : '' , '"><a href="', $scripturl, '?action=invite">' , (!empty($modSettings['invite_menu_title']) ? $modSettings['invite_menu_title'] : $txt['invite_title']) , '</a></li>';
}
It looks ok on every page but the invite page itself, i prob left something out when i changed it but its sufficient enough to work
tinylanda,
SMF has different files for each theme, mod's are generally and only edits the core theme files, you need to apply same modifications into your cutom theme too. I saw you figured out yourself. You need to visit "manual installation instructions (something like that)" in mod download page, and see which files need to be edited. Files having "xx.template.php" notation.
i will like to install this mod, but i am using smf 1.1.9 with babylon themes. i am a newbie i dont know anything about editing in php, i have gone through the whole replies here and my head is filled up.
i need someone to help me out and give me directions on how to installl it without have problems.
i have attached my babylon index.template.php & profile.template.php incase editing is needed
thanks alot
MY FORUM LINK (http://www.naijaorbit.com)
This is a page in the doc site that explains how to manually install a modification. If you can learn how to do it once, it'll make your forum-running life much easier :)
http://docs.simplemachines.org/index.php?topic=402
Give it a try, under "XML Format Instructions" , and tell us how it goes. If you still need help, we'll be here. We always try to help people help themselves first, though ;)
ok, i will give it a try...hmm i am scared as a newbie...lol
Quote from: collins465 on July 13, 2009, 09:37:34 AM
ok, i will give it a try...hmm i am scared as a newbie...lol
Just read the article and try to apply. When you failed, tell us precisely what you have done so far.
Quote from: SONSiVRi on July 14, 2009, 01:24:07 AM
Quote from: collins465 on July 13, 2009, 09:37:34 AM
ok, i will give it a try...hmm i am scared as a newbie...lol
Just read the article and try to apply. When you failed, tell us precisely what you have done so far.
is same applicable to PRETTY URL (http://www.simplemachines.org/community/index.php?topic=146969) coz it looks complicated, or what do u think?
Yes, it's applicable to all SMF modifications.
I have installed this mod on the Megapolis custom theme - seems to work great.
I had to manually install the menu button.
My problem is the background of the menu button is upside down - please see image below.
Can anyone suggest what I have done wrong or how to fix it?
Thanks
(http://www.nuggetfishing.com.au/images/menu.jpg)
I dont know that theme, but if you post your index.template.php, I could have a look at it for you :)
Thank you for your help
How do I attach a file?
I have uploaded it to
http://www.nuggetfishing.com.au/images/index.template4.php
My pleasure.
It'd be better if you attach your template here buddy.
I cannot get to your link.
When posting a message, click on "Additional Options..." and you will see how to add it.
Cheers :)
Thanks - I can be a duffus at times :)
Test this mate. :)
Perfect - thanks you very much.
Without taking up too much of your time can you let me know what the problem was - I'd like to learn from my mistakes
Many thanks again
No worries :)
Most custom templates are 'layed out' different to the default template.
When you look at your index.template4, you will see how I only changed the code to sit with the rest.
Understanding little things like that, will help you out with further installation issues.
All the best :)
Thanks again - I'll print out the original and your modified one and look at the changes
Much appreciated
Cheers
Sabre, nice going ;)
SONSiVRi, thanks ;) lol
can someone help me get this mod to work on smf 1.1.10?
What seems to be the problem?
It works with 1.1.10
Quote from: Sabre™ on September 10, 2009, 06:18:50 PM
What seems to be the problem?
It works with 1.1.10
Sorry i haven't been on, but when i install this to my smf 1.1.10 it'll install but when you goto any of the pages for this mod there is no text ect. Ill install it back to my site so you can see. www.HACHQ.com
Thanks for the help so far Sabre
Im also using the cargo theme from Dzinerstudio
Check to see if the language strings were added to your Modifications.english.php, and/or if you have a file named Modifications.english-utf8.php, then copy that code into that template aswell.
The same applies if you're using different languages : eg. Modifications.klingon.php Your language files are located in your default theme in the Languages folder/directory.
To get the "invite" button to appear on your theme, you will also need to add the code which inserts into its index.template.php
EDIT: I just went to your site and saw you've already added the invite button.
Quote from: Sabre™ on September 13, 2009, 06:24:03 PM
Check to see if the language strings were added to your Modifications.english.php, and/or if you have a file named Modifications.english-utf8.php, then copy that code into that template aswell.
The same applies if you're using different languages : eg. Modifications.klingon.php Your language files are located in your default theme in the Languages folder/directory.
To get the "invite" button to appear on your theme, you will also need to add the code which inserts into its index.template.php
EDIT: I just went to your site and saw you've already added the invite button.
Ok so, this theme doesn't have a "Modifications.english.php" or "Modifications.english-utf8.php", so what should i do to add thoes? Copy it from the default theme into my cargo them or ...
Here is a Pict of what this looks like also: http://i202.photobucket.com/albums/aa240/halo123noob/help.png
PS. Im new at SMF forums, I have been running PHPBB forums and i just dont like the feel of thoes any more, So the coding of smf is a little different.
Quote from: halo123noob on September 13, 2009, 06:49:30 PM
Ok so, this theme doesn't have a "Modifications.english.php" or "Modifications.english-utf8.php", so what should i do to add thoes? Copy it from the default theme into my cargo them or ..
Nah mate, your theme will call for the templates from the default theme. Whenever a custom theme does not have a template required, it will do this.
Check to see if the language strings were added to your Modifications.english.php, it should have been, but it is always best to make sure.
Do you know if your theme is using utf8?
Try making a copy of your Modifications.english.php, and rename the copy to Modifications.english-utf8.php.
Quote from: halo123noob on September 13, 2009, 06:49:30 PM
PS. Im new at SMF forums, I have been running PHPBB forums and i just dont like the feel of thoes any more, So the coding of smf is a little different.
Welcome to SMF mate :)
I'm sure you'll pick it up in no time.
Thanks Sabre™,
Your the best, I finally got it to work i made a copy of the modification.English and renamed it to that utf8 file. And it works thanks a lot :)
Anytime mate. :)
When you install a mod, if it doesn't provide the edits for your utf8 templates, just copy the code into them, and all will be fine.
Enjoy :)
Ok, this is going to be a noob question. i know this question has be answered before in this thread, but i couldn't understand the answer so im going to ask. I tried installing this mod in a custom them but the tab that is supposed to say invite. i know this because it works in the classic smf theme. Anyway im wondering how i add that invite tab to the custom theme ive downloaded? Thanks in advance for any help.
What is the theme, or could you attach its index.template.php to your next post?
To attach a template, when you click on reply, click on the Additional Options... below the post box
the theme name is extreme 10
Search for
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'logout', 'help', 'pm')))
and change it to
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'logout', 'help', 'pm', 'invite')))
then find
// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action=='pm' || $context['browser']['is_ie4']) ? '' : '' , '
<li class="' , $current_action == 'pm' ? 'current' : '' , '"><a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a></li>';
and add after it
// Invite MOD.
if (allowedTo('invite'))
{
global $modSettings;
echo ($current_action == 'invite' || $context['browser']['is_ie4']) ? '' : '' , '
<li class="' , $current_action == 'invite' ? 'current' : '' , '"><a href="', $scripturl, '?action=invite">' , (!empty($modSettings['invite_menu_title']) ? $modSettings['invite_menu_title'] : $txt['invite_title']) , '</a></li>';
}
That should do it :)
thanks man ill try that out
It worked... Dang man got some mad skillz don't know how you knew how to do that
It's just a matter of reading the code the mod injects into the template, then comparing the structure of the other codes within.
You'll pick it up in no time mate :)
Glad it worked for you.
Hello,
Great mod :P
Ok on 2RC1.2 ?
No, it is only for smf1 at the moment :P
Hello All
I have downloaded invite only mod.
However, I am in the dark how to install it.
Can someone help?
Go into your admin panel and on the left hand side under the category Main, click on the word Packages, that will take you to another screen.
Where it says Package Manager, click on the words Download Packages.
Where it says Upload a Package, click browse, select the package, then click on open.
On the rioght hand side you will see the Upload button. Click on that.
A Package uploaded successfully page will appear, and click on [ Apply Mod ].
If you get no error message, then click on the Install Now button.
And there you have it.
Read the information provided [HERE] (http://www.simplemachines.org/community/index.php?topic=154999.msg988762#msg988762) on how to use it, then read [THIS] (http://docs.simplemachines.org/index.php?topic=494.0) and [THIS] (http://docs.simplemachines.org/index.php?topic=493.0) to help others to be able assist you better in the future. Its just notes to keep in mind.
Also at the top of this page, you will see something saying "Online Manual" that should lead you to more information on how to operate the software.
Welcome to SMF buddy :)
An Error Has Occurred!
Sorry, the invite key could not be sent (already sent maybe?).
SMf 1.1.10
any word as whether there will be an update for 2.0 RC1.2
Everybody asks for 2.x updates but nobody is helping out, strange.
Yeah, Sarke hasn't been in since the 15th May 2008, so I doubt whether he'll be updating it lol
It shouldn't be too difficult mate, maybe you could have a crack at it and share?
It's just mostly the template name changes and a couple different edits for the "Mod" section in your AP, and a couple others.
Quote from: Sabre™ on October 11, 2009, 08:33:13 PM
Yeah, Sarke hasn't been in since the 15th May 2008, so I doubt whether he'll be updating it lol
It shouldn't be too difficult mate, maybe you could have a crack at it and share?
It's just mostly the template name changes and a couple different edits for the "Mod" section in your AP, and a couple others.
Is it really that easy? I never inspected 2.x source code, that's why I am not volunteer.
If you could make this compatible with SMF 2.0 RC1.2, that'd be amazing. I've really wanted to use this system for my forums. While you can always have registration be approved, its really just not the same. Plus it allows for more flexibility and less stress on the administrators. Hell, I'd be willing to be a few good bucks for this system to be made on 2.0 RC 1.2
I don't think the one who port this mod to 2.x will be me. It's hell of a job.
Ive installed it, without any errors, but none of the buttons or menus are there. I dont have any custom theme, just the standard one. Im running version 1.1.10. Can anyone help :D
Thanks Morten
Quote from: txd on October 27, 2009, 12:59:47 PM
Ive installed it, without any errors, but none of the buttons or menus are there. I dont have any custom theme, just the standard one. Im running version 1.1.10. Can anyone help :D
Thanks Morten
Search this code in your index.template.php
// Invite MOD.
if (allowedTo('invite'))
{
global $modSettings;
echo ($current_action == 'invite' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'invite' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=invite">' , (!empty($modSettings['invite_menu_title']) ? $modSettings['invite_menu_title'] : $txt['invite_title']) , '</a>
</td>' , $current_action == 'invite' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
}
Is it exist?
I have been using it and seems to be working. Where do I get a report that shows me who has how many invites? I couldn't find it under the "Invite" tab at all.
Does registration via invitation only have to be set up for this to work?
In other words, can regular registration be open and have this work too?
Quote from: Sarke on March 10, 2007, 03:53:37 AM
Here's the code snippet for top 5 inviters for TP. It does not check permissions since you set this with the TP.
global $user_profile, $db_prefix, $scripturl;
$request = db_query("
SELECT ID_MEMBER, COUNT(*) as invitees
FROM {$db_prefix}invites
WHERE ID_REGISTRATION != 0
GROUP BY ID_MEMBER
ORDER BY invitees
LIMIT 5
", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($request))
{
$top_inviters[$row['ID_MEMBER']] = $row['invitees'];
}
mysql_free_result($request);
echo '
<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">';
foreach ($top_inviters as $id => $invitees)
if(loadMemberData(array($id)))
{
if (!empty($user_profile[$id]['member_group_color']))
$color = ' style="color: ' . $user_profile[$id]['member_group_color'] . '"';
elseif (!empty($user_profile[$id]['post_group_color']))
$color = ' style="color: ' . $user_profile[$id]['post_group_color'] . '"';
else
$color = '';
echo '
<tr>
<td><a href="', $scripturl, '?action=profile;u=', $id, '"><span', $color, '>', $user_profile[$id]['realName'], '</span></a></td>
<td align="right"><a href="', $scripturl, '?action=mlist;sa=search;inviter=', $id, '">', $invitees, '</a></td>
</tr>';
}
echo '
</table>';
What type of code do you set this as to make it work?
Quote from: sandmannd on November 04, 2009, 11:26:51 AM
I have been using it and seems to be working. Where do I get a report that shows me who has how many invites? I couldn't find it under the "Invite" tab at all.
There is no option like that, you need to write custom codes for it.
Quote from: Uhura! on November 04, 2009, 12:24:26 PM
Does registration via invitation only have to be set up for this to work?
In other words, can regular registration be open and have this work too?
As I recall correctly, both of them can work together. Default setup is that what you asking. If you go for settings and prevent regular registrations, then you got "only for invitation" on your hands.
Quote from: sandmannd on November 04, 2009, 12:29:40 PM
Quote from: Sarke on March 10, 2007, 03:53:37 AM
Here's the code snippet for top 5 inviters for TP. It does not check permissions since you set this with the TP.
global $user_profile, $db_prefix, $scripturl;
$request = db_query("
SELECT ID_MEMBER, COUNT(*) as invitees
FROM {$db_prefix}invites
WHERE ID_REGISTRATION != 0
GROUP BY ID_MEMBER
ORDER BY invitees
LIMIT 5
", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($request))
{
$top_inviters[$row['ID_MEMBER']] = $row['invitees'];
}
mysql_free_result($request);
echo '
<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">';
foreach ($top_inviters as $id => $invitees)
if(loadMemberData(array($id)))
{
if (!empty($user_profile[$id]['member_group_color']))
$color = ' style="color: ' . $user_profile[$id]['member_group_color'] . '"';
elseif (!empty($user_profile[$id]['post_group_color']))
$color = ' style="color: ' . $user_profile[$id]['post_group_color'] . '"';
else
$color = '';
echo '
<tr>
<td><a href="', $scripturl, '?action=profile;u=', $id, '"><span', $color, '>', $user_profile[$id]['realName'], '</span></a></td>
<td align="right"><a href="', $scripturl, '?action=mlist;sa=search;inviter=', $id, '">', $invitees, '</a></td>
</tr>';
}
echo '
</table>';
What type of code do you set this as to make it work?
It is old post from 2007, it is now included in the mod you are using. It is just for statistics page, not for displaying how many invites your members got.
Quote from: SONSiVRi on November 04, 2009, 08:24:38 PM
Quote from: sandmannd on November 04, 2009, 11:26:51 AM
I have been using it and seems to be working. Where do I get a report that shows me who has how many invites? I couldn't find it under the "Invite" tab at all.
There is no option like that, you need to write custom codes for it.
So I have no way of knowing how may people my members brought in? How do I find that information? Without that information this mod does me no good.
It does you the good of offering you and your community the option of "invites".
The top invite stats may be viewed within the "stats" area of your forum. You can view how many a particular user has provided within their profile, and next to their posts in the forum.
SONSiVRi has already mentioned the range/area(s) in which this mod currently covers.
Are you asking if there is a whole page to display ALL of the stats for every user regarding invites, the answer is no.
Or are you asking about displaying the total amount of invited people etc etc..
These can be done, requiring somebody takes the time to do them.
What are you actually asking for, if you are indeed asking for something?
Cheers
I simply need a place to see how many a member has. I've looked through members profiles and can't find a thing on it when I know they've done the invite. I don't actually see a "Stats" area, where would I look for this?
By chance are you using a theme other than the default theme?
If so, does that theme have it's own Profile.template.php and/or display.template.php? The code this mod inserts into those templates will have to be manually applied if so.
There should be an area in profiles that states "Members invited:".
If this is not there, check that the code was added to the respective templates.
If you require assistance with these, attach those templates to your next post, and I or another will have a look at them for you.
The stats area is located here
h**p://yoursite_address/index.php?action=stats
Hey thanks, that's all I was looking for.
lol cool.
Is the mod displaying ok in the profile area and topics area?
Quote from: SONSiVRi on November 04, 2009, 08:25:56 PM
Quote from: Uhura! on November 04, 2009, 12:24:26 PM
Does registration via invitation only have to be set up for this to work?
In other words, can regular registration be open and have this work too?
As I recall correctly, both of them can work together. Default setup is that what you asking. If you go for settings and prevent regular registrations, then you got "only for invitation" on your hands.
If that's the case... I don't see the invite tab at all for members....where is it?
BTW- I set everyone except guests and people with zero posts with permission to invite...
Quote from: Zadkiel on October 12, 2009, 06:46:28 PM
If you could make this compatible with SMF 2.0 RC1.2, that'd be amazing. I've really wanted to use this system for my forums. While you can always have registration be approved, its really just not the same. Plus it allows for more flexibility and less stress on the administrators. Hell, I'd be willing to be a few good bucks for this system to be made on 2.0 RC 1.2
Quote from: SONSiVRi on October 10, 2009, 05:01:41 AM
Everybody asks for 2.x updates but nobody is helping out, strange.
I understand the reluctance due to the possibility of duplicating some of the original mod author's code, but I would also like to see this mod for 2.0 myself. I am working on a project that is 2.0 based and I would rather it be by invite only once it is finished. :)
Quote from: Sabre™ on November 04, 2009, 09:54:47 PM
lol cool.
Is the mod displaying ok in the profile area and topics area?
I see it in the topics but I haven't found it in the profile yet.
Quote from: Uhura! on November 04, 2009, 10:15:04 PM
If that's the case... I don't see the invite tab at all for members....where is it?
BTW- I set everyone except guests and people with zero posts with permission to invite...
Probably you got custom theme and you didn't manually edit your custom files (those ending with xx.template.php suffix).
"busterone"
I wish I could help, but I don't know smf 2.0 structure.
^ that is cool. I don't know it well enough to code that either. :)
Quote from: Sabre™ on October 11, 2009, 08:33:13 PM
Yeah, Sarke hasn't been in since the 15th May 2008, so I doubt whether he'll be updating it lol
It shouldn't be too difficult mate, maybe you could have a crack at it and share?
It's just mostly the template name changes and a couple different edits for the "Mod" section in your AP, and a couple others.
that's a long toilet break
I'm on SMF 1.1.10 can anyone assist?
I want my forum to continue to grow via public registration and members inviting people.
Quote from: Uhura! on November 07, 2009, 12:09:38 PM
I'm on SMF 1.1.10 can anyone assist?
I want my forum to continue to grow via public registration and members inviting people.
Visit "Admin -> Features and Options -> Invite" and then remove selection on "Only allow registrations through invitation" checkbox. That way you will have regular registrations and invitation system same time.
Quote from: SONSiVRi on November 07, 2009, 03:04:01 PM
Quote from: Uhura! on November 07, 2009, 12:09:38 PM
I'm on SMF 1.1.10 can anyone assist?
I want my forum to continue to grow via public registration and members inviting people.
Visit "Admin -> Features and Options -> Invite" and then remove selection on "Only allow registrations through invitation" checkbox. That way you will have regular registrations and invitation system same time.
This is how I have it already. I also have set the prmissions so tat everyone except guests & members with zero posts have permnission to invite other people, yet I see no place for members to use the Invite function.
As I wrote earlier, you have custom theme (If I am not seeing wrong), and you need to edit your files manually. Tell me if you need help on this.
not able to install without getting the error it was incompatible.
Quote from: BogusAurelius on November 07, 2009, 05:25:48 PM
not able to install without getting the error it was incompatible.
Just complaining won't help anyone.
lol What my friend SONSiVRi means, is that you need to provide more information, such as which version of SMF you are using.
This mod only installs into SMF 1.x.x, and not SMF 2.
If indeed you are using SMF 1.x.x, then I suggest you re-download a fresh copy of the mod, for it should most definitely be compatible, and may have somehow been corrupted via transfer.
Unlikely, but it has been known to happen.
Also, reading [THIS] (http://docs.simplemachines.org/index.php?topic=494.0) and [THIS] (http://docs.simplemachines.org/index.php?topic=493.0) will enable people to assist you with more efficiency.
Good luck :)
I've ported it to SMF 2 RC 1.2 but just the essential.. Some features aren't ported beceause i don't need them ..
If anyone want it, I will post a new mod.
Quote from: chico200987 on November 17, 2009, 08:37:28 AM
I've ported it to SMF 2 RC 1.2 but just the essential.. Some features aren't ported beceause i don't need them ..
If anyone want it, I will post a new mod.
It's great job, many will be happy. But you can't post a ported mod unless you have the permission of author. But I think its ok to attach here, while informing the author.
Ok, I'm going to ask him before, thanks !
Sorry for the absence everyone, I meant to do this earlier. I'll release it under the CC BY-NC-SA license. Go nuts.
(http://i.creativecommons.org/l/by-nc-sa/3.0/88x31.png) (http://creativecommons.org/licenses/by-nc-sa/3.0/)
http://creativecommons.org/licenses/by-nc-sa/3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0)
Thats great news, thanks Sarke, a lot of folks been looking for an update (including me)... hopefully someone will take it on soon.
Welcome back BTW.
Hey Sarke, does that mean you are not supporting anymore and handing over it? Or did I get wrong. I hope I got it wrong.
Quote from: SONSiVRi on November 20, 2009, 03:56:42 AM
Hey Sarke, does that mean you are not supporting anymore and handing over it? Or did I get wrong. I hope I got it wrong.
I haven't supported it for a couple of years now (since SMF 1.1.2), so that hasn't changed. It was simply too time consuming with most of the "support" issues being installation issues, and then a new version had to be made every time SMF was updated. This is just how SMF handles mods. Of the free time I had to work on SMF mods, very little of it was put towards improving the mod because of the time it took to simply support it.
As for handing it over, no I'm not handing it over. That would mean I give it to someone else to maintain and then that person has control of it. What I'm doing is releasing it under the CC BY-NC-SA license, so ANYONE can work on it or make their own versions of it, as long as the conditions of the CC BY-NC-SA are met.
Basically, anyone can use my code for this mod, for any reason, as long as:
- it's attributed to me (e.g. a simple "based on Sarke's Invite mod" or similar in the documentation)
- it's not being used for commercial purposes (you can't sell it, or versions of it, or get paid to modify it; it has to be free)
- any version made must be released under a similar license (new versions must also be shared, and free for people to improve upon)
Very good.
My hat goes off to you sir :)
Happy to hear you are not handing over. I dunno why I feel bad every time I hear it, maybe I am gonna face it someday too. I'll keep supporting this mod but I wish I could do it as much as Sabre doing :) Your mod was most useful to my community, thanks for it.
well all i can say is that when i read what this mod does.. i was disappointed that i couldnt make good use of it. and as u can see many people are looking for an update.
I'm going to try and port this to rc2, but it wont be for awhile, as I'm trying to create my own theme for rc2 at the moment, and I dont actually need this mod for that project.
At my current learning speed for rc2, it should be ready sometime next year! lol
Atleast the current 'announcement' gives room for chico to post his version.
SONSiVRi, I have faith in you brother, I'm sure you'll have a stable version up n running in no time, and ready to share. :)
Sabre, man my mods aren't ported 2.x too. If I could have courage to learn new structure of 2.x line. But I modified this mod into something else in my forum. But I bet nobody needs it, too customized and also some bugs in it. Here is my 1 year old message: http://www.simplemachines.org/community/index.php?topic=154999.msg1791243#msg1791243
It looks like you've made some good additions mate :)
I like the ideas, and I can't believe I missed that post! lol
Feel free to share it when you're ready.
Cheers mate :)
Quote from: chico200987 on November 17, 2009, 08:37:28 AM
I've ported it to SMF 2 RC 1.2 but just the essential.. Some features aren't ported beceause i don't need them ..
If anyone want it, I will post a new mod.
I'd be interested if you are offering. I use 2.0 RC1.2 and only need its basic functionality if you have it ready. I don't mind coding it in by hand if it isn't packaged.
Thanks
Hi, did anyone get a copy of the mod ported to 2.0? Please share, thanks!
Quote from: SONSiVRi on November 05, 2009, 08:28:04 AM
Quote from: Uhura! on November 04, 2009, 10:15:04 PM
If that's the case... I don't see the invite tab at all for members....where is it?
BTW- I set everyone except guests and people with zero posts with permission to invite...
Probably you got custom theme and you didn't manually edit your custom files (those ending with xx.template.php suffix).
"busterone"
I wish I could help, but I don't know smf 2.0 structure.
I don't have a custome theme. Any other suggestions?
Quote from: Uhura! on November 25, 2009, 09:45:17 AM
I don't have a custome theme. Any other suggestions?
Check below codes located in this file "$themedir/index.template.php"
// Invite MOD.
if (allowedTo('invite'))
{
global $modSettings;
echo ($current_action == 'invite' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'invite' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=invite">' , (!empty($modSettings['invite_menu_title']) ? $modSettings['invite_menu_title'] : $txt['invite_title']) , '</a>
</td>' , $current_action == 'invite' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
}
Hey there,
there is no download link on "Download this mod" anymore. Can anybody reupload it please?
Quote from: SONSiVRi on November 25, 2009, 10:23:13 AM
Quote from: Uhura! on November 25, 2009, 09:45:17 AM
I don't have a custome theme. Any other suggestions?
Check below codes located in this file "$themedir/index.template.php"
// Invite MOD.
if (allowedTo('invite'))
{
global $modSettings;
echo ($current_action == 'invite' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'invite' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=invite">' , (!empty($modSettings['invite_menu_title']) ? $modSettings['invite_menu_title'] : $txt['invite_title']) , '</a>
</td>' , $current_action == 'invite' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
}
Sonsivri,
Here's what I have in public_html / community / Themes / default / index.template.php
Looks identical right? (I am not a code expert...so please tell me.)
Quote// Invite MOD.
if (allowedTo('invite'))
{
global $modSettings;
echo ($current_action == 'invite' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'invite' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=invite">' , (!empty($modSettings['invite_menu_title']) ? $modSettings['invite_menu_title'] : $txt['invite_title']) , '</a>
</td>' , $current_action == 'invite' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
}
Quote from: surrender on November 28, 2009, 11:06:39 AM
Hey there,
there is no download link on "Download this mod" anymore. Can anybody reupload it please?
http://custom.simplemachines.org/mods/index.php?mod=653
Click on file name "Invite_1.14.zip"
"Uhura"
First line of the code is if (allowedTo('invite')) means browsing user has a invite permission. You already said you gave permissions. And you said you are not using custom theme too. There must be something wrong in those, but I can't figure it out. If we were browsing that file, and we gave the permissions it should be displayed. Code is in there.
I'll ask you one last thing. Please change those lines and see which bla's are showing in your menu bar;
// Invite MOD.
if (allowedTo('invite'))
{
global $modSettings;
<td><a>bla bla 1</a></td>
// Invite MOD.
if (allowedTo('invite'))
{
global $modSettings;
<td><a>bla bla 2</a></td>
if bla bla 1 is not display, that means you are not browsing index.template.php (default theme file).
Sonsivri,
I am in the right file.
Unfortunately, I got a template parse error when I made the replacement you recommended (pls see the attachments.)
At this point the only thing missing is the "Invite" menu button for everyone to use. The rest of the mod installed great.
Omg, huge mistake.
Replace with this one
echo '<td><a>bla bla 1</a></td>';
// Invite MOD.
if (allowedTo('invite'))
{
global $modSettings;
echo '<td><a>bla bla 2</a></td>';
Thanks!
It still seems to be missing the menu tab or button for members to actually invite someone...Pls see the pic
What else can I try? This is an awesome tool to get new members...I really want it to work :D
Also, I checked index.template.php and it seems that all the other tabs have code like these (I posted sample of "Contact" and "Tags") to create a button in the top menu ...but there is no code like this for the Invite mod in this file.
-->
Quote
// the [tags] button
echo ($current_action == 'tags' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'tags' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=tags">' , $txt['smftags_menu'] , '</a>
</td>' , $current_action == 'tags' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// the [contact] button
if ($context['allow_view_contact'])
echo ($current_action == 'contact' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'contact' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=contact">' , $txt['smfcontact_contact'] , '</a>
</td>' , $current_action == 'contact' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
Uhura,
I am confused, you are saying "there is no code" in index.template.php but you said "yes it is" here http://www.simplemachines.org/community/index.php?topic=154999.msg2374860#msg2374860
Also my previous post's purpose was to debug your code, not solving issue. And you didn't tell me the result (which bla bla you saw).
Quote from: SONSiVRi on November 30, 2009, 03:02:17 AM
Uhura,
I am confused, you are saying "there is no code" in index.template.php but you said "yes it is" here http://www.simplemachines.org/community/index.php?topic=154999.msg2374860#msg2374860
Sorry. I'll be more clear: In index.template.php, there is no code for the Invite Mod which resembles the examples for "tag" & "contact" which I pasted in my reply to you above. Specifically, the code which seems to be missing would create an
Invite button or a tab in the top menu....
For example, there is code to create a "Tags" button / tab--->
Quote// the [tags] button
echo ($current_action == 'tags' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'tags' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=tags">' , $txt['smftags_menu'] , '</a>
</td>' , $current_action == 'tags' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
There is also code to create the "Contact" button / tab-->
Quote // the [contact] button
if ($context['allow_view_contact'])
echo ($current_action == 'contact' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'contact' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=contact">' , $txt['smfcontact_contact'] , '</a>
</td>' , $current_action == 'contact' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
There is also code to create all of the other
buttons / tabs in the top menu; however, I found nothing like that for the Invite Mod ....and I was thinking that this was the only problem, since the rest of the mod installed perfectly. Pls see the attachment.
QuoteAlso my previous post's purpose was to debug your code, not solving issue. And you didn't tell me the result (which bla bla you saw).
I am not sure what bla bla means. Can you explain? I inserted the code you gave me and nothing happened. Where should I be looking to see the result (if any)?
Thanks for your help.
Uhura,
So our problem was missing index.template.php modification. You just need to apply code I wrote my previous post here (http://www.simplemachines.org/community/index.php?topic=154999.msg2374860#msg2374860).
You can put that code where you want to be seen.
Also you may have one more missing code too, please check below instruction in same file;
$current_action = $context['current_action'];
One line above of this code there must be something like this;
if (in_array($context['current_action'], array('contact', 'tagged', 'search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'invite')))
Be sure invite is exist in that array. Position isn't matter, only exist enough.
Quote from: SONSiVRi on November 30, 2009, 10:50:01 AM
Uhura,
So our problem was missing index.template.php modification. You just need to apply code I wrote my previous post here (http://www.simplemachines.org/community/index.php?topic=154999.msg2374860#msg2374860).
You can put that code where you want to be seen.
I believe that this code was already in place. You asked me to check it. I did & I c&p ed the code which was there & I said it looked identical to me. Asked you to confirm.
QuoteAlso you may have one more missing code too, please check below instruction in same file;
$current_action = $context['current_action'];
One line above of this code there must be something like this;
if (in_array($context['current_action'], array('contact', 'tagged', 'search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'invite')))
Be sure invite is exist in that array. Position isn't matter, only exist enough.
I will add this right now & report back. I am very eager to get this fabulous mod to work for my site :D
Quote from: Uhura! on November 30, 2009, 08:57:00 AM
Sorry. I'll be more clear: In index.template.php, there is no code for the Invite Mod which resembles the examples for "tag" & "contact"
Quote from: Uhura! on November 30, 2009, 11:25:33 AM
I believe that this code was already in place.
Sorry, I am lost.
S,
It's very difficult to convey certain ideas this way.
I have an idea: Can you check my file and see if the parts related to the Invite Mod are OK?
Uhura,
I think you worked a little on that file attached here. Because invite button code isn't original, it is like other buttons. It doesn't proper and won't display anything. I attached correct one. When you uploaded this one into your website, please go to main page and check what is written between member and login buttons. There must be test1, test2 and invite button.
We will do it, no hurry.
Yes, I followed the instructions for the Invite Mod.
Also - before I do this....will it mess up the other mods that are there?
Thank you S.
Still looks the same :(
I can't believe I missed that. There are two kind of "menu bar" routines; one is old, and one is new. I was always looking to old one, new one never got in my thoughts. Sorry if I delayed your job, I hope this one solves your issue.
And nothing will happen to your other mods. I am just editing couple of lines from the file you gave me, everything is same.
I was waiting for you to see that lol ;)
C'mon man, you watched me in pain. I was desperately lookin' for solution :)
lol I only had a look after reply #713.
When I first looked at the file, I couldn't see why it wasn't working either, then I saw the function old.
It was unexpected, and easily missed, but I'm sure it wont be next time lol
Good work as usual mate :)
Quote from: SONSiVRi on November 30, 2009, 03:15:43 PM
I can't believe I missed that. There are two kind of "menu bar" routines; one is old, and one is new. I was always looking to old one, new one never got in my thoughts. Sorry if I delayed your job, I hope this one solves your issue.
And nothing will happen to your other mods. I am just editing couple of lines from the file you gave me, everything is same.
No prob - it's like I said before. We're not "talking" in real life...we're typing and sometimes it's hard to communicate in exactly the way we like...
I'll have to try it when I get back home, but I'll report back and let you know what happens.
Thanks Sonsivri!
I have a tab now & people can invite others. The only thing is -I cant see where we keep track of who was invited by who...
Uhura,
Here is same question asked by someone else: http://www.simplemachines.org/community/index.php?topic=154999.msg2341818#msg2341818
And message after Sabre's answer.
Quote from: Sabre™ on November 04, 2009, 09:28:31 PM
By chance are you using a theme other than the default theme?
If so, does that theme have it's own Profile.template.php and/or display.template.php? The code this mod inserts into those templates will have to be manually applied if so.
There should be an area in profiles that states "Members invited:".
If this is not there, check that the code was added to the respective templates.
If you require assistance with these, attach those templates to your next post, and I or another will have a look at them for you.
The stats area is located here
h**p://yoursite_address/index.php?action=stats
Just curious - Is there a pic / snapshot of how this looks int he Profile Area?
Quote from: SONSiVRi on December 01, 2009, 02:37:39 AM
Uhura,
Here is same question asked by someone else: http://www.simplemachines.org/community/index.php?topic=154999.msg2341818#msg2341818
And message after Sabre's answer.
Thanks!
Quote from: Uhura! on December 01, 2009, 09:59:20 AM
Just curious - Is there a pic / snapshot of how this looks int he Profile Area?
Yep, It displays the number of people you have invited to the site, and that number is clickable so you can see who was invited by that person.
Ah...I see.
Thanks for your help!
I look forward to the fine minds on here porting this Invite mode to version 2.x of SMF. I plan on upgrading my forum to 2.x when it goes gold, but that's a key mod that I use and would still want to have available. Thanks in advance for all the hard work!
Is there any progress on this mod working for SMF 2.0 RC1.2?? The majority of people are using this version and it's quite sad that all of these great MODs don't work with it. This is the second one that I desperately need but can't use and my forum is way too established to downgrade to another version and lose everything.
I thought you guys said that you had modified it to work with 2.0 RC1.2 but just needed permission from the original creator. Then I saw that he gave permission just as long as you followed some guidelines. So what's the dealio?
I'd LOVE that modified version where guests can request an invitation through an invitation board. I'f that works for SMF 2.0 RC1.2 then I would love to have it!
Quote from: shady586 on December 14, 2009, 04:14:20 AM
Is there any progress on this mod working for SMF 2.0 RC1.2?? The majority of people are using this version and it's quite sad that all of these great MODs don't work with it. This is the second one that I desperately need but can't use and my forum is way too established to downgrade to another version and lose everything.
I thought you guys said that you had modified it to work with 2.0 RC1.2 but just needed permission from the original creator. Then I saw that he gave permission just as long as you followed some guidelines. So what's the dealio?
I'd LOVE that modified version where guests can request an invitation through an invitation board. I'f that works for SMF 2.0 RC1.2 then I would love to have it!
I need this to.
:-[
hey man love the mod but ima keep this short and simple..
i do NOT have the "sources/modsetting/php" file to edit for installing the mod, help with that would be appreciated
also I'm seeing that in the files i do have there are alot of text section I'm supposed to be finding that aren't there...i realize that neither of these problems are because of you so i dont want it to sound like that however it being your mod i was hoping you could help me fix it. I'm running a 2.0 RC1.2 forum right now--www.klawgaming.com if that helps
PS does this have an option to disable certain user groups from being allowed to invite ppl because i saw that 0=no limit so how do you write none
Quote from: NIBOGO on December 31, 2009, 12:08:17 PM
People interested in this mod for SMF 2.0 RC2. Please PM me ;)
PM sent ! :)
I would really love to use this on my SMF ;)
I also really want to have this one...
Me too .....
Send a PM to NIBOGO - Expect to pay 20$ for the 2.0 RC2 compatible mod !
Hey Guys,
Used to have this on my forum, working on a custom theme.. updated to 2.0 RC1.2 and well you know the rest... Currently trying to manual install/hack it into place, but there are some points where this isnt possile as the code is completely different.. is there a packaged mod for RC1.2 yet?
If not is there instructions on what to do with the new code?
Cheers Guys,
I love this Mod!
Have a quick question though, and can't find the answer anywhere.
Is there a way I can have it so that people who join through an invite are automatically put into a different membergroup than just regular members? What I'm trying to accomplish is allowing regular members who join on their own to browse the public area of the forum, while the invited new joins can go to the private areas directly after they activate their accounts. How can I make this possible?
Any help is greatly appreciated!
Dian1980,
I have done something similar to this, I have noted their invitation history to their profile while registration. The code is located at "$sourcedir/Register.php" after those lines
// Invite MOD; looks like registration went ok, let's mark the invite key as used and who it was used by.
You can write your code into here, that's where code executed only once when invited user has registered.
Thank for the reply SONSiVRi!
I have to admit though, since I'm not that great with code I'm a bit lost by your explanation. Can you elaborate?
how about looking into the openinviter code for smf and integrate e mail importation option
plus mass invitation
I have no clue what that means Afro . :-\
Can someone help me further please? I have a new theme I installed but it doesn't follow the same format in the code to add the invite button as the directions show to do so. Can anyone please help me with this to make the button show up top? here is the code:
Thank you VERY much guys. ;D
<?php
// Version: 1.1.5; index
/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.
The init sub template should load any data and set any hardcoded options.
The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.
The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.
The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.
The menu sub template should display all the relevant buttons the user
wants and or needs.
For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/
// Initialize the template... mainly little settings.
function template_init()
{
global $context, $settings, $options, $txt, $boarddir;
/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';
/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';
/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1';
/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;
/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;
/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;
// load custom language strings
if(loadLanguage('ThemeStrings') == false)
loadLanguage('ThemeStrings', 'english');
// make sure undefined actions use their own template
$settings['catch_action'] = array('layers' => array('main','pages'));
if($context['browser']['is_ie6'])
loadtemplate('ie6');
}
// any special pages?
function template_pages_above()
{
global $context, $settings, $options, $scripturl, $txt;
echo '<div id="pages">';
if(isset($_GET['action']))
$what=$_GET['action'];
if(file_exists($settings['theme_dir'] . '/pages/' . $what. '.template.php'))
loadtemplate('pages/'.$what);
else
loadtemplate('pages/blank');
}
function template_pages_below()
{
echo '</div>';
}
// The main sub template above the content.
function template_main_above()
{
global $context;
// decide...
if($context['browser']['is_ie6'])
template_ie6_above();
else
template_default_above();
}
function template_default_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
if($context['page_title']=='' && isset($_GET['action']))
$context['page_title']=$context['forum_name'].' - '.$_GET['action'];
elseif($context['page_title']=='' && !isset($_GET['action']))
$context['page_title']=$context['forum_name'];
// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '><head>
<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
<meta name="description" content="', $context['page_title'], '" />', empty($context['robot_no_index']) ? '' : '
<meta name="robots" content="noindex" />', '
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "', $settings['theme_url'], '";
var smf_images_url = "', $settings['images_url'], '";
var smf_scripturl = "', $scripturl, '";
var smf_iso_case_folding = ', $context['server']['iso_case_folding'] ? 'true' : 'false', ';
var smf_charset = "', $context['character_set'], '";
// ]]></script>
<title>', $context['page_title'], '</title>';
// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?fin11" media="print" />';
// theme css
echo '
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/impulse.css?fin11" />';
if($context['browser']['is_ie6'])
echo '
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/ie6.css?fin11" />';
if($context['browser']['is_ie7'])
echo '
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/ie7.css?fin11" />';
// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="', $scripturl, '?action=help" target="_blank" />
<link rel="search" href="' . $scripturl . '?action=search" />
<link rel="contents" href="', $scripturl, '" />';
// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="', $context['forum_name'], ' - RSS" href="', $scripturl, '?type=rss;action=.xml" />';
// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=next" />';
// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' . $scripturl . '?board=' . $context['current_board'] . '.0" />';
// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);
// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = ', empty($options['collapse_header']) ? 'false' : 'true', ';
function shrinkHeader(mode)
{';
// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "', $context['session_id'], '");';
echo '
document.getElementById("upshrink").src = "', $settings['theme_url'],'/theme" + (mode ? "/user2.png" : "/user.png");
document.getElementById("userbox").style.display = mode ? "none" : "";
current_header = mode;
}
// ]]></script>';
// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = ', empty($options['collapse_header_ic']) ? 'false' : 'true', ';
function shrinkHeaderIC(mode)
{';
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "', $context['session_id'], '");';
echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");
document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";
current_header_ic = mode;
}
// ]]></script>
</head>
<body>';
echo '
<div id="mainarea">
<div id="topsection">';
if (empty($settings['header_logo_url']))
echo '
<h1 id="mainheader"><a href="' , $scripturl , '">', $context['forum_name'], '</a></h1>';
else
echo '
<a href="' , $scripturl , '"><img id="mainheader" src="', $settings['header_logo_url'], '" alt="', $context['forum_name'], '" /></a>';
echo '
<div id="muser">
<a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="', $settings['theme_url'], '/theme/', empty($options['collapse_header']) ? 'user.png' : 'user2.png', '" alt="*" title="', $txt['upshrink_description'], '" align="bottom" style="margin: 0 1ex;" /></a>
<div id="userbox" class="content"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>';
if($context['user']['is_logged'])
{
echo '<b>', $txt['hello_member_ndt'], ' ', $context['user']['name'] , '</b>
<br />';
if ($context['allow_pm'])
echo $txt[152], ' <a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? $txt[153] : $txt[471], '</a>', $txt['newmessages4'], ' ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1'];
echo '.<br />';
echo '
<a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a> <br />
<a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />';
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>', $txt[616], '</b><br />';
// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '<br />';
}
else
echo '
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>
<form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" class="middletext" style="text-align: center;margin: 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">', $txt['smf53'], '</option>
<option value="1440">', $txt['smf47'], '</option>
<option value="10080">', $txt['smf48'], '</option>
<option value="43200">', $txt['smf49'], '</option>
<option value="-1" selected="selected">', $txt['smf50'], '</option>
</select><br />
<input type="submit" value="', $txt[34], '" /><br />
<span class="middletext">', $txt['smf52'], '</span>
<input type="hidden" name="hash_passwrd" value="" />
</form>';
if (!empty($context['user']['avatar']))
echo '
<div id="myavatar">', $context['user']['avatar']['image'], '</div>';
echo '
</div>
<span class="footer"></span>
</div>
</div>
<div id="topsection2">
<span class="left"></span>
<span class="right"></span>
<div class="content">
</div>
</div>
<div id="topsection3">
<span class="left"></span>
<span class="right"></span>
<div class="content"></div>
</div>
<div id="topmiddle">
<div class="left">
<div class="right">
<div class="content">
<h3 id="news">' , $txt['impulse_newsline'] , '</h3>
' , $context['random_news_line'] , '
</div>
</div>
</div>
</div>
<div id="middlesection">
<span class="left"></span>
<span class="right"></span>
<div class="content">', template_menu(), '</div>
</div>
<div id="content">
<div class="inner">
<div class="mid">';
// for TP 0.9.8
if(!empty($context['TPortal']['version']) && $context['TPortal']['version']=='098')
tpcode();
echo '<div style="overflow: auto;">';
}
function template_main_below()
{
global $context;
// decide...
if($context['browser']['is_ie6'])
template_ie6_below();
else
template_default_below();
}
function template_default_below()
{
global $context, $settings, $options, $scripturl, $txt;
echo '</div>';
// for TP 0.9.8
if(!empty($context['TPortal']['version']) && $context['TPortal']['version']=='098')
tpcode2();
echo '
</div>
</div>
</div>
<div id="footersection">
<span class="left"></span>
<span class="right"></span>
<div class="content"><div id="copywrite">' , theme_copyright() , function_exists('tportal_version') ? '<div>' . tportal_version() . '</div>' : '' , '<br /><strong>imPulse</strong> theme by <a href="http://www.tinyportal.net">Bloc</a></div></div>
</div>';
// Show the load time?
if ($context['show_load_time'])
echo '
<div id="rendertime">', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</div>';
// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;', $context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' : '', '">', $txt['ajax_in_progress'], '</div>
</div>
</body></html>';
}
// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context, $settings, $options;
echo '
<div id="linktree">';
// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];
// Show the link, including a URL if it should have one.
echo $settings['linktree_link'] && isset($tree['url']) ? '<a href="' . $tree['url'] . '">' . $tree['name'] . '</a>' : $tree['name'];
// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];
// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo ' » ';
}
echo '
</div>';
}
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;
// Work out where we currently are.
$current_action = 'home';
if (in_array($context['current_action'], array('admin','tpadmin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
$current_action = 'admin';
if (in_array($context['current_action'], array('forum','staff','gallery','contact','search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
$current_action = $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action = 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';
// add buttons here
$context['menubox'] = array();
/*
'title' - the string the link will have
'link' - the actual link
'chosen' - which "current_action" this button belongs to.
*/
// home button
$context['menubox'][]=array(
'title' => $txt[103],
'link' => $scripturl,
'chosen' => '',
);
// TP onboard?
if (function_exists('tportal_version'))
$context['menubox'][]=array(
'title' => $txt['tp-forum'],
'link' => $scripturl . '?action=forum',
'chosen' => '',
);
// help button
$context['menubox'][]=array(
'title' => $txt[119],
'link' => $scripturl.'?action=help',
'chosen' => 'help',
);
// search button
$context['menubox'][]=array(
'title' => $txt[182],
'link' => $scripturl.'?action=search',
'chosen' => 'search',
);
// admin button.This one have permission check for admin as well
if($context['allow_admin'])
$context['menubox'][]=array(
'title' => $txt[2],
'link' => $scripturl.'?action=admin',
'chosen' => 'admin',
);
// profile button
if($context['allow_edit_profile'])
$context['menubox'][]=array(
'title' => $txt[79],
'link' => $scripturl.'?action=profile',
'chosen' => 'profile',
);
// PM button
if($context['allow_pm'])
$context['menubox'][]=array(
'title' => $txt['pm_short'] . ' '. ($context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : ''),
'link' => $scripturl.'?action=pm',
'chosen' => 'pm',
);
// calendar button
if($context['allow_calendar'])
$context['menubox'][]=array(
'title' => $txt['calendar24'],
'link' => $scripturl.'?action=calendar',
'chosen' => 'calendar',
);
// members
if($context['allow_memberlist'])
$context['menubox'][]=array(
'title' => $txt[331],
'link' => $scripturl.'?action=mlist',
'chosen' => 'mlist',
);
// login button - just for guests
if(!$context['user']['is_logged'])
$context['menubox'][]=array(
'title' => $txt[34],
'link' => $scripturl.'?action=login',
'chosen' => 'login',
);
// register button - just for guests
if(!$context['user']['is_logged'])
$context['menubox'][]=array(
'title' => $txt[97],
'link' => $scripturl.'?action=register',
'chosen' => 'register',
);
// logout button - just for members
if($context['user']['is_logged'])
$context['menubox'][]=array(
'title' => $txt[108],
'link' => $scripturl.'?action=logout;sesc='. $context['session_id'],
'chosen' => 'logout',
);
template_menu2();
}
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu2()
{
global $context, $settings, $options, $scripturl, $txt;
// Work out where we currently are.
$current_action = 'home';
if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
$current_action = 'admin';
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
$current_action = $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action = 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';
// Show the start of the tab section.
echo '
<div id="mainmenu">
<ul>';
foreach ($context['menubox'] as $act => $button)
echo '
<li' , $button['chosen']==$current_action ? ' class="chosen"' : '' , '><a href="', $button['link'], '">' , $button['title'] , '</a> </li>';
echo '
</ul>
</div>';
}
// Generate a strip of buttons.
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
global $settings, $buttons, $context, $txt, $scripturl;
// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . $txt[$value['text']] . '</a>';
$button_strip[$key] = $buttons[$key];
}
if (empty($button_strip))
return '<td> </td>';
echo '
<td class="oldmenu">', implode('', $button_strip) , '</td>';
}
function tpcode()
{
global $settings, $context, $options, $txt;
echo '
<div id="innerframe2">
<table width="100%" cellspacing="0" cellpadding="2">
<tr>';
// TinyPortal integrated bars
if(!empty($settings['use_tp']) && $context['TPortal']['leftbar'])
{
echo '<td class="padtop" width="' ,$context['TPortal']['leftbar_width'], '" style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' , 'px; padding-top: 4px;padding-right: 1ex; " valign="top">
<div id="leftbarHeader" style="', empty($options['collapse_leftbar']) ? '' : 'display: none;', 'padding-top: 15px; width: ' ,$context['TPortal']['leftbar_width'], 'px;">';
TPortal_sidebar('left');
echo ' </div>
</td>';
}
echo '
<td width="100%" align="left" valign="top" style="padding-top: 15px; padding-bottom: 10px;" >';
if(!empty($settings['use_tp']) && $context['TPortal']['centerbar'])
echo '<div>' , TPortal_sidebar('center') , '</div>';
}
function tpcode2()
{
global $settings,$context, $txt, $options;
echo '
</td>';
// TinyPortal integrated bars
if(!empty($settings['use_tp']) && $context['TPortal']['rightbar'])
{
echo '<td class="padtop" width="' ,$context['TPortal']['rightbar_width'], '" style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' , 'px; padding-top: 4px;padding-right: 1ex;" valign="top">
<div id="rightbarHeader" style="', empty($options['collapse_rightbar']) ? '' : 'display: none;', 'padding-top: 15px; width: ' ,$context['TPortal']['rightbar_width'], 'px;">';
TPortal_sidebar('right');
echo '</div></td>';
}
echo '
</tr>
</table>
</div>';
}
?>
Help? Please? :(
Feel free to correct me if im wrong but you need to add this line code..
// Invite MOD.
if (allowedTo('invite'))
{
global $modSettings;
echo ($current_action == 'invite' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'invite' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=invite">' , (!empty($modSettings['invite_menu_title']) ? $modSettings['invite_menu_title'] : $txt['invite_title']) , '</a>
</td>' , $current_action == 'invite' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
}
@ line 493 after
// login button - just for guests
Wow, thanks!
It's close, but not in the menu buttons. It puts the link underneath the News area. But it DOES work.
Should I move it?
Woops, i was meant to actually say before that line, but its just a comment so it shouldn't make a difference before or after..
what do you mean when you say news??
It makes it look like this:
(http://i46.tinypic.com/311maah.jpg)
It kinda moves the buttons around a bit too. :-\
Thats weird, the code of the template, like my template, is different, when it was working for me i had to hack it into place..
From what i can see from the code itself this should be working for you, reading through it it should be appearing between members and logout..
I'm sorry i couldn't be anymore help to you, possibly one of the guys who have been supporting this might know more about it..
:(
My error Tinylanda, I went back and did it all over and it works!
Thank you very, VERY much!
i am sorry i dont know which file is that and i dont even know what you want exactly.
when posting codes, specify which file is that.
From the comments at the top of the code you can see its the index.template.php file..
No one help :'(
Where i can find some like this to SMF 2 ?
:'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'(
Best Regards
Just wait a little AntonioP - there is a slight chance that the creator of this mod will update it for 2.0 RC2 ;)
OMG
i UPGRADE to SMF 2.0 RC2 and before i check if this mod is compatible with SMF 2.0 RC2 and show me is compatible :
http://custom.simplemachines.org/mods/index.php?action=parse
It Parse and now i see isn't compatible(after upgrade is done)... is a chance to make this update for this mod or i'm crap...OMG and i check before upgrade...information isn't true...
Nice ...it Parse at smf site...and in reality isn't compatible with SMF 2.0 RC2
Quote from: mariusfv on January 17, 2010, 03:31:25 PM
OMG
i UPGRADE to SMF 2.0 RC2 and before i check if this mod is compatible with SMF 2.0 RC2 and show me is compatible :
http://custom.simplemachines.org/mods/index.php?action=parse
It Parse and now i see isn't compatible(after upgrade is done)... is a chance to make this update for this mod or i'm crap...OMG and i check before upgrade...information isn't true...
Nice ...it Parse at smf site...and in reality isn't compatible with SMF 2.0 RC2
Where did you see it is compatible with your version?
I checked here http://custom.simplemachines.org/mods/index.php?mod=653
and it says: Compatible With: 1.1.1, 1.1.2
The link posted ended with action=parse,
I assume that the OP assumed that because their version was in the drop down list for parsing the manual install that it was compatable..
It seems like the OP didnt bother reading the page and just checked the instructions for their version..
In their defence, i managed to get it working up as far as 1.1.6, but alas at 2.0 im now also stuck..
Its fully compatible till the 1.1.11, but has no 2.x release yet.
Yeah, im going to tinker with it a bit myself, with exams coming up i need something productive to procrastinate with.. Now im not saying im going to try make it compatible or anything like that, my php skills are minimal at best, but we'll see what happens, if i do make any real track on it (which is unlikely) ill post em here..
Iam disappointed with SMF :'(
No one can fix this to SMF 2 ?
Best Regards
Quote from: AntonioP on January 18, 2010, 09:32:33 AM
Iam disappointed with SMF :'(
No one can fix this to SMF 2 ?
Best Regards
There are one member, he claim he ported it.
I create a mod with the same features for 2.0 RC2
if you are interested PM me
Quote from: Tanks on January 07, 2010, 02:05:29 AM
Send a PM to NIBOGO - Expect to pay 20$ for the 2.0 RC2 compatible mod !
Quote from: NIBOGO on January 18, 2010, 10:26:11 AM
I create a mod with the same features for 2.0 RC2
if you are interested PM me
Is this ok with "Noncommercial — You may not use this work for commercial purposes" ?
http://creativecommons.org/licenses/by-nc-sa/3.0/
Assuming its his own work and not the original authors work modified
Quote from: tinylanda on January 18, 2010, 01:36:36 PM
Assuming its his own work and not the original authors work modified
Check here;
http://creativecommons.org/about/licenses/
QuoteYou let others copy, distribute, display, and perform your work — and derivative works based upon it — but for non-commercial purposes only.
I don't create the mod based on this one, it's just the "alternative" for people with SMF 2.0 RC2.
Obviouslly I create the mod with the same features but I don't create a derivated work of the Invite Mod
It parse ...i check yesterday if parse this mod and it parse, i didn't read ...my mistake...but my luck was/is my hosting provider do automatically backup every 24 h without affect my space...so i'm back to 1.1.11 without any damage :))
I was before to phpBB and i migrate to SMF only for this mod "invite" phpBB have few years ago something like that mod ,but they update to fast they versions and the mod isn't compatible with many version of phpBB 3 so i'm now to SMF and i like'it very much.
Soon i think SMF will upgrade definitively to version 2 as default and final version and nobody from here think to make as default something like that mod and 2-3 others mods that make the difference like "CONtact fORM, RULES,BANLIST".Don't must to copy them,create'it.
SMF change 1 rule add'it and for future you can use some what members upload with their agreement and for all will ease the work and patience !
Rule : When you provide the SMF with informations/mods or new idea's for our products, we use that information internally to improve our products and services !
NIBOGO ...20 bucks ? paypal ? proove that work ? information pls...
Quote from: NIBOGO on January 18, 2010, 04:39:14 PM
I don't create the mod based on this one, it's just the "alternative" for people with SMF 2.0 RC2.
Obviouslly I create the mod with the same features but I don't create a derivated work of the Invite Mod
Oky then. Please do not get me wrong because I asked it.
Quote from: NIBOGO on January 18, 2010, 04:39:14 PM
I don't create the mod based on this one, it's just the "alternative" for people with SMF 2.0 RC2.
Obviouslly I create the mod with the same features but I don't create a derivated work of the Invite Mod
I allerady send 2 PMs to you but no answer.
Its 20$ ?
Best Regards
hi @ll
i olmost update this mod to smf 2.0 but i have some problem with database
could help someone please
how this replase to smf 2
<?php
if (!defined('SMF'))
die('Hacking attempt...');
db_query("CREATE TABLE IF NOT EXISTS {$db_prefix}invites (
ID_INVITE mediumint(8) unsigned NOT NULL auto_increment,
ID_MEMBER mediumint(8) unsigned NOT NULL default '0',
ID_REGISTRATION mediumint(8) unsigned NOT NULL default '0',
inviteTime int(10) unsigned NOT NULL default '0',
inviteKey varchar(64) NOT NULL default '',
PRIMARY KEY (ID_INVITE),
KEY ID_MEMBER (ID_MEMBER),
KEY inviteTime (inviteTime),
KEY inviteKey (inviteKey)
)", __FILE__, __LINE__);
$request = db_query("
SHOW COLUMNS
FROM {$db_prefix}invites
", __FILE__, __LINE__);
$columns = array();
while ($row = mysql_fetch_assoc($request))
$columns[] = $row['Field'];
if (!in_array('inviteEmail', $columns))
db_query("ALTER TABLE {$db_prefix}invites ADD inviteEmail TINYTEXT NOT NULL", __FILE__, __LINE__);
?>
Best Regards
sorry but i have most problem with display on this mod
istall wel on smf 2.0 rc 2-1 but something it's wrong i cant see link to invite and some more
who try update this mod
Ok have it all but working just need to sort out this..
Fatal error: Call to undefined function db_query() in /storage/webtree/l/landa2/fail/forum/Sources/Invite.php on line 118
Hello.
I have a problem with the script.
Forum is Polish.
Does not display anything.
When you change the language are the errors: "8: Undefined index: invite_someone
File: / home / Duvel / domains / agamer.netrar.pl / public_html / Themes / default / Invite.template.php (mail sub template - eval?)
Line: 134 "
8: Undefined index: invite_link
File: / home / Duvel / domains / agamer.netrar.pl / public_html / Themes / default / Invite.template.php (mail sub template - eval?)
Line: 138
8: Undefined index: cannot_invite
File: / home / Duvel / domains / agamer.netrar.pl / public_html / Sources / Errors.php
Line: 351
8: Undefined index: cannot_invite
File: / home / Duvel / domains / agamer.netrar.pl / public_html / Sources / Errors.php
Line: 351
Anyone can help?
My first mod using v 1.1.11. I installed with no problem but see no buttons. Using a custom theme called ANONE and my index template does not look like the posts describe.
I am attaching it here. Not sure where to insert the Invite code.
What I really want is for the ADMIN ONLY to be able to send invites.
Thanks.
Quote from: eric3 on February 05, 2010, 09:45:01 PM
My first mod using v 1.1.11. I installed with no problem but see no buttons. Using a custom theme called ANONE and my index template does not look like the posts describe.
I am attaching it here. Not sure where to insert the Invite code.
What I really want is for the ADMIN ONLY to be able to send invites.
Thanks.
on a custom theme,you have to add the link yourself
Yes, I realize that and I think I indicated that.
When I follow the directions for manually adding the link, the arrays in my php file don't look like the ones in the example. There are several small arrays indicated depending on the page you are on. And the formatting for the buttons is not where the example indicates either.
I am looking for some direction on my specific theme as it seems different from most.
Thanks
Eric
I use smf 2.0 rc2 please upgrade this mod
Quote from: SONSiVRi on January 18, 2010, 05:33:44 PM
Quote from: NIBOGO on January 18, 2010, 04:39:14 PM
I don't create the mod based on this one, it's just the "alternative" for people with SMF 2.0 RC2.
Obviouslly I create the mod with the same features but I don't create a derivated work of the Invite Mod
Oky then. Please do not get me wrong because I asked it.
Don't worry about it ;)
Can someone update this please?
Please update this for smf1.1.11
Quote from: pointalk on February 25, 2010, 07:35:15 PM
Please update this for smf1.1.11
This mod work on SMF 1.1.11 like a charm...maybe you have other mods installed and make conflict with them...
I use this mod on SMF 1.1.11 ...i installed first ...so no conflict/errors....
i have tried to parse this for 2.0rc but i keep running into error when trying to find text on index templet php text not found i have searched hi and low is it possible some one could parse this for me
I have all my files downloaded
Quote from: chefjohnnie on April 02, 2010, 11:46:43 AM
i have tried to parse this for 2.0rc but i keep running into error when trying to find text on index templet php text not found i have searched hi and low is it possible some one could parse this for me
I have all my files downloaded
This mod isn't ready to work with SMF 2.0 you must do a lot of changes to get it working ;)
ok ill wait its the only mod i want or need for this forum how will i know when its ready
Thank you for the reply
Im willing to pay to have it done
Quote from: mariusfv on March 11, 2010, 03:13:49 PM
Quote from: pointalk on February 25, 2010, 07:35:15 PM
Please update this for smf1.1.11
This mod work on SMF 1.1.11 like a charm...maybe you have other mods installed and make conflict with them...
I use this mod on SMF 1.1.11 ...i installed first ...so no conflict/errors....
Did you use the same query from the parser?
Or is there anything to change from that query?
Please help me anyone!
Thanks in advance!
Quote from: Herr_Inoddorell on April 20, 2010, 09:55:06 PM
Did you use the same query from the parser?
Or is there anything to change from that query?
Please help me anyone!
Thanks in advance!
And your problem is?
This sounds like a great mod! But I'm using a color-modified Babylon theme. Is there someone who can show me how to get the invite function to work in this theme?
Quote from: SONSiVRi on April 21, 2010, 01:12:42 AM
Quote from: Herr_Inoddorell on April 20, 2010, 09:55:06 PM
Did you use the same query from the parser?
Or is there anything to change from that query?
Please help me anyone!
Thanks in advance!
And your problem is?
I just wanted to know if the query from the parser could be executed as it is or if is there anything to modify from it, before installing this mod. That's all.
Quote from: Herr_Inoddorell on April 21, 2010, 02:22:38 PM
I just wanted to know if the query from the parser could be executed as it is or if is there anything to modify from it, before installing this mod. That's all.
Its the exact query shown on parser as it is in the mod file. You can use it while installing manually.
I've installed the mod and set the options, but I still need help figuring out how to get the "invite" button to show in my theme. :)
Quote from: SONSiVRi on April 21, 2010, 02:45:23 PM
Quote from: Herr_Inoddorell on April 21, 2010, 02:22:38 PM
I just wanted to know if the query from the parser could be executed as it is or if is there anything to modify from it, before installing this mod. That's all.
Its the exact query shown on parser as it is in the mod file. You can use it while installing manually.
Ok, thank you :)
Using the package parser, it instructs me to find lines of code that don't exist in my theme. I'm using the Babylon theme with SMF 1.1.11.
For example, in the Babylon/index.template.php it tells me to find
)))
$current_action = $context['current_action'];
and add before:
, 'invite'
However, the first line of code doesn't exist in this theme. Does anyone know where to insert the 'invite' code in the Babylon theme?
"SnoMan"
If you include your php file, I could take a look.
@SONSiVRi
Thanks a ton! Here are the relevant files, I think:
"SnoMan"
There is no need to apply that part in your babylon theme I think. Because that code sniplet is used for making menu button pressed down. And seems babylon theme doesn't have this behavior. You can simply ignore that modification.
Quote from: SONSiVRi on April 22, 2010, 05:01:00 PM
"SnoMan"
There is no need to apply that part in your babylon theme I think. Because that code sniplet is used for making menu button pressed down. And seems babylon theme doesn't have this behavior. You can simply ignore that modification.
in babylon you have to change the language to english and the button should show but it isn't that hard to make buttons from past expierience
Quote from: SONSiVRi on April 22, 2010, 05:01:00 PM
"SnoMan"
There is no need to apply that part in your babylon theme I think. Because that code sniplet is used for making menu button pressed down. And seems babylon theme doesn't have this behavior. You can simply ignore that modification.
Hmmm, so how do I make the "invite" button appear? It's not there. Take a look at www.survivalnewsonline.com/snoboards
Quote from: SnoMan on April 22, 2010, 10:19:25 PM
Quote from: SONSiVRi on April 22, 2010, 05:01:00 PM
"SnoMan"
There is no need to apply that part in your babylon theme I think. Because that code sniplet is used for making menu button pressed down. And seems babylon theme doesn't have this behavior. You can simply ignore that modification.
Hmmm, so how do I make the "invite" button appear? It's not there. Take a look at www.survivalnewsonline.com/snoboards
Well with the Babylon theme the invite button isn't actually in there, you need to find a babylon button via google or someone might have one here, and you put it in this directory /Themes/babylon/images/english/ then you need to link it up, but it's been ages since i used the babylon theme i can't remember where you go to link it up.
Buttons are drwan in the same funstion block as the code tries to modify;
$themedir/index.template.php
function template_menu()
You can put your button code under there, next to button you want it to appear.
Please upgrade this mod for smf1.1.11
Quote from: pointalk on May 12, 2010, 02:10:33 AM
Please upgrade this mod for smf1.1.11
Its workin with 1.1.11. You have to manually apply modifications having problem.
I'm looking such a mod in 2.0 RC2 and RC3 versions.
Can anybody help me?
Yes, look here (http://www.smfpacks.com/index.php?action=page;sa=ais)
And for free?
Works nicely on 1.1.11 with a manual install.
Quote from: HIGGINS on May 19, 2010, 12:42:17 PM
And for free?
hadesflames made one yet to be approved - some waiting is in order
Quote from: madman71 on May 20, 2010, 05:51:42 PM
Works nicely on 1.1.11 with a manual install.
I use 2.0 :(
Quote from: HIGGINS on May 21, 2010, 12:53:06 PM
Quote from: madman71 on May 20, 2010, 05:51:42 PM
Works nicely on 1.1.11 with a manual install.
I use 2.0 :(
Maybe this topic can help you. (http://www.simplemachines.org/community/index.php?topic=374055.0)
Hi!
I'm using SMF 1.1.2 and this is my first time trying to install a mod. I've edited all the files but I have no idea what I'm supposed to do with the db.php file. Any help?
Thanks!
You really should update to smf1.1.11, as there are security issues with your version.
But to answer your question, you upload the db.php to the root of your forum(where the packages, avatars and smiley directories are), and call it through your browser.
eg. h**p://www.simplemachines.org/db.php
Once that is done, delete it.
That will load whatever needs adding to the database
please i need this great mod for smf 1.1.11 please please please with cherry,sugar,...... on top :D
Quote from: daked on June 29, 2010, 06:13:44 PM
please i need this great mod for smf 1.1.11 please please please with cherry,sugar,...... on top :D
It works on 1.1.11
Hi
I installed Islam them.
i want to add Invite button on it.
I have add this code in index.template.php
// Show the [Invite] button.
echo '<li><a' , $current_action=='invite' ? ' class="current"' : '' , ' href="', $scripturl, '?action=invite"><span>', $txt['invite'] , '</span></a></li>';
The place for button is empty NO TEXT in main page but when I click that space it loads invite page.
here is my page www.islamicmessageboard.com
I dont care about invite settings, i want it to appear in general both for guest and members,
How can make visible this button?
I add button successfully in the menu bar.
Hi! I have just started using this mod. I would like to add a form to the "register" page where it asks them to enter their invitation key. I would like the form to be below this will a few different questions to ask them and they can request registration. Which file do I go to to add something like this? Thanks!
Quote from: mkdesigns on October 16, 2010, 06:45:41 PM
Hi! I have just started using this mod. I would like to add a form to the "register" page where it asks them to enter their invitation key. I would like the form to be below this will a few different questions to ask them and they can request registration. Which file do I go to to add something like this? Thanks!
There should be another mod for it. You can use it with this mod.
I am getting the following error when I am logged in and I click on "invites"
Table 'dbname.smf_invites' doesn't exist
File: /home/content/53/6003853/html/forum/Sources/Invite.php
Line: 121
Thanks for your help!
Quote from: mkdesigns on October 19, 2010, 05:32:54 PM
I am getting the following error when I am logged in and I click on "invites"
Table 'dbname.smf_invites' doesn't exist
File: /home/content/53/6003853/html/forum/Sources/Invite.php
Line: 121
Thanks for your help!
I am not looking to invite.php file line 121, but I can address you to your database, did you checked you have a table named that says doesn't exist?
Now I am getting this:
Unknown column 'inviteEmail' in 'field list'
File: /home/content/53/6003853/html/forum/Sources/Invite.php
Line: 121
Thanks for your help!
As SONSiVRi mentioned, your database tables/columns may not have been added.
So place the db.php file in the root of your forum(where the packages, attachment and sources folders are), and run the file through your browser
eg. h**p://your site address here/db.php
Then remove/delete the db.php file when you are done.
Yes, I had already done that. I seem to still be getting the error. Thanks!
Quote from: mkdesigns on October 21, 2010, 10:18:06 AM
Yes, I had already done that. I seem to still be getting the error. Thanks!
Did you checked your database ever?
Yes, but I am not finding anything with inviteEmail. Sorry, I don't know a lot about mySQL.
Quote from: mkdesigns on October 21, 2010, 04:09:07 PM
Yes, but I am not finding anything with inviteEmail. Sorry, I don't know a lot about mySQL.
Then it seems you had problem while installing that mod. Did installer complained anything about? or just plain installation you had?
Can anyone tell me the right code to create the button in the Black Rain V2 (http://custom.simplemachines.org/themes/index.php?lemma=348) theme please. Using the manual edit gets the button in and showing but it does not style it right as things have moved on with the template since this was written. I am using 1.1.12.
Many thankyoos
Is anybody gonna update this mod? This is one of its kind and there is no update. I am still using the very old version and my forum is giving lots of error because of this.
Quote from: smokester on November 17, 2010, 06:45:38 PM
Can anyone tell me the right code to create the button in the Black Rain V2 (http://custom.simplemachines.org/themes/index.php?lemma=348) theme please. Using the manual edit gets the button in and showing but it does not style it right as things have moved on with the template since this was written. I am using 1.1.12.
Many thankyoos
Smoke - see PMs at the Den ;)
Quote from: PLAYBOY on November 18, 2010, 05:22:50 PM
Is anybody gonna update this mod? This is one of its kind and there is no update. I am still using the very old version and my forum is giving lots of error because of this.
You are getting errors because it is probably you couldn't install correctly. If you make it right, then you won't get any errors as I don't get any.
I am not getting error but when somebody registers through an invite key, they always have an error and they think they couldnt register. But they could.
I get this error. You cant login please check your cookie settings. I mean the people who just registered get this error.
Do u think should i just uninstall it and install it again or just go for a manual setup?
Quote from: smokester on November 17, 2010, 06:45:38 PM
Smoke - see PMs at the Den ;)
Many thanks Buster, and sorry for be such a lazy-arse.
Quote from: PLAYBOY on November 19, 2010, 10:39:36 AM
I am not getting error but when somebody registers through an invite key, they always have an error and they think they couldnt register. But they could.
I get this error. You cant login please check your cookie settings. I mean the people who just registered get this error.
Do u think should i just uninstall it and install it again or just go for a manual setup?
It is somehow related to this mod's changes, but I dunno which part is doing that. There was a time I had a problem about cookies and session expires, I cleared the database table and problem was solved. But I think you are not using database driven sessions. Its not the source of the problem, but it might give you an idea.
I think the problem is what you think it is. How can i check to see where is the problem exactly?
I would trace the "You cant login please check your cookie settings" message origins, and locate the places the error thrown. And then try to figure out why this mod raises that error.
But you can try database driven sessions too (if you are not already), but I don't remember what is the pros and cons of database driven sessions.
You r right. Never thought about tracing the error. I ll get back to you.
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''smf_''invites' ( ID_INVITE mediumint(8) unsigned NOT NULL auto_increment, ID_' at line 1
error I got while trying to run a query for the db.php in my database via phpmyadmin
Update please for SMF 2.0 RC4. :P
Hello,
I am trying to install this mod - " Mod Name: Invite (registration through invitation)"
It seems to be working, however,
the last part of the mod has me run a SQL script.... which is failing:
If I try and run it:
1. the way it looks in the ZIP file, it fails:
(complains about "Hacking attempt...").
2. If I remove the lines:
if (!defined('SMF'))
die('Hacking attempt...');
it fails: with the error:
Fatal error: Call to undefined function db_query() in /home/content/c/o/d/codabass/html/WIKISSES/db.php on line 4
3. If I run the command as listed in my version (1.1.12) - at the bottom of the page: I recive the following error:
Parse error: syntax error, unexpected T_STRING in /home/content/c/o/d/codabass/html/WIKISSES/db3.php on line 3
I am on the following:
simplemachines 1.1.12
Server version: 5.0.91-log
Linux Linux p3nlh037
I am also out of ideas... I treid this in sqladmin, etc...
Any help getting this setup would be greatly appriciated.
The acctal mod is here: http://custom.simplemachines.org/mods/index.php?mod=653
Thank you guys
Richard
It would be very nice if we could add an "Application for a membership" to this mod. So people would apply for an invitation and after we consider his answers to questions, we may send the invitation or not.
Any plans for an update for 2.0 RC4?
I've tried to install this mod on 2.0 RC4 and it gave me a bunch of errors but one is different as it says
"Execute Modification - ./Sources/ModSettings.php - File not found" the other I think they must be changed manually.
Any help?
invite link only appears for the admin and does not appear to members.
installed it using package manager on default theme and my "features and options" tab started leading to a blank page!! uninstalled it and problem solved.
hi all, wanted to ask you , how can I make my forum by invitation only? Meaning that only I can send invites(as an admin) to members and the forum will be closed for guests/general public? Running Forum version: SMF 1.1.13
Any plans on making this for 2.0 RC5?
Update please for SMF 2.0 RC4 / RC5
Any updates for 2.0?
Desperately needed!!!
This mod has not been updated since 2007, and the mod author has not been here since March 23, 2010. I doubt that it will be updated.
There is a paid version of this mod written by someone else, but I don't have the link for it myself. Perhaps someone else here has it.
Well there is also another free mod (claim to be) just like this one. I forgot the name of it but search "Intivation" on mod section and it comes up. But i am also waiting that writer to update that mod too... :S
Indeed. I had no idea that hadesflames was going to update his mod. It appears to be ready for 2.0 right now.
http://custom.simplemachines.org/mods/index.php?mod=2567
Quote from: busterone on June 26, 2011, 02:39:29 PM
This mod has not been updated since 2007, and the mod author has not been here since March 23, 2010. I doubt that it will be updated.
There is a paid version of this mod written by someone else, but I don't have the link for it myself. Perhaps someone else here has it.
http://www.smfpacks.com/page/sa=ais
What is this? Is this the paid version?
Why is this not added in SM mods section?
Quote from: PLAYBOY on June 26, 2011, 06:40:10 PM
What is this? Is this the paid version?
Why is this not added in SM mods section?
Because it's a paid mod, a lite version was submitted to the Mod Site, but it obviosly has less features
and i guess "Invitation System" mod is the lite version?
Nop, that's a mod created by hadesflame, mine is a different one, available in two version: PRO and Lite, Lite is currently awaiting approval
Can you please put the link for the mod here when it gets approved.
Thank you.
Help please. Using 1.14. Babylon Theme. Installed this mod. Install was fine except for missing invite button. I've read this thread for help. The mod creator stated that the invite button installs automatically for the default theme. For all other themes you have to manually install, however, he didn't leave instructions on how to do that. I looked at the mod's manual install instructions and there are no steps on how to install just the missing button. Manual install instructions only tells you how to manually install the whole mod.
Can someone please tell me how to manually install an invite button into my theme? Thanks in advance.
Please can anyone help with adding a button to the Babylon theme for this mod? The mod installs fine in 1.1.14, but the invite button does not show up.
Quote from: lexxie on August 23, 2011, 10:28:47 AM
Please can anyone help with adding a button to the Babylon theme for this mod? The mod installs fine in 1.1.14, but the invite button does not show up.
the action is there but you have to make the link in the babylon theme.
i'm pretty sure you can use this to create the button
http://smf.e-debatten.dk/smf_translated/createButton3.php
Further help
http://docs.simplemachines.org/index.php?topic=1032.0
http://www.simplemachines.org/community/index.php?topic=261880.0
http://www.smfhacks.com/index.php?topic=2049.0
Thanks.
I inserted the following code into my themes index.template.php file:
if (allowedTo('invite'))
{
global $modSettings;
echo ($current_action == 'invite' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'invite' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=invite">' , (!empty($modSettings['invite_menu_title']) ? $modSettings['invite_menu_title'] : $txt['invite_title']) , '</a>
</td>' , $current_action == 'invite' ? '<td class="maintab_active_' . $last . '"> </td>' ;
That created a link on my menu bar for the Invite feature. I put the code after the profile button code. The link works and I'm able use the invite feature.
However, a couple of problems:
1. Except for the 'Home' and 'Help' buttons all of the other buttons have disappeared but only on the login screen. When logged into the board all of the buttons show up on the menu bar.
2. I'm trying to amend the code above to display the invite button I created. Everything I try causes a parse error. How do I amend this code to display and work with the Invite button I created and uploaded to the images folder?
Can someone help with this please. I tried to add the image to this line of code <a href="', $scripturl, '?action=invite">
and it's taking the forum down. It's easy to edit the other button but I can't figure this one out.
Hi all,
This mod as no longer updated??? well i was used this in SMF 1.x.x, but since i was updated for 2.0.2 version, never more i used this one (dont works).
Regards
For 2.0 you'd try:
http://www.smfpacks.com/page/sa=ais
will it also work for version 2.0.4??? 8)
As time has passed since the last message, I must ask about Invitations scripts that are compatible with version 2.0.9. I haven't seen any for 2.0.9 yet.
This one works for 2.0.9:
http://custom.simplemachines.org/mods/index.php?mod=3080
No one can update this great mod (with permition of the mod creator)?
Regards
Portugal
I doubt it can be done since the author does not connect since 2012 ... Does not it work emulating the version?
Regards!