I wany to see Today in History on only Home Page of the Board

NAZIA

New Member
Aslam o Alaikum! {Peace Be upon You}
Today in History
I have download this module for VB board and installed it on my Site.
In template modifications I have done in na bar template
=======================
One idea is to place the following at the end of the vB navbar template:
=======================
Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
	<td class="thead">
		<a style="float: $stylevar[align=right];" href="#top" onclick="return toggle_collapse('history')"><img id="collapseimg_history" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_history].gif" alt="" border="0" /></a>
		$vbphrase[today_in_history]
	</td>
</tr>
</thead>
<tbody id="collapseobj_history" style="$vbcollapse[collapseobj_history]">
<tr>
	<td class="alt1" width="100%">$history</td>
</tr>
</tbody>
</table>
<br />

But I want to put this history only on the Home page of my Board instead of all pages...

Please tell me where i have to put this code instead of NavBar edit Option...So that this history will shown only on the main page of my site..
I also post this http://www.vbteam.info/vb-3-6-x-addons-template-modifications/395-fun-facts-today-history.html But nobody replied me..That is why i am creating a separate thread..

Please Help me in this matter
May God Bless You. (Ameeen)
Nazia
 
your going to need to create an 'if' condition. it will look something like this:

HTML:
<if condition="THIS_SCRIPT=='vbportal'">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
	<td class="thead">
		<a style="float: $stylevar[align=right];" href="#top" onclick="return toggle_collapse('history')"><img id="collapseimg_history" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_history].gif" alt="" border="0" /></a>
		$vbphrase[today_in_history]
	</td>
</tr>
</thead>
<tbody id="collapseobj_history" style="$vbcollapse[collapseobj_history]">
<tr>
	<td class="alt1" width="100%">$history</td>
</tr>
</tbody>
</table>
<br />
</if>

since I dont have vbadvance installed on my site, I don't know what the script variable name is. your going to have to alter the text in red
 
Dear! DEViANT
I put the above code in the navBar template option but the script is not working.

Please tell me where to put the above code?
Thankss
 
Oh!

My Goodness....
Thanks yo my Allah.Who gives me Brain And all things in the worlds & universe.
Finally I have done myself....
I did not use any If condition....
Mr.DEViANT...
Your if condition was not working....
I just copied the given code
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="thead">
<a style="float: $stylevar[align=right];" href="#top" onclick="return toggle_collapse('history')"><img id="collapseimg_history" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_history].gif" alt="" border="0" /></a>
$vbphrase[today_in_history]
</td>
</tr>
</thead>
<tbody id="collapseobj_history" style="$vbcollapse[collapseobj_history]">
<tr>
<td class="alt1" width="100%">$history</td>
</tr>
</tbody>
</table>
<br />

Modified the FORUMHOME template...
Here I have to put the above code below
As $navbar used for navigation bar ...
So the History is showing below the Navigation....
hehheheheh
Me really Happy..... Happyy.....
And MR.DEViANT I am taking my Thanks back...
Is it Okay...???? Reaply....
 
Back
Top