PDA

View Full Version : Profile Enhancements - Secret Admirer


buro9
09-15-2005, 10:00 PM
No longer supported by the author.

buro9
09-16-2005, 01:11 PM
Because some of you collapse the hack area ;)

nexialys
09-16-2005, 01:22 PM
great, i was expecting a debugged and updated version, i have both at the same time.. ;)

EDIT: hum, not so updated... the PM are in templates again... can't this be fixed to be phrases ?!

buro9
09-16-2005, 01:28 PM
great, i was expecting a debugged and updated version, i have both at the same time.. ;)

EDIT: hum, not so updated... the PM are in templates again... can't this be fixed to be phrases ?!

Yeah, I was thinking the same just as I finished it.

Unsure how to pass the phrase all of the information though... do you know how? If so... I'll make the changes :)

buro9
09-16-2005, 01:34 PM
Do phrases get eval'd in the same way templates do?

nexialys
09-16-2005, 02:03 PM
$message = construct_phrase($vbphrase['xxx'], $element1, $element2, $element3);
this will be your structure... the vbphrase is the text with a {++} for each element you add... can be more than 3, this is just an example...

buro9
09-16-2005, 02:07 PM
$message = construct_phrase($vbphrase['xxx'], $element1, $element2, $element3);
this will be your structure... the vbphrase is the text with a {++} for each element you add... can be more than 3, this is just an example...

Thanks, just found the same elsewhere... testing now :)

buro9
09-16-2005, 02:13 PM
Well it appears to work... new version being uploaded now :)

Just uninstall the existing, and install the new via the Product area of the Plugin Manager in the AdminCp

buro9
09-16-2005, 02:15 PM
Latest little change was my use of templates has ended... everything in phrases now :)

nexialys
09-16-2005, 02:52 PM
will be easy to translate now... thanks buro9.. ;)

Bad Bunny
09-16-2005, 03:03 PM
will be easy to translate now... thanks buro9.. ;)

That was a very nice thing to do, Nex.

Anyway, this is a very odd and funny hack. I never noticed it before.

nexialys
09-16-2005, 06:02 PM
@buro9, i think you forgot some phrases... the ones in the readme... the template edits... put them in GLOBAL so they will be easy to find..

EDIT: oh, a suggestion: global activation... in the board settings would be good to have a global activation, so if we want to deactivate the system for a period, we don'T have to uninstall it.

FleaBag
09-16-2005, 07:02 PM
Sweet... Thanks Buro - will go install now. :)

EDIT!: Working! Beautiful! Requests... A confirmation page for when you request report [or even having the report display in the UCP?] would be great... I have visions of the members at my site clicking the link 400 times before they realise it's going to their' email. A confirmation that your admiration has been registered would be great too.

nexialys
09-16-2005, 08:00 PM
Fleabag, are your Redirects deactivated in your acp ?!.. lol

buro9
09-16-2005, 08:19 PM
Even if the requests are deactivated it should still show them... these are forced redirects.

But you mean if the user misses the redirect screen telling them... then you want it to stop until they click something?

buro9
09-16-2005, 08:20 PM
@buro9, i think you forgot some phrases... the ones in the readme... the template edits... put them in GLOBAL so they will be easy to find..

EDIT: oh, a suggestion: global activation... in the board settings would be good to have a global activation, so if we want to deactivate the system for a period, we don'T have to uninstall it.
For the phrases, I agree, I'll do them Sunday or Monday.

For the deactivation... yes, an option would be a good idea. Mostly just to prevent the links appearing in the templates... I shall do that too.

FleaBag
09-16-2005, 08:29 PM
Fleabag, are your Redirects deactivated in your acp ?!.. lol

I didn't realise I could do that Nex? Where do I look?

nexialys
09-16-2005, 08:52 PM
I didn't realise I could do that Nex? Where do I look?
>> vBulletin Options >> Cookies and HTTP Header Options >> Remove Redirection Message Pages ...

FleaBag
09-16-2005, 09:21 PM
Aha, thanks... Yes I do have them disabled. But it isn't the redirect I want so much, but a confirmation page on which a user can click to continue on... Or ever an AJAX inserted message on the page to confirm as actioned.

Martin
09-16-2005, 09:24 PM
this is a great addition to my forums.

I have one small sugestion, however. Apparently you can Secretly Admire yourself. When I was growing up my mommy told me that would lead to blindness...

nexialys
09-16-2005, 09:34 PM
this is a great addition to my forums.

I have one small sugestion, however. Apparently you can Secretly Admire yourself. When I was growing up my mommy told me that would lead to blindness...now you can live a perfect life even if you'Re blind you know.. lol

Boofo
09-16-2005, 09:35 PM
And nexialys would know, trust me. ;)

nexialys
09-16-2005, 09:56 PM
And nexialys would know, trust me. ;)what did you say Boofoon ?!... i'm unable to read you completely...

Alien
09-16-2005, 10:31 PM
Great job, nice work..

The only thing that prevents me from utilizing this, is the fact that it has no limiter..

For example, you register someone you have a crush on. They're notified that someone has a crush on them, they register 50 users on the site until they get the answer they're looking for. Everyone will ALWAYS know who the secret admirer is.

Was hoping for something more where like you could only choose 1 guess a day or like 3 people total and if you don't guess you can't find out that particular match *ever*. :)

Damn fun game, nonetheless... Keep up the good work, I look forward to more stuff from ya!

Martin
09-16-2005, 10:44 PM
One more thing.

You have userid both as a Primary Key and an Index. This may cause problems on large boards like mine...

FleaBag
09-16-2005, 10:45 PM
Have you checked in your options?

nexialys
09-17-2005, 12:08 AM
request: Make the SA Report displayed in the UserCP, not sent via eMail... i hate that feature... when we click on the link, it send an email... useless, just display the content of the report on the page would do the job and let the mailer in peace...

also, make the post by eMail an option, so the ADMIN can choose if all the messages are sent via eMail OR PM .... i prefer PM, i hate these emails ...

also, like before, make the functions in a includes/functions_sa.php file, so we don't have a load of new stuff in profile.php (for the ones that hardcode the plugin...)

Martin
09-17-2005, 04:02 AM
request: Make the SA Report displayed in the UserCP, not sent via eMail... i hate that feature... when we click on the link, it send an email... useless, just display the content of the report on the page would do the job and let the mailer in peace...

also, make the post by eMail an option, so the ADMIN can choose if all the messages are sent via eMail OR PM .... i prefer PM, i hate these emails ...

also, like before, make the functions in a includes/functions_sa.php file, so we don't have a load of new stuff in profile.php (for the ones that hardcode the plugin...)

Yanno, you attract more flies with honey :)

buro9
09-17-2005, 06:46 AM
request: Make the SA Report displayed in the UserCP, not sent via eMail... i hate that feature... when we click on the link, it send an email... useless, just display the content of the report on the page would do the job and let the mailer in peace...

also, make the post by eMail an option, so the ADMIN can choose if all the messages are sent via eMail OR PM .... i prefer PM, i hate these emails ...

also, like before, make the functions in a includes/functions_sa.php file, so we don't have a load of new stuff in profile.php (for the ones that hardcode the plugin...)

I'm against doing this. Because we had major politics on our site... big stuff, think marriages being threatened and affairs being aired. It has to be very very private. And people secure their email more than their forum login (how many of you have the 'remember me' set when they login). So sending it to email is much safer than having it display on the screen.

As for limits... check your Settings Alien, you can set 3 admirations max within a 24 hour period... or 10 per month... or whatever you feel based on a quantity within timeframe calculation.

buro9
09-17-2005, 06:48 AM
also, like before, make the functions in a includes/functions_sa.php file, so we don't have a load of new stuff in profile.php (for the ones that hardcode the plugin...)
What's the point in hard-coding a plugin?

Crazyiness.

I was actually trying to avoid a file upload.

I think I'll make a second version being a single line add to profile.php and the external file.

Btw... carry on making suggestions, I'll action them tomorrow night (Sunday) or Monday.

Wordplay
09-17-2005, 09:12 AM
thanks alot! been waiting for this... you know what would be a great function though. if users could even pm the users they admire as SECRET ADMIRER (or the user specified as notifyer), to give them tips, cuz i run an incredibly huge forum... in which case it would just be entertaining as hell.

