vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Profile Enhancements - Secret Admirer (https://vborg.vbsupport.ru/showthread.php?t=96393)

quanvo81 01-26-2006 11:18 PM

Quote:

Originally Posted by nicedreams
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

Quote:

Originally Posted by quanvo81
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

Quote:

Originally Posted by SolidSnake@GTI
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

Quote:

Originally Posted by nicedreams
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

Quote:

Originally Posted by Murty
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

Quote:

Originally Posted by nicedreams
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

Quote:

Originally Posted by dxguru
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

Quote:

Originally Posted by pete_brady
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

Quote:

Originally Posted by princessfrozen
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:
PHP Code:

            <div id="postmenu_$post[postid]">
                <if 
condition="$show['profile']">
                <
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:
PHP Code:

            <span id="postmenu_$post[postid]">
                <if 
condition="$show['profile']">
                <
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

Quote:

Originally Posted by pete_brady
figured it out

maybe I should elaborate?

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

PHP Code:

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

to read

PHP Code:

$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

Quote:

Originally Posted by dxguru
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....&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

Quote:

Originally Posted by jerx
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

Quote:

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

Quote:

Originally Posted by princessfrozen
See secretheart.jpg in the attachments below. To do it, follow these instructions....

In postbit

Find:
PHP Code:

            <div id="postmenu_$post[postid]">
                <if 
condition="$show['profile']">
                <
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:
PHP Code:

            <span id="postmenu_$post[postid]">
                <if 
condition="$show['profile']">
                <
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

Quote:

Originally Posted by Barteken
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

Quote:

Originally Posted by Krose
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!! ;)


All times are GMT. The time now is 04:17 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.01431 seconds
  • Memory Usage 1,861KB
  • 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
  • (6)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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