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)

SS9267547 06-12-2005 08:50 PM

Lionel the install script is almost the same, the only differance is those pharses I meantioned. So if you need them just take out the "//" that is infront of them.

Lionel 06-12-2005 08:51 PM

thanks. I will uninstall completely and reinstall from scratch.

brendanlim 06-12-2005 09:46 PM

Got it all installed but having one minor problem with mine. I attatched a picture to show you guys what I'm talking about.

If I have someone added to my list ... and I view my own list and choose the Buddy Options menu, it is BLANK. But it properly shows "Add Budy ...." when I am viewing someone else's list that is not on my buddy list. Hopefully that made sense ....

Any help would be greatly appreciated!

Lionel 06-12-2005 10:06 PM

in memberlist, should both templates have the same code:
Quote:

<!-- Start vBBuddies -->
<if condition="$vboptions['buddieslist_activebuddyindicator']"><td class="alt1" width="16">$buddyicon</td></if>
<!-- End vBBuddies -->

SS9267547 06-13-2005 09:39 PM

brendanlim: Did you just install with the new install? If so I think I know what the problem is which is with the phrases, go into the install and find the where all the phrases are and remove "// from infront of the following...
  • add_x_to_ignore_list
  • add_x_to_buddy_list
  • remove_x_from_your_buddylist
  • remove_x_from_your_ignorelist

The upload the install and run the install part for the phrases or you can add them manually if you wish. Let me know if this is the problem.

Lionel: Ah I think it should have been in there only once. Check for me be removing one of them. I think one is in there by mistake, most likly I have it in the table header which should be there but instead of "$buddyicon" there should be a space. Let me know.

Lionel 06-13-2005 10:23 PM

only once. I simply made the second one as non breaking space &nbsp;

SS9267547 06-14-2005 01:53 AM

Okay I thought that was it, thanks. Okay I'll have to chnage that in the next update.

Lionel 06-14-2005 01:56 AM

I do have a strange issue with the profile addon. All birthyear show the same ...

altsounds 06-21-2005 06:27 PM

Any way to make it so unregistered users can see the profile addon??

SS9267547 06-21-2005 07:04 PM

Well you can try two things in the memberinfo template. One remove the following code.

PHP Code:

AND $userinfo['buddiesliststatus'

If that doesn't work try taking out the whole if statment.

PHP Code:

<if condition="$vboptions['buddieslist_profileactive'] AND $vboptions['buddieslist_active'] AND $userinfo['buddiesliststatus']"

Remember if you remove the if statment remove "</if>" at the end as well.

Khent 07-07-2005 12:07 AM

Do you plan on porting this to vB3.5?

Lord Brar 07-07-2005 01:54 PM

If only I could come and hug you releasing it to the community! THis is just what I was desparately longing for :p

SS9267547 07-08-2005 03:54 AM

Khent: At this time I'll have to say no since this was designed for use on my site and I don't have any plans on moving to 3.5 becuase that would mean doing a dozen other scripts that I'm working on. But then again you never know.

Lord Brar: Your welcome!

Lord Brar 07-08-2005 04:19 AM

Quote:

Khent: At this time I'll have to say no since this was designed for use on my site and I don't have any plans on moving to 3.5 becuase that would mean doing a dozen other scripts that I'm working on. But then again you never know.
You mean that you won't upgrade when 3.5 gold comes out? :p

SS9267547 07-08-2005 04:21 AM

Lol yes unless I'm in the mood or there is a high demand on it hehe.

illPhever 07-09-2005 04:40 PM

what determines who the automated private message notification come from when someone is added to your buddy list?

right now mine come from an Administrator, userid=1, but i wanted them to come from another Admin.

SS9267547 07-09-2005 04:50 PM

illPhever open up your profile.php, find the buddies pm function and look for this line:

PHP Code:

$DB_site->query("INSERT INTO " TABLE_PREFIX "pmtext (fromuserid, fromusername, title, message, touserarray, iconid, dateline, showsignature, allowsmilie) values ('1', '" addslashes($vbphrase['autosystemmessage']) . "', '" addslashes($subject) . "', '" addslashes($message) . "', '".addslashes($serializedinfo)."', '4', '" TIMENOW ."', '1', '1')");[/ 

Now say you want to have the message be by userid '22' well then you would replace that line so it looks like this:

PHP Code:

    $DB_site->query("INSERT INTO " TABLE_PREFIX "pmtext (fromuserid, fromusername, title, message, touserarray, iconid, dateline, showsignature, allowsmilie) values ('22', '" addslashes($vbphrase['autosystemmessage']) . "', '" addslashes($subject) . "', '" addslashes($message) . "', '".addslashes($serializedinfo)."', '4', '" TIMENOW ."', '1', '1')"); 

Hope that help and works for you!

illPhever 07-10-2005 01:47 AM

SS9267547, thanks, that took care of it...and thanks again for the hack :classic:

T3MEDIA 07-10-2005 12:32 PM

Quote:

Originally Posted by SS9267547
Khent: At this time I'll have to say no since this was designed for use on my site and I don't have any plans on moving to 3.5 becuase that would mean doing a dozen other scripts that I'm working on. But then again you never know.

Lord Brar: Your welcome!

Did you get my messages SS9267547???
Any luck on the banned members?
Please and thank you

SS9267547 07-10-2005 12:39 PM

illPhever: Your welcome!

T3MEDIA: I thought I emailed you it like two days ago? Think to your hotmail account. I'll email you it again.

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.

Kagami Kyoji 07-12-2005 01:41 AM

Quote:

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

I mean putting a link into the NAV template which says "View Buddies" and takes you to your buddies list.

Or basically the http://www.l9ianime.com/forums/buddies.php?u=1...where is this part found in the install script? I cant find it? I have it working once I enter a number or a member number but, I cannot get it to automatically go to my buddies list without moving up to the address bar and typing in 1 after the u=.

Kagami Kyoji 07-12-2005 02:40 AM

Ah! Nevermind I simply added

PHP Code:

        <td class="vbmenu_control"><a href="buddies.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[viewmemberbuddies]</a></td

in the navbar template =P

illPhever 07-12-2005 12:56 PM

Quote:

Originally Posted by Dark Visor
Here goes the fix...

DESCRIPTION:

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

thanks Dark Visor.

SS9267547, also on the subject of Private Messaging...i have noticed that even if a user has "Receive Email Notification of New Private Messages" checked in their UserCP, they do not receive email notifications for the VBBuddies automatic notification PM's.

can anyone help on a little more fine-tuning to address this?

illPhever 07-15-2005 06:43 PM

okay, i think i've found the vb code that sends on the email pm notification, but i'm not sure how to use it in the vbbuddies hack.

in private.php is:
PHP Code:

                    if ($user['emailonpm'] AND $user['usergroupid'] != AND $user['usergroupid'] != 4)
                    {
                        
$touserinfo = &$user;
                        eval(
fetch_email_phrases('pmreceived'$touserinfo['langageid'], '''email'));
                        
vbmail($touserinfo['email'], $emailsubject$emailmessage);
                    } 

and in the vbbuddies hack is code for the sendprivatemessage function in these 3 places of profile.php:
PHP Code:

function sendprivatemessage ($userinfo$message$subject)
{
    global 
$DB_site$vbphrase;

    
$userarray["$userinfo[userid]"] = $userinfo['username'];
    
$serializedinfo serialize($userarray);
    
$DB_site->query("INSERT INTO " TABLE_PREFIX "pmtext (fromuserid, fromusername, title, message, touserarray, iconid, dateline, showsignature, allowsmilie) values ('1', '" addslashes($vbphrase['autosystemmessage']) . "', '" addslashes($subject) . "', '" addslashes($message) . "', '".addslashes($serializedinfo)."', '4', '" TIMENOW ."', '1', '1')");
    
$pmid $DB_site->insert_id();
    
$DB_site->query("INSERT INTO " TABLE_PREFIX "pm (pmtextid, userid) values (" $pmid ", '" $userinfo['userid'] . "')");
    
$DB_site->shutdown_query("UPDATE ".TABLE_PREFIX."user SET pmtotal = pmtotal + 1, pmunread = pmunread + 1, pmpopup = " $userinfo['pmpopup'] . " WHERE userid = '" $userinfo['userid'] . "'");
}
// ################################## End vBBuddies Functions ################################ 

PHP Code:

// 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) 

PHP Code:

// Start vBBuddies (Edit by: Lucas)
    
if($vboptions['buddieslist_enablepmrequest'])
    {    
        if (
$var == 'buddylist')
        {
            
$frombuddyname $bbuserinfo['username'];
            
$frombuddyid $bbuserinfo['userid'];    
            
$tobuddyname $userinfo['username'];
            
$tobuddyid $userinfo['userid'];
            eval(
fetch_email_phrases('buddies_autopmrequest'iif(isset($newpost_lang["$toemail"]), $newpost_lang["$toemail"], 0)));
            
$message convert_url_to_bbcode($message);
            
sendprivatemessage ($userinfo$message$subject);            
        }
    }    
    
// End vBBuddies (Edit by: Lucas) 

i think the private.php code can be changed and inserted after the sendprivatemessage function to work for the vbbuddies hack, too, but i don't know how. can anyone assist in altering the private.php code to send out the email pm notification for the vbbuddies hack, too?

commTRU 07-18-2005 06:26 PM

Thanks very much for the great hack.. Now I just need people to join the forum other than me to test it ;)

jrofosho 07-31-2005 05:20 AM

i get the following database error when i attempt to change usergroup settings.

Quote:

Database error in vBulletin 3.0.7:

Invalid SQL: UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
title = 'Registered Users',
description = '',
usertitle = 'Member',
opentag = '',
closetag = '',
passwordexpires = '0',
passwordhistory = '0',
uttstore_discount = '0',
canviewbuddieslist = '1',
nexia_specific_random = '1',
attachlimit = '0',
avatarmaxwidth = '120',
avatarmaxheight = '120',
avatarmaxsize = '20000',
profilepicmaxwidth = '100',
profilepicmaxheight = '100',
profilepicmaxsize = '65535',
pmquota = '50',
pmsendmax = '5',
forumpermissions = '127487',
pmpermissions = '3',
calendarpermissions = '19',
wolpermissions = '1',
adminpermissions = '0',
genericpermissions = '4044511',
genericoptions = '30',
feedbackpermissions = '239',
arcadepermissions = '19'
WHERE usergroupid=2
mysql error: Unknown column 'canviewbuddieslist' in 'field list'

mysql error number: 1054
Any help?

T3MEDIA 08-06-2005 02:34 PM

I messed up for some reason the avatars do not show up on the profile pages anymore. just the avatars (colum and rows) it shows the amounts.

What part handles this so I can look to see where I messed up.
Thanks.
Anyone that knows please advise.

commTRU 08-13-2005 03:35 PM

You know the Buddy/Ignore list that is linked in the User CP? Is there a way to integrate vBBuddies with this just to spruce it up a little bit? :)

commTRU 08-15-2005 01:18 PM

Actually, in relation to the above, is there a way of putting the public display option from the Option section of the user cp into the Buddy/Ignore template?

yoyoyoyo 08-21-2005 02:30 PM

Typos found on buddies.php:
Quote:

Remember that both members need to have each others names added to thier lists to offically be listed here as buddies.
Also...what is the phrase that is supposed to be next to the checkbox that is checked with no writing?

https://vborg.vbsupport.ru/


All times are GMT. The time now is 12:49 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.01575 seconds
  • Memory Usage 1,909KB
  • 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
  • (12)bbcode_php_printable
  • (10)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