vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBBuddies (https://vborg.vbsupport.ru/showthread.php?t=79204)

Kagami Kyoji 07-11-2005 08:21 AM

For some reason I get the error listed below whenever I try and add someone as a buddy through my usercp. I have set "send private message" to on as you can obviously see, yet I can't seem to find the problem. Any suggestions? :ermm:






Fatal error: Call to undefined function: sendprivatemessage() in /home/content/L/9/I/L9IAnime/html/forums/profile.php on line 503

PHP Code:

                if ($userid $DB_site->query_first("
                    SELECT userid, username, usergroupid, membergroupids
                    FROM " 
TABLE_PREFIX "user AS user
                    WHERE username = '
$val'
                "
))
                {
                    
$useridcache["$val"] = $userid;
                        
// Start vBBuddies (Edit by: Lucas)
                        
if($vboptions['buddieslist_enablepmrequest'])
                        {
                            
$frombuddyname $bbuserinfo['username'];
                            
$frombuddyid $bbuserinfo['userid'];    
                            
$tobuddyname $userid['username'];
                            
$tobuddyid $userid['userid'];
                            eval(
fetch_email_phrases('buddies_autopmrequest'iif(isset($newpost_lang["$toemail"]), $newpost_lang["$toemail"], 0)));
                            
$message convert_url_to_bbcode($message);
                            
sendprivatemessage ($userid$message$subject);
                        }                    
                        
// End vBBuddies (Edit by: Lucas)
                
}
            } 


And also is there anyway for the "View Buddies" to automatically grab up the users profile rather than having to type it in?

SS9267547 07-11-2005 10:51 AM

You just missed a step. You need to add the 'sendprivatemessage' function to your profile.php file. That should get it working! :)

As for the other question I don't know what you mean by type it in? :nervous:

Kagami Kyoji 07-11-2005 07:56 PM

Thanks a lot for that =P I was getting confused ><

As for the other thing...

When I added the code you provided to show a "View Buddies" link wherever you want it. I added it to the navbar and it goes to

http://www.l9ianime.com/forums/buddies.php?u=

But for instance to get to my profile it would have to be set to

http://www.l9ianime.com/forums/buddies.php?u=1

However, I cannot get the script to automatically detect and add the user which is clicking on that link so if member number 39 were to click the link it would take him here

http://www.l9ianime.com/forums/buddies.php?u=

But, I would like for it to take him here

http://www.l9ianime.com/forums/buddies.php?u=39

Basically, making it such that the person who wants to view thier buddies list does not have to type in thier member number every time.

akanevsky 07-11-2005 08:04 PM

Nice hack, however...
"hello ... this is to let you know that ... has added you to their buddies"
.. is kind of not good towards peoples privacy.

illPhever 07-11-2005 09:08 PM

Quote:

Originally Posted by Dark Visor
Nice hack, however...
"hello ... this is to let you know that ... has added you to their buddies"
.. is kind of not good towards peoples privacy.


that's true, but this hack kinda changes the usage of the buddy system...and for those that don't want to "participate", there is an option to keep your buddy list private in the UserCP. look at #2 on the list of features for the hack:

Current Features

2. Option for user to activate or disable public buddy list.


...i do think it's important for people using this hack on their site to notify their users of the change, though, so no one is caught off guard. (i think that was mentioned somewhere in this thread or in the original hack vBFriends thread.)

illPhever 07-11-2005 09:13 PM

:ermm: ...hmm, just checked and Disabling Public Buddies List doesn't prevent that PM from going out. i see what you mean Dark Visor.

that would be a good addition for the hack.

akanevsky 07-11-2005 09:38 PM

Quote:

...hmm, just checked and Disabling Public Buddies List doesn't prevent that PM from going out. i see what you mean Dark Visor.

that would be a good addition for the hack.
Yep :) If the author fixes that, it will be nice. That should be easy, just a simple conditional around the sendpm code.

[high]* akanevsky clicks install[/high]

akanevsky 07-11-2005 09:46 PM

Here goes the fix...

DESCRIPTION:

Will disable the PM buddy list add notification, if a person wants to keep his/her buddy list private.

FIND: (TWICE)

PHP Code:

    // Start vBBuddies (Edit by: Lucas)
    
if($vboptions['buddieslist_enablepmrequest']) 

REPLACE WITH: (TWICE)

PHP Code:

    // Start vBBuddies (Edit by: Lucas)
    
if($vboptions['buddieslist_enablepmrequest'] AND $bbuserinfo[buddiesliststatus] == 1


SS9267547 07-11-2005 10:35 PM

Kagami Kyoji: With the 'View Buddies', where are you trying to view the link from? If its from the profile.php or member.php, whatever lol can't think right now, check to see that you did all the steps, sounds like to missed something.

Dark Visor: Yes its something it looks like I've missed, this software just got released without alot of public beta testing so no one has really come up with any big issues. Anyway thanks for the code, will add in whenever there is a next release. Also if there are other issues please do share.

akanevsky 07-11-2005 10:39 PM

Quote:

Dark Visor: Yes its something it looks like I've missed, this software just got released without alot of public beta testing so no one has really come up with any big issues. Anyway thanks for the code, will add in whenever there is a next release. Also if there are other issues please do share.
No, I did not notice any issues yet. But I will share. While you did not make a release, you should add a link to my post to your hack's top post.


All times are GMT. The time now is 09:04 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.01372 seconds
  • Memory Usage 1,763KB
  • 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
  • (3)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)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