Log in

View Full Version : Miscellaneous Hacks - Add [Invite Friends] Link To Header


LOGECT
11-29-2010, 10:00 PM
Info:

A simple way to add a Invite Friends link to the header template ( shows only to members )


https://vborg.vbsupport.ru/attachment.php?attachmentid=124026&stc=1&d=1291078427


Notes:
First you will need to install VSa - Advanced Registration (https://vborg.vbsupport.ru/showthread.php?t=236117)

https://vborg.vbsupport.ru/attachment.php?attachmentid=112459&d=1266417827 (https://vborg.vbsupport.ru/showthread.php?t=236117)

Installation:

1-In the header template search for :

<li><a href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase control_panel}</a></li>

Add the following code before that:

<li><a href="misc.php?do=vsaareginv{vb:raw session.sessionurl_q}">{vb:rawphrase vsaareg_invitation_invite}</a></li>

You are done :D

Leica.Robbiani
11-30-2010, 08:07 PM
Hi there,

fine, but how do I delete the link in the navbar? Thanks for your help.

Best regards

L.R.

Gemma
11-30-2010, 09:02 PM
Hi there,

fine, but how do I delete the link in the navbar? Thanks for your help.

Best regards

L.R.

AdminCP > Settings > Options > VSa - Advanced Registration

Put automatically "Invite" to forum navbar - select 'No'

Leica.Robbiani
12-01-2010, 03:26 PM
Hey man,

thank you. Don't know why I didn't see that ...

Best regards

L.R.

smelly
12-05-2010, 08:21 AM
works fine thanks

Palehorse74480
01-17-2011, 03:17 PM
hmm did not work for me..

sivaganeshk
01-23-2011, 11:17 AM
Thanks ... worked :)

Rofo
03-07-2011, 06:10 PM
For some reason the "Invite friends" takes me to my FAQ>smilie list.

Any idea on what I screwed up?

4.1.1

ProFifaLeagues
03-07-2011, 07:07 PM
I get this error any ideas where i may be going wrong ??
The email was my own so i know its correct..


Error: e-mail address(es) incorrect: function () { for (var i = 1; i < this.length; i++) { if (this[i][0] == this[i - 1][0]) { this.splice(i, 1); } } }; function () { for (var i = 0; i <= this.length; i++) { this.shift(); } }

rilwan
03-08-2011, 01:16 AM
For some reason the "Invite friends" takes me to my FAQ>smilie list.

Any idea on what I screwed up?

4.1.1

Same here,

4.1.2

Please help

Wordplay
03-19-2011, 08:29 AM
how would this work, there is no invite a friend feature in vbulletin, or is there?

ProFifaLeagues
03-20-2011, 05:16 PM
It works with the add on posted at the top mate to combine them it allows the emails to be sent as invites

Rofo
03-28-2011, 02:49 AM
For some reason the "Invite friends" takes me to my FAQ>smilie list.

Any idea on what I screwed up?

4.1.1

Does anyone have any information on this issue?

LOGECT
03-28-2011, 03:00 AM
Does anyone have any information on this issue?


Notes:
First you will need to install VSa - Advanced Registration

It works with the add on posted at the top mate to combine them it allows the emails to be sent as invites

Rofo
03-28-2011, 03:26 AM
Notes:
First you will need to install VSa - Advanced Registration

Yes, I have VSa - Advanced registration installed as well.

DNN
04-06-2011, 03:07 AM
I need e-mail contacts import plugin that works with all e-mail and social networking services, but OpenInvite is confusing

rooban12
04-09-2011, 03:30 PM
Hi,

I got the following error message, when I try to send mail....

Error: e-mail address(es) incorrect: [object Object]; function forEach() { [native code] }; function (){ return this.filter($defined); }; function (keys){ var obj = {}, length = Math.min(this.length, keys.length); for (var i = 0; i < length; i++) obj[keys[i]] = this[i]; return obj; }; function (object){ var result = {}; for (var i = 0, l = this.length; i < l; i++){ for (var key in object){ if (object[key](this[i])){ result[key] = this[i]; delete object[key]; break; } } } return result; }; function (item, from){ return this.indexOf(item, from) != -1; }; function (array){ for (var i = 0, j = array.length; i < j; i++) this.push(array[i]); return this; }; function (){ return (this.length) ? this[this.length - 1] : null; }; function (){ return (this.length) ? this[$random(0, this.length - 1)] : null; }; function (item){ if (!this.contains(item)) this.push(item); return this; }; function (array){ for (var i = 0, l = array.length; i < l; i++) this.include(array[i]); return this; }; function (item){ for (var i = this.length; i--; i){ if (this[i] === item) this.splice(i, 1); } return this; }; function (){ this.length = 0; return this; }; function (){ var array = []; for (var i = 0, l = this.length; i < l; i++){ var type = $type(this[i]); if (!type) continue; array = array.concat((type == 'array' || type == 'collection' || type == 'arguments') ? Array.flatten(this[i]) : this[i]); } return array; }; function (array){ if (this.length != 3) return null; var rgb = this.map(function(value){ if (value.length == 1) value += value; return value.toInt(16); }); return (array) ? rgb : 'rgb(' + rgb + ')'; }; function (array){ if (this.length < 3) return null; if (this.length == 4 && this[3] == 0 && !array) return 'transparent'; var hex = []; for (var i = 0; i < 3; i++){ var bit = (this[i] - 0).toString(16); hex.push((bit.length == 1) ? '0' + bit : bit); } return (array) ? hex : '#' + hex.join(''); }; function (){ return JSON.encode(this); }

Please help me to solve it

Thank you

steve1966
04-11-2011, 07:44 PM
thanks

WavMixer
06-09-2011, 03:21 AM
For some reason the "Invite friends" takes me to my FAQ>smilie list.

Any idea on what I screwed up?

4.1.1I'm running 4.1.3 Patch Level 1 and when I am not logged in the Invite Friends also takes me to the smilies page. However when I am logged in, it takes me to the correct page.

LOGECT
06-09-2011, 08:43 PM
I'm running 4.1.3 Patch Level 1 and when I am not logged in the Invite Friends also takes me to the smilies page. However when I am logged in, it takes me to the correct page.

Please make sure that the code is right before :

<li><a href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase user_control_panel}</a></li>

CardMafia
06-12-2011, 02:23 AM
Working great for me. v4.1.4 Thank you!

burridl
06-29-2011, 10:44 AM
Nice. Works a treat.

garyopa
08-11-2011, 04:54 PM
For some reason the "Invite friends" takes me to my FAQ>smilie list.

Any idea on what I screwed up?

4.1.1

I also get this, but only for "UserGroups" that DON'T have premission to send Invites.

That is feature of the most recent Vsa, if you don't have premission the LINK in navbar does not appear for you.

But this hack the link is always there.

Too bad it does not go to a YOU DON'T PREMISSION page instead, that would be more useful.

BajaBoatOwners
10-27-2011, 04:37 PM
Great MOD! Thanks!:up:

Cerbero1000
01-24-2012, 05:05 PM
Good work but... is there a way to have Referrer form (in register page) automatically compiled when someone click on the link in the email?