Advice Articles

  • Beginners
    Just getting started? Loads of powerful advice here for beginners.
  • Intermediate
    Got a handle on the basics? Find more advanced topics covered here.
  • Advanced
    Warning! Advanced topics covered here.
  • Affiliate resources
    Affiliate marketing resources for affiliates and affiliate program managers tools, websites, books and articles.
  • Product reviews
    Candid reviews of the latest products to take you to the next level.


 

Affiliate Marketing Forum

FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups   RegisterRegister ProfileProfile  Log in to check your private messagesPrivate Messages Log inLog in  
Some sort of dynamic template possible?
Goto page Previous  1, 2
Affiliate Marketing Forum Index -> Do-It-Your-Selfers
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ramac



Joined: 15 Jan 2005
Posts: 39

PostPosted: Thu Jan 20, 2005 8:13 pm    Post subject: Reply with quote

Hmm, okay.

From reading that link, it seems you don't have to put ANY special code in the file being included, just the code in the file where it is being inserted.
Back to top View user's profile Send private message
AllanGardyne
Site Admin


Joined: 02 Jul 2003
Posts: 5839
Location: by the beach, Australia

PostPosted: Fri Jan 21, 2005 11:10 pm    Post subject: Reply with quote

I have some server side includes that are plain text and some that include a bit of HTML coding. Both work for me.
_________________
Allan Gardyne
... earning a good living from affiliate programs since 1998.
Learn how.
Subscribe now

FREE Affiliate Program Tutorial
Back to top View user's profile Send private message Visit poster's website
Charlie



Joined: 22 Aug 2003
Posts: 3305
Location: UK

PostPosted: Sat Jan 22, 2005 2:23 pm    Post subject: Reply with quote

ramac wrote:
it seems you don't have to put ANY special code in the file being included, just the code in the file where it is being inserted.

That's right - and you can put anything the browser can understand in there: javascript too, if you like. Nothing will be run until it reaches the client browser.

One thing to watch if you are linking from the include...

Keep things simple by using absolute links that include the full pathname.

If you use relative links to other pages on your site, or scripts, remember that if the included file and the page it's included in are not in the same directory on your server, the relative paths must be from the page location (not the include).

Take a look at Will Bontrager's CGI site if you fancy some useful guidance on SSI and CGI in general.

Cheers,
Charlie.
_________________
"Before I speak, I have something important to say."
- Groucho Marx
Back to top View user's profile Send private message
ramac



Joined: 15 Jan 2005
Posts: 39

PostPosted: Mon Jan 24, 2005 6:44 am    Post subject: Reply with quote

Clears things up, thanks, guys.
Back to top View user's profile Send private message
Superpreneurs.com



Joined: 06 Oct 2004
Posts: 146

PostPosted: Mon Jan 24, 2005 11:58 am    Post subject: Reply with quote

If you're doing a logo, menu, and bottom bit, it will probably be best to do them as separate SSI's...

-Dan
_________________
DnD and Role-Playing Advice, Tips, Tricks and Tactics

The above message is probably completely harsh and tactless; I don't have time to hold your hand if you ask for help. I give it straight. Hang in there, work hard, and you'll get there though!
Back to top View user's profile Send private message Visit poster's website MSN Messenger
apixelpixie



Joined: 28 Jan 2005
Posts: 29
Location: Canada

PostPosted: Fri Jan 28, 2005 10:47 pm    Post subject: Reply with quote

I have a quick question...Are you using FrontPage to build your site?

If you are then why don't you just use the FrontPage include component? It is quick and painless...

Just place your curser into the cell or table you want the include to go in...click once...
Click Insert>Web Component
Choose Include Content from the list
Then browse to the page you want to include...

Just my nickel...
_________________
Lynne Robson
http://robsondesignworks.com
Templates and custom development for all website needs.
http://1st-in-web-templates.com
Affiliate Marketing Templates :: EBook Covers :: Sales Letter Templates :: Web Development Guides :: Tutorials :: Custom Development and much much more...
Back to top View user's profile Send private message Send e-mail Visit poster's website
reikiman



Joined: 24 Oct 2003
Posts: 78
Location: Mountain View, CA

PostPosted: Sat Jan 29, 2005 6:06 pm    Post subject: Reply with quote

I don't use Front Page (as I said in another thread, FP puts in lots of microsoftisms that are proprietary, and I abhor such policies) ...

In GoLive and Dreamweaver they can do exactly as you want.

GoLive: You create a "template" in the "site extra's" tab and from then you have two choices .. you can either create a page using that template, or you can modify the template ... when you modify the template, the modifications are copied to every page that uses that template.

DW: I don't remember the details, but they're amazingly similar.

In both I use sub-templates within each template page. In GoLive this is a "Component", and whenever you edit the Component file the changes are duplicated out to every page that uses the Component.

I use two template pages:

article.html - One article page per "article" I publish on the site.

index.html - An index page per topic area, the index page being to point to every article page within the topic area.


Some components I use are

adsense-vertical - holds adsense advertisements (vertical orientation)
footer - holds the bottom-of-the-page stuff
navbar - contains links to the important pages within the site


- David
_________________
Free tutorial and guide to building & promoting web sites.
http://web-building.7gen.com/
Back to top View user's profile Send private message Visit poster's website
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Affiliate Marketing Forum Index -> Do-It-Your-Selfers All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum





Your host: Allan Gardyne.
Earning a good living from affiliate programs since 1998.