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)

buro9 02-15-2004 10:00 PM

Secret Admirer / Crush System
 
No longer supported by the author.

colicab-d 02-16-2004 05:55 PM

LMAO nice hack :D really like the Cilla Black touch ;)

Gio Takahashi 02-16-2004 06:16 PM

HAH, thats a funny one. Good job with the hack.

buro9 02-16-2004 06:36 PM

Quote:

Originally Posted by colicab-d
LMAO nice hack :D really like the Cilla Black touch ;)

Laugh you may, but I've only had it turned on for 12 hours on my boards and there have been 120 admirations through the system already.

On my last forum we processed 3,500+ admirations, two couples came about, numerous friendships, and a few people moved country. All of which is directly attributable to this hack.

If you've got a forum with a mixed sex community, you'd probably find this to be VERY successful.

It's titled 'admiration' not crush so that it doesn't necessarily exclude those in relationships from saying that they think someone else is cool.

Of course, on a teen site such a matchmaking system would go down a storm!

Worth every minute of the development time.

alexparksonline 02-16-2004 06:48 PM

haha our forum is going to love this, its a forums for Alex Parks who is a lesbian so as you can guess there is alot of horny lesbians on the forums lol. Thanks alot *clicks install*

Koutaru 02-16-2004 08:28 PM

;) thanks for making this vb3 compatable. I'm definately installing

AutomatikStudio 02-16-2004 08:58 PM

I don't have the template "getinfo"...it was in my old vB2 board...but not in any of my vB3 styles.

AutomatikStudio 02-16-2004 09:07 PM

Also...where do I change the PM's to not say they are from "Cilla Black"? I looked in all the templates and phrases and couldn't find it.

Giveit2u43 02-17-2004 01:23 AM

Quote:

Originally Posted by AutomatikStudio
I don't have the template "getinfo"...it was in my old vB2 board...but not in any of my vB3 styles.

Getinfo was renamed MemberInfo in vb3. it would appear that the getinfo instructions have been left in by mistake, scroll down to the bottom of the install instructions to get the correct link to add to memberinfo.

Installed and working great, thanks a lot for updating this, my members really appreciate it.

buro9 02-17-2004 04:28 AM

Quote:

Originally Posted by AutomatikStudio
Also...where do I change the PM's to not say they are from "Cilla Black"? I looked in all the templates and phrases and couldn't find it.

You can do this in the functions_secretadmirer.php file.

It is at the top in the form of two constants... there are comments there explaining how to modify it ;)

buro9 02-17-2004 04:30 AM

Quote:

Originally Posted by Giveit2u43
Getinfo was renamed MemberInfo in vb3. it would appear that the getinfo instructions have been left in by mistake, scroll down to the bottom of the install instructions to get the correct link to add to memberinfo.

Installed and working great, thanks a lot for updating this, my members really appreciate it.

GetInfo was indeed a leftover from the VB2 version... sorry, I only collated the files straight after work and failed to remove that line.

I've updated the installer... just ignore the GetInfo instructions if you used the installer downloaded prior to this posts date..

buro9 02-17-2004 12:40 PM

Quote:

Originally Posted by buro9
GetInfo was indeed a leftover from the VB2 version... sorry, I only collated the files straight after work and failed to remove that line.

I've updated the installer... just ignore the GetInfo instructions if you used the installer downloaded prior to this posts date..

Some users on my site have asked if it's possible to limit the number of admirations a single user can make in a designated time frame.

i.e. to restrict each user to making no more than 5 admirations per month.

The logic behind this is that whilst you cannot admire the same person twice, it does prevent users just flooding the system with admirations in an attempt to figure out who admired them.

So it places a higher value on an admiration.

What do you all reckon? Something you want to see?

Also... it appears that users are receiving PM notification emails as well as their e-mail... I'm going to look at this some time... I think it's permissioning... or my logic with bitflags.

nemesis01 02-17-2004 06:05 PM

Quote:

If two people admire each other, then both parties are notified... and love is
spread
LMAO, don't know whether i'll install this but that line is a classic. :nervous:

buro9 02-17-2004 08:43 PM

Quote:

Originally Posted by buro9
Requested by a few people, I was planning on going to straight to release version... but I'm wise enough to have it tested by others first.

I'll iron bugs over the next two weeks and then go to gold with it.

So... from the top of the install file:



And below you can find the install file.

There is an upgrade route for those who installed it before (renaming a table) as well as instructions for a fresh install.

Cheers

David K

UPDATE1: Fixed install to remove GetInfo reference which was a VB2 leftover. Included in install a line saying that the configuration is changed in secretadmirer.php.

UPDATE2: 2004-02-17 22:44 GMT: Modified ./includes/functions_secretadmirer.php as it was sending two e-mails instead of one if someone had PMs and PM notification both enabled.

Another mild update... it was sending out two emails for each admiration if the receiving user had both PM enabled and PM notification.

Now it just sends the one email in that case.

This only affected ./includes/functions_secretadmirer.php
So you can just upload that and it's fixed ;)

buro9 02-17-2004 08:44 PM

Quote:

Originally Posted by buro9
Another mild update... it was sending out two emails for each admiration if the receiving user had both PM enabled and PM notification.

Now it just sends the one email in that case.

This only affected ./includes/functions_secretadmirer.php
So you can just upload that and it's fixed ;)

And of course I've updated the installer ;) I'm good like that.

Catch-22|BL 02-18-2004 04:50 AM

So far, so good. There was a little problem in editing the last template where it did not exactly match up. I picked the closest thing and it worked. This was the part of the instructions:

<td class="vbmenu_control"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=ignore&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_ignore_list]</phrase></a></td>

But other than that this thing is working good....probably a couple more installs and you can move it out of Beta mode. Thanks for your patience and efforts with this hack.

buro9 02-18-2004 08:20 AM

Quote:

Originally Posted by Catch-22|BL
So far, so good. There was a little problem in editing the last template where it did not exactly match up. I picked the closest thing and it worked. This was the part of the instructions:

<td class="vbmenu_control"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=ignore&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_ignore_list]</phrase></a></td>

But other than that this thing is working good....probably a couple more installs and you can move it out of Beta mode. Thanks for your patience and efforts with this hack.

I've adjusted that part of the instructions to this:

Code:


TEMPLATE SECTION: Member Info Templates
TEMPLATE: MEMBERINFO
FIND (about 1/3rd of the way down within the 'button row' section):
        <if condition="can_moderate()">
                <td class="vbmenu_control"><a href="moderator.php?$session[sessionurl]do=useroptions&amp;u=$userinfo[userid]">$vbphrase[user_options]</a></td>
        </if>

ABOVE IT ADD:
  <td class="vbmenu_control"><a href="profile.php?$session[sessionurl]do=admire&amp;userid=$userinfo[userid]">Register your admiration for $userinfo[username]</a></td>


buro9 02-18-2004 10:15 AM

Well it's now processed over 1,00 admirations on my site, of which the only problem was a duplicate e-mail.

I've now requested for an available mod to move this thread into an appropriate place in Full Releases.

:D

Catch-22|BL 02-18-2004 10:21 AM

Glad this hack is available. Good work with it. :)

Oblivion Knight 02-18-2004 10:40 AM

Here's an alternative Cilla Black avatar for you.. ;)
I'm rather intrigued by this mod, but not sure it would be overly successful at my forums.

VampireG 02-18-2004 11:56 AM

I am using VB 3.0.0 RC2 and I cant seem to find the first change you have to make in the profile.php?

FILE: profile.php

FIND (near the very top):
'removelist' => array(
'modifylist_removeuser',
),

Any ideas please?

buro9 02-18-2004 12:05 PM

Quote:

Originally Posted by VampireG
I am using VB 3.0.0 RC2 and I cant seem to find the first change you have to make in the profile.php?

FILE: profile.php

FIND (near the very top):
'removelist' => array(
'modifylist_removeuser',
),

