Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > vBulletin 3 Articles
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
New postbit or legacy postbit
FockerFGAA
Join Date: Dec 2006
Posts: 113

 

Show Printable Version Email this Page Subscription
FockerFGAA FockerFGAA is offline 01-09-2007, 10:00 PM

I don't know if this has been posted yet or not. I couldn't find it when I was trying to find a solution to my problem. It could be very well posted on an earlier versions template mods.

3.6.4 defaults with the user info above the post. You can go through the admin cp and change it so that it is on the side. However there are some forums where it would be better to be on top (such as a picture forum on my forum) and some users just like that style better. I asked for help here and someone steered me in the right direction. This isn't a mod so much as just a helpful hint.

Here are the easy instructions to do this:

First, go into your Admin Cp and go to the Style Manager and click Add New Style.
Then, where it says parent style click which parent style you want your new one to mimic.
Save the style.
Now, go into the Style Manager and select that style you just made and go into the templates.
Go to the postbit template and copy all the code inside it.
Go back and go to the postbit_legacy template and delete all that code and paste the new code in.
Save and then check out your forum!

Hope this helps someone else because it took me forever to figure out such a simple thing.
Reply With Quote
  #2  
Old 01-10-2007, 02:25 AM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Haha, I did this myself over the summer on a friend's board, except I didn't think to create a new template first.

I didn't even know there was a difference to postbit and postbitlegacy when I did it, or that there was an Admin Option to just switch to the one you wanted. Now his default style basically only has one postbit option. He probably could have just reverted the templates, though. So it's not like I destroyed the board.

Now that I have my own board I know better.
Reply With Quote
  #3  
Old 01-30-2007, 04:39 AM
Cybershaolin Cybershaolin is offline
 
Join Date: Nov 2006
Posts: 300
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting. Seems to work a lot better than the hack I tried.

A few questions though:

1- Is this possible to rename the styles?

Like instead of Default - I'd like to have "Profile at left" and for the one I added I'd like to have "Profile on top".

2- If I add more hacks later, for the changes I'm gonna do in all templates will I have to copy them in both styles or it will be applied automatically since it's a child style of the default one? I'm still concerned with this as I'm not really familiar with styles.
Reply With Quote
  #4  
Old 01-30-2007, 02:14 PM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Now, using this method, how does one select which postbit to use?
Reply With Quote
  #5  
Old 02-01-2007, 12:34 AM
FockerFGAA FockerFGAA is offline
 
Join Date: Dec 2006
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cybershaolin View Post
Interesting. Seems to work a lot better than the hack I tried.

A few questions though:

1- Is this possible to rename the styles?

Like instead of Default - I'd like to have "Profile at left" and for the one I added I'd like to have "Profile on top".

2- If I add more hacks later, for the changes I'm gonna do in all templates will I have to copy them in both styles or it will be applied automatically since it's a child style of the default one? I'm still concerned with this as I'm not really familiar with styles.
1-if you go into style manager and then click on the box next to the style and go down to Edit Settings you can change the style name to whatever you want it to be.

2-it is inherent from parent to child style so the child style will reflect any change you place in the parent style. i even tested this out to make sure before i posted the response.

Quote:
Originally Posted by Smoothie
Now, using this method, how does one select which postbit to use?
This is assuming that you are using legacy mode in the parent style. If you are using the new mode it would just work the opposite way.
Reply With Quote
  #6  
Old 02-01-2007, 12:42 AM
Cybershaolin Cybershaolin is offline
 
Join Date: Nov 2006
Posts: 300
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for your answers. Actually, I like this better than the hack I was using.
Reply With Quote
  #7  
Old 02-01-2007, 01:07 AM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FockerFGAA View Post
This is assuming that you are using legacy mode in the parent style. If you are using the new mode it would just work the opposite way.
Don't quite understand. Does the end user have a choice for postbit or postbit_legacy? Or is this pre-defined?
Reply With Quote
  #8  
Old 02-01-2007, 12:15 PM
FockerFGAA FockerFGAA is offline
 
Join Date: Dec 2006
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Smoothie View Post
Don't quite understand. Does the end user have a choice for postbit or postbit_legacy? Or is this pre-defined?
You would have postbit_legacy setup as the default for the Parent skin. then when you copy the regular postbit into postbit_legacy in the child skin then if someone wants to go to the new style they can.
Reply With Quote
  #9  
Old 05-19-2007, 12:15 AM
karlm's Avatar
karlm karlm is offline
 
Join Date: Jul 2006
Location: England
Posts: 447
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This can also be used per forum by using the forum manager to specify a particular skin. So as the original poster made comment of, the members may be forced to postbit_legacy (left) for all forums except an images forum whereby the forum-manager (in admincp) has forced them to use a new skin with postbit (top) so as the images do not push the forum off the screen.

I probably won't make use of this tip, but it's certainly an impressively easy way to manipulate the forum.
Reply With Quote
  #10  
Old 05-29-2007, 07:05 AM
ahsidky ahsidky is offline
 
Join Date: Apr 2002
Location: Egypt
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I made it and it is a very nice hint.
thank you very much.
But, I have to ask about the database tables, will these changings make in conflicts in the database, I mean when a user uses the post bit and another uses the postbit legacy in the same time?
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 03:02 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07181 seconds
  • Memory Usage 2,281KB
  • Queries Executed 23 (?)
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
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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