![]() |
Guild Mate
1 Attachment(s)
This should work on most vBulletin versions, but tested on 3.8.x.
This is an add-on to the vBguild mod. I am not the author of that mod and this add-on is just something I did for my own forums and I thought I'd share it for those using vBGuild as well. I will continue to support this mod as a separate offering from vBGuild. If you need vBGuild support, please see that mod/author for support for it. This is considered BETA as well. I'm running it on my forums and it works fine though. Also understand I'm pretty new to writing these mods and I know there are things that can be done to improve performance, etc. If you have suggestions, please make them, kindly. ;) Also, this is fully phrased so you shouldn't have any trouble using the mod for different languages. History: 8-25-09 Version .2 released. * Added in Option to allow all usergroups to use the functionality (Thanks Deyth). * Updated some config phrases to reflect allowing all usergroups to use the mod. * Added in global variables to plugin as it appears some template themes don't carry these over already. (Thanks Deyth) * Updated install instructions as I forgot a template edit prior. This will correct the dropdown with the character data not appearing. Upcoming: * Config option to select whether or not you want to display the header again in the popup or not. * Whatever you guys come up with Installation: There is one template edit, the rest is imported through the product. Edit your Postbit or Postbit Legacy templates FIND: Code:
Code:
<if condition="is_member_of($vbulletin->userinfo, $gm_user_groups_allowed)"> Scroll to the bottom of your postbit template and: Add: Code:
Import the product Once that is done, edit the vBulletin Options -> Guild Mate and set the user groups allowed to see the postbit changes. Below are some screenshots from my website to help explain what this does. |
This is very cool, thanks.
|
Can this be done without template edits? There are hooks that can do this.
|
Sure it can be, I've modified mine so much though that I figured people could put it where they wanted and like it more. I'll consider it if there is another release done. Since it's only 1 edit I didn't think it'd be too bothersome.
As for it not working, what doesn't work? What happens? I need something more to go on. =) |
excellent modification idea for vbguild. problem is, its not functioning for me. :(
i did the template edit to add the link under the username in the postbit, then installed the product, as per your instructions, however im having a problem with it. when you goto the forums page, or any other page, the forums are working fine ... until you go into a thread. then i get this error ... Quote:
same thing happens if you enable the plugin, but disable the product. would really like to see this working for our little community. can you help me out? thanks in advance for any help you can provide. |
Helping DiverTree via PM, will post any results necessary when a solution to his problem is found.
|
Cool , installed :)
|
the issue im having, thats posted in post #5, isnt because of the modification ... it has something to do with the way i modified my forums.
just wanted to mention that so it doesnt deter anybody from using the modification. |
Is this vbseo compatible? The link is being rewritten and mine and nothing pops up.
|
Quote:
|
I can disable invidual scripts in vbseo. Is there any script this is calling.
Also your templates are not cached. |
Quote:
There's nothing external that I'm calling. I'll work on the caching of the templates. |
Ok I attempted this on default template
Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2) Timestamp: Mon, 10 Aug 2009 03:05:53 UTC Code:
Message: 'this.overlay.id' is null or not an object |
I found the cause for DiverTree's error. Your plugin code should look like this:
Code:
global $vbulletin,$userinfo; |
I figured out the other problem. Here is what the postbit template edits should look like:
Code:
<if condition="is_member_of($vbulletin->userinfo, $gm_user_groups_allowed)"> |
Quote:
|
I just now installed it on my own board and realized there was no way to simply tell it to display to all usergroups so I made that change and, while I was doing that, I saw how it looks with multiple games and didn't like having multiple headers so I changed that too. If you set the "usergroups allowed" option to 0, and it has to ONLY be 0, then it will show to all. Here are my versions of the template edits and the plugin code:
Code:
<if condition="is_member_of($vbulletin->userinfo, $gm_user_groups_allowed) || $vbulletin->gm_user_groups_allowed == 0"> Code:
global $vbulletin,$userinfo; Here's an example post. Thanks again for making this. |
It's not working correctly in private messages. It's showing my own character info instead of the user I'm seeing. I'm not sure if it's my own version that's having the problem or if it's present in Trek's as well.
|
Code:
Fatal error: Call to a member function query_read() on a non-object in /mounted-storage/home84b/sub007/sc45970-PMHN/themondrated.com/includes/class_postbit.php(265) : eval()'d code on line 3 |
Using my code or Trek's?
|
treks's
i edited both the postbit and postbit_legacy i disabled it for now do you edit both or just one? and my postbit and postbit_legacy are already customized to display gifts and stuff, think thats why i had trouble knowing where to place the code in the template this is all new to me and still learning --edit: well i just edited my postbit with your first code box in post 17, and i don't get that error when viewing threads, but the link "view characters" doesn't work adding same code to postbit_legacy made the "view characters" look prettier, but still no function |
Quote:
|
how do i use your code for the plugin
i went to vb options --> guild mate, only has option to pick usersgrps who can use it, default at 6 ya when i re-enable the plugin i get that error again viewsing threads/posts went to plugins & products --> manage products --> guild mate .1 --> edit pasted this code into the new install box, and still getting error Code:
global $vbulletin,$userinfo; |
Do you have an instant messenger app of some sort? My info is in my profile; IM me.
|
Trek's plugin code was causing the error. My version of his code works ok...so far.
|
So is Treks version updated? Or should we be using your adjusted code Deyth?
|
1 Attachment(s)
Quote:
|
Its possible that only a CERTAIN usegrgroup can use it. PLSS
|
Quote:
|
Sorry all, I've been in the process of moving and am just getting settled. I see that I forgot an initial template edit as well which is why the popup wasn't happening for people.
I've updated the first post to include that edit as well (it's also in the postbit template). I'll add in the fix for adding in the global variables that fixed the issue of no database connection for some people into the next release as well. Thanks Deyth for your help on troubleshooting and debugging while I was out. I'll look into your template modifications and see about adding them into the release as well. |
Quote:
|
Why do you split up the template edits into different parts of the same template? They would work next to each other too.
|
Quote:
It makes it more clear when editing the template structure when you don't have all of the popup code right in the middle of your design. Personal preference and my following the direction of the default templates really. |
Quote:
|
I have attempted to use this in the delivered fashion and using Deyth's code. Getting a DB failure when trying to access the forum now.
Nevermind, the issue is I am stupid....I didn't catch that this is an addon for a mod. I will retest this soon. |
Quote:
|
Trek, "Game" and "Server" are now phrases. You'll want to update your addon to use those instead of the hardcoded column names. Thanks.
|
1 Attachment(s)
I tried installing your product xml and everything blew up. Comparing mine to yours I found two things that I had to change and you can see them in the attached xml file. I also added the phrases while I was in there. Now the board loads but there is no view characters dropdown and I'm trying to figure out why.
EDIT: It's something to do with your template edits. As soon as I replace your template stuff with mine it works ok. I don't have time to troubleshoot it now, though. |
this is truely the handy feature to have with vbguild. will you be updating this to vb4.0 and working out the remaining bugs?
|
If Trek says he won't update it, I will.
|
All times are GMT. The time now is 05:50 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|