Gossamer Forum
Home : Products : Links 2.0 : Customization :

Site maintaining and creation on the fly

(Page 1 of 2)
> >
Quote Reply
Site maintaining and creation on the fly
Hi,

I wasn't sure if this was done but couldnt find any info on it.

I wanted to make a site like www.imdb.com

where I would have the look and feel of the site all set with the buttons and stuff. Everytime I want to create a new listing lets say for the movie Matrix in there would be a listing of the actors with links on bios on each one. It would simply create the page on the fly automatically and I would just enter the info (html) and it would save it .

Lets say www.mysite.com/matrix <--This would have info on the movie with links to actors and other stuff

Lets say www.mysite.com/matrix/keanu_reeves/ <---This would be a link to this actor and I would put in info on him and his character

Lets say www.mysite.com/matrix/posters/ <---This would have info on the poster stuff

Pretty much I just want it to create the folders for each category with the template and I would just enter the info of the html in there and it would save it and later be searchable and viewable by anyone.

If this was already done please point me in the right direction?

Thanks
Ibrahim
incik@cloud9.net
Quote Reply
Re: Site maintaining and creation on the fly In reply to
Homepage Maker Mod in the Resource Center.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Site maintaining and creation on the fly In reply to
Hi,

I just installed it.

So now I can just edit the html in that category and it wont be affected when I build?

And I can just do more categories with sub-categories and edit there html and when I do the build again they'll remain fine?
Quote Reply
Re: Site maintaining and creation on the fly In reply to
Well, the problem will be to include unique content in each category and sub-category page. Look at the Mod more closely and see if there are instructions on how to do this.

You will have to use the Multiple Category Template Mod in the Resource Center to have each category with unique content.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums


[This message has been edited by AnthroRules (edited March 18, 2000).]
Quote Reply
Re: Site maintaining and creation on the fly In reply to
Hi,

The homepage maker mod has no instructions of use besides installing it.

The multiple template mod seemed to work
because it rebuilt the categories with the html I wanted in my categories.

But when it created the pages there was only the html templates I had made appearing.

The rest like top and bottom and everything else of the page was not there.

So it almost worked but not quite there.

What else do I need to add?

Thanks
Ibrahim
Quote Reply
Re: Site maintaining and creation on the fly In reply to
 
Quote:
The rest like top and bottom and everything else of the page was not there.

Huh...what do you mean???

Like the header and footer...use the Header and Footer FAQ/Tutorial located here:

anthrotech.com/cgi/links/faqs/insertfiles/

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Site maintaining and creation on the fly In reply to
Hi,

I meant the entire page did not show
only the html I entered showed up.
The Home, Add a site, Modify a site, and the rest did not appear.
Also at the bottom where it has the search feature with the date did not appear either.

Thats what I meant by everything.
Sorry about that
Quote Reply
Re: Site maintaining and creation on the fly In reply to
Uh...you need to modify the add and modify template files, and also upload the add.cgi, modify.cgi files.

And if this does not make any sense, provide a link to your LINKS directory, so that we can see what you are talking about!!!!!! We are not mind readers or "page readers"!

Wink

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Site maintaining and creation on the fly In reply to
Hi,

I tried looking for the add.cgi and modify.cgi files but couldnt find them.

heres my site so you can look at it
http://speciale.net/asp2/pages/

When you goto my site you'll see what I mean.
when I meant the top and bottom dont display you'll see what i'm talking about.

Thanks
Quote Reply
Re: Site maintaining and creation on the fly In reply to
Uh...look in the template directory...you should see the following files:

add.html
add_error.html
add_success.html
modify.html
modify_error.html
modify_success.html

Wink

You need to edit these files and all the other template files.

And to edit the "home" page, you need to edit the "home.html" file.

Wink

Regards,



------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Site maintaining and creation on the fly In reply to
Heres a sample of what I want

http://download.cnet.com/downloads/0-10084-100-1562935.html?tag=st.cn.sr.dl.1

When you go to it you'll see the top will repeat on all pages also the bottom will do the same but in the middle they have there own html code and that is the product they are talking about wich is editplus.

In my case I would just put everything the same but instead of editplus I would insert my own html info this way everything would be created on the fly and I can create additional pages as well. And later on if I want to give the site a new look instead of going to each page I can just edit some html and build and it would be done.

I hope this doesnt sound confusing.

Thanks
Ibrahim
Quote Reply
Re: Site maintaining and creation on the fly In reply to
Again...like I mentioned before what you want is to use inserted files in sections of your HTML pages...which again is located at the following URL:

anthrotech.com/cgi/links/faqs/insertfiles/

Wink

Because from the examples you've provided, you want the following:

HEADER

HTML CODES FOR EACH FILE

FOOTER

Right????

Well, that is what the FAQ/Tutorial that I have now linked twice in this Topic does!

Wink


Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Site maintaining and creation on the fly In reply to
Hi,

I'm gonna start from the beginning since I been installing many mods and doing so many steps please correct me as I show you my steps that I will take.

1. install links2
2. install: using multiple template mod
3. then the: Adding Header and Footer Files for LINKS 2.0 from:
http://anthrotech.com/cgi/links/faqs/insertfiles/

That should be it hopefully

I was looking at the SSI part
I would add this to all the files in the templates folder?
Also the SSI calls for a "file.txt" what would this be? I dont get this part