Any ideas please?

Well... you're only adding that stuff to the actiontemplates array... so take a look at the top of the profile.php file for the action templates block and add the secretadmirer stuff in there.

The instructions are written for RC4 though, and tested on RC4. As with other hackers I won't be making versions for each beta or RC version... just the very latest. Once we get to gold, it is then that I will ensure the VB3 and later versions are happy with the hack and I'll support it. Until then, you are on release candidate software and you should be at the latest level at all times (too many bugs fixed, let alone the two vunerabilities that Kier issued a patch for).

The best advice is to upgrade your forums to RC4 and then follow the instructions again.

VampireG 02-18-2004 01:03 PM

Took the advice thanks, upgraded and we are now all working.

I have a very busy forum and expect this to be used loads.

Thanks for your time in creating it. :)

GamerzWorld 02-18-2004 02:53 PM

Im having a few problems. It said change it to your forum (the new templates) but i saw no where u had to change. I let it do it with the errors but where do you record your admiration?

buro9 02-18-2004 04:00 PM

Quote:

Originally Posted by GamerzWorld
Im having a few problems. It said change it to your forum (the new templates) but i saw no where u had to change. I let it do it with the errors but where do you record your admiration?

The bit that says:

Quote:

For each of the text files, you need to add it as a template of the same name.
Change the values within them to match your forum and personal preference :)
Really mean to personalise it for your forum... i.e. Cilla Black may not be what you want, so you might want to change the wording to fit the mood/atmosphere of your forum.

The template change to MEMBERINFO is where the ability to add admiration comes in. I'll make some screen shots now and add them to the first post for you so you can see what should have happened.

buro9 02-18-2004 04:28 PM

Quote:

Originally Posted by Oblivion Knight
Here's an alternative Cilla Black avatar for you.. ;)
I'm rather intrigued by this mod, but not sure it would be overly successful at my forums.

Hope you don't mind... but I'm putting the alternative Cilla into the installer package too... I always prefer it when those who maintain hacks merge suggestions and additions back into the installer for future users to benefit from.

buro9 02-18-2004 04:36 PM

Screenshots can now be found in the zip file.

I tried posting them... but something went iffy and vbulletin.org thinks they're in progress and won't let me post them or delete them. I'll check later to see if vbulletin changes its mind ;)

Oblivion Knight 02-18-2004 04:48 PM

Quote:

Originally Posted by buro9
Hope you don't mind... but I'm putting the alternative Cilla into the installer package too... I always prefer it when those who maintain hacks merge suggestions and additions back into the installer for future users to benefit from.

No problem.!
I'm probably going to install this at my forums, minus Cilla and instead have "Anonymous".

Rampag33 02-18-2004 05:08 PM

This sounds pretty damn cool, not really sure if I will use it but I definitely like the idea bebhind Greak work!

Oblivion Knight 02-18-2004 05:20 PM

I get this error when trying to add the template secret_admirer_alert_email.

Quote:

The following error occurred when attempting to evaluate this template:

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /var/www/html/forums/includes/adminfunctions_template.php(3028) : eval()'d code on line 3

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
I don't quite understand why, but thought I'd better report it..

buro9 02-18-2004 06:16 PM

Quote:

Originally Posted by Oblivion Knight
I get this error when trying to add the template secret_admirer_alert_email.

I don't quite understand why, but thought I'd better report it..

Yes... Just checked... this should've been picked up by the beta testers ;) How did you all install it, eh?

I left some extra quotes in two of the templates... these were the alert_email and alert_pm templates.

I'm just going to update the installer for you... but in essence, where you find $vboptions['bburl'] just make it $vboptions[bburl]

Sorry for that... updating now :D

Oblivion Knight 02-18-2004 10:27 PM

D'oh.. I should have picked up on that one too!
Installed and working well.. Not sure how popular this will prove to be though, as mentioned.

I guess we'll soon find out.! :D

Rampag33 02-19-2004 05:28 AM

Is there a limit for the # of admirations a person can use. I can really see this getting very out of hand. My forums is mostly females so instead of everyone just admiraring everyone I would like a limit this as Buro9 asked aswell.

buro9 02-19-2004 07:17 AM

Quote:

Originally Posted by Rampag33
Is there a limit for the # of admirations a person can use. I can really see this getting very out of hand. My forums is mostly females so instead of everyone just admiraring everyone I would like a limit this as Buro9 asked aswell.

Proving successful then ;)

I was considering adding limiters to the code as this was suggested on my board. The debate has continued though, and whilst a small minority are making a large number of admirations... the majority are only making one or two. Yet it is the small minority who are encouraging the majority to participate... and as no member can admire someone twice the minority do run out of steam eventually.

As such, I don't think I will be adding limiters to it for my benefit.

However, now it's stable I am thinking of doing a set of improvements to make it easier for others to offer translations and to take better advantage of the phrase system in VB3.

So if you can think of ways in which to define limitations (a maximum X admirations in the last Y days?) then I will consider including them as an option in the next version (hopefully still before Kier can get VB3 to gold).

Cheers

David K

Catch-22|BL 02-19-2004 07:32 AM

Quote:

Originally Posted by buro9
Yes... Just checked... this should've been picked up by the beta testers ;) How did you all install it, eh?


I modified your notification messages and did not see that error. :)

Anyway, nice to see people installing this hack.

Rampag33 02-19-2004 07:38 PM

Quote:

Originally Posted by buro9
Proving successful then ;)

I was considering adding limiters to the code as this was suggested on my board. The debate has continued though, and whilst a small minority are making a large number of admirations... the majority are only making one or two. Yet it is the small minority who are encouraging the majority to participate... and as no member can admire someone twice the minority do run out of steam eventually.

As such, I don't think I will be adding limiters to it for my benefit.

However, now it's stable I am thinking of doing a set of improvements to make it easier for others to offer translations and to take better advantage of the phrase system in VB3.

So if you can think of ways in which to define limitations (a maximum X admirations in the last Y days?) then I will consider including them as an option in the next version (hopefully still before Kier can get VB3 to gold).

Cheers

David K

Well my forums are pretty much for others to hook up and since 90% are girls that are bi this is really going to get out of hand. Every will just admire everyone. Then just wait for someone to say it in return. Instead of just doing the ones they like they just select everyone.

1 a week is fine with me. Or 3 a month. Something like that.

For most sites I can't see this being much of a problem but I'm mostly on gaming sites or something like that is why. But on chit chat and people meetin sites I can see this being very used. In the first 2 weeks up and running I had people just join the site just to PM girls. So I had to limit PM access to users that actually post. I've talked it over with some of the other admins about this mod and they all love the idea of it just want it to have a limit.

buro9 02-19-2004 09:43 PM

OK, I've added the ability to enforce limitations that you define... if you enable this feature it is one additional database query.

The changes I've made to accommodate this:
* Created two new indexes on the table to increase lookup speed - this is an optional thing, new installs will benefit from it.
* Created new config and code within functions_secretadmirer.php - you will need to re-upload this.
* Changed the code in profile.php - you will need to upload this again.
* Added a phrase to declare the limit is exceeded.

Rampag33, can you install the version I've attached to THIS POST and let me know if it solves your needs.

If it does and there were no errors, then I will replace the zip file in my first post.

Oblivion Knight 02-22-2004 03:20 PM

Just to let you know I've updated to the latest zip..
All seems to be running well so far, haven't had time to test the limit yet but I'm sure it'll work.. ;)

Rampag33 02-22-2004 03:21 PM

Alright thx. Downloading Will install after work today.

Rampag33 02-23-2004 07:32 PM

Install no problems to report yet

Thx!

I have it set to 3 admirations in a month and the only error was human error forgot to remove the table_prefix on installation :)

Thx for a great hacc


All times are GMT. The time now is 01:28 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.01407 seconds
  • Memory Usage 1,851KB
  • 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_code_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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