vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - Guild Mate (https://vborg.vbsupport.ru/showthread.php?t=219909)

Trek 07-30-2009 10:00 PM

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:

           
            <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>

Add BELOW it:

Code:

            <if condition="is_member_of($vbulletin->userinfo, $gm_user_groups_allowed)">
                <div id="GuildMate_$post[postid]">
                        <a class="smallfont" href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[gm_postbit_text]</a>
                        <script type="text/javascript"> vbmenu_register("GuildMate_$post[postid]", true); </script>
                </div>
            </if>



Scroll to the bottom of your postbit template and:

Add:
Code:


<!-- START: Guild Mate $post[postid] popup menu -->
<div class="vbmenu_popup" id="GuildMate_$post[postid]_menu" style="display:none">
    <table cellpadding="4" cellspacing="1" border="0">
    <tr>
        <td class="thead" colspan="3" align="center">$vbphrase[gm_modtitle]: $vbphrase[gm_modheader] $post[username]$vbphrase[gm_modheader2]</td>
    </tr>

    $gm_char_data
    </table>
</div>
<!-- END: Guild Mate $post[postid] popup menu -->



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.

Deyth 07-31-2009 06:46 PM

This is very cool, thanks.

ssslippy 08-02-2009 01:09 PM

Can this be done without template edits? There are hooks that can do this.

Trek 08-02-2009 05:55 PM

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. =)

DiverTree 08-05-2009 04:07 PM

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:

Fatal error: Call to a member function query_read() on a non-object in /home/********/public_html/includes/class_postbit.php(265) : eval()'d code on line 35
if i disable the plugin, then the thread will display normally, and you can see the link under the username, but when you click it, nothing happens. if you right click and select open in new tab, it directs you to the users profile.

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.

Trek 08-05-2009 04:19 PM

Helping DiverTree via PM, will post any results necessary when a solution to his problem is found.

Bin7raib 08-05-2009 06:13 PM

Cool , installed :)

DiverTree 08-06-2009 01:32 AM

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.

ssslippy 08-09-2009 10:18 PM

Is this vbseo compatible? The link is being rewritten and mine and nothing pops up.

Trek 08-09-2009 11:18 PM

Quote:

Originally Posted by ssslippy (Post 1864245)
Is this vbseo compatible? The link is being rewritten and mine and nothing pops up.

I've never used VBSEO so I'm not sure what it takes to make it compatible. So as of right now anyway, I guess it's not compatible if you have to do something specific. I'll look into it though.


All times are GMT. The time now is 02:41 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.01105 seconds
  • Memory Usage 1,740KB
  • 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_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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