ThePimp
09-17-2005, 10:26 AM
Fatal error: Unable to proceed with save while $errors array is not empty in class vb_datamanager_pm in /includes/class_dm.php on line 758

I get this when sending admiration. I click the link in a profile, and this error comes up. When I refresh, it seems to go forward.

Any idea on how to fix this?

ThePimp
09-17-2005, 10:40 AM
Hmm... This might be due to me running RC2. I'll upgrade and see if it takes care of this issue. Will let you know.

ThePimp
09-17-2005, 11:10 AM
Ok, I just upgraded... Still get the error. Any ideas?

nexialys
09-17-2005, 12:20 PM
SUGG: would be great to have a block when we open our UserCP where we can read thisYou still have {6} users who admire you, whom you have not yet matched with. like this block: https://vborg.vbsupport.ru/showthread.php?s=&threadid=82616

need just the function to count the admirers... this would incitate users to participate... because when you don't know who is interested in you, you are not really into it.. ;0

edschaum
09-17-2005, 12:23 PM
I'm against doing this. Because we had major politics on our site...

Hi, this is a great addon! Would you consider adding an option to allow the admin to choose whether to send the report to the screen or to email?

Thanks,

Ed

nexialys
09-17-2005, 12:34 PM
I'm against doing this. Because we had major politics on our site... ya, maybe on your site, you have politics... on our site, it's the opposite, we require all tools to send messages thru PM or onscreen because we avoid eMails... we want our users to login on our site to have contacts with each others...

anyway.. will code it for myself.

FleaBag
09-17-2005, 02:20 PM
He didn't mean that his forum is about politics, he meant it would interfere with personal politics. I'd actually realised the same thing last night - this kind of info could cause a lot of issues for users. With this in mind, for extra security - it would be nice for a user to turn off admiration - so they can NOT be admired, via UCP. Obviously if they do not receive, they also can not give.

Buro9; I do not see any redirects at all. And what I was asking for is maybe a page where it would state "Your admiration for X has been registered - you need take no further action. Click here to go back to the X's profile.". On a similar note, for the report; "Your secret admirer report has been sent to the e-mail address in your profile - click here to go back to your Control Panel.".

Another suggestion is maybe moving admiration notifications over to an hourly CRON job. I just realised that if the user admiring, and the user being admired are using the forums at the same time - that the e-mail would alert the admired, if they quickly checked Active Users the admirer would probably still be [or be listed as being] viewing the admired's profile - giving the game away. Not sure if that makes any sense haha... :)

Alien
09-17-2005, 07:14 PM
As for limits... check your Settings Alien, you can set 3 admirations max within a 24 hour period... or 10 per month... or whatever you feel based on a quantity within timeframe calculation.

Exxxxcellent.. Sorry, some early versions of this hack I thought didn't have this ability.. I never saw it in any descriptions or control panel screenshots so I was assuming the ability wasn't there. Carry on!

* Alien slinks away embarrassed. :)

Alien
09-17-2005, 07:18 PM
He didn't mean that his forum is about politics, he meant it would interfere with personal politics. I'd actually realised the same thing last night - this kind of info could cause a lot of issues for users. With this in mind, for extra security - it would be nice for a user to turn off admiration - so they can NOT be admired, via UCP. Obviously if they do not receive, they also can not give.

Another suggestion is maybe moving admiration notifications over to an hourly CRON job. I just realised that if the user admiring, and the user being admired are using the forums at the same time - that the e-mail would alert the admired, if they quickly checked Active Users the admirer would probably still be [or be listed as being] viewing the admired's profile - giving the game away. Not sure if that makes any sense haha... :)

I second this.. If only a handful of users are on and one gets an e-mail, it severely limits the choices and would be a total giveaway.. I think it should send out the e-mails on an hourly cron job to make the game that much more enjoyable.. I also believe that allowing users to NOT receive any notices (the option not to be involved in the game whatsoever) would really be helpful as well.. Thanks for considering these!

