.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > General Programming
General Programming Help others and get yourself helped here!

Reply
 
Thread Tools
Stab at Smarty Template Class (PHP)
Old
  (#1)
Ancient
PodBot MM's Laziest Waypointer
 
Ancient's Avatar
 
Status: Offline
Posts: 1,010
Join Date: Jan 2005
Location: Nebraska, United States of America
Default Stab at Smarty Template Class (PHP) - 05-06-2006

I took a stab at smarty template class, its pretty simple and easy.

in tpl file must have {$variable} have to have $ seems quite weird.

So far all I got is the template somewhat working; CSS Styles don't work at all and can't have it in the tpl file or it will go nuts and will say, unable to read var from "filename.php".

I haven't yet intergrated MySQL, and I don't think css would work because of mysql.

http://www.cfe-clan.com/smarty-temp/
is what I got so far.

http://server3.cfe-clan.com/smarty-temp.zip
1 MB (extracted)

Maybe someone can help me with the CSS Styles to work in Templates? I am not that experienced in PHP and hopefully someone will help rescue me from this disaster.

I'm currently working on a CS Site for some selected maps and waypoints, and stuff. it's been hell so far.
  
Reply With Quote
Re: Stab at Smarty Template Class (PHP)
Old
  (#2)
jeefo
путинхуйлоебаное
 
jeefo's Avatar
 
Status: Offline
Posts: 453
Join Date: Nov 2005
Location: Saint-Petersburg
Default Re: Stab at Smarty Template Class (PHP) - 06-06-2006

You're probably forget add
PHP Code:
<link href="style.css" rel="stylesheet" type="text/css"
To the head tag of main page or it's point to wrong filename, or file that not lie in this directory.

[edit]
Not dl this stuff, since i can't now , but style.css is in templates directory, so you probably must change
"style.css", to "templates/style.css"
[/edit]
  
Reply With Quote
Re: Stab at Smarty Template Class (PHP)
Old
  (#3)
Ancient
PodBot MM's Laziest Waypointer
 
Ancient's Avatar
 
Status: Offline
Posts: 1,010
Join Date: Jan 2005
Location: Nebraska, United States of America
Default Re: Stab at Smarty Template Class (PHP) - 06-06-2006

Code:
<link rel="stylesheet" type="text/css" href="style.css">
Is in the overall_header.tpl in templates folder.
  
Reply With Quote
Re: Stab at Smarty Template Class (PHP)
Old
  (#4)
jeefo
путинхуйлоебаное
 
jeefo's Avatar
 
Status: Offline
Posts: 453
Join Date: Nov 2005
Location: Saint-Petersburg
Default Re: Stab at Smarty Template Class (PHP) - 06-06-2006

[edit]
Not dl this stuff, since i can't now , but style.css is in templates directory, so you probably must change
"style.css", to "templates/style.css"
[/edit]

  
Reply With Quote
Re: Stab at Smarty Template Class (PHP)
Old
  (#5)
Ancient
PodBot MM's Laziest Waypointer
 
Ancient's Avatar
 
Status: Offline
Posts: 1,010
Join Date: Jan 2005
Location: Nebraska, United States of America
Default Re: Stab at Smarty Template Class (PHP) - 06-06-2006

Nice Damn I should've thought of that.

Hmm styles workin now.
  
Reply With Quote
Reply


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com