Support Forums

Trying To Change Logo, Double URL, Help Needed

This is a discussion on Trying To Change Logo, Double URL, Help Needed within the Modules / Plugins / Modifications forums, part of the Developer Forums category; Hi, I have followed the instrutions on how to change my logo: Open your layout.tpl file and find this code: ...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 08-16-2008, 12:49 PM   #1
Junior Member
 
Join Date: Aug 2008
Posts: 22
Rep Power: 6
68 Newbie is on a distinguished road
Default Trying To Change Logo, Double URL, Help Needed

Hi,

I have followed the instrutions on how to change my logo:

Open your layout.tpl file and find this code:

<div id="logo">
<h1><a href="index.php" title="68 Classifieds">
68 <span class="title">Classifieds</span></a></h1>
<p>Welcome to our classifieds site.</p>
</div>

Replace this with this code:

<div id="logo">
<a href="index.php" title="Yoursitename here">
<img src=�{$smarty.const.URL}/templates/yourtemplatefoldername/images/logo.jpg�
width=�376� height=�60�</a>
</div>

Which I did, my code looks like this:

<div id="logo">
<a href="index.php" title="Smartimes Magazine">
<img src=�{$smarty.const.URL}/templates/default/images/logo.gif�
width=�340� height=�100�</a>
</div>

But for some reason the logo will not show, I checked the logos link location and it appears to be generating a double URL:

http://www.smartimesmagazine.com/cla...ages/logo.gif�

I can't figure out how to correct this problem.

Can someone please help me out.
68 Newbie is offline   Reply With Quote
Old 08-16-2008, 01:25 PM   #2
Member
 
Join Date: May 2008
Location: Madison, WI
Posts: 77
Rep Power: 8
jonahcoyote is on a distinguished road
Default

What do you have set for the site URL in the main settings?

- Jonah
__________________
- Jonah


4.0.8 Developer
http://www.jonahcoyote.com
jonahcoyote is offline   Reply With Quote
Old 08-16-2008, 01:27 PM   #3
Junior Member
 
Join Date: Aug 2008
Posts: 22
Rep Power: 6
68 Newbie is on a distinguished road
Default

http://www.smartimesmagazine.com/classifieds/
68 Newbie is offline   Reply With Quote
Old 08-16-2008, 01:57 PM   #4
Member
 
Join Date: May 2008
Location: Madison, WI
Posts: 77
Rep Power: 8
jonahcoyote is on a distinguished road
Default

Alright, try using this instead:

<div id="logo">
<a href="index.php" title="Smartimes Magazine">
<img src=�templates/{$smarty.const.MAIN_TEMPLATE}/images/logo.gif�
width=�340� height=�100�</a>
</div>
__________________
- Jonah


4.0.8 Developer
http://www.jonahcoyote.com
jonahcoyote is offline   Reply With Quote
Old 08-16-2008, 02:13 PM   #5
Junior Member
 
Join Date: Aug 2008
Posts: 22
Rep Power: 6
68 Newbie is on a distinguished road
Default

Thanks for your help, the logo now appears but now I have the problem that the logo does not correctly align with the rest of the site:

http://www.smartimesmagazine.com/classifieds/index.php

Any idea on the best way to correct this?

Thanks again.
68 Newbie is offline   Reply With Quote
Old 08-16-2008, 02:28 PM   #6
Member
 
Join Date: May 2008
Location: Madison, WI
Posts: 77
Rep Power: 8
jonahcoyote is on a distinguished road
Lightbulb

You'll have to use CSS to nudge to logo over somehow. Either using positioning or margins on the div itself or the img tag. Do you know CSS? Checking out some basic tutorials on CSS will probably benefit you if you don't already know any. Actually, knowing CSS is going to be essential to modifying this software. So I hope you're prepared.

Another thing you should probably do is not modify the default template directly. You should create a copy of the default template, name it whatever you like, and set that as the site template in the admin. There are tutorials covering this in the forums. There are also tutorials or information on how to do most anything you want, but like I said, knowing CSS is going to be essential.

To change the look, you're mainly going to be working with the CSS. If you looking to change functionality, you're going to be modifying PHP mainly and maybe some Smarty code.

I hope that helps,
Jonah
__________________
- Jonah


4.0.8 Developer
http://www.jonahcoyote.com
jonahcoyote is offline   Reply With Quote
Old 08-16-2008, 02:38 PM   #7
Junior Member
 
Join Date: Aug 2008
Posts: 22
Rep Power: 6
68 Newbie is on a distinguished road
Default

Jonah,

Thanks for your help, it's been greatly appreciated.

I have one other question which hopefully you can help me with.

I have changed the background color of the default 68 Template but I was wondering is it possible for me in include a white background/box in the center of the page.

I've attached an image to make it clearer but basically I'd like it to be white within the red line.

Let me know your thoughts on this.

Thanks again.
Attached Images
File Type: png Picture 2.png (84.6 KB, 11 views)
68 Newbie is offline   Reply With Quote
Old 08-16-2008, 03:00 PM   #8
Member
 
Join Date: May 2008
Location: Madison, WI
Posts: 77
Rep Power: 8
jonahcoyote is on a distinguished road
Lightbulb

I highly recommend using Firebug and the Web Developer Tools for Firefox. They will make your job much easier in trying to figure a lot of this stuff out. Firebug allows you to inspect a page by hovering over elements and then telling you what that element is. It also allows you to modify CSS on the fly so you can try things out without having to FTP, etc.

To change the background color of the section you highlighted, you are either going to need to target the table that basically encloses that area by giving it a specific class like:

<table class="main-content-table">

To set a class like that, I think you need the Developer version and you'll need to modify the template file where that table is generated so it has your custom class. then you can target that class in CSS like so:

.main-content-table { background-color: #fff; }

You could try targeting it less specifically via the cascade like:

#wrapper table { background-color: #fff; } - but that is probably not specific enough. It will probably apply the styles to other tables within #wrapper.

Good luck!
__________________
- Jonah


4.0.8 Developer
http://www.jonahcoyote.com

Last edited by jonahcoyote; 08-17-2008 at 01:42 PM.
jonahcoyote is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
change backgrounds 0273302733 Technical Support 3 11-07-2008 05:47 AM
How do i change the logo on 68 auto red template? curiousaboutwebdesign Technical Support 2 06-18-2008 09:21 PM
Map integration - help needed objelland v3.1 Questions & Support 0 02-28-2008 09:01 AM
Coding help needed to change look of "choose an ad package" page. (Will Pay) Greg H v3.1 Modules & Modifications 0 01-28-2008 10:25 PM


All times are GMT -4. The time now is 06:32 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0