XF 2.0 CSS ignorant and new to XF2 - need header help

tourmeister

Active member
Howdy,

I know next to nothing about CSS/HTML/PHP and Stylesheets beyond just a minimal conceptual grasp of what they do. I have no idea how to actually use them. I am trying to get the header in XF2 to look like it does on my live vB3.8.1 site, www.twtex.com.

The upper left image is static and links to the home page. The upper right image location changes to a new random image each time the page is reloaded. Those images are named sequentially. In the phpinclude_start template I have this code, provided by a friend,

$totalheaderimages = 195;
$randomindex = rand(1, $totalheaderimages);
$headerimage = "http://www.twtex.com/forums/images/misc/logo$randomindex.gif";

I then use $headerimage in header template <img src=$headerimage"/>.

The advertising banners under those images are inserted using the vB Ad Management mod by =Redtyger=. That mod randomly determines which image from a pool of images to display each time the page is reloaded.

If possible, I would like to replicate the layout of my existing forum on the XF2 site. I've not had much luck after spending an afternoon Googling and searching here. I know this is probably real simple for some folks, but I am clueless. About the only thing I have figured out how to do is get that static logo image in the header. I have no idea how to add the random images or control their spacing.
 
Howdy Mike,

I am not trying to hide/show the header content based on conditions. I want them displayed to all users all the time. I just don't know how to add the content to the existing header. Basically, at a minimum I would like to have the top two images seen on my live site: www.twtex.com. I am thinking about just losing the advertising banners for good.

With my current install of vB, I was able to find the header template and just insert a few lines of HTML via trial and error until I got what I wanted. The code in that template was simple enough that I was able to figure out what it was doing even though I don't know how to generate original code myself. I am a mechanical engineer by day and sleep deprived forum admin by night. So everything I try to do with the forum stuff is trial and error. I spend a LOT of time Googling and searching here to hopefully find something similar to what I want so I can try to figure out what they did so I can duplicate it or at least get a clue about how to do what I need. I am more of a cut/paster than coder ;)
 
Top Bottom