Thanks
Ibrahim
Quote Reply
Re: Site maintaining and creation on the fly In reply to
UGH!

Quote:
I would add this to all the files in the templates folder?

Read the FAQ/Tutorial AGAIN. I have written Notes about each method.

You can add the SSI calls in your template files that are NOT called from .cgi scripts, like home.html, category.html, cool.html, etc.

You can NOT use SSI in the .cgi template files, like the ones I mentioned before:

add.html
add_error.html
add_success.html

If you want to use header and footer files across all your template files....use one of the Enhanced Template.pm include File OR Global Tag option...clearly stated in the URL I provided.

Wink

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Site maintaining and creation on the fly In reply to
Hi Eliot,

I'm pretty much learning this stuff on my own along with your help. Thanks for your patience with me sorry if i'm driving you nuts.

The part you mention:
You can add the SSI calls in your template files that are NOT called from .cgi scripts, like home.html, category.html, cool.html, etc.

Since i'm new to this I really dont know wich files are or are not being called from .cgi scripts except for the ones you mention above.

If you can list for me all the template files that are not called from .cgi scripts I would really appreciate it.

I see you mention the enhancced template.pm include file:
http://www.gossamer-threads.com/scripts/resources/Detailed/26.html

and the global tag:
http://www.anthrotech.com/cgi/links/faqs/templates/

If you can make a correction to that list I had made previously so I can be sure to take the right steps and also I had a question about the SSI in that message.

Thanks
Ibrahim

Quote Reply
Re: Site maintaining and creation on the fly In reply to
LISTEN...

To make things easier...

1) Just download the Enhanced Template.pm codes in the Resource Center and put them in your Template.pm file.

2) Then use the following tag in ALL your template files:

Code:
<%include header.html%>

Code:
<%include footer.html%>

3) Then upload two files in your templates directory:

Code:
header.html
footer.html

4) Format these files the way you want it.

5) Then change the permission these files to 666 (rw-rw-rw-).

6) Then re-build your index!

This will do what you want...

BTW: I do not like repeating myself...and this is repeating myself since I have already put these instructions in the FAQ/Tutorial page that I have linked twice already in this Topic.

Frown

And you are confusing FAQs in my site...I have linked the Insert Files (Header and Footer files) twice in this Topic...where you got the idea to create additional template files from this discussion is BEYOND ME!

Just follow what I have just written...I am losing patience over this issue...BTW.

Best of luck with your project!

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Site maintaining and creation on the fly In reply to
Thank You for your help
I'll let you know tomorrow how it works out.
Quote Reply
Re: Site maintaining and creation on the fly In reply to
Hi,

I followed what you instructed in the steps you gave and I got a 500 internal error message when I went to the admin/admin.cgi

I guess what I want is impossible to do.

I had a couple of questions though cause you werent real specific on a couple of the steps maybe I made a mistake there.

1. The include header and footer codes I wasnt sure of where to put them in the template files so I put header at the top and footer at the bottom.

2. For the header and footer.html I wanted to put the top and bottom of the pages in each but wasnt sure of where to start it from. So I made them both a test sample so if it works i'll later just add stuff to it.

I was wondering when I do my film site and I want each of the categories to be different like matrix, batman, spiderman etc. I dont understand how i'm gonna have each directory have the custom html in it cause i'm not entering them anywhere?

If you can send me an e-mail directly with your phone number i'd be glad to call you for help.

Thanks
Ibrahim
incik@cloud9.net
Quote Reply
Re: Site maintaining and creation on the fly In reply to
Did you download the Enhanced Template.pm codes and replace your complete sub parse routine in the Template.pm as stated in the instructions?

If so, using the codes I gave you WILL work!

And you have to upload the header and footer files in the template directory as I have stated before!

If you want to use different header and footer files in different "categories", then simply "include" a different file, like the following:

Code:
<%include musheader.html%>

BTW: The include codes NEED to go in your category.html file AS mentioned BEFORE!

Like the following:

Code:
<body>
<%include header.html%>
OTHER HTML CODES
<%include footer.html%>
</body>
</html>

Simple matter of HTML coding...you do know how to do that, don't you? Wink

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Site maintaining and creation on the fly In reply to
Thanks

I'll try again.

I had put the code outside the body.
Quote Reply
Re: Site maintaining and creation on the fly In reply to
Good...Hope you get it this time...

Wink

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Site maintaining and creation on the fly In reply to
I did it and it worked but I made a mistake somewhere. if you go and check at:
http://speciale.net/asp2/pages/

Then click the test in the categories

for the header and footer I made the header.html and footer.html I wrote the statement this is the header and this is the footer so that I could be sure to see where it popped up.

but I realize I have to edit one of the html's but wich one?

I was planning on using the yahoo templates later after I have this working should I install that also or wait until this is running properly?

Thanks
Ibrahim
Quote Reply
Re: Site maintaining and creation on the fly In reply to
UGH!

You put the header and footer tags in ALL the template files! Do I need to re-post the header and footer tags you need to use for the fourth time?

Wink

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Site maintaining and creation on the fly In reply to
I did as you said and put it in the body and these were the tags I used:
<%include header.html%>
<%include footer.html%>

and I put it in all the template files
Quote Reply
Re: Site maintaining and creation on the fly In reply to
Was this wring?
> >