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

Reply
 
Thread Tools Display Modes
  #1  
Old 12-16-2009, 10:29 PM
S1OPP S1OPP is offline
 
Join Date: Jun 2005
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Looking for some guidance.

My live forum is now quite old and tired (v3.6.x)

Everything I changed on it was done by installing other people's mods/styles.

I've upgraded my test forum to vB4 RC4 and have managed to get it looking the way I want.

However, there is one 'tiny' mod that my users consider essential, and here on vB.org this mod hasn't been changed from 3.5. Rather than ask, or even wait for the author to port the mod (which is very unlikely to happen) I have actually managed to change the code and get it working on vB4.

I'm not a coder and I'm really pleased with myself that I've succeeded, however I'm not done with it.

The original mod installs a product, then makes a change to the postbit template. As we now start going through the final RC stages and then into Gold, each update runs the risk of having to revert the template I've changed. I'll have to manually edit it each time.

I know it's posible to get the product to make the template changes for me, so my question is, do you know of any resources, links, threads or anything that I could study to learn how to complete this product? So that for future upgrades, I only ever need to install the product.

Thanks in advance

sorry if it's a proper noob question, but I would rather learn that have somebody do it for me.

S1OPP
Reply With Quote
  #2  
Old 12-16-2009, 10:32 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Look in the articles forum. There are a couple of articles on how to make automatic template modifications with a plugin.
Reply With Quote
  #3  
Old 12-16-2009, 11:06 PM
S1OPP S1OPP is offline
 
Join Date: Jun 2005
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you,

I've searched in the vB4 articles, but nothing looked like it was relevant.
I'll hunt through the vB3 articles and see where it takes me.

Regards
Reply With Quote
  #4  
Old 12-17-2009, 12:59 AM
BBR-APBT's Avatar
BBR-APBT BBR-APBT is offline
 
Join Date: Feb 2009
Location: Maryland
Posts: 946
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if you explain a little more I may be able to come up with something for you to work off of. What are you trying to add?
Where in the postbit?
Which postbit? postbit or postbit_legacy
Is that all it does is display text?
Reply With Quote
  #5  
Old 12-18-2009, 03:02 PM
S1OPP S1OPP is offline
 
Join Date: Jun 2005
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sure, anything that help would be really appreciated.

I've put it in the postbit template, but only because I don't use postbit_legacy, there's no reason why it couldn't go in both.

The original mod is here. I've pm'd the author about modifying his code (no response)

The mod simply displays reputation comments in the post it relates to. ie. Under the post a box titled 'comments on this post' contains 'userid agrees : xxxxx'

The original (3.5) mod, simply states install this product and edit the posbit, look for some text - insert this text.

Reading the articles here, I've worked out how to get the template into the product, I'm trying to find out how to make the template appear in the postbit without having to edit the template.

Thanks for offering to help.
S1OPP
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 12:51 AM.


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.07088 seconds
  • Memory Usage 2,197KB
  • 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