vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Profile Enhancements - Invitation System vB 3.7 Gold (https://vborg.vbsupport.ru/showthread.php?t=171951)

Mum 05-04-2008 11:50 PM

Looking forward to the update (also on gold)

myown 05-05-2008 04:11 AM

still not working on 3.7 Gold

abrecher 05-05-2008 04:51 AM

Quote:

Originally Posted by hotdude_55 (Post 1507151)
its fixed

This has not been fixed! I'm on 3.7 Gold. Getting "Your submission could not be processed because a security token was missing or mismatched." error.

chintu 05-05-2008 04:13 PM

Hi,

I want to make my forum registration private, but I don?t want to disable registration completely. Here is what I plan to do:

1. I don?t want any outsider to be able to register into my the forum

2. I want members to be able to signup through an invitation code. Actually, I will manually send them to a special signup page which would contain the invitation code.

Basically, I like to achieve something like this (except the donation part):

http://www.bwtorrents.com/register.php?do=signup

Will the above mod help me, or do you have any other suggestions? Thanks for your help.:o

bxbigt 05-06-2008 12:59 AM

Your submission could not be processed because a security token was missing or mismatched.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.

:(

version 3.7.0

stickskills 05-06-2008 02:27 AM

I believe that someone mentioned a fix for this is coming later on this week, so sit tight. :)

amore1981 05-06-2008 10:28 AM

i have just installed version 2.2 and i get

"you do not have permission to access this page. This could be due to one of several reasons:

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation."

I am on 3.7

ArLinD 05-06-2008 12:17 PM

Waiting for the fixed version for 3.7

Bicho?? 05-06-2008 02:46 PM

When i try to send an invitation apears me this error:

Your submission could not be processed because a security token was missing or mismatched.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.

dancue 05-06-2008 03:37 PM

Quote:

Originally Posted by Bicho?? (Post 1510527)
When i try to send an invitation apears me this error:


Your submission could not be processed because a security token was missing or mismatched.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.

As mentioned before, several times...

We have to wait for it to be ported to 3.7.

kollam003 05-06-2008 03:40 PM

<font color="Red">Kollam Clicks Install </font>

tafreeh 05-06-2008 08:18 PM

great mod...
but i cant find
Code:

$template_hook[usercp_main_pos1]
i m using custom temp....

here is my usercpshell

Code:

$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
    <title>$vboptions[bbtitle] - $pagetitle</title>
</head>
<body$onload>
$header
$navbar

<!-- table to support left column nav -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr valign="top">
<td>

<!-- usercp nav -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0">
<tr><td class="tcat" nowrap="nowrap"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_control_panel]</a></td></tr>
<tr><td class="thead"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[your_profile]</a></td></tr>
    <tr><td class="$navclass[profile]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_your_details]</a></td></tr>
    <if condition="$show['customizelink']">
    <tr><td class="$navclass[customize]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=customize">$vbphrase[customize_profile]</a></td></tr>
    </if>
    <if condition="$show['profilepiclink']">
    <tr><td class="$navclass[profilepic]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editprofilepic">$vbphrase[edit_profile_picture]</a></td></tr>
    </if>
<if condition="$vbulletin->options['invite_usercp_link']">
    <tr><td class="$navclass[invitation]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=invitation">$vbphrase[invitation]</a></td></tr>
    </if>

<tr><td class="thead">$vbphrase[networking]</td></tr>
    <tr><td class="$navclass[buddylist]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=buddylist"><if condition="$show['friends_and_contacts']">$vbphrase[contacts_and_friends]<else />$vbphrase[contacts]</if></a></td></tr>
    <if condition="$show['socialgroupslink']">
    <tr><td class="alt2" nowrap="nowrap"><a class="smallfont" href="group.php$session[sessionurl_q]">$vbphrase[social_groups]</a></td></tr>
    </if>
    <if condition="$show['publicgroups']">
    <tr><td class="$navclass[usergroups]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editusergroups">$vbphrase[group_memberships]</a></td></tr>
    </if>
    <if condition="$show['albumlink']">
    <tr><td class="$navclass[album]" nowrap="nowrap"><a class="smallfont" href="album.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[pictures_and_albums]</a></td></tr>
    </if>
<tr><td class="thead">$vbphrase[settings_and_options]</td></tr>
    <if condition="$show['avatarlink']">
    <tr><td class="$navclass[avatar]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr>
    </if>
    <if condition="$show['siglink']">
    <tr><td class="$navclass[signature]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr>
    </if>
    <tr><td class="$navclass[password]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editpassword">$vbphrase[edit_email_and_password]</a></td></tr>
    <tr><td class="$navclass[options]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>
    <tr><td class="$navclass[ignorelist]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=ignorelist">$vbphrase[edit_ignore_list]</a></td></tr>
<if condition="$show['pmmainlink']">
<tr>
    <td class="thead" nowrap="nowrap">
    <span id="nav_pmfolders">$vbphrase[private_messages] <if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("nav_pmfolders"); </script></if></span>
    <if condition="$show['popups']">
        <div class="vbmenu_popup" id="nav_pmfolders_menu" style="display:<if condition="$show['popups']">none<else />block</if>">
            <table cellpadding="4" cellspacing="1" border="0">
            <tr>
                <td class="thead" nowrap="nowrap">$vbphrase[folders]</td>
            </tr>
            $cpnav[pmfolders]
            </table>
        </div>
    </if>
    </td>
</tr>
    <tr><td class="$navclass[pm_messagelist]" nowrap="nowrap"><a class="smallfont" href="private.php$session[sessionurl_q]">$vbphrase[list_messages]</a></td></tr>
    <if condition="$show['pmsendlink']">
    <tr><td class="$navclass[pm_newpm]" nowrap="nowrap"><a class="smallfont" href="private.php?$session[sessionurl]do=newpm">$vbphrase[send_new_message]</a></td></tr>
    </if>
    <if condition="$show['pmtracklink']">
    <tr><td class="$navclass[pm_trackpm]" nowrap="nowrap"><a class="smallfont" href="private.php?$session[sessionurl]do=trackpm">$vbphrase[track_messages]</a></td></tr>
    </if>
    <tr><td class="$navclass[pm_editfolders]" nowrap="nowrap"><a class="smallfont" href="private.php?$session[sessionurl]do=editfolders">$vbphrase[edit_folders]</a></td></tr>
</if>
<tr>
    <td class="thead" nowrap="nowrap">
        <span id="nav_subsfolders">$vbphrase[subscribed_threads] <if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("nav_subsfolders"); </script></if></span>
        <if condition="$show['popups']">
            <div class="vbmenu_popup" id="nav_subsfolders_menu" style="display:<if condition="$show['popups']">none<else />block</if>">
                <table cellpadding="4" cellspacing="1" border="0">
                <tr>
                    <td class="thead" nowrap="nowrap">$vbphrase[folders]</td>
                </tr>
                $cpnav[subsfolders]
                </table>
            </div>
        </if>
    </td>
</tr>
    <tr><td class="$navclass[substhreads_listthreads]" nowrap="nowrap"><a class="smallfont" href="subscription.php?$session[sessionurl]do=viewsubscription">$vbphrase[list_subscriptions]</a></td></tr>
    <tr><td class="$navclass[substhreads_editfolders]" nowrap="nowrap"><a class="smallfont" href="subscription.php?$session[sessionurl]do=editfolders">$vbphrase[edit_folders]</a></td></tr>
<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
    <tr><td class="$navclass[event_reminders]" nowrap="nowrap"><a class="smallfont" href="calendar.php?$session[sessionurl]do=viewreminder">$vbphrase[event_reminders]</a></td></tr>
    <if condition="$show['paidsubscriptions']">
    <tr><td class="$navclass[paid_subscriptions]" nowrap="nowrap"><a class="smallfont" href="payments.php$session[sessionurl_q]">$vbphrase[paid_subscriptions]</a></td></tr>
    </if>
    <if condition="$show['attachments']">
    <tr><td class="$navclass[attachments]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editattachments">$vbphrase[attachments]</a></td></tr>
    </if>
<if condition="$show['moderation']">

    <if condition="$show['deleteditems']">
        <tr><td class="thead">$vbphrase[deleted_items]</td></tr>
        <tr><td class="$navclass[deletedthreads]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewthreads&amp;type=deleted">$vbphrase[threads]</a></td></tr>
        <tr><td class="$navclass[deletedposts]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewposts&amp;type=deleted">$vbphrase[posts]</a></td></tr>
        <if condition="$show['deletedvms']"><tr><td class="$navclass[deletedvms]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewvms&amp;type=deleted">$vbphrase[visitor_messages]</a></td></tr></if>
        <if condition="$show['deletedgms']"><tr><td class="$navclass[deletedgms]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewgms&amp;type=deleted">$vbphrase[social_group_messages]</a></td></tr></if>
        <if condition="$show['deletedpcs']"><tr><td class="$navclass[deletedpcs]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewpcs&amp;type=deleted">$vbphrase[picture_comments]</a></td></tr></if>
    </if>

    <if condition="$show['moderateditems']">
        <tr><td class="thead">$vbphrase[moderated_items]</td></tr>
        <tr><td class="$navclass[moderatedthreads]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewthreads&amp;type=moderated">$vbphrase[threads]</a></td></tr>
        <tr><td class="$navclass[moderatedposts]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewposts&amp;type=moderated">$vbphrase[posts]</a></td></tr>
        <if condition="$show['moderatedvms']">
            <tr><td class="$navclass[moderatedvms]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewvms&amp;type=moderated">$vbphrase[visitor_messages]</a></td></tr>
        </if>
        <if condition="$show['moderatedgms']">
            <tr><td class="$navclass[moderatedgms]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewgms&amp;type=moderated">$vbphrase[social_group_messages]</a></td></tr>
        </if>
        <if condition="$show['moderatedpcs']">
            <tr><td class="$navclass[moderatedpcs]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewpcs&amp;type=moderated">$vbphrase[picture_comments]</a></td></tr>
        </if>
        <if condition="$show['moderatedpics']">
            <tr><td class="$navclass[moderatedpics]" nowrap="nowrap"><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewpics">$vbphrase[album_pictures]</a></td></tr>
        </if>   
    </if>

</if>
$template_hook[usercp_navbar_bottom]



</table>
<!-- / usercp nav -->

</td>
<td>&nbsp;&nbsp;</td>
<td width="100%">

<!-- main page contents -->
$HTML
<!-- / main page contents -->

</td>
</tr>
</table>
<!-- / table to support left column nav -->
$footer
</body>
</html>

can some1 please tell me where should i put the second code?

swalker2 05-06-2008 09:13 PM

installed with simple template modifications and query bug fixes, working great now

nice mod!

dancue 05-06-2008 10:53 PM

Quote:

Originally Posted by swalker2 (Post 1510969)
installed with simple template modifications and query bug fixes, working great now

nice mod!

What modifications did you do?

sharing is caring...lol

00christian00 05-08-2008 07:19 AM

Hi guys,the modification it's really simple to make it working.
Just add the following to the form in the usercp_invitation template :
Code:

<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
After this :
Code:

<if condition="$show['invitation_form']">
        <form action="profile.php" method="post" name="vbform">
                <input type="hidden" name="s" value="$session[sessionhash]" />
                <input type="hidden" name="do" value="invitation" />

Everything is explained here :

https://vborg.vbsupport.ru/showthread.php?t=177013
I tried to make an updated xml,let me know if it works,i never did it before but since it's some simple text edit it should be a problem.

psybernaut 05-08-2008 07:52 AM

Thanks 00christian00, that did the trick :)

tako 05-08-2008 09:08 AM

I wonder if your mod is not working if I have prefix for VB database table name?? I installed it but it shows error that table user not found. FYI

Lee G 05-08-2008 09:55 AM

Thanks for that update. I could not find the code to alter, so tried using the new file and that did the trick :up:

chintu 05-08-2008 12:31 PM

Hi 00christian00,

I downloaded your attached file. I hope that is the newest version of the invitation system mod?

Thanks.

Arindam

00christian00 05-08-2008 01:40 PM

Hi Chintu,it's always the same version but without the security token problem.

Mum 05-08-2008 05:32 PM

Using the 'fix' i get this error

Quote:

Database error in vBulletin 3.7.0:

Invalid SQL:
SELECT user.userid AS user_id, user.email AS user_email, invitation.email AS inv_email, invitation.acceptedby as inv_id
FROM vBuser
LEFT JOIN vBinvitation
ON user.userid = invitation.acceptedby OR user.userid = invitation.email

Epic-Phail 05-08-2008 09:37 PM

I get this error
Quote:

Your submission could not be processed because a security token was missing or mismatched.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.

EDIT: Never mind, Christian's post helped a lot

stickskills 05-08-2008 11:02 PM

Yeah, I'm getting the same database errors as the other guys.. :(

gr8rcake 05-09-2008 11:17 PM

I tried the fix too and got the DB error.

Code:

SELECT user.userid AS user_id, user.email AS user_email, invitation.email AS inv_email, invitation.acceptedby as inv_id
                                        FROM vb_user
                                        LEFT JOIN vb_invitation
                                        ON user.userid = invitation.acceptedby OR user.userid = invitation.email
                                        WHERE user.email = 'test@test.com'
                                        OR invitation.email = 'test@test.com';

MySQL Error  : Unknown column 'user.userid' in 'field list'

I think it is triggered by this code in the XML file:

Code:

        $invitationcheck = $db->query_read("SELECT user.userid AS user_id, user.email AS user_email, invitation.email AS inv_email, invitation.acceptedby as inv_id
                                                                                FROM " . TABLE_PREFIX . "user
                                                                                LEFT JOIN " . TABLE_PREFIX . "invitation
                                                                                ON user.userid = invitation.acceptedby OR user.userid = invitation.email
                                                                                WHERE user.email = '" . $db->escape_string($vbulletin->GPC['email']) . "'
                                                                                OR invitation.email = '" . $db->escape_string($vbulletin->GPC['email']) . "'
                                                                                ");

The reason why the token fix may be working with some people and not others is that the plugin hits another bug in the code later on.

I suspect the new bug is related to installing vBulletin with a prefix on your DB tables (TABLE_PREFIX).

Any other ideas? I'm only a casual programmer.

guv 05-10-2008 12:50 AM

Had the same problems as many other people, but now seems to work editing as "Christian" suggested.

So now appears to be ok.

Couple of questions.

The default settings for invites is 10. Can this be increased (without causing problems)?

Can deleting invites from a users CP that have been successfully used be disabled?

Many thanks

Snatch 05-10-2008 01:28 PM

I get this Error :D

Code:

Ihr Seitenaufruf konnte auf Grund eines fehlenden oder falschen Securitytokens nicht verarbeitet werden.

chatzworld 05-10-2008 01:41 PM

thanks fixed it for me :) had to add it to both parts ;)

gr8rcake 05-10-2008 02:20 PM

I have given up on this and used a simple blank mailto:

Code:

<a href="mailto:?subject=Mail from Our Site&body=This is the body%0AWords on a new line%0AMore words on a new line">Invite Friends</a>
You can add new lines to the body by adding a %0A wherever in the body string you want to put a hard return.

I also created a copy of the navbar code and placed it in the "ad_navbar_below" in the "Ad location templates" and added the mailto: there

The advantages of this method include:
  1. The code is unaffected by upgrades
  2. The email is sent by the users own email client on their home PC where they can select people from their address book.
  3. I also don't have to worry about SPAM coming from my server as the email is being sent from the user's home PC.

I really think the problem with this code is that it fails to work if you did a non default installation of vBulletin and specified a table prefix.

DawnsWebDesigns 05-11-2008 02:33 AM

I checked it out on your site. It does bring up my own email where I can add people from my address book but there's no link to your site either within the subject line or body. People will not only have to type out a message but also copy/paste our links within. :(

gr8rcake 05-11-2008 02:56 AM

Oops! Wrong forum in my profile!

It's there. I've done it on my bikeness.com forum.

The changes I made refer to vBulletin v3.7.0

myown 05-11-2008 06:49 AM

how to give unlimited invitations to all users ? instead of 10, 20 or more.

energetic 05-11-2008 07:14 AM

I got error :

XML 錯誤: 在第 607 行 not well-formed (invalid token)

Muneeb2Good 05-11-2008 01:39 PM

We just installed the script but whenever we try to send an invitation its giving us an error :

Quote:

Your submission could not be processed because a security token was missing or mismatched.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.
Please guide us

Thanks it worked like wonders :) , Thanks 00christian00 for the Great Help ...

Cheers

ShawneyJ 05-11-2008 02:04 PM

whats with the permissions, i have added all user groups. 12, 13, 14, 15 etc: i even tryed 12,13,14,15 without a space but still no one has permission to access this hack.
it started just now when i upgraded. went in edited like the old one but this time no permission at all.

whats up with that please?

Gersfan 05-11-2008 03:37 PM

Excellent!

Only thing is it's not put a link on my USER CP,

Networking
Contacts & Friends
Social Groups
Pictures & Albums

In There, What template do I edit ?

Thanks,

ptwiggens 05-11-2008 08:26 PM

Might install this... looks good.

chatzworld 05-11-2008 08:31 PM

it should be just above Networking under General

conker1 05-11-2008 10:57 PM

this ;

myown 05-12-2008 09:25 AM

Quote:

Originally Posted by myown (Post 1515672)
how to give unlimited invitations to all users ? instead of 10, 20 or more.

any solution for it....

Mesohu 05-12-2008 09:40 AM

Quote:

Your submission could not be processed because a security token was missing or mismatched.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.
I'm getting this when I try to send invitation... ?

Before installing this version I have used the 2.0 Version ...


All times are GMT. The time now is 08:10 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.01966 seconds
  • Memory Usage 1,889KB
  • 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
  • (8)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete