NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page [resolved] Smarty questions

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 08-10-2008, 09:07 AM THREAD STARTER               #1 (permalink)
NamePros Regular
 
tansks's Avatar
Join Date: Dec 2004
Location: Penang, Malaysia
Posts: 874
tansks is just really nicetansks is just really nicetansks is just really nicetansks is just really nicetansks is just really nicetansks is just really nicetansks is just really nicetansks is just really nice
 



Smarty questions


Hello,

Question 1:
I just download a free css template from somewhere else, but I an having problem to code it in to smarty. My problem is all div's background image that specify url in css style file not loading.

example:

in css style file
PHP Code:
#header 
{
width922px;
height284px;
????: NamePros.com http://www.namepros.com/programming/502236-resolved-smarty-questions.html
background-imageurl(images/bg_header.jpg);
background-repeatno-repeat;

in tpl file
PHP Code:
<div id="header"></div
????: NamePros.com http://www.namepros.com/showthread.php?t=502236
Anyone know how can I fix this problem. Thanks in advance.

Question 2:

Alternative ad does not load in FireFox 2, but work for IE7.

In tpl file have the following statement
PHP Code:
{include file="banner.tpl"
In banner.tpl contain ad script, which is javascript and I have alternative ad url that also contain javascript (let say alt.htm).

Firstly, I use literal tag for banner.tpl - no problem for this.
Secondly, if I use literal tag in alt.htm then it will show the TEXT (in this case {literal}) in FireFox, but if I remove the tag then in FireFox show blank space (ad unit show in IE7).

Hope anyone can understand my questions. Thanks in advance.
__________________
Hostegic - Premium cPanel Hosting [Softaculous | RvSitebuilder | R1Soft daily backups | LiteSpeed]
[UK] [Linux - cPanel | Windows - WebsitePanel/Plesk] [Shared Hosting | Reseller Hosting | VPS]
tansks is offline  
Old 08-10-2008, 10:29 AM   #2 (permalink)
Senior Member
 
nasaboy007's Avatar
Join Date: Jul 2005
Location: NJ
Posts: 1,219
nasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud of
 



i think theres something with having single quotes around background-image, so make it:

background-image('images/bg_header.jpg');

and see if it works.


i don't know much about smarty but you could see if your javascript has errors - sometimes IE and FF parse it differently.
nasaboy007 is offline  
Old 08-10-2008, 07:11 PM THREAD STARTER               #3 (permalink)
NamePros Regular
 
tansks's Avatar
Join Date: Dec 2004
Location: Penang, Malaysia
Posts: 874
tansks is just really nicetansks is just really nicetansks is just really nicetansks is just really nicetansks is just really nicetansks is just really nicetansks is just really nicetansks is just really nice
 



Originally Posted by nasaboy007
i think theres something with having single quotes around background-image, so make it:
????: NamePros.com http://www.namepros.com/showthread.php?t=502236

background-image('images/bg_header.jpg');

and see if it works.


i don't know much about smarty but you could see if your javascript has errors - sometimes IE and FF parse it differently.
Thanks for you response, but the template work without any problem before I split into smarty. Anyway, rep added.

Anyone can help? Thanks.
__________________
Hostegic - Premium cPanel Hosting [Softaculous | RvSitebuilder | R1Soft daily backups | LiteSpeed]
[UK] [Linux - cPanel | Windows - WebsitePanel/Plesk] [Shared Hosting | Reseller Hosting | VPS]
tansks is offline  
Old 08-16-2008, 08:49 AM THREAD STARTER               #4 (permalink)
NamePros Regular
 
tansks's Avatar
Join Date: Dec 2004
Location: Penang, Malaysia
Posts: 874
tansks is just really nicetansks is just really nicetansks is just really nicetansks is just really nicetansks is just really nicetansks is just really nicetansks is just really nicetansks is just really nice
 



Detected the problem and fixed. Just an update for those may also having the same problem.
????: NamePros.com http://www.namepros.com/showthread.php?t=502236

Question 1:
Just because I place in wrong folder

Question 2:
To solve the problem just need to include full html tag in alternative file like below.

PHP Code:
<html>
<
head>
<
title></title>
</
head>
<
body>
javascript here
</body>
</
html
__________________
Hostegic - Premium cPanel Hosting [Softaculous | RvSitebuilder | R1Soft daily backups | LiteSpeed]
[UK] [Linux - cPanel | Windows - WebsitePanel/Plesk] [Shared Hosting | Reseller Hosting | VPS]
tansks is offline  
Old 08-16-2008, 09:31 AM   #5 (permalink)
Senior Member
 
nasaboy007's Avatar
Join Date: Jul 2005
Location: NJ
Posts: 1,219
nasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud of
 



lol glad you figured that stuff out. too bad we really couldn't have answered that first question at all. XD
nasaboy007 is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 02:04 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger