Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-16-2012, 03:50 PM
FCDobbs FCDobbs is offline
 
Join Date: Apr 2007
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Add Style after adding plug-in.. Plug-in not working

I have been asked to help some people with their site.
These are new owners of the site, and they wish to make some changes.

First, the site has about 10 "plug-ins" added, and most are working fine.
Second, the site has about 5 different Styles.

So these new owners didn't like most of the styles, and they deleted some of them.
Then they asked me to install 3 "nicer" ones.
I did... the installation went fine.

But now, some of the Plug-ins don't appear/work with these new Styles.

So....

How to (easily) make the Plug-ins work with the new Styles?
I have examined the code changes to make the Plug-ins work.... it will be a very onerous
task to make these changes MANUALLY to all the templates of the new Styles.
Not only that, I am not sure just where to put/make these changes within the Style templates.

Could I re-install the Plug-ins, and would that do the trick ?

Or do I have to manually make all the changes ? (and hope that I don't screw up)

Thanks
Reply With Quote
  #2  
Old 03-16-2012, 03:54 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When you say "examined the code changes", are you talking about looking at the templates in the style manager? If the plugins were part of a modification that also involved changing the templates, then you probably need to make the changes manually.
Reply With Quote
  #3  
Old 03-16-2012, 04:17 PM
FCDobbs FCDobbs is offline
 
Join Date: Apr 2007
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Using "Plug-in Manager" (in ACP), I click on each template indicated for that plug-in
(essentially invoking EDIT),
and I see the code shown for implementing the plug-in in the template.

It does not show where the code goes.

So I need to examine that Template in a Style where the Plug-in DOES work,
to see where the code has been changed, and then make that same implementation
for the new Style. (I guess).

This does seem like a lot of work.

That's why I was asking if I was to re-install the Plug-in, if that would make all the
changes for me?
Reply With Quote
  #4  
Old 03-16-2012, 05:30 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It depends on the plugin, but I think most of the time they don't change the templates in the database, but rather they modify them after they've been read from the database but before they are rendered. In that case reinstalling won't do anything. It is possible that some mods *do* change the templates so what you're talking about would work, I've just never seen one that worked that way.

It's possible that if a mod it trying to modify a template by changing the template cache (like I mentioned above) that it's failing because you've modified the default templates, in which case you would probably need to make changes manually. Which mod are you talking about? You could ask for help in the mod thread if it's one you downloaded from here.
Reply With Quote
  #5  
Old 03-16-2012, 06:17 PM
FCDobbs FCDobbs is offline
 
Join Date: Apr 2007
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks,
I'll try asking the question in that thread.

--------------- Added [DATE]1331924537[/DATE] at [TIME]1331924537[/TIME] ---------------

OK... I didn't have to ask the question.

I searched/found the thread which has that plug-in.
(I didn't have it on my computer... I do now).
I then merely read the installation instructions... it merely said to
add one line to one template in each style after a certain line.

So I verified that this one line was added (I had to add it to all the styles I set up).

Presto... all works fine now.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:28 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.03825 seconds
  • Memory Usage 2,196KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete