vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   New postbit or legacy postbit (https://vborg.vbsupport.ru/showthread.php?t=136059)

FockerFGAA 01-09-2007 10:00 PM

New postbit or legacy postbit
 
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.

thincom2000 01-10-2007 02:25 AM

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.

Cybershaolin 01-30-2007 04:39 AM

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.

Smoothie 01-30-2007 02:14 PM

Now, using this method, how does one select which postbit to use?

FockerFGAA 02-01-2007 12:34 AM

Quote:

Originally Posted by Cybershaolin (Post 1170338)
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.

Cybershaolin 02-01-2007 12:42 AM

Thanks for your answers. Actually, I like this better than the hack I was using.

Smoothie 02-01-2007 01:07 AM

Quote:

Originally Posted by FockerFGAA (Post 1171677)
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?

FockerFGAA 02-01-2007 12:15 PM

Quote:

Originally Posted by Smoothie (Post 1171703)
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.

karlm 05-19-2007 12:15 AM

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.

ahsidky 05-29-2007 07:05 AM

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?


All times are GMT. The time now is 08:35 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.02251 seconds
  • Memory Usage 1,733KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete