Hi Friends,
I have spent quite good amount of time in reading various post here about "integrating SMF with an existing website"
I am trying to use my own header in wyhich images are there .Now Problem is that on the forum main forum ( http://www.ajayvibha.com/forum/ ) everything work ok with my header visible .But any forum / category /topic is click than header images does not come up ( please check out http://www.ajayvibha.com/forum/general-discussion-b1.0/ and http://www.ajayvibha.com/forum/general-discussion/welcome-to-smf-t1.0.html )
I have put my images & header file under forum folder .Following is the details of my header file :-
<table border="0" width="100%" id="table1" cellspacing="0" cellpadding="5">
<tr>
<td bgcolor="#FFFFFF"><a href="http://www.obiztek.com/">
<img border="0" src="images/OBizTek.gif" width="121" height="19"></a></td>
<td width="386" bgcolor="#FFFFFF">
<p align="right">
<img border="0" src="images/00338IA0153_LG.gif" width="468" height="60"></td>
</tr>
<tr>
<td bgcolor="#000000" colspan="2"> </td>
</tr>
</table>
Lot of time I have spent in fixing the problem but no success.
Can anyone give the comments.
Thanks & Regards,
Ajay
www.obiztek.com
I just wanted to comment on a problem with your code.
<td width="386" bgcolor="#FFFFFF">
<p align="right">
<img border="0" src="images/00338IA0153_LG.gif" width="468" height="60"></td>
You have an opening paragraph tag, but no closing tag--<p align="right">.
There is no need for you to wrap an img in a paragraph tag, anyway. Fix that then see what happens. I don't know if this solves the problem, but you can't fix anything until you get the basics right.
Also, did you validate your code? http://validator.w3.org
If you validate, you will find other errors in your code. Fix them all, then come back if it isn't right.
Hi motumbo,
Code validation has been done just now.
But still problem is there as header images are not appearing on category / topic pages .
I think that there is some guidelines which need to be followed so that only the fly SMF will automatically pick up the path of the header images.
Can someone help .
you shouldn't use relative URL's for such things, or this will happen.
type out the full url in src=" "
Quote from: metallica48423 on September 21, 2007, 08:01:23 PM
you shouldn't use relative URL's for such things, or this will happen.
type out the full url in src=" "
Nice catch!
Absolute URLs aren't necessary if you include the slash so everything is relative to the domain name's root. src="/images/OBizTek.gif" assuming http://www.obiztek.com/images is the path to the images file will work just fine.
Using relative URLs as much as possible makes moving your site from your home development server to your production server easier.
depends on the context, if the files are moving, then yes it makes it easier.
But using the same relative path in another part of the tree will be nothing but problems :P
Personally, i use absolute paths, and if it changes, i can do a mass search and replace with a text editor :)
Hi Friends,
Thanks for the comments, my problem is solved.This has really made the life comfirtable after spending so many house in fixing the problem , also alternatively I used $settings['images_url'] and it has worked.
Now another major problem which I am facing is about including the file in the header by using simple php include like <? include('adrotate.php'); ?> .For ongoing discussionPlease check out the thread http://www.simplemachines.org/community/index.php?topic=170219.0
There are many many cases/ uses when we want to include some files.It seems SMF works on strict standard like bbpress which I scarapped in favor of SMF versality .But here again using include is becomming the problem
ok im throwing in the gauntlet in smf 1.1.4 theres no //footer stuff here bit or any include() i hopnestly have looked im using the default theme cause i like it :D also how do i remove the php boxes mySQL boxes etc at the bottom of the page anyone out there that can help??? please?
Look in Themes/default/index.template.php
theres a set of functions in the index.template.php
template_main_above(); is the header
template_maiin_below(); is the footer
template_menu(); is the navigation menu
you should be able to search 'theme_copyright' and you'll find those images on either side of it :) Just make sure theme_copyright(); stays there (it is a requirement)