Roxie
09-17-2005, 08:11 PM
Hey,
I wondered how I would go about changing Cilla Black to Roger Lodge?

Andreas
09-17-2005, 08:19 PM
What's the point in hard-coding a plugin?
Performance.
If the Code is in a PHP File, it can be precompiled/cached => eAccelerator.

That's why I wrote a Plugin-slipstream tool for me :)

nexialys
09-17-2005, 08:40 PM
That's why I wrote a Plugin-slipstream tool for me :)and you will surely share it with us, because you really appreciate us here, isn't it?!

;)

Andreas
09-17-2005, 08:42 PM
Nope, this one won't be shared as it is really written crappy - and not PHP.
(Windows, written in Delphi)

Roxie
09-17-2005, 08:54 PM
Hey,
I wondered how I would go about changing Cilla Black to Roger Lodge?

*dunce cap* Duh...figured it out. :ermm:

???`S?LV?R???`
09-18-2005, 05:14 AM
is the script working fine? just thought I'd ask before I install

Wordplay
09-18-2005, 08:29 AM
ya, maybe on your site, you have politics... on our site, it's the opposite, we require all tools to send messages thru PM or onscreen because we avoid eMails... we want our users to login on our site to have contacts with each others...

anyway.. will code it for myself.

can i get that add on then?

buro9
09-18-2005, 08:57 AM
If you do code an extension to this nexialys, I'm happy to give you credit and support stuff for this hack and to post instructions and such up above... or to link to another thread for you to offer it seperately, etc.

ThePimp
09-18-2005, 09:26 AM
Still getting this error:
Fatal error: Unable to proceed with save while $errors array is not empty in class vb_datamanager_pm in /includes/class_dm.php on line 758

nexialys
09-18-2005, 09:46 AM
... nah, i don't plan to code it for the time being, i'm too occupied with the baby... if i do, i will contact you buro9...

Loki12
09-18-2005, 11:58 AM
Works fine for me....

buro9
09-19-2005, 08:56 PM
Still getting this error:
Fatal error: Unable to proceed with save while $errors array is not empty in class vb_datamanager_pm in /includes/class_dm.php on line 758
Are PM's enabled on your system?

buro9
09-19-2005, 08:57 PM
Are PM's enabled on your system?
Admittedly I should be checking ;)

ThePimp
09-20-2005, 02:10 AM
Admittedly I should be checking ;)

I have PMs setup using Promotions, not everyone can use them.

drumsy
10-06-2005, 01:24 AM
Is the current version free of any known bugs, ready to run on a 45,000+ member website? Do the phrases used follow proper grammer and spelling?

buro9
10-06-2005, 05:20 AM
Is the current version free of any known bugs, ready to run on a 45,000+ member website? Do the phrases used follow proper grammer and spelling?


It is now ;)

Just updated to fix a PM usergroup permission bug. Also to reduce the size of the datastore (which caches all plugins!) and to allow eAccelerator to cache and compile, etc :)

I've just nabbed the last two hard-coded phrases too, and yes my English is adequate.

SnowBot
10-06-2005, 05:53 AM
Thanks for the update :)

moonclamp
10-19-2005, 07:46 AM
Couple of questions:

Can users turn this feature off if they don't want to be part of it?

What happens if the secret admirer is on someone's ignore list?

buro9
10-19-2005, 05:33 PM
Couple of questions:

Can users turn this feature off if they don't want to be part of it?
I haven't written such functionality, but there's no reason you couldn't create a custom field and then edit the MEMBERINFO template so that the link to admire that person doesn't show if they have decided to turn it off.

What happens if the secret admirer is on someone's ignore list?
Currently it would still admire that person. I hadn't thought of this scenario (ignore lists are barely used on my forum).

Not sure what you'd want to happen in this case... the person who admires should think they've succeeded, but the person receiving shouldn't know about it.

Would silencing the communication be enough? But to let the admiration go through?

pross
10-25-2005, 02:44 AM
Where do we change the text sent via PM's/Emails?

dirtycrow
10-25-2005, 03:16 AM
Hey,
I wondered how I would go about changing Cilla Black to Roger Lodge?

how do you change it from cillia to something else?

moonclamp
10-25-2005, 03:17 PM
I haven't written such functionality, but there's no reason you couldn't create a custom field and then edit the MEMBERINFO template so that the link to admire that person doesn't show if they have decided to turn it off.Not sure how I'd do that with it being in options rather than profile .. VB is relatively new to me.

Currently it would still admire that person. I hadn't thought of this scenario (ignore lists are barely used on my forum).

Not sure what you'd want to happen in this case... the person who admires should think they've succeeded, but the person receiving shouldn't know about it.

Would silencing the communication be enough? But to let the admiration go through?I would like to see the ignoring person not receive any notification at all ... ie. No PM from cilla.


What happens if a user clicks the same person loads of times ... is there any anti-spam mechanism?

buro9
10-25-2005, 05:30 PM
What happens if a user clicks the same person loads of times ... is there any anti-spam mechanism?

There's two levels of anti-spam:

1) You can set a qty vs time based limit on the number of admirations a user can make against all other users. This is easier with an example: On my board users can admire a maximum of 3 people every 24 hours. So they can't just run around and admire everyone.

2) You can't admire the same person twice... it simply advises the person making the admiration that they've already admired that person, and perhaps it's time to send a PM to them and strike up a conversation.

buro9
10-25-2005, 05:31 PM
how do you change it from cillia to something else?

Simply use a different user (that you create) and change the settings in the AdminCp to reflect the user you want to use..

buro9
10-25-2005, 05:34 PM
Where do we change the text sent via PM's/Emails?

AdminCp > Phrase Manager

The phrasegroup is: User Tools (global)
The phrases all start: secretadmirer_

Flow Fusion
11-27-2005, 03:00 PM
Warning: Unknown(./includes/secretadmirer.php): failed to open stream: No such file or directory in /profile.php(154) : eval()'d code on line 111

Fatal error: (null)(): Failed opening required './includes/secretadmirer.php' (include_path='.:/usr/local/lib/php') in /home/giftedso/public_html/gs/profile.php(154) : eval()'d code on line 111

buro9
11-27-2005, 06:25 PM
Warning: Unknown(./includes/secretadmirer.php): failed to open stream: No such file or directory in /profile.php(154) : eval()'d code on line 111

Fatal error: (null)(): Failed opening required './includes/secretadmirer.php' (include_path='.:/usr/local/lib/php') in /home/giftedso/public_html/gs/profile.php(154) : eval()'d code on line 111

You didn't upload the PHP file. It's in the instructions, the .php file is in the .zip file.

Flow Fusion
11-27-2005, 07:05 PM
I'll try again but I know i did.

Flow Fusion
11-27-2005, 07:21 PM
You were right I had the file in the wrong folder.

*Intsalled*

Flow Fusion
11-30-2005, 09:14 AM
OK I have another issue. I don't see the link in a few members info. How do I make it so everyone has this?

*edit.* I figured it out.

Calisse
12-05-2005, 11:13 PM
My users simply adore the secret admirer hack, i laughed a lot when i got my first email saying 'i got two messages saying i liked myself whats going on?'

install for teenager forums definately. 9/10

buro9
12-06-2005, 04:25 AM
install for teenager forums definately. 9/10

I'm going to tell my forum of adults this ;)

Mudvayne
12-15-2005, 05:12 PM
clicked install..
btw buro9 how many admirer did u got? :P

buro9
12-16-2005, 05:12 AM
clicked install..
btw buro9 how many admirer did u got? :P


Er, probably 70 or so.

The strange thing is that I match with lots of girls but never boys. I think the boys are kinda embaressed about admiring other boys. Such fools, I've admired a roughly equal number of girls and boys in the three years I've had the system installed.

ConKien
12-16-2005, 08:35 PM
Wow, great mod! Does this work for vb 3.5.x?

buro9
12-17-2005, 06:23 AM
Wow, great mod! Does this work for vb 3.5.x?

Yup :)

TygerTyger
12-17-2005, 02:25 PM
I'm really, really hoping for an opt-out for my users before I install this...could you take that as a suggestion?

Omranic
01-23-2006, 03:29 PM
//Edit

Thats Great

My Error coz of another thing

thanks

The Chief
01-23-2006, 04:58 PM
This looks really cool, I think I'll add this to my functions later on ;)

nicedreams
01-26-2006, 07:56 PM
Does not work for me. Vers 3.5.3

Always says that you've already registered your admiration for that user.

Jim

quanvo81
01-26-2006, 11:18 PM
Does not work for me. Vers 3.5.3

Always says that you've already registered your admiration for that user.

Jim

What ? I am about to install this, but you say it doesn't work for 3.5.3?

@buro9 : Is it true that it doesn't work for 3.5.3?

Omranic
01-27-2006, 03:06 PM
What ? I am about to install this, but you say it doesn't work for 3.5.3?

@buro9 : Is it true that it doesn't work for 3.5.3?


It works Fine with 3.5.x including 3.5.3 :)

nicedreams
01-27-2006, 03:13 PM
It works Fine with 3.5.x including 3.5.3 :)

I disagree. It does not work with 3.5.3. It always says, you've already registered your admiration for that user even if you haven't.

Jim

Startinfresh
01-27-2006, 05:30 PM
I think it has something to do with the older version that is already installed (late year) beacause I use 3.5.1 and it still tells me "You've already registered your admiration for this user".

now if i could figure out what i did LOL

nicedreams
01-27-2006, 08:16 PM
I disagree. It does not work with 3.5.3. It always says, you've already registered your admiration for that user even if you haven't.

Jim

Ok, I figured out another plugin is interfering somehow with this one. I'm not sure why it is, it is a plugin hooked at global_start calling a function from coppermine's cpmfetch function. I removed the close line $objCpm->cpm_close(); and now it works.

I moved the $objCpm->cpm_close(); line to a hook at forumdisplay_complete. I'm not sure if it is doing anything there or not. Is there a better hook i can maybe put this close line at?

Jim

Murty
02-01-2006, 07:24 AM
Just installed, works well. How can i change the message? it says from cilla even though i have set up another user to send the PM's. How can i edit what gets sent in the PM?

Murty
02-01-2006, 08:08 PM
????

nicedreams
02-01-2006, 10:34 PM
Just installed, works well. How can i change the message? it says from cilla even though i have set up another user to send the PM's. How can i edit what gets sent in the PM?

Under phrase manager, seach for secretadmirer.

Jim

Murty
02-02-2006, 03:39 AM
Thanks Alot :D

Murty
02-02-2006, 09:08 AM
Just a question, as administrator is it possible to view all the amirations that have been going on? like X secretly admires Y etc etc

Murty
02-03-2006, 07:53 AM
can i??

nicedreams
02-03-2006, 01:40 PM
Well, you could always look in the screatadmirer table in your database.

Jimmy

dxguru
02-04-2006, 11:35 AM
Ok, I figured out another plugin is interfering somehow with this one. I'm not sure why it is, it is a plugin hooked at global_start calling a function from coppermine's cpmfetch function. I removed the close line $objCpm->cpm_close(); and now it works.

I moved the $objCpm->cpm_close(); line to a hook at forumdisplay_complete. I'm not sure if it is doing anything there or not. Is there a better hook i can maybe put this close line at?

Jim
I'm having this same problem ... how do I work out where the conflict is happening? (if it is a conflict)

dxguru
02-04-2006, 12:20 PM
No matter ... figured it out. I just changed the db insert command in the php file to use the vB standard and all is now good :)

pete_brady
02-06-2006, 10:02 PM
No matter ... figured it out. I just changed the db insert command in the php file to use the vB standard and all is now good :)

uhh could you elaborate on this, please? having the same problem here...

pete_brady
02-07-2006, 06:00 PM
uhh could you elaborate on this, please? having the same problem here...

figured it out

EricaJoy
02-09-2006, 01:23 PM
Does anybody know if the register your admiration business can be done from the postbit?

edit: nvm, figured it out. yes its possible, i'll post here what i did later today.

buro9
02-09-2006, 01:55 PM
Does anybody know if the register your admiration business can be done from the postbit?

It can be done from anywhere... just create a link to do so from the postbit template. Use the memberinfo adjustment above as inspiration.

