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-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.


All times are GMT. The time now is 07:05 PM.

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.01249 seconds
  • Memory Usage 1,750KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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