TCH-Thomas Posted April 28, 2005 Posted April 28, 2005 I have set up a forum using SMF 1.0.3 here. On the attached image you see the top of it. I would like to get rid of the text in the red part and then "stretch" the logo in the green part so it is across the whole page (the logo itself is 750 px) In which page and what part of it do I modify and finally (since Im no good at php), what exactly do I write, if the logos name is smflogo.gif if and I use the default theme? Any help greatly appreciated. Quote
borfast Posted April 28, 2005 Posted April 28, 2005 Sorry, Thomas, I never used SMF so I can't help you much but if you can't figure it out, let me know (PM or IM me) and I'll download it and take a look. Quote
j2k4b Posted April 28, 2005 Posted April 28, 2005 Thomas... I don't know anything about SMF either... Sorry! Quote
Head Guru Posted April 28, 2005 Posted April 28, 2005 I have little experience with SMF and I was not as impressed as I am with IPB. Sorry cant help Thomas. Quote
TCH-Thomas Posted April 28, 2005 Author Posted April 28, 2005 I like IPB better too, but I like SMF´s price. Quote
j2k4b Posted April 28, 2005 Posted April 28, 2005 I have said this before on another thread but I like PunBB better. It is highly customizable and FREE! I hope this helps. Quote
TCH-Don Posted April 28, 2005 Posted April 28, 2005 If you go into Themes > Default and find index.template.php in that file look for the body tag just below is the table cell that displays first. thats the area the change. Assuming you are using the default theme. Quote
curtis Posted April 28, 2005 Posted April 28, 2005 (edited) Thomas, goto Cpanel>file manager. Open the directory where you installed SMF and find Themes. There are 2 choices classic or default, pick the one you are using. Then look for a file called index.templates.php and open it. Scroll down until you get to ></head> <body>'; If you want to put in a new header just place your html under this. To replace an existing logo scroll down to //The logo and three info boxes// and change the coding for the new logo. An example of a new header and changed info boxes on my site is here Edited April 28, 2005 by curtis Quote
TCH-Thomas Posted April 28, 2005 Author Posted April 28, 2005 Thomas, goto Cpanel>file manager. Open the directory where you installed SMF and find Themes. There are 2 choices classic or default, pick the one you are using. Then look for a file called index.templates.php and open it. Scroll down until you get to ></head> <body>'; If you want to put in a new header just place your html under this. To replace an existing logo scroll down to //The logo and three info boxes// and change the coding for the new logo. An example of a new header and changed info boxes on my site is here Ok, found "//The logo and three info boxes//", however, after that I found a part saying "// This part is the logo and forum name. You should be able to change this to whatever you want...", so I assumed it was there I would tell where to find my logo since it was the place I found /smflogo in the originalfile but I get a blank page with this text: This is here because Gecko browsers properly support white-space.... if ($context['browser']['is_gecko']) echo ' '; echo ' '; /* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...) Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual. Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big. Standards compliance mode happens when you use xhtml... */ if ($context['browser']['needs_size_fix']) echo ' '; // Show all the relative links, such as help, search, contents, and the like. echo ' '; // If we're viewing a topic, these should be the previous and next topics, respectively. if (!empty($context['current_topic'])) echo ' '; // If we're in a board, or a topic for that matter, the index will be the board's index. if (!empty($context['current_board'])) echo ' '; // We'll have to use the cookie to remember the header... if ($context['user']['is_guest']) $options['collapse_header'] = !empty($_COOKIE['upshrink']); // Output any remaining HTML headers. (from mods, maybe?) echo $context['html_headers'], ' '; // Because of the way width/padding are calculated, we have to tell Internet Explorer 4 and 5 that the content should be 100% wide. (or else it will assume about 108%!) echo ' So I am probably missing something. Do I need to delete, add something? Quote
curtis Posted April 28, 2005 Posted April 28, 2005 Thomas to get rid of the text in the red part: Goto your forum and sign-in as admin. Left menu go down to Forum Configuration and click Edit Server Settings. When server settings opens go down to Message Board Name and delete whatever is in the box. In your case that would be Marve Assistans Forum. After that text is removed you should be able to adjust the size of your image to the size you want. Quote
TCH-Thomas Posted April 29, 2005 Author Posted April 29, 2005 Did that, but still getting this text described above. Here is what that part of index.template.php says: >// The logo and the three info boxes. echo ' <table cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="position: relative;"> <tr> <td colspan="2" valign="bottom" style="padding: 5px; white-space: nowrap;">'; // This part is the logo and forum name. You should be able to change this to whatever you want... echo ' <td align="center" width="750"><img src="http://marveassistans.se/smflogo.gif" alt="" /><br /> <br /> <span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>'; echo ' </td> Quote
TCH-Don Posted April 29, 2005 Posted April 29, 2005 The problem is ><br /> <br /> <span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>'; Try removing it and just use ><table cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="position: relative;"> <tr> <td colspan="2" valign="bottom" style="padding: 5px; white-space: nowrap;"> <td align="center" > <a href="http://marveassistans.se"> <img src="http://marveassistans.se/smflogo.gif" /> </a> </td> I added a link to home page on the logo. Quote
TCH-Thomas Posted April 29, 2005 Author Posted April 29, 2005 Works better. Now there is no white space but the logo is way too much to the right even if it as far as I can see should be centered. But we are getting close. Quote
TCH-Don Posted April 29, 2005 Posted April 29, 2005 My fault, bad coding on my part You have two move the align="center" up into the top Quote
TCH-Thomas Posted April 29, 2005 Author Posted April 29, 2005 Thanks Don & Curtis and everyone else. It works perfectly now. Now I just have to create a new logo since I discovered that the old one was too wide. Quote
TCH-Bruce Posted April 29, 2005 Posted April 29, 2005 You might want to add border=0 to the image. Quote
TCH-Thomas Posted April 29, 2005 Author Posted April 29, 2005 There is a border around it already, Bruce. Atleast what I see in Firefox However in firefox its the correct color but in I.E its blue. <_> Quote
TCH-Bruce Posted April 29, 2005 Posted April 29, 2005 Thomas adding that border=0 will remove the blue box from around the image in IE. Quote
TCH-Thomas Posted April 29, 2005 Author Posted April 29, 2005 Ok, here´s what I did... I changed Bruce suggestion so it adds Dons suggestion about align="center", so now it looks like this: ><td colspan="2" valign="bottom" style="padding: 5px; white-space: nowrap;"> <a href="http://marveassistans.se"><img src="http://marveassistans.se/smflogo.gif border=0" /></a> </td> This way no logo shows in either I.E or FF but if I remove border=0", it looks as it should in FF but have the blue border in I.E. Shall the be there anyway? Quote
TCH-Bruce Posted April 29, 2005 Posted April 29, 2005 My mistake Thomas ><td colspan="2" valign="bottom" style="padding: 5px; white-space: nowrap;"> <a href="http://marveassistans.se"><img src="http://marveassistans.se/smflogo.gif" border="0" /></a> </td> Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.