vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Miscellaneous Hacks - Add [Invite Friends] Link To Header (https://vborg.vbsupport.ru/showthread.php?t=254436)

LOGECT 11-29-2010 10:00 PM

Add [Invite Friends] Link To Header
 
1 Attachment(s)
Info:

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


https://vborg.vbsupport.ru/attachmen...1&d=1291078427


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

https://vborg.vbsupport.ru/attachmen...9&d=1266417827

Installation:

1-In the header template search for :

Code:

<li><a href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase control_panel}</a></li>
Add the following code before that:

Code:

<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

Quote:

Originally Posted by Leica.Robbiani (Post 2127680)
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

Quote:

Originally Posted by Rofo (Post 2170633)
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

Quote:

Originally Posted by Rofo (Post 2170633)
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

Quote:

Originally Posted by Rofo (Post 2178193)
Does anyone have any information on this issue?


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

Quote:

Originally Posted by rammieone (Post 2175510)
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

Quote:

Originally Posted by LOGECT (Post 2178196)
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

Quote:

Originally Posted by Rofo (Post 2170633)
For some reason the "Invite friends" takes me to my FAQ>smilie list.

Any idea on what I screwed up?

4.1.1

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.

LOGECT 06-09-2011 08:43 PM

Quote:

Originally Posted by WavMixer (Post 2205346)
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 :

Code:

<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

Quote:

Originally Posted by Rofo (Post 2170633)
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?


All times are GMT. The time now is 06:38 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01776 seconds
  • Memory Usage 1,769KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete