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 04-18-2005 09:54 AM

altsounds: Basically with the User CP you want it to look like the addon for the profile addon? I can do that for you. As for vBulletins buddies system I know there isn't a checking system. I havn't worked on fixing this since it's quite a bit of work for me. I'll see what I can come up with.

Anyway with the whole checking issue, what is the system to check anyway? I mean it already checks a few things like if your on the ignore list, if you add yourself, etc. Like I know it will keep sending pm each time a user removes and adds them to their list but thats how it all works.

T3MEDIA 04-18-2005 10:53 AM

any chance on that random user code?

SS9267547 04-18-2005 10:58 AM

On your search section?

T3MEDIA 04-18-2005 10:59 AM

Quote:

Originally Posted by SS9267547
Yes see I did wanted to get the pm system to work so you can get "Approved" or what not and added to the list automatically but I couldn't figure out a way to get it to work without to much editing to the whole vbulletin buddy system, to much work for me to spend so much time on, need to the rest of my site you know hehe. So I just many it send a "added" to pm instead, short cut lol.

couldnt a simple conditional work? If you are a buddy Dont sent the PM. If your not and the user just added you print the accept PM.

or that would be very intensive?

Benj 04-18-2005 11:16 AM

SS9267547 could i ask for one last lil addon! ;) just wanted a bit of code for register.php so that all new sign ups are automatically added to my list and im added to theres :D cant have members with more buddies than me ;) my user id is "1" hence being the admin :D

nice one

T3MEDIA 04-18-2005 11:24 AM

Quote:

Originally Posted by SS9267547
On your search section?

yes SIR!

SS9267547 04-18-2005 11:50 AM

benj: Well thats a bit odd addon, I guess if it isn't to hard I'll give it a try lol. Perhaps you can just have your name typed in the referred name automatically? lol

T3MEDIA: I'll PM you about that search request.

altsounds 04-18-2005 04:00 PM

Quote:

Originally Posted by SS9267547
benj: Well thats a bit odd addon, I guess if it isn't to hard I'll give it a try lol. Perhaps you can just have your name typed in the referred name automatically? lol

T3MEDIA: I'll PM you about that search request.

I was just coming here to request the same thing!!! I think adding the admin as an automaic buddy is a very good way to show users who the main point of contact on the site is.

I would love to have this feature too.

altsounds 04-18-2005 04:05 PM

Quote:

Originally Posted by SS9267547
altsounds: Basically with the User CP you want it to look like the addon for the profile addon? I can do that for you. As for vBulletins buddies system I know there isn't a checking system. I havn't worked on fixing this since it's quite a bit of work for me. I'll see what I can come up with.

Anyway with the whole checking issue, what is the system to check anyway? I mean it already checks a few things like if your on the ignore list, if you add yourself, etc. Like I know it will keep sending pm each time a user removes and adds them to their list but thats how it all works.


Yep i would like it to be exactly as it is with the profile but to have sepearate options in the control panel, to control how many rows etc for the buddy list view in the User CP. The profile one is already random so just figuring out what to add to the usercp.php file would be all you would need to do (I think :D).

As far as the checking goes for the buddy lists. I think your missing the problem. If you request to add me I get sent a PM. Well in order for your buddy system to work, you need to add me and I need to add you for us to be buddies. So I follow the link in the e-mail to add you as a buddy. Now you receive a PM from me saying I have requested to be added as your buddy and this could potentially go on and on forever and get very annoying.

All you would need to check was before sending the PM, to see if the user the PM is going to is already added (non reciprocal). If so, then the script would add that user to my buddy list too but would bypass the PM feature. Thats pretty much all it would need to do in theory to work. However, I am crap at coding so am looking for your expertise as to how this could be implemented.

You have an amazing hack here, which if all these requests get implemented will be a VERY used hack be everyone as it makes the whole buddy portion of vbulletin MUCH MUCH better.

Thanks and I look forward to your reply.

KTBleeding 04-18-2005 07:30 PM

Quote:

Originally Posted by altsounds
I was just coming here to request the same thing!!! I think adding the admin as an automaic buddy is a very good way to show users who the main point of contact on the site is.

I would love to have this feature too.

And I was going to request it a few days ago. Haha.

SS9267547 04-19-2005 01:53 AM

Okay sometime this week I will release two new addons for vBBuddies, one for the User CP and the other with the register.php that was requested.

altsounds: With the request PM, the PM that gets sent out at this time isn't a request really, it just lets a user know that that member had added them to there list. Did that since making it as a request it wouldn't work with the system. However, to make it as a request a buddy system it would then need to be worked out so it wouldn't send out a PM each time a member adds them. I don't think I'm making sense there lol. Anyway I'll look into the when I have time and if I can get this to work then it would be inculded in the next release.

altsounds 04-19-2005 02:06 AM

Quote:

Originally Posted by SS9267547
Okay sometime this week I will release two new addons for vBBuddies, one for the User CP and the other with the register.php that was requested.

altsounds: With the request PM, the PM that gets sent out at this time isn't a request really, it just lets a user know that that member had added them to there list. Did that since making it as a request it wouldn't work with the system. However, to make it as a request a buddy system it would then need to be worked out so it wouldn't send out a PM each time a member adds them. I don't think I'm making sense there lol. Anyway I'll look into the when I have time and if I can get this to work then it would be inculded in the next release.


That would be seriously freaking awesome. You have an amazing hack here and with your open-ness it could develop into a fantastic tool. Just make sure you try and code in the ability to either approve or disapprove the friend request.

Another thing! As this is basically going to be replacing everyones buddy list eventually :D could you code in an if statement so that if I am looking at my own profile it will have "remove" links so that I can easily remove a user right from the buddy list. The buddy list could be called from the Control Panel using a link to your own full buddy list. However if I am browsing someone elses buddy list the remove link will not appear. Make sense??

Thanks so much and I look forward to seeing these updates soon.

You're awesome!!

Benj 04-19-2005 06:38 AM

SS9267547 hahaha sweet man ta :D Looks like theres gonna be a lot of myspace.com vbulletin rip offs :D

KTBleeding 04-19-2005 07:06 AM

Quote:

Originally Posted by benj
SS9267547 hahaha sweet man ta :D Looks like theres gonna be a lot of myspace.com vbulletin rip offs :D

Please god no! Myspace is bad enough. ;)

altsounds 04-19-2005 12:05 PM

SS9267547.

You obiously know what is needed to be able to do this as you have it working in your vbbuddies user profile hack.

Could you let us dumb ones know how we could add the check to see if a user is online in any page we want too.

E.g. I would like for my online now logo to show up if a user is online in memberlist, private messages plus anywhere else that might be cool (its a cool way to know if someone is online). I am asking you as I like the way you utilized the online check from the postbit. This is a genius idea as it means all your online nows will be pulled from the same place.

Let me know what steps are needed with any file so that you can add the Online now capabilities.

Thanks

SS9267547 04-19-2005 12:48 PM

altsounds: With the online/offline feature, I don't think it would work with every page, not 100% sure about that since I used other ways on my other pages to add the online/offline feature like in memberslist and havn't tested it. However the following code is what I use now and should work. Add the following code when the main displaying part of the script starts and replace $inuser to whatever the script uses to get it's data, so it could be $userinfo or $user, whatever it is lol.

PHP Code:

// =================================
// Begin online/offline hack. (Edit by: Lucas)
// =================================

require_once('./includes/functions_bigthree.php');
fetch_online_status($inusertrue); 

With the approve or disapprove the friend request and remove link, I think what I might do is replace the current buddy list in control panel totally so it would only display what you have and not just list / add whoever you want on the list like it is now. I'll have to see what I can do since I don't know what I'm doing myself lol.

Benj 04-19-2005 12:51 PM

i think this hack might take over the world !!!

altsounds 04-19-2005 12:54 PM

Also I am using profilepics as opposed to avatars. However, what I have noticed when testing is that if I upload a new profile picture the picture gets updated in the members profile but not on the buddylist. When investigation I noticed that in my MEMBERINFO template at the end of the image call there is a $userinfo[profilepicdateline] field which is making sure that in the profile it has the most up to date profile pic.

I am still getting to grips with coding and vbulletin. Any ideas how I can set it up to include the dateline in my profile pic call from the buddies file?? I tried the same as was in my profile but that didn't work.

Any help is much appreciated.

altsounds 04-19-2005 01:05 PM

Quote:

Originally Posted by SS9267547
altsounds: With the online/offline feature, I don't think it would work with every page, not 100% sure about that since I used other ways on my other pages to add the online/offline feature like in memberslist and havn't tested it. However the following code is what I use now and should work. Add the following code when the main displaying part of the script starts and replace $inuser to whatever the script uses to get it's data, so it could be $userinfo or $user, whatever it is lol.

PHP Code:

// =================================
// Begin online/offline hack. (Edit by: Lucas)
// =================================

require_once('./includes/functions_bigthree.php');
fetch_online_status($inusertrue); 

With the approve or disapprove the friend request and remove link, I think what I might do is replace the current buddy list in control panel totally so it would only display what you have and not just list / add whoever you want on the list like it is now. I'll have to see what I can do since I don't know what I'm doing myself lol.


So put this in the PHP file I want to check online status in right?? E.g. I am trying to do this right no in private.php. I looked through the file and from what I can tell they are using $user so i changed that as appropriate. Now, How do I call this in the Vbulletin template to show the online user logo if a user is online or not.

Sorry for all these questions. I understand most of this but there's a few things I'm still not too good on.

Thanks so much for all your help

SS9267547 04-19-2005 01:38 PM

Ah with the profile picture, I’m not sure, if I have time I’ll look into when I get home from work and if I have the time. With the online status, yes paste the code when it starts displaying the results. Now to test it you would use $inuser[onlinestatus] or in this case $user[onlinestatus] in the template. Paste that where you want it to show it.

altsounds 04-19-2005 02:19 PM

Hate to sound really dumb here but how do I know in the PHP file where to paste the code. You say paste the code where it starts displaying the results. How do we know where that is?

SS9267547 04-19-2005 04:03 PM

Ah I can't say I don't have the files with me. Look for thing like this in the files. Just any example.

PHP Code:

while ($users $DB_site->fetch_array($user))


After that you can post the online / offline code or anything else that needs to fetch from the $user database. I don't know I make any sense lol.

altsounds 04-20-2005 03:13 PM

Nah it doesn't work :(. Also, how hard would it be to use your buddies file to check permissions?? I.e. I have the Profile Web Page and Comments hack installed on my user profiles. I would love it if when someone tried to leave a comment it would check to see if they were a buddy first otherwise give an error message.

There is already some kind of error checking ovolved with it because it check that the user is logged in before they can leave a comment.

Let me know if you have any suggestions.

Thanks

Polo 04-26-2005 03:25 PM

Got version 1.0.2 working on a vbulletin 3.0.7! The Buddies system looks great SS9267547! Congratulations and thank you.

Cheertobi 04-28-2005 08:22 AM

Hi,

just installed this hack, with addon 2 and found out that all birthdays have the same year at the "random buddies" block!

Does anyone have the same issue and how can I fix this?

Regards,

Tobi

T3MEDIA 04-28-2005 01:29 PM

awsome hack and thank you for the extra time you put in.

Very nice person indeed.

T3MEDIA 05-03-2005 12:15 PM

At the moment this shows banned buddies... how can I make it so this blocks or restricts any buddies that are on the banned list.

This hack is so incorporated into my site it isnt even funny anymore lol!

altsounds 05-12-2005 01:05 PM

Any way to make this so that the buddy request pm sent is not from the main admin account but from the actual user making the buddy request?? Would be cool if when you open your mail you could see who sent the buddy request as opposed to having admin showing up everywhere.

Let me know

Benj 05-24-2005 05:29 PM

Quote:

Parse error: parse error, unexpected ']' in /home/benj/public_html/admincp/options.php on line 116
how do i fix this cant remember

altsounds 05-24-2005 08:32 PM

Remove the ']' from line 116. :D

altsounds 05-24-2005 08:35 PM

Quote:

Originally Posted by T3MEDIA
any chance on that random user code?

To make something random is easy. Just look in the PHP code for the database query and look for either ASC or DESC and then change it to RAND.

Thats it done. You can also limit this by doing ' limit 5' after the rand too if you want (I Believe).

Benj 05-25-2005 07:14 AM

havnt changed that line tho so cant see why i would need to

illPhever 06-09-2005 04:54 PM

Nice Hack!

i have a question, though. would anyone know how to add a Custom Field display option? i have a custom user profile field (single-selection menu) and i would like the value of that field to be displayed in the vbbuddy list for each member listed.

...so i would like to add that custom user profle field to the Members & Profile Display Options in the Buddy List settings.

any help would be much appreciated. thanks!

dsboyce8624 06-10-2005 04:17 AM

Okay, this is great, but I have a couple issues. They are all my fault, but I could use a little help anyway.

Let me say first that I have a custom style. It always makes this harder.

First, the table in UserCP showing buddies, near subscriptions, doesn't showup (the one on profile does, but it messed up the footer and I know how to fix that.)

Second, on memberlist the header on the top column is a buddylist icon, like the conditional ran for the header row.

And lastly, is there a way to make this just show all of your buddies, not just the reciprocal ones?

Thanks,

Dennis

dsboyce8624 06-10-2005 05:32 PM

Okay, I removed this hack, man that was fun, and all of the addins.

Now the only problem I have is on my memberinfo page where it shows the birthday.

I beleive the phrase was accidentally removed, but I could be wrong.

Instead of "Whatever it said here, like Birthday" : April 12, 1968

I just get the ": April 12, 1968" Not the heading or title of the field.

Any help with restoring this would be appreciated.

EDIT: Okay, searched the install XML for vB and found the phrase, restored. All is well. One of the uninstall scripts removed it, that should get fixed.

Dennis

dsboyce8624 06-11-2005 04:25 AM

Well, now the Add to Buddy List and Add to Ignore list items are missing from my users profile pages.

Off to check reverted files and templates, wee haw.

EDIT: Okay, that was removed phrases too, can somebody tell me which of these phrases I can remove and not impact my forums?

Quote:

$phrase['buddy_tools']['text'] = 'Buddy Options';
$phrase['buddy_tools']['phrasetypeid'] = 1;

$phrase['buddy_info']['text'] = 'Buddies Information';
$phrase['buddy_info']['phrasetypeid'] = 1;

$phrase['birthday']['text'] = 'Birthday';
$phrase['birthday']['phrasetypeid'] = 1;

$phrase['last_visit']['text'] = 'Last Visit';
$phrase['last_visit']['phrasetypeid'] = 1;

$phrase['online_status']['text'] = 'Online Status';
$phrase['online_status']['phrasetypeid'] = 11;

$phrase['buddy_currentbuddies']['text'] = 'Current Buddies';
$phrase['buddy_currentbuddies']['phrasetypeid'] = 1;

$phrase['buddy_onbuddylist']['text'] = 'User on your buddy list';
$phrase['buddy_onbuddylist']['phrasetypeid'] = 1;

$phrase['buddy_onignorelist']['text'] = 'User on your ignore list';
$phrase['buddy_onignorelist']['phrasetypeid'] = 1;

$phrase['buddy_notonanylist']['text'] = 'User not on any of your lists';
$phrase['buddy_notonanylist']['phrasetypeid'] = 1;

$phrase['autosystemmessage']['text'] = 'Automated System Message';
$phrase['autosystemmessage']['phrasetypeid'] = 1;

$phrase['viewmemberbuddies']['text'] = 'View Member Buddies';
$phrase['viewmemberbuddies']['phrasetypeid'] = 1;

$phrase['totalbuddies']['text'] = 'Total Buddies';
$phrase['totalbuddies']['phrasetypeid'] = 1;

$phrase['chooseoptionbelow']['text'] = 'Choose Option Below';
$phrase['chooseoptionbelow']['phrasetypeid'] = 1;

$phrase['buddies']['text'] = 'Buddies';
$phrase['buddies']['phrasetypeid'] = 1;

$phrase['add_x_to_ignore_list']['text'] = 'Add {1} to Your Ignore List';
$phrase['add_x_to_ignore_list']['phrasetypeid'] = 1;

$phrase['add_x_to_buddy_list']['text'] = 'Add {1} to Your Buddy List';
$phrase['add_x_to_buddy_list']['phrasetypeid'] = 1;

$phrase['remove_x_from_your_buddylist']['text'] = 'Remove {1} from your Buddy List';
$phrase['remove_x_from_your_buddylist']['phrasetypeid'] = 1;

$phrase['remove_x_from_your_ignorelist']['text'] = 'Remove {1} from your Ignore List';
$phrase['remove_x_from_your_ignorelist']['phrasetypeid'] = 1;

$phrase['can_viewbuddieslist']['text'] = 'Can View User Buddies List';
$phrase['can_viewbuddieslist']['phrasetypeid'] = 3;
Sorry to be a putz, but an unistall should not have done this damage.

Dennis

T3MEDIA 06-11-2005 11:02 AM

Quote:

Originally Posted by dsboyce8624
Okay, this is great, but I have a couple issues. They are all my fault, but I could use a little help anyway.

Let me say first that I have a custom style. It always makes this harder.

First, the table in UserCP showing buddies, near subscriptions, doesn't showup (the one on profile does, but it messed up the footer and I know how to fix that.)

Second, on memberlist the header on the top column is a buddylist icon, like the conditional ran for the header row.

And lastly, is there a way to make this just show all of your buddies, not just the reciprocal ones?

Thanks,

Dennis

Ahhh on your memberlist top I have that as well. I figured it is because I completely changed the layout.

Good point.

dsboyce8624 06-11-2005 06:09 PM

Well, if you uninstall, you need to watch your phrases, it removes several stock phrases.

SS9267547 06-12-2005 01:24 PM

I don't have much time but here is a small update version 1.0.3. This should fix the problem with the stock phrases at least I hope it will, something I missed. Here is a list of stock phrases that you might have problems with when uninstalling with the old installer or installing with the new installer:
  • add_x_to_ignore_list
  • add_x_to_buddy_list
  • remove_x_from_your_buddylist
  • remove_x_from_your_ignorelist
  • online_status
  • last_visit
  • birthday

The installer has been update, just in case the pharses are still needed if someone installs the hack they are still in the install script. Hope that helps those that need to uninstall. Enjoy.

Lionel 06-12-2005 06:57 PM

Quote:

If you are upgrading to version 1.0.1 from 1.0.0 you will need to first run the old install script and uninstall this hack from the system. Next upload the new installer to your server and run the install script again. Then follow the steps below to add the new features.


Where can I find the old install script? I need to upgrade.


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.01479 seconds
  • Memory Usage 1,859KB
  • 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
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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