![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
赤い靴 call me 202-456-1111
Industry Role:
Join Date: Feb 2001
Location: The Valley
Posts: 14,831
|
anyone here know how to...
I have a simple Smarty site going. So far so good, but I can't get it to do one thing. The index.php is set up to display: a header, a main, and a footer set of templates.
That part works but inside the main.tpl, I use the fetch function to call in a gallery like page. That gallery page is created from a database using a different program. (if I knew how to do it with Smarty I would) However, I'm using the fetch function and trying to call in a page, the actual function looks like this: {fetch file='http://www.domain.com/directory/videos.html'} Now the problem is, I need for "directory" be dynamic. It needs to use a smarty function so that I can replace that directory depending on the main page they are on. I've tried making it look like all of the following ways, and none of them work. {fetch file='http://www.domain.com/$directory/videos.html'} {fetch file='http://www.domain.com/\$directory/videos.html'} {fetch file='http://www.domain.com/\'$directory/videos.html'} {fetch file='http://www.domain.com/{$directory}/videos.html'} {fetch file='http://www.domain.com/'$directory'/videos.html'} if I hardcode the directory into the fetch function it works with no problem, but then that would mean I'd need a different template for each page, and the whole point of going with Smarty is to eliminate all those pages. Anyone know how to call a smarty instance into a fetch function? (or know of an alternative)
__________________
SPECIALTY COSTUMES • PROPS • FX Superheroes • Monsters • Robots PM for details For any manufacturing needs. Adult or otherwise. aka BonsHigh on Insta Bonsai weed plants |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Aug 2007
Posts: 3,529
|
Sorry, I cannot help you but here is a bump
__________________
Bogat mama ala cu loturi de trafic |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Blow Me U Geeks
Join Date: Aug 2001
Location: Maximum Security
Posts: 5,108
|
Sorry mate I don't know either, but bump for someone else that might know
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
Confirmed User
Industry Role:
Join Date: Feb 2005
Location: US
Posts: 5,326
|
Quote:
Use double quotes. {fetch file="http://www.domain.com/$directory/videos.html"} |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
赤い靴 call me 202-456-1111
Industry Role:
Join Date: Feb 2001
Location: The Valley
Posts: 14,831
|
Quote:
HOLY SHIT!!!! THAT WORKED!!!! Thanks DVAE!!
__________________
SPECIALTY COSTUMES • PROPS • FX Superheroes • Monsters • Robots PM for details For any manufacturing needs. Adult or otherwise. aka BonsHigh on Insta Bonsai weed plants |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
赤い靴 call me 202-456-1111
Industry Role:
Join Date: Feb 2001
Location: The Valley
Posts: 14,831
|
admins, you may close this thread now.
__________________
SPECIALTY COSTUMES • PROPS • FX Superheroes • Monsters • Robots PM for details For any manufacturing needs. Adult or otherwise. aka BonsHigh on Insta Bonsai weed plants |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Purveyor, Fine Asian Porn
Industry Role:
Join Date: Jul 2004
Location: San Francisco Bay Area
Posts: 38,323
|
Quote:
![]() ADG |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Industry Role:
Join Date: Feb 2005
Location: US
Posts: 5,326
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
So Fucking What
Industry Role:
Join Date: Jul 2006
Posts: 17,189
|
sounds stupid but ...
oops you got it
__________________
best host: Webair | best sponsor: Kink | best coder: 688218966 | Go Fuck Yourself ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
aka K-Man
Industry Role:
Join Date: Oct 2001
Location: The Gutter
Posts: 29,292
|
what's Smarty? do u have a link for more info?
__________________
Crypto HODLr Crypto mining Angel investor |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
So Fucking What
Industry Role:
Join Date: Jul 2006
Posts: 17,189
|
It has a little learning curve but the more I use it the more I'm loving it.
http://smarty.php.net/download.php
__________________
best host: Webair | best sponsor: Kink | best coder: 688218966 | Go Fuck Yourself ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |