PDA

View Full Version : Mini Mods - [OzzModz] Add As Friend In Postbit


ozzy47
12-01-2013, 11:00 PM
Another mod brought to you by
https://vborg.vbsupport.ru/external/2015/01/1.png

[OzzModz] Add As Friend In Postbit, has won MOTM for January 2014 Mod of the Month! (https://vborg.vbsupport.ru/showthread.php?t=306488)

This is just a small mod, that will allow you to show a Add As Friend button in the postbit.
This mod may increase participation on your site, as users become more familiar with the friends system. As their friend base grows, they may be more willing to return.

It is a simple installation, upload the contents of the upload folder and import the product XML, product-ozzmodz_addfriend_postbit

You can edit the options under the settings, [OzzModz] Add As Friend In Postbit Settings

Complete Feature List
Option to disable the mod completely.
Option to choose which usergroups can see the buttons.
Option to select one of seven different locations in the postbit to display the buttons.
Above Every Post Container = Above every post on the page.
User Info Left = Below the users title.
User Info Right After Posts = After the post count in the postbit.
User Info Right = Above the instant messenger icons.
Message Area Start = In the post container above the posts.
Signature Start = Above the signature.
Signature End = Below the signature.
Postbit Controls Area = Before the IP icon and the Report post icons.
Option to set the path and image name to the image you want to use for the add friend button.
Option to set the path and image name to the image you want to use for the is friend button.First screenshot is how it looks in the postbit control area, second is how it looks in the postbit, third is of the settings.

-------------------------------------------------------------------------------------------

If you like this mod please hit the https://vborg.vbsupport.ru/external/2015/08/1.png button to the right ---->

Please remember to click the, https://vborg.vbsupport.ru/external/2015/08/2.png button to the right if you installed the mod ---->

What does 'Marking As Installed' do ?

* It helps you to stay on top of updates - members who have installed modifications will be notified whenever new updates are available.

* For security issues - vbulletin.org will contact all members who have installed a modification whenever a security issue is brought to their attention.

* Marking a modification as installed also helps me know how many people are using my work, giving me extra incentive to provide more features and new modifications.

I appreciate the support!
-------------------------------------------------------------------------------------------

v1.0.0 Initial Release

v1.0.1 Fixed some issues.
Fixed the issue wit the images not showing in some spots.
Fixed a issue if you choose, Above Every Post Container = Above every post on the page, that the images would all display at the top of the page.v1.0.2 Fixed some issues.

Hopefully solved the issue with this not working for everyone.
Fixed a issue with the cache template plugin checking if the wrong mod was active.

tbworld
12-02-2013, 03:56 AM
Nice idea! @Ozzy47 :)

ozzy47
12-02-2013, 03:58 AM
Thanks, I think some will find it useful. :)

faisaly.com
12-02-2013, 07:12 AM
https://vborg.vbsupport.ru/attachment.php?attachmentid=147402&d=1385947839

added already not showing on postbit horizontal using option - Postbit Controls Area (Legacy & Horizontal)

this option worked ok - User Info Right After Posts (Legacy & Horizontal)

Marcin1
12-02-2013, 08:04 AM
Image is_friend.png is not displayed even if user was added to contact list (still icon add friend). Add_friend.png is working correctly in every option in postbit.

eazygreek
12-02-2013, 09:33 AM
to displayed the images,you must edit the images options like that

https://vborg.vbsupport.ru/external/2013/12/46.png

Marcin1
12-02-2013, 10:47 AM
It's done accordingly to screenshot. I switched location To Add As Friend Image. I pasted is_friend.png and icon's working... When is setup originally is friend not displaying...

ozzy47
12-02-2013, 10:50 AM
I'll look on my dev site when I get home from work and see if I can see what is going on. If I can not replicate the issues, I will need access to someones site that is having tie problems. :)

faisaly.com
12-02-2013, 11:01 AM
the icons change fine and the default location works properly, just some of the displays dont work correctly... but it does work!

it is just version1 I am sure he will fix the issues, hes a great coder!

also remember custom themes could cause these problems where images dont display properly, i am sure it was tested on the default style and worked perfect using that style.

ozzy47
12-02-2013, 11:06 AM
Yeah it does, and was coded on the default style. I also checked it on a few custom styles.

faisaly.com, if you want, can you send me a admin account, that has a friend, and a link to a post, where I can see the icons, and the steps to do to reproduce the issue? If so I can look into it when I get home from work.

DemOnstar
12-02-2013, 12:05 PM
Part of the solution with this is that the default location for images is pre-filled and the image titles are without underscore..i.e. images/ozzmodz/friends/add friend.png

when it should be images/ozzmodz/friends/add_friend.png
As is with images/ozzmodz/friends/is friend.png

There are other issues, like is friend is not showing up but not got round to that yet.
I will help all I can..

Another Ozzmodtastic idea though..

ozzy47
12-02-2013, 12:08 PM
You are correct, I have change the XML to fix that. It will only work on new installs. So if you want, delete the mod, and re-install the new one.

Or simply change the image settings to the following:
add_friend.png
is_friend.png

That's what I get for changing the images in the middle of development. :(

DemOnstar
12-02-2013, 12:34 PM
That's what I get for changing the images in the middle of development. :(

That's what you get when you are going out full on to bolster vB 4 in these trying times..

May your god go with you..

BTW, I did change the pic names manually, just thinking about the new guy and avoiding the confusion..
Not to worry, the whole community knows of your Oscar Goldman ties...:eek:

nxtgen
12-02-2013, 02:22 PM
Installing again... So many OzMods everywhere on my site!!

Thanks Ozzy!!!

Edit... I am trying to use the Postbit Controls Area.. Actually I tried a few different locations.. Used default theme and a few custom styles. They aren't showing up for me. Its enabled and set to the correct usersgroups..

ozzy47
12-02-2013, 02:34 PM
Glad ya like it, and thanks for marking as installed. :)

jjohns12
12-02-2013, 03:34 PM
Another great mod Thanks

Just one issue on my site in the selection of Postbit Controls Area (Legacy & Horizontal

The Add Friend works but the Is Friend Will not show Text or image any ideas?

nxtgen
12-02-2013, 03:46 PM
You have the images set correctly under options?

The mod isn't showing up for me at all, doesn't matter where I place it.

I wonder if something else is conflicting with it.

DemOnstar
12-02-2013, 04:23 PM
Another great mod Thanks

Just one issue on my site in the selection of Postbit Controls Area (Legacy & Horizontal

The Add Friend works but the Is Friend Will not show Text or image any ideas?

Same here...
Is_friend shows nowhere...

I tried all of the settings and Postbit Controls Area (Legacy & Horizontal) is the only place that displays the image add_friend.png.. Other settings only display the link with the user name.. The link works but still no is_friend.png after the link is carried through..

@Ozz, hope that helps..

XGC Paravain
12-02-2013, 04:50 PM
This is a good idea going to install definitely :) just can't right now :( have to play taxi lol but when I get back :)

ozzy47
12-02-2013, 09:41 PM
Can someone who is having these issues send me a admin account, that has a friend, and not a friend in a post, with the link to the post, so I can figure out what is going on. :)

ozzy47
12-02-2013, 10:54 PM
I have someones login, and I am working on it now. :)

ozzy47
12-02-2013, 11:30 PM
<u>v1.0.1</u> Available!

This should fix everyone's issues. I would say the best way to ensure you get updated properly, is to uninstall the 1.0.0 version and install the 1.0.1 version.

There was some phrases that were missing in the xml, I had created them, but did not assign them to the product. So even when I uninstalled the mod, and reinstalled it, it worked for me. This is because the phrases were assigned to vBulletin, so on my site, they were always there. I also fixed another issue with the images not displaying right if you choose, Above Every Post Container = Above every post on the page.

Sorry for the trouble.

faisaly.com
12-02-2013, 11:58 PM
working in postbit control fantastic, another one licked!

ozzy47
12-03-2013, 12:01 AM
Cool, thanks for sticking it out. :)

faisaly.com
12-03-2013, 12:08 AM
I keep my private parts to myself LOL but it looks good in my postbit controls

ozzy47
12-03-2013, 12:14 AM
LMAO. :p

Alan_SP
12-03-2013, 12:47 AM
Is "is_friends" image a link to friend settings page, so we can easily see all our friends and maybe remove someone from friends?

ozzy47
12-03-2013, 12:51 AM
It links you to your buddy list.

DemOnstar
12-03-2013, 04:27 AM
Yep that worked..

I work on localhost normally but will look into setting up an admin account on my live site for matters such as this..

