vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   3 templates, want only one (https://vborg.vbsupport.ru/showthread.php?t=83604)

Amax 06-29-2002 04:15 AM

3 templates, want only one
 
I have 3 styles for my bulletin, it create 3 templates, and im not sure if i really need all 3. I would like to know if its possible to have only 1 template so i can edit all the strings of my whole forum within that one. It is really hard for me to modify every single one. Please help!

SaintDog 06-29-2002 04:21 AM

It would take more than a template modification to do this, ask or search at vBulletin.org.

- SaintDog

Foxtroter 06-29-2002 07:46 AM

just on the styles goto properties and change the template set each one uses. I believe this is it but correct me if im wrong

SaintDog 06-29-2002 08:00 AM

Yes that will work, but if all styles draw from the same template set, all 3 styles will be the exact same I do believe.

- SaintDog

Amax 06-29-2002 06:45 PM

Each style has its own colors, and custom headers and footers, isnt that a problem if i only wanted 1 template?

Xelation 06-29-2002 06:53 PM

from what your saying I would have to say that would require some hacking of the php files, you can ask http://www.vbulletin.org for help on that... they have a request forum that you can ask this in. :)

Foxtroter 06-29-2002 06:54 PM

the colors are in the replacement variables just change the template set and not the replacement set but the header and footer are in the templates so yes it will mess those up

heretic 06-29-2002 06:58 PM

as long as the layout is the same, and only headers and graphics are different, all can share the same template. they only use a different replacement set.

then just delete the other two templates.

Amax 06-29-2002 07:11 PM

Ok thanks, I will try that but its been so complicated for me lately, uhg! :(

heretic 06-29-2002 07:36 PM

but remember, if they share a template, the HTML code will all be the same :)

Amax 06-29-2002 07:37 PM

I think I really need someone to do this for me, I only wanted to turn the 3 into 1 because I wanted to get rid of the subject form on replies but I really messed things up for myself trying to do this.

heretic 06-29-2002 08:37 PM

why didn't you just ask to do that in the first place?

Amax 06-29-2002 09:06 PM

Sorry, i guess I should have, can you do this for me?

Foxtroter 06-29-2002 10:02 PM

all i have to say is


* Foxtroter LAUGHS HIS BIG BUTT OFF

lol

Amax 06-29-2002 10:03 PM

What? Nobody said anything funny here...

Foxtroter 06-29-2002 10:05 PM

sorry just thought it was funny that that is all you wanted and then we ran around trying to do all this other stuff, i thought it was funny and thats enough for me :o)

Amax 06-29-2002 10:07 PM

yeah eheh, I apologize :rolleyes:

heretic 06-29-2002 10:48 PM

did you get everything done the way you want, or is there still a question? because you have me completely lost

Amax 06-29-2002 11:25 PM

I asked you if you could fix the templates for me, and try to only have 1 template with 3 styles, if its possible, I think you said it was.

heretic 06-30-2002 02:11 AM

ok, I assume you're asking me to

1) fix a template for you

2) tell you if you can consolidate the template sets.

+++++++++

1) I'd help you but since my site's down, I can't confirm the right text to remove to pull out the subject field.. sorry

2) you can choose one template set and have all styles point to it, that's easy.. the only thing will be all HTML and hacks will apply to all styles, only the colors and images would be different

Amax 06-30-2002 02:58 AM

No I am not asking you to remove the subject, I know how to do that myself, but it would be easier for me to remove the subject in the replies if I only had 1 template to work with. I tried doing this already but it looked as if I had to edit each and every template individually to remove only one thing.

All I am asking is for you or someone else that would do it, to make all of my templates, point to one like you said, or to just have one. I have no idea how these templates work.

Amax 06-30-2002 03:27 AM

Ok, I am almost done removing all the subjects in the replies, but I am still asking if it is possible to have 1 template, and still 3 styles, and each one of my styles has its own custom header/footer.

heretic 06-30-2002 12:49 PM

by looking at your forum, since the style "bayskate layout" seems to have the header made differently, you would need to keep the template set seperate from the others.


templates are the actual HTML bits the forum code puts together, the code assembles the bits and puts in the information, then sends it to the browser.

if your styles had EXACTLY the same layout in the templates (i.e. whenevery you edited a template, you have always done all 3), then all you would need to do is go to edit style properties under styles and choose a template set for each one. Make them all the same set, and when you have all 3 styles using the same template set, then you can delete the others. This will leave only one template set to use. All images and colors will remain different.

if there's any difference that you've put in the templates to make the styles look different, then it would be best to keep a seperate template for each style.


I can't really explain if further.. if it's still too much trouble, best thing to do is to stick it out and wait for vb3, which will give you the ability to edit all templates at once :)

Amax 06-30-2002 05:31 PM

You actually explained that really well! :D I guess its not so hard afterall to edit each template individually, especially when I only have 3, some people have many more. It looks like the last time I tried to edit my templates I had done something wrong, but I did it right this time. So thanks for your help, Now I get it! And yeah, I heard vb3 is going to be much better with templates.

heretic 06-30-2002 09:31 PM

Glad I could help :D

at one time I had about 16 template sets :)

Amax 06-30-2002 09:34 PM

Then I have no idea what I'm complaining about :eek:

imported_gopherhockey 01-25-2003 03:26 AM

I apologize for jumping in late here, but could someone explain one part of this a little further for me?

Here is my setup: 2 styles, 2 templates. Default and Blue

Default is obviously what I started with, many templates were modified (many!) before I created the new set Blue.

I created Blue out of Default (sounds like a bible story now doesn't it? hehe) Anyway.. blue only requires one or two templates to be different (header is one of them). The rest are a giant PAIN because when I modify one, I have to jump over and modify the other.

Then I notice the Template Set drop-down box. It shows both default and Blue. One might think if I only wanted to use one set I could change all these to default except for the ones I do want to keep separate. However, this doesn't seem to work.

"default" in this instance doesn't seem to necessarily reference the Default style templates that I have modified, but the actual real default un-modified template.

Here is an example:

I go into my Default style, memberlist template and modify it so it shows the msn, aol etc. icons. Now I jump over and started editing blue (cut & paste). Now I have 2 edited versions - both identical, but have to keep both updated. While editing the blue style (still memberlist template) I figure I'll select the default template set figuring it will take on any modifications I make in the default template so I won't have to cut & paste again. However, what I see then is the ORIGINAL default template - the one that existed before I ever modified it.

This means there are basically 3 things.

1. Default (modified) templates in the default style
2. Blue (modified) templates in the blue style
3. "Default" templates for both styles, un-modified originals.

Is this sounding correct?

Having said all this.. it is possible to do what I wanted to do? I mean.. keep maybe one or two separate templates, then let the rest of the templates from the blue style revert back to my Default style?

I better not say any more, I'm getting confused again..
:(

Sanctum 01-26-2003 06:50 AM

Why not make things simple on yourself and either delete or set one for your forum. In the usercp find the setting to over users settings for the style / template and select yes you want to override it. Then go to that particular template set and modify as needed. Then never ever afterwards touch the others again...at leats not until your confortable modifying them.

imported_gopherhockey 01-26-2003 03:13 PM

I'm sorry but that just doesn't help me at all.

The problem is that I NEED to have a few separate templates.. just not the whole set.

I'm more than comfortable editing them.. I just don't like having to keep more than one up to date if the don't need to be different between styles. Those that do need to be different means I cannot do what you are suggesting.

If I could go with just one I would have done that.

This doesn't answer whether or not you can have the best of both worlds as described in my earlier post.


All times are GMT. The time now is 01:16 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.01364 seconds
  • Memory Usage 1,783KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (29)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