vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   End-User Options - Secret Admirer / Crush System (https://vborg.vbsupport.ru/showthread.php?t=61632)

venomx 09-04-2004 06:30 PM

Just had a great idea.... but may send too many emails...
send valentines cards on feb 14 from the admirers... ;p

robert_2004 09-29-2004 03:45 PM

it is a really good mod, but i don't want to install it if i don't have any control over it.
i really need an admin section to check users aren't adding literally everyone to their list, and i need to be able to monitor new guests (like perverts and such ((as i run a teenager forum for a certain location )) and make sure people with 0 - 20 posts aren't adding more than 1 or 2 people )
some equation like, 1 person added per 10 posts (without informing them they need to post more to receive another, but rather inform them they will receive another slot "very soon" )

buro9 09-29-2004 09:41 PM

Quote:

Originally Posted by robert_2004
it is a really good mod, but i don't want to install it if i don't have any control over it.
i really need an admin section to check users aren't adding literally everyone to their list, and i need to be able to monitor new guests (like perverts and such ((as i run a teenager forum for a certain location )) and make sure people with 0 - 20 posts aren't adding more than 1 or 2 people )
some equation like, 1 person added per 10 posts (without informing them they need to post more to receive another, but rather inform them they will receive another slot "very soon" )

I'll look at building X admirations per Y post count as an option.

This can be an alternative method of prevent flooding alongside the time based method currently available.

I could also do a usergroup based permissioning, this would let you use promotions to control the availability of the secret admirer thing via thresholds that you define through the promotion system.

Thus far there is no reporting whatsoever, and I'm afraid that whilst I understand your concerns re: perverts, I shall not be building a reporting system for this as I do not want my users to believe that just because I created a reporting function I do such things as examine who admired who, etc.

However, I'm not a closed source hack writer, and anyone who wants to make such changes and additions can do, and I will happily roll them into the first post for new vBulletin admins to get if they wish to use reporting tools with this hack.

FleaBag 10-11-2004 12:52 AM

This is what I'm getting...

Quote:


Parse error: parse error in /www/dragonninja/includes/functions_secretadmirer.php on line 109

Fatal error: Call to undefined function: secretadmirercreate() in /www/dragonninja/profile.php on line 2647
Any ideas?

buro9 10-11-2004 07:59 AM

Strange, no-one else has had this problem.

The function it can't find is within the functions_secretadmirer.php file that you should have uploaded to your includes folder.

Could you check that you have done this.

If you have done this, have you changed your includes folder from the default path (it's looking relative to the profile.php file for a subfolder named 'includes').

If you have done both of those... have you in any way modified the chunk of code that the install instructions asked you to put into profile.php? Specifically the chunk of logic that currently looks like thus:
PHP Code:

// HACK : START : SECRET ADMIRER
if ($_REQUEST['do'] == 'admire') {
  require_once(
'./includes/functions_secretadmirer.php');
  unset(
$admiresUserId);
  unset(
$admireStatus);
  
$admiresUserId verify_id('user'$_REQUEST['userid']);
  
$admireStatus secretAdmirerCreate($bbuserinfo['userid'], $admiresUserId);
  switch (
$admireStatus) {
    case 
'DONE':
      
$_REQUEST['forceredirect'] = 1;
      eval(
print_standard_redirect('redirect_secretadmirer_acknowledged'));
      break;
    case 
'DUPLICATE':
      
$_REQUEST['forceredirect'] = 1;
      eval(
print_standard_redirect('redirect_secretadmirer_duplicate'));
      break;
    case 
'LIMIT':
      
$_REQUEST['forceredirect'] = 1;
      eval(
print_standard_redirect('redirect_secretadmirer_limit'));
      break;
  }
}
if (
$_REQUEST['do'] == 'admirereport') {
  require_once(
'./includes/functions_secretadmirer.php');
  
secretAdmirerReport($bbuserinfo['userid']);
  
$_REQUEST['forceredirect'] = 1;
  eval(
print_standard_redirect('redirect_secretadmirer_report_sent'));
}
// HACK : END : SECRET ADMIRER 

Therein lies the function calls and the include statement. If it cannot find the file containing the functions within the includes folder then it will not be able to call the function :)

Try that first (checking the file is where it should be).

Cheers

David K

FleaBag 10-11-2004 08:11 AM

All of my forum files are in the site root, and my includes folder is a subdirectory of this. I have added the code to profile.php as required...

I guess I should have also let you know that I get this error when clicking the link in the profile, to register romantic interest... Just to let you know. I was also admiring myself as a test - this seemed to work when I had 3.01 installed - it was working 100% [I'm now re-hacking for the 3.03 upgrade]. I'm usually pretty good at tracking errors down, even though I'm not too PHP savvy, but this is beyond me heh.

Thanks for your time buro9.

Wifey 10-12-2004 03:31 AM

I'm getting a database error when I click to get the report. Also, when I try to admire someone to test it, it says it's a duplicate. Any ideas?

FleaBag 10-26-2004 03:29 PM

I've still not fixed this. Anyone having a similar problem?

buro9 10-29-2004 09:41 AM

Quote:

Originally Posted by FleaBag
I've still not fixed this. Anyone having a similar problem?

Sorry, I'm in the wrong country, but if you could send me your profile.php file I could see whether anything is obviously wrong.

You did upload the two files into the includes directory right?

Do you have a phpinfo page accessible too? Not that I can imagine why this doesn't work.

RWDF1 11-21-2004 10:16 PM

I am trying to install this, but I dont understand the mySQL part. could someone explain how I install this part in more detail please. The rest seems fairly striaght forward.

Thanks

Robert


All times are GMT. The time now is 01:44 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.01190 seconds
  • Memory Usage 1,755KB
  • 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
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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