News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Replacing forum name with Graphic ?

Started by Norcalavalancheclub, August 13, 2005, 06:53:50 PM

Previous topic - Next topic

Norcalavalancheclub

i want to change where the title of the forum is to a graphic. Can this be done ?


I already have a graphic I want to add but not sure how to do it. The graphic has been uploaded to a sever.



Kirby

What version of SMF are you running, and what theme?

1MileCrash

The only thing php can't do is tell you how much milk is left in the fridge.



Norcalavalancheclub

Quote from: ??? on August 13, 2005, 06:58:37 PM
What version of SMF are you running, and what theme?

Powered by SMF 1.0.5.


Norcalavalancheclub

Found it but what file do I look for this all in ?  ???

  Basic Graphic FAQ
« on: May 24, 2004, 06:00:42 AM »   

--------------------------------------------------------------------------------
Basic FAQ for common Graphics questions.


--------------------------------------------------------------------------------
How can I replace the forum name with a banner?

This action can be simply done by finding the code that displays the forum name:

Copy to clipboardCode:
', $context['forum_name'], '


and replacing that part with a image script:

Copy to clipboardCode:
<img src="', $settings['images_url'], '/IMAGE.GIF" border="0">

Note you have to change the image name in the code and place your image in your images folder of every theme because it will take the image from the users theme directory.

And some may want the banner clickable, to do that, use this instead of the above.

Copy to clipboardCode:
<a href="URL"><img src="', $settings['images_url'], '/IMAGE.GIF" border="0"></a>

And if you want it aligned [Center, left, right] use this code instead.

Copy to clipboardCode:
<center><img src="", $settings['images_url'], '/IMAGE.GIF" align="center"></center>


xenovanis

It's in the file index.template.php of the theme you are using. Look in the direcory /Themes/

How do I modify files?
"Insanity: doing the same thing over and over again and expecting different results."

Norcalavalancheclub

The current text is

<img src="', $settings['images_url'], '/smflogo.gif" width="250" style="float: right;" alt="" />
               <span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>';

I have uploaded my file like it told me to and renamed it. so this is the text i have now

<img src="', $settings['images_url'], '/smflogo.gif" width="250" style="float: right;" alt="" />
               <span style="font-family: Georgia, sans-serif; font-size: xx-large;"><Left><img src="", $settings['images_url'], '/norcalforums.gif" align="left"></left>

------------ Before I do it is this right ?


xenovanis

Try this


<img src="', $settings['images_url'], '/smflogo.gif" width="250" style="float: right;" alt="" />
<img src="", $settings['images_url'], '/norcalforums.gif" align="left">';

"Insanity: doing the same thing over and over again and expecting different results."

Norcalavalancheclub

I think I broke it REAL good this time.

I copied the exact text but now when I go to the forum I get this .
Quote
Template Parse Error!

There was a problem loading the /Themes/default/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

this is the code

                      // This part is the logo and forum name.  You should be able to change this to whatever you want...
echo '
<img src="', $settings['images_url'], '/smflogo.gif" width="250" style="float: right;" alt="" />
<img src="", $settings['images_url'], '/norcalforums.gif" align="left">'; echo '
</td>
</tr>

:'(


Norcalavalancheclub

ahhh I think I see the problem . There was a screw lose between the program and the keyboard.


xenovanis


// This part is the logo and forum name.  You should be able to change this to whatever you want...
echo '
<img src="', $settings['images_url'], '/smflogo.gif" width="250" style="float: right;" alt="" />
<img src="', $settings['images_url'], '/norcalforums.gif" width="400" style="float: left;" alt="" />';
"Insanity: doing the same thing over and over again and expecting different results."

Norcalavalancheclub

YOUR GETTING A XMAS CARD THIS YEAR FOR SURE !!!!  ;D

Thanks much . I think I understand now.


Advertisement: