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)

WiGgLr 08-24-2009 04:58 PM

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

Deyth 08-24-2009 05:02 PM

Quote:

Originally Posted by WiGgLr (Post 1873528)
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 both templates and try my version of the template code. Then, go to the one plugin his addon creates and change the code inside to my version. Let us know if that has a different result.

WiGgLr 08-24-2009 05:12 PM

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;

$user_chars = $vbulletin->db->query("select vbg.game_name as CharGame, vbs.server_name CharServer, vbc.character_name as CharName FROM " . TABLE_PREFIX . "vbguild_Game as vbg, " . TABLE_PREFIX . "vbguild_Server as vbs, " . TABLE_PREFIX . "vbguild_Character as vbc
WHERE vbc.user_id = '$post[userid]'
AND vbc.server_id = vbs.server_id
AND vbs.game_id = vbg.game_id
ORDER BY vbg.game_name, vbs.server_name, vbc.character_name

");

eval('$gm_header .= "' . fetch_template('gm_char_postbit_header') . '";');

$gm_char_data .= $gm_header;
    while($CharData = $vbulletin->db->fetch_array($user_chars))
    {
        $char_game = $CharData['CharGame'];
        $char_server = $CharData['CharServer'];
        $char_name = $CharData['CharName'];
                $gm_user_groups_allowed = explode(',',$vbulletin->options['gm_ugl_view_chars']);
        eval('$gm_char_data .= "' . fetch_template('gm_postbit_char_bit') . '";');
    }
       
        // If there's no character data
        if ($gm_char_data == "") {
                eval('$gm_char_data .= "' . fetch_template('gm_postbit_char_none') . '";');
        }


Deyth 08-24-2009 05:40 PM

Do you have an instant messenger app of some sort? My info is in my profile; IM me.

Deyth 08-24-2009 06:01 PM

Trek's plugin code was causing the error. My version of his code works ok...so far.

THE__DRIFTER 08-25-2009 01:20 AM

So is Treks version updated? Or should we be using your adjusted code Deyth?

Deyth 08-25-2009 01:41 AM

1 Attachment(s)
Quote:

Originally Posted by THE__DRIFTER (Post 1873778)
So is Treks version updated? Or should we be using your adjusted code Deyth?

I don't want to preempt the great thing Trek did by making his addon to my addon but I would say to use mine for now until he updates his. Meanwhile I'm attaching my version of the xml file to this post. I just edited it without testing so let me know if it bombs for some reason. You'll still need to do those manual template edits for now.

floggerss 08-25-2009 04:54 PM

Its possible that only a CERTAIN usegrgroup can use it. PLSS

Deyth 08-25-2009 05:22 PM

Quote:

Originally Posted by floggerss (Post 1874196)
Its possible that only a CERTAIN usegrgroup can use it. PLSS

Yes, it's under the vbulletin options for guild mate.

Trek 08-25-2009 05:51 PM

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.


All times are GMT. The time now is 01:53 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.00995 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
  • (1)bbcode_code_printable
  • (3)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
  • (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