Playing Source Since the Beginning of Time
Welcome, %1$s. Please login or register.
Did you miss your activation email?
October 31, 2024, 06:05:08 PM

:    
Want to join us in Vent? Ask an admin for info while in game or PM them here on the forums!
74681 6615 681
: kevinson55
*
+  The Elders' House of Pain
|-+  Public Forum
| |-+  Pc Help/Tweak Page (Moderator: snyper133)
| | |-+  custom logo for smf
« previous next »
: [1]
: custom logo for smf  ( 1370 )
wonder.
Shmotz's Biotch
Godlike
*****

Karma: +4/-79
Offline Offline

: 4349


Baller

MSN Messenger - JMess_22@hotmail.com
« : October 19, 2007, 10:42:54 PM »

How do u put a logo at the top of your page for SMF?  can't figure it out...

~Wonder.

0G ~ \/\/0ND3RBRE@D

<TE|EasyJ> Death u left ur anal beads on the floor in my bathroom
HongKongPhooey
Administrator
Godlike
*****

Karma: +0/-0
Offline Offline

: 3832


I know The Elders Rules me!


« #1 : October 20, 2007, 05:50:15 AM »

Look for the index.template.php file in the particular theme folder you use in the themes folder.  Its under this area in the index.template.php // The logo and the three info boxes.

Number One Super Guy!!!


wonder.
Shmotz's Biotch
Godlike
*****

Karma: +4/-79
Offline Offline

: 4349


Baller

MSN Messenger - JMess_22@hotmail.com
« #2 : October 20, 2007, 09:11:44 AM »

Well I found the Logo part, but i can't seem to figure out how to imput the URL... I have put in the url in some various spots, but it still doesn't come up... Here is the code:


Quote
if (empty($settings['header_logo_url']))
      echo '
               <span style="font-family: Verdana, sans-serif; font-size: 140%; ">', $context['forum_name'], '</span>';
   else
      echo '
               <img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['forum_name'], '" />';

   echo '
            </td>
            <td align="right" class="catbg">
               <img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />
            </td>
         </tr>
      </table>';

0G ~ \/\/0ND3RBRE@D

<TE|EasyJ> Death u left ur anal beads on the floor in my bathroom
HongKongPhooey
Administrator
Godlike
*****

Karma: +0/-0
Offline Offline

: 3832


I know The Elders Rules me!


« #3 : October 20, 2007, 09:37:14 AM »

This is the default file:

Quote
   // 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" style="width: 250px; float: ', !$context['right_to_left'] ? 'right' : 'left', ';" alt="" />';
   if (empty($settings['header_logo_url']))
      echo '
               <span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>';
   else
      echo '
               <img src="', $settings['header_logo_url'], '" alt="', $context['forum_name'], '" border="0" />';

The file in red is what you would need to change.  That is in the images directory.

Ours looks like this:

Quote
   // This part is the logo and forum name.  You should be able to change this to whatever you want...
   echo '
               <img src="../images/header.jpg" width="753" height="119" valign="top" style="float: center;" alt="Playing Source Since the Beginning of Time" />
               <span style="font-family: Georgia, sans-serif; font-size: xx-large;">&nbsp;</span>';[\quote]


Number One Super Guy!!!


wonder.
Shmotz's Biotch
Godlike
*****

Karma: +4/-79
Offline Offline

: 4349


Baller

MSN Messenger - JMess_22@hotmail.com
« #4 : October 20, 2007, 10:35:15 AM »

Thanks hong, but is there any way to upload an image to the image files without going through the ftp database.. Cause i look in my database but it says the forum isn't installed... don't know, but it still works so i don't want to mess with it.  So is there any way i could do that through the site?

0G ~ \/\/0ND3RBRE@D

<TE|EasyJ> Death u left ur anal beads on the floor in my bathroom
wonder.
Shmotz's Biotch
Godlike
*****

Karma: +4/-79
Offline Offline

: 4349


Baller

MSN Messenger - JMess_22@hotmail.com
« #5 : October 20, 2007, 10:39:18 AM »

scratch that, i was able to upload the pic... just trying to put it into the code now..

Ok, I tried doing it, but it still won't work... I copied the code u had, and just tried to edit it, because what i was doing wasn't working.  This is what i have now... The picture isn't comming up... Any Ideas?

Quote
echo '
   <div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' : '', '>
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
         <tr>
            <td class="catbg" height="32">';

   if (empty($settings['header_logo_url']))
      echo '
               <img src="../images/logo_phpBB_med.gif" width="753" height="119" valign="top" style="float: center;" alt="Where Home Chefs Share Their Ideas" />
               <span style="font-family: Georgia, sans-serif; font-size: xx-large;">&nbsp;</span>';
   echo '

The image is logo_phpBB_med.gif ... I have it uploaded to the image files too... Any ideas on what to do? 

Here is my site.

www.ShareHomeRecipes.com

Thanks.

~Wonder.
« : October 20, 2007, 10:47:01 AM Wonderbread »

0G ~ \/\/0ND3RBRE@D

<TE|EasyJ> Death u left ur anal beads on the floor in my bathroom
HongKongPhooey
Administrator
Godlike
*****

Karma: +0/-0
Offline Offline

: 3832


I know The Elders Rules me!


« #6 : October 20, 2007, 12:15:25 PM »

Are you sure you have it in the right images folder?  There are more than 1 images folder (default, plus each theme).  It should go in the default images folder not the theme images folder.
« : October 20, 2007, 12:20:03 PM HongKongPhooey »

Number One Super Guy!!!


wonder.
Shmotz's Biotch
Godlike
*****

Karma: +4/-79
Offline Offline

: 4349


Baller

MSN Messenger - JMess_22@hotmail.com
« #7 : October 20, 2007, 12:19:55 PM »

Well i uploaded the pic to the defualt place i guess.  Its where i saw the default logo... but i custimized my theme and  i don't see it in the themes template.  So where else could i upload the the pic to my theme?

0G ~ \/\/0ND3RBRE@D

<TE|EasyJ> Death u left ur anal beads on the floor in my bathroom
HongKongPhooey
Administrator
Godlike
*****

Karma: +0/-0
Offline Offline

: 3832


I know The Elders Rules me!


« #8 : October 20, 2007, 12:25:13 PM »

Should be in this folder http://sharehomerecipes.com/smf/Themes/default/images/

ours is here http://theelders.net/forum/Themes/default/images/header.jpg

Number One Super Guy!!!


wonder.
Shmotz's Biotch
Godlike
*****

Karma: +4/-79
Offline Offline

: 4349


Baller

MSN Messenger - JMess_22@hotmail.com
« #9 : October 20, 2007, 12:29:29 PM »

this is what i get when i click on that...

You don't have permission to access /smf/Themes/default/images/ on this server.

You may need to create an index.html page or enable the directory browsing by creating an .htaccess file containing "Options +Indexes".


0G ~ \/\/0ND3RBRE@D

<TE|EasyJ> Death u left ur anal beads on the floor in my bathroom
WidowMaker
Supreme Master
Administrator
Godlike
*****

Karma: +17/-3
Offline Offline

: 1622


AOL Instant Messenger - craygo69
« #10 : October 22, 2007, 06:48:11 AM »

Also our images folder is outside the forum directory, that is why we have the ../ in front of our images. You have to link all images with the intent you are coming from the same folder as the index.php file is at. so if your images folder is in the same directory as the index.php file, you would need to link it like

Code: [Select]
<img src="images/logo_phpBB_med.gif">
Remember, all links work by the current location of th open file. If you look at the address bar you can see our forum is in a folder called forum, even though the index template is the actual file being used, the index.php file is running everything. so all links need to be done from where the index.php file is and not the template file.

Widow



wonder.
Shmotz's Biotch
Godlike
*****

Karma: +4/-79
Offline Offline

: 4349


Baller

MSN Messenger - JMess_22@hotmail.com
« #11 : October 23, 2007, 03:18:48 PM »

Is there any way to upload images directly to the template so i know what folder it is in?

0G ~ \/\/0ND3RBRE@D

<TE|EasyJ> Death u left ur anal beads on the floor in my bathroom
: [1]  
« previous next »
:
Powered by MySQL Powered by PHP SMF 2.0.18 | SMF © 2021, Simple Machines Valid XHTML 1.0! Valid CSS!