PDA

View Full Version : can some one post header here..


mangmel
09-24-2013, 10:05 AM
<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, 11:46 AM
Just look at the default one

mangmel
10-07-2013, 04:02 AM
default one edited...

can you post original header here pls

tbworld
10-07-2013, 04: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, 05: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, 07: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, 09: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, 04:37 PM
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, 05: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, 05:16 PM
Edit template, click Show Default.
https://vborg.vbsupport.ru/attachment.php?attachmentid=146663&stc=1&d=1381169767

tbworld
10-07-2013, 11: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, 01:13 AM
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, 01: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, 02: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, 02:32 AM
I think Lynne's picture is vB4. The {vb:variables} aren't in 3.

tbworld
10-08-2013, 02: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