[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

07/05/2009 at 11:22AM PDT, ID: 24545053
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

5.5

Increase admin invites in SocialEngine networking system

Asked by lherrou in PHP Scripting Language, PHP and Databases

Tags: php, social engine, social networking

I'm running an installation of the Social Engine social networking system (http://www.socialengine.net).  

I am running it as an invite only system, so no individual users can issue invites, only an Admin can. However, the admin invite function is capped at 10, and I have about 800 to send. I'd like to be able to send them in blocks of 100, but I cannot seem to find a way around this.

There is a section in admin_invite.php that breaks the emails into an array:
array_slice(explode(",", $_POST['invite_emails']), 0, 10));

(see full code of admin_invite.php below)

I tried increasing the 10 to 100, but for some reason that doesn't seem to change anything. The sending loop seems to rely on a count of the array - so, it seemed that increasing the array_slice would increase the overall array, but it does not seem to effect it. If I put 11 emails in the box, the system only sends 10 - so that doesn't appear to be the limiting factor either, anyone have any ideas or have a work-around for this?

LHerrou

p.s. I am NOT a php programmer... in case you hadn't figured that out yet.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
<?php
 
/* $Id: admin_invite.php 8 2009-01-11 06:02:53Z john $ */
 
$page = "admin_invite";
include "admin_header.php";
 
if(isset($_POST['task'])) { $task = $_POST['task']; } else { $task = "main"; }
 
 
// SET RESULT VARIABLE
$result = 0;
 
 
// SAVE CHANGES
if($task == "doinvite") {
  $invite_emails = implode(",", array_slice(explode(",", $_POST['invite_emails']), 0, 10));
 
  // NO INVITE CODE REQUIRED
  if($setting[setting_signup_invite] == 0) {
    send_systememail('invite', $invite_emails, Array($setting[setting_email_fromname], $setting[setting_email_fromemail], "", "<a href=\"".$url->url_base."signup.php\">".$url->url_base."signup.php</a>"), TRUE);
 
  // INVITE CODE NECESSARY
  } else {
 
    // LOOP OVER EMAILS
    $invite_emails_array = explode(",", $invite_emails);
    for($e=0;$e<count($invite_emails_array);$e++) {
      $email = trim($invite_emails_array[$e]);
      if($email != "") {
 
        // CREATE CODE, INSERT INTO DATABASE, AND SEND EMAIL
	$invite_code = randomcode();
	$database->database_query("INSERT INTO se_invites (invite_user_id, invite_date, invite_email, invite_code) VALUES ('0', '".time()."', '$email', '$invite_code')");
        send_systememail('invitecode', $email, Array($setting[setting_email_fromname], $setting[setting_email_fromemail], "", $invite_code, "<a href=\"".$url->url_base."signup.php?signup_email=$email&signup_invite=$invite_code\">".$url->url_base."signup.php?signup_email=$email&signup_invite=$invite_code</a>"));
      }
    }
  }
  
  $result = 1;
}
 
 
 
// ASSIGN VARIABLES AND SHOW BANNING PAGE
$smarty->assign('result', $result);
include "admin_footer.php";
?>
[+][-]07/05/09 11:36 AM, ID: 24780854

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: PHP Scripting Language, PHP and Databases
Tags: php, social engine, social networking
Sign Up Now!
Solution Provided By: kevin_u
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07/05/09 11:48 AM, ID: 24780891

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/05/09 12:31 PM, ID: 24781036

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/05/09 12:49 PM, ID: 24781114

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07/05/09 03:16 PM, ID: 24781472

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/05/09 03:51 PM, ID: 24781592

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/06/09 05:32 AM, ID: 24784510

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20090824-EE-VQP-74 - Hierarchy / EE_QW_EXPERT_20070906