EricaJoy
02-09-2006, 09:19 PM
See secretheart.jpg in the attachments below. To do it, follow these instructions....

In postbit

Find: <div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername] </if>
</div>

Replace with: <span id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername] </if>
</span><a href="profile.php?$session[sessionurl]do=admire&amp;userid=$post[userid]"><img src="/images/heart.png" border=0 alt="Register your admiration for $post[username]"></a>

Upload heart.png* to /forumroot/images/

(edit the img path if neccessary)

Done!

*heart.png courtesy of http://www.famfamfam.com

Barteken
02-10-2006, 08:08 PM
it says it is being send but no ones recieves e-mail/pm?
someone got ideas?

Grtz

hadog
02-12-2006, 01:23 PM
I am in the same position...I installed according to directions.
All things seem to be ok but there is no pm or email recieved...when the link is clicked it says that the admire has been logged. Where does it go??
I guess I have something turned off????

imranbaig
02-12-2006, 04:04 PM
Clicked install,..

In UserCP, the cell for Secret Admirer is bigger then the other Links, I modified it to fit properly, just a note,..
Nice hack..

Barteken
02-12-2006, 04:28 PM
@hadog just having the same problem :-)

pete_brady
02-12-2006, 08:40 PM
figured it out

maybe I should elaborate?

To get this to work, at line 70/71 in secretadmirer.php I had to change

$success = mysql_query(
"INSERT INTO ".TABLE_PREFIX."secretadmirer (".

to read

$success = $vbulletin->db->query_write(
"INSERT INTO ".TABLE_PREFIX."secretadmirer (".

Smiry Kin's
02-15-2006, 10:50 AM
dont work for me, installed on 3.5.3
shame really.

dxguru
02-15-2006, 12:19 PM
Ours is working fine on 3.5.3 ... has from the start :)

dxguru
02-16-2006, 01:08 AM
How do I stop getting the database error when try to admire someoen you have already matched with?

buro9
02-18-2006, 01:56 PM
How do I stop getting the database error when try to admire someoen you have already matched with?


You shouldn't get a database error, I catch it.

Unless you did this: https://vborg.vbsupport.ru/showpost.php?p=898517&postcount=104

In which case, I think there will be database errors for you. As the database class freaks out instead of letting the application decide what to do with the error.

bada_bing
03-13-2006, 07:09 PM
Does this work with usergorups? Also had anyone tried this on vb 3.5.4?

jerx
03-23-2006, 09:45 AM
This is really a funny hack!

I plan to use the who viewed my profile hack. It logs the time a user visits a profile. If you register your admiration, you can be easily tracked. Does anybody have a good idea how to keep it secret?

buro9
03-31-2006, 01:09 PM
This is really a funny hack!

I plan to use the who viewed my profile hack. It logs the time a user visits a profile. If you register your admiration, you can be easily tracked. Does anybody have a good idea how to keep it secret?

Put the admire links somewhere else... how about the dropdown of the user links in postbit?

Rahuldhanpat
04-05-2006, 10:04 AM
ADDING THE LINKS TO THE TEMPLATES

I've left this stage manual... you might have customised your templates or choose to put these links elsewhere.

TEMPLATE SECTION: User Control Panel Templates
TEMPLATE: USERCP_SHELL
FIND (near the bottom):
Code:

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

ABOVE IT ADD:
Code:

<tr>
<td class="$navclass[attachments]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=admirereport" title="Have your secret admirer report e-mailed to you">Secret Admirer Report</a></td>
</tr>


TEMPLATE SECTION: Member Info Templates
TEMPLATE: MEMBERINFO
FIND (about 1/3rd of the way down within the 'button row' section):
Code:

<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:
Code:

<td class="vbmenu_control"><a href="profile.php?$session[sessionurl]do=admire&amp;useri

i did all above exceept this templet work....plz tell me where is this tememplet and where to write this code. Do i have to just copy and paste it...

Plz give me the screen shot of temeplate where i have to write this codes..?

I m on half completed...help me..

psypix
04-09-2006, 01:10 PM
See secretheart.jpg in the attachments below. To do it, follow these instructions....

In postbit

Find: <div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername] </if>
</div>

Replace with: <span id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername] </if>
</span><a href="profile.php?$session[sessionurl]do=admire&amp;userid=$post[userid]"><img src="/images/heart.png" border=0 alt="Register your admiration for $post[username]"></a>

Upload heart.png* to /forumroot/images/

(edit the img path if neccessary)

Done!

*heart.png courtesy of http://www.famfamfam.com

Am i right in assuming this will place a heart next to all the people you admire and visa versa?

Cool if it does :cool:

Krose
04-22-2006, 11:13 PM
my members amazed by this hack! thanx a lot it adds attraction to my site..*clicked install*

Krose
04-25-2006, 01:33 AM
it says it is being send but no ones recieves e-mail/pm?
someone got ideas?

Grtz

i have the same problem here, only the administrators and mods can
recieve the pm's/e-mails, ordinary members can't recieve them..how can
i fix this? :(

Krose
04-28-2006, 10:16 AM
Thanx for your PM..it's working now! :banana:

Snake
04-28-2006, 01:04 PM
Thanks for this major hack! :D

doggy1
05-25-2006, 01:29 AM
i have the same problem here, only the administrators and mods can
recieve the pm's/e-mails, ordinary members can't recieve them..how can
i fix this? :(
I have installed this on my site and I too am stuck on the PM/email thingy. Everything seems okay but no pms are being sent when you admire someone.

What am I missing here? Thanks!

Seems like a great hack!!!!!!

doggy1
05-25-2006, 04:42 PM
I got the pm and emails to work. I had to create the id of the secret admirer.

But I was wondering if there was a way to change the message that is sent by PM? Thanks!

And great hack!!!!!!

blogtorank
05-25-2006, 07:37 PM
This would be great for dating forums, however will give this a go!! ;)

buro9
05-26-2006, 09:05 AM
I got the pm and emails to work. I had to create the id of the secret admirer.

But I was wondering if there was a way to change the message that is sent by PM? Thanks!

And great hack!!!!!!

Yes... just change the template that is the email body.

DjTaz
07-08-2006, 09:14 AM
I would love a version of this hack thats almost the same as the one here with one exception :

The person who is admiring puts in the username they admire .... that person gets an e-mail to say someone has admired them , and a link to a page with 5(or 10) e-mail addresses options on it. They enter e-mail addresses of the people they think may have sent the admiration - and if the e-mail address matches they get sent to a mutual admiration page.

Now the 4 (or 9) people that dont match get an e-mail saying that someone has registered their admiration for that person on the site , and if they can guess the person correctly , they will be told who likes them.
They in turn get sent to the page with 5 e-mail options and put in the people they think sent it to them.... and the cycle continues.

This will mean the site will be seen by more and more people , the more that use this system, and possibly attract more new members from friends of existing members.

Its an idea , and i dont think it would take too much editing of the existing script , but if you can do it , please let me know !

I had it installed , and found it went very static once the initial members had all played a bit with it. (I have a small board)

realraptor
08-10-2006, 07:33 PM
any chance we'll see a 3.6.0 version?

EDIT: Took the plunge on 3.6.0 and all appears to be working :)

psypix
08-19-2006, 04:38 PM
Took the plunge on 3.6.0 and all appears to be working :)


ditto :)

abramelin
02-25-2007, 08:46 PM
does this mod working on 3.6.4?

Glynn58
03-03-2007, 01:13 PM
does this mod working on 3.6.4?

i'd like to know that also thanks

Nzarect
03-03-2007, 01:30 PM
I'd say take a plunge and install it on a testboard first.

carmichael1973
05-19-2007, 03:23 AM
Installed on 3.6.5 and working fine! Be nice if the Admirer Report was visible on the website rather than sent by email! Nice addition to my board though!

Mrdby
05-22-2007, 04:35 PM
3.6.7?

kylek
08-25-2007, 04:44 AM
Works on 3.6.8.

FleaBag
02-28-2008, 11:15 PM
Gutting to see this has disappeared? I wiped my files and needed a reinstall. That'll teach me to keep a local copy.