Good job as ever...

ozzy47
12-03-2013, 04:29 AM
Thanks, glad it's sorted. :)

abvolt
12-03-2013, 04:48 AM
Really nice thanks dude.

Marcin1
12-03-2013, 06:01 AM
I have still the same issue. No image is_friend.png

XGC Paravain
12-03-2013, 06:27 AM
Well im glad I got side tracked lol I will download the update now :)

XGC Paravain
12-03-2013, 06:40 AM
Awesome just installed and works sweet :) I also like the location aside avatar

Now I was thinking as I did a test and sent a friends request that there is only 2 images

which made me think, there should be 3 :) one for pending friends request :)

XGC Paravain
12-03-2013, 06:40 AM
Oh I forgot to add awsome work Ozzy :)

ozzy47
12-03-2013, 10:34 AM
I have still the same issue. No image is_friend.png

Then you will need to send me a admin account that has a friend, and a link to a post where that friend has posted in. :)

ozzy47
12-03-2013, 10:36 AM
Well im glad I got side tracked lol I will download the update now :)

Seems it worked out for the best.

Awesome just installed and works sweet :) I also like the location aside avatar

Now I was thinking as I did a test and sent a friends request that there is only 2 images

which made me think, there should be 3 :) one for pending friends request :)

I can see if the info is available to do such a thing

Oh I forgot to add awsome work Ozzy :)

Thanks, glad ya like it, and thanks for marking as installed. :)

ozzy47
12-03-2013, 10:36 AM
Really nice thanks dude.

Thanks, glad ya like it, and thanks for marking as installed. :)

XGC Paravain
12-03-2013, 04:58 PM
Seems it worked out for the best.



I can see if the info is available to do such a thing



Thanks, glad ya like it, and thanks for marking as installed. :)

Always, Need to mark install its the only way to get the proper support But I also hit that like button :D

nxtgen
12-03-2013, 05:52 PM
This mod hates me. I removed the old, uploaded the new, set usergroups, select Postbit Controls Area, don't need to touch images... clicked save and it doesn't show for me on Postbit. Weird.

ozzy47
12-03-2013, 07:39 PM
This mod hates me. I removed the old, uploaded the new, set usergroups, select Postbit Controls Area, don't need to touch images... clicked save and it doesn't show for me on Postbit. Weird.

Same thing, send me a admin account, that has a friend, and a link to a post where the friend has posted in.

CoZmicShReddeR
12-03-2013, 10:21 PM
I added this mod but it shows my already friends with the add as friend in postbit... It does show people who are not my friend to add them as a friend...

ozzy47
12-03-2013, 11:35 PM
Read the post above yours. :)

ozzy47
12-07-2013, 01:47 PM
No one that is reporting the is_friend not showing has provided me with a admin account as of yet. :(

Marcin1
12-07-2013, 03:12 PM
ozzy47 contact me by private

ozzy47
12-07-2013, 03:28 PM
Replied to your PM.

Marcin1
12-08-2013, 07:17 AM
I can confirm the issue was fixed by ozzy47. It's working now!

m3rl1n
12-12-2013, 11:32 AM
Once again awesome work from ozzy. Brings a breathe of fresh air to vbulletin.org. Biggest issue i had with this was deciding were to put the button....... Installed and worked right out of the box.

Add a little suggestion maybe for future and that is to have the option to use an image or text.

I find myself logging in just to read your posts now days.

Nice work and thank you

ozzy47
12-12-2013, 12:09 PM
Thanks for the kind words. I can see about such an option in a future version. Thanks for marking as installed. :)

Ba'al
01-08-2014, 07:30 PM
Downloaded,installed and setup using Postbit Controls Area and nothing shows................any ideas?

ozzy47
01-08-2014, 08:10 PM
Does it show up anywhere else if you try it?

Ba'al
01-08-2014, 08:11 PM
Does it show up anywhere else if you try it?
No sir, i tried that lol

ozzy47
01-08-2014, 08:14 PM
Ok then can you PM me with a admin account and I can look into it?

Ba'al
01-08-2014, 09:07 PM
Ok then can you PM me with a admin account and I can look into it?
Nevermind it started working lol This is becoming old hat, i try and try and try to get it to work and it wont and then out of the blue it starts working and i look like an idiot on here lol

ozzy47
01-08-2014, 09:24 PM
Maybe something with a cache or some such. Glad it's sorted. :)

ckgb
01-16-2014, 01:17 PM
Anybody ever seen black and blue 16x16 "add a friend" related icons?

For Postbit control area that is ))

Ba'al
01-16-2014, 04:55 PM
Anybody ever seen black and blue 16x16 "add a friend" related icons?

For Postbit control area that is ))
You can create and add any icon you wish as long as it is a .png image.

BGObsession
01-17-2014, 02:55 AM
Very nice. You do great work.

ozzy47
01-17-2014, 03:01 AM
Thanks, glad ya like it, and thanks for marking as installed. :)

NoMatt3r
01-18-2014, 06:35 PM
Really nice!

ozzy47
01-18-2014, 08:25 PM
Thanks, and thanks for marking as installed.:)

elfenny
03-19-2014, 04:17 AM
I uploaded the folder, imported the xml but it did not work. try to show it in all positions and nowhere appeared

ozzy47
03-19-2014, 10:54 AM
I uploaded the folder, imported the xml but it did not work. try to show it in all positions and nowhere appeared

If you wish, PM me a admin account, and I can look into it for you.

lordtopcat
03-30-2014, 02:56 AM
I uploaded the folder, imported the xml but it did not work. try to show it in all positions and nowhere appeared

I'm having the same problem.

RichieBoy67
03-30-2014, 03:17 AM
Are you guys sure you have the correct image path set?

edunite
04-11-2014, 09:51 PM
I'm having the same problem.

I am also having the same problem. Uploaded images to correct location but no icons on postbit.

Running 4.2.2 PL1

Any ideas?

edunite
04-12-2014, 11:02 PM
Can anyone confirm if this mod is compatible with the latest version of vb4 i.e. 4.2.2 PL1?

Thanks

ForceHSS
04-13-2014, 02:09 AM
Can anyone confirm if this mod is compatible with the latest version of vb4 i.e. 4.2.2 PL1?

Thanks

It tells you on the op post the vb versions it is for. And yes it does have it myself on that version working

edunite
04-13-2014, 08:26 AM
Thanks for confirming. It says 4xx but i was double checking as others are unable to get it working too and it may not be tested with PL1.

Apart from moving the images and installing the xml are there any other configuration changes needed (e.g. set permissions)?

I changed the image path but no success. I tried the full image path (http://www etc..) which works to get the image on a blank webpage, but not in the forum. Any other ideas?

mytreehouse
04-13-2014, 09:46 AM
Not working on v4.2.1

ForceHSS
04-13-2014, 02:40 PM
Thanks for confirming. It says 4xx but i was double checking as others are unable to get it working too and it may not be tested with PL1.

Apart from moving the images and installing the xml are there any other configuration changes needed (e.g. set permissions)?

I changed the image path but no success. I tried the full image path (http://www etc..) which works to get the image on a blank webpage, but not in the forum. Any other ideas?

Have you tried leaving it as default then test. I left mine like this as it works

edunite
04-13-2014, 05:04 PM
I did leave it as default but as that didn't work I tried numerous other things:

- disable all other plugins
- uninstall - reinstall
- various file paths
- all locations

Unfortunately the add friend icon doesn't appear anywhere :confused:

I have decided to give up and use [DBTech] Advanced User Tagging instead.
Different but it works for me!

ozzy47
04-13-2014, 05:08 PM
I did leave it as default but as that didn't work I tried numerous other things:

- disable all other plugins
- uninstall - reinstall
- various file paths
- all locations

Unfortunately the add friend icon doesn't appear anywhere :confused:

I have decided to give up and use [DBTech] Advanced User Tagging instead.
Different but it works for me!

If you wish, leave the mod installed, but disabled, and pm me a aim account, and I can look into it.

Replicators
04-18-2014, 12:34 AM
Well if a solution is found, please give us the fix too cause i am having the same problem here.

Lewenhaupt
04-19-2014, 03:21 PM
Well if a solution is found, please give us the fix too cause i am having the same problem here.

Seconded. I'm having the same issue... the icons just won't appear.

ozzy47
04-21-2014, 01:05 AM
I will be looking into the issue on a users site soon, just a bit busy lately.

CAG CheechDogg
04-21-2014, 04:57 AM
Are you guys making sure that the "Usergroups Allowed To See The Buttons" are checked according to the usergroups you guys want this to be available for? ....

fxdigi-cash
04-21-2014, 11:53 AM
Surprisingly, after 2 hours of checking with this plugin, it worked at last :)

I had to re-install it over 7 times to make it work... not sure why it didn't work at first anyways...

I managed to change the location of the button as well to the right side of the postbit controls...

Thanks, ozzy47 (https://vborg.vbsupport.ru/member.php?u=344814)

edunite
04-22-2014, 04:26 PM
I have selected every single usergroup - even the banned ones!!

I re-installed it several times, tried different paths but nothing.

Did you change any configuration outside of the options for this mod?

ozzy47
04-24-2014, 01:05 PM
I have not looked into it yet on your site, hopefully soon, just have a lot going on at the moment.

edunite
04-26-2014, 09:34 PM
Thanks for the initial offer but as 2 weeks have now passed i think it is time to call it a day and move on. It is potentially a great mod by giving the forum a social dimension but it doesn't work for some. I'm going to move with dragon bytes Advanced User Tagging but if someone else can give ozzy admin rights to their forum - please go ahead to try and solve this mystery as i'll be uninstalling it later :(

fxdigi-cash
04-27-2014, 05:42 AM
Hi everyone,

sorry I wasn't able to explain how I fixed the issue with this mod... here is the details:

what I did is changing case 8 in the code to a custom template hook that you need to add manually...

so I've changed this :


case 8: $template_hook['postbit_controls'] .= $addfriend_postbit->render(); break;


to this:


case 8: $template_hook['postbit_addfriend'] .= $addfriend_postbit->render(); break;


I did that twice in the same plugin and then add template hook manually in both postbit and postbit_legacy... find this code:

<span class="postcontrols">

Add below it this code:

{vb:raw template_hook.postbit_addfriend}

and here is the modified plugin if you don't know how to do it...

however, you still need to add the custom template hook as I mentioned before, otherwise, it won't work...

any question, please ask... :)

Good luck!!

obglobal.net
07-22-2014, 10:40 AM
You rock, Ozzy. Awesomeness abounds!

Added to Postbit Controls Area (Legacy & Horizontal), and it's just a really nice, simple but effective idea.

Deserves MOTM.

ozzy47
07-22-2014, 01:23 PM
You rock, Ozzy. Awesomeness abounds!

Added to Postbit Controls Area (Legacy & Horizontal), and it's just a really nice, simple but effective idea.

Deserves MOTM.

Thanks glad you like it, and thanks for marking as installed. It already had won MOTM. :)

Lionel
08-15-2014, 02:01 AM
Ozzy to fix every body problem, you need to globalize $vbulletin

global $vbulletin;
if (!is_member_of($vbulletin->userinfo, explode(',', $this->registry->options['ozzmodz_addfriend_postbit_groups'])))
{

nice little mod

ozzy47
08-15-2014, 02:05 AM
Hmmm, I thought I did, I'll check it out after I get some thing straightened out in some other mods.

Lionel
08-15-2014, 02:10 AM
Also you need to fix the cache template plugin. You are calling another mod as active

ozzy47
09-05-2014, 08:59 PM
v1.0.2 Fixed some issues. Thanks to Lionel for reporting them. :)


Hopefully solved the issue with this not working for everyone.
Fixed a issue with the cache template plugin checking if the wrong mod was active.

CharlieDelta
09-13-2014, 04:20 PM
Everyone shows as not friends in postbit within Private Messages.

ozzy47
09-13-2014, 04:29 PM
Did this start happening in the latest version?

CharlieDelta
09-13-2014, 04:57 PM
No this has been an on going problem. I had mentioned it a long time ago on your site but you were really busy at the time and I have just gotten back around to the issue. :)
http://ozzmodz.com/showthread.php/48-OzzModz-Add-As-Friend-In-Postbit?p=2152&viewfull=1#post2152

ozzy47
09-13-2014, 05:04 PM
OK I'll have to check it out in a bit.

EasyEazy
12-20-2014, 02:40 PM
Perfect mate

thanks

ozzy47
12-20-2014, 04:23 PM
Glad you like it, and thanks for marking as installed. :)

concepts
02-10-2015, 02:41 PM
Amazing addon! another small step towards perfecting "the little things"

:)

ozzy47
02-10-2015, 03:20 PM
Glad you like it, and thanks for marking as installed. :)