vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   can some one post header here.. (https://vborg.vbsupport.ru/showthread.php?t=302593)

mangmel 09-24-2013 09:05 AM

can some one post header here..
 
<if condition="$show['searchbuttons']">
<td><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
<if condition="$show['member']">
<td><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
</if>

i need to know if my header is correct.

ForceHSS 09-24-2013 10:46 AM

Just look at the default one

mangmel 10-07-2013 03:02 AM

default one edited...

can you post original header here pls

tbworld 10-07-2013 03:20 AM

You did not state what version of vbulletin you are running, so the remedy I have given you is for any version. I am not sure we can post the full "header" template on the vbulletin.org. It might be against forum rules. All templates are stored in the "vbulletin-style.xml" file. Follow my simple instructions below and you will figure out the format.

Download your version of vbulletin from the vBulletin Members Area.

Find file:

"vbulletin-style.xml"

Search from within that file for:
<template name="header"

There you find your version of the template.

Digital Jedi 10-07-2013 04:44 AM

Unless you edited the Master Style while in debug mode, you should be able to see your default header template at any time. Either by creating a new default style with no parent or by looking at your template history.

mangmel 10-07-2013 06:28 AM

Powered by vBulletin® Version 3.8.7

please pm to me default header if against the rule thanks for help...

Simon Lloyd 10-07-2013 08:46 AM

tbworlds instructions stand!, vbulletin states that we cannot reproduce the code either in part or in full, this would mean reproducing the header for you.

Either do as tbworld or Digital Jedi state or check the xml in any back up you have done.

Digital Jedi 10-07-2013 03:37 PM

Quote:

Originally Posted by Digital Jedi (Post 2450630)
Unless you edited the Master Style while in debug mode, you should be able to see your default header template at any time. Either by creating a new default style with no parent or by looking at your template history.

Like I said, you can easily create your default header just by creating a new style, with no parent, in the Admin CP. Or just look at your template history. All of these are super faster (and more reliable) than waiting for someone to PM you their header (which we can't do.)

ForceHSS 10-07-2013 04:04 PM

When you look at the header in the style manager under the controls box you have the option to view original why dont you do this

Lynne 10-07-2013 04:16 PM

1 Attachment(s)
Edit template, click Show Default.
https://vborg.vbsupport.ru/attachmen...1&d=1381169767

tbworld 10-07-2013 10:12 PM

Thanks @Lynne, I am not that familiar with vb3.

In vb4 if you view history -- in debug mode -- on one of the master templates. Is the compare done against the original XML file? -- if you happen to know. :)

Don't do any research, I can look through the code, if you do not know off hand.

Lynne 10-08-2013 12:13 AM

Quote:

Originally Posted by tbworld (Post 2450801)

In vb4 if you view history -- in debug mode -- on one of the master templates. Is the compare done against the original XML file? -- if you happen to know. :)

It can be against the original or against any saved configuration.

Digital Jedi 10-08-2013 12:45 AM

I could tell you if my database hadn't went all wiggy today, since I had mine in admin only debug mode. But I can tell you that the last time I tried to revert a template in the Master Style, it just deleted it. So I don't think history is saved in the Master. But it seems unlikely the OP was editing his Master in debug mode. All your other styles will always keep the original, which is stored in the Master.

tbworld 10-08-2013 01:15 AM

Thanks @digital_Jedi,
What brought on my question was @Lynne's picture. I figured vb4 had a similar feature and occasionally users alter their master templates. Thanks for the additonal input, always welcomed :)

Digital Jedi 10-08-2013 01:32 AM

I think Lynne's picture is vB4. The {vb:variables} aren't in 3.

tbworld 10-08-2013 01:54 AM

So I did a little research on this to make sure I knew what I was posting about. This is still rough folks.

From the original post, I should have told the vbulletin member to use history. Your first modification of a template, stores the default (template master) in the history stack.
1. In all cases this works, but in the master style it does not append the correct template version. It does work correctly in any user styles. [Minor Bug].

2. 'Default' in all cases refers to the current master style, not the original style in 'vbulletin-style.xml' or histoy stack[0].

3. The history stack[0] automatic entry should be equivalent to 'vbulletin-style.xml' or the original master style for a template.
a. This may not be true if you try to upload a new master style. I did not check this.

Example:

I accidentally edited a template in the master style. So in 'master style' I press 'Revert', to go back to the 'original' untouched master style template -- the same template that should reside in 'vbulletin-style.xml'.
BOOM! - This will delete the master template from the database. [Bug]. So don't press 'Revert' in the 'Master Style'.

Instead press 'History' and compare with 'History Stack[0]' -- the first history position stored.

Example:

My master template styles have been modified from the vbulletin originals. In the new style that I have created, on a particular template, it turned out to be an abomination. (I know this has never happen to anyone.)** So I press 'Show Default', which shows me the current master template: so I can compare.
This shows you the current 'default' master template. This does not show you vbulletin's 'original' template. This works correctly, in my opinion.

To see the 'original' template use 'History'.
Update: This is not always true, in nested children styles: 'History Stack[0] will resolve to the 'default' master template. My wish is that it would have appended the 'original' template in the history stack.
** We are not discussing weather my period should be inside or outside of the parenthetical marks. :)

Summery:

1.) Use 'Show Default' to compare to the current master template. 'View Original on 'controls block' works the same as 'Show Default' on template editor page, in all cases.

2.) Unless you save an 'original' master template in the history stack, you cannot be assured that a 'Original' compare version will be there.

3.) Do not try to revert a template in 'Master Style', you will delete the template.


Thank you: @Lynne, @Digital_Jedi, @ForceHSS, @Simon_Lloyd


All times are GMT. The time now is 09:08 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.03071 seconds
  • Memory Usage 1,752KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)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