PDA

View Full Version : HTML Type Pages


razsports
03-07-2006, 09:23 AM
Hi,

I am looking for two mods that do the following shown below.

1. First create a title for each page.

example: main category for baseball directory would have a title named,
"Baseball Directory: Listing Web Pages At Raz-Sports.com"

Once on the above page the visitor clicks on the subcategory named baseball cards. On this page the title would read as: "Baseball Cards Directory: Web Pages Add By Raz-Sports.com."


2. Shortern the URL's for each page.

Example: instead of ULR reading raz-sports.com/sports-directory/baseball-directory/baseball-cards, it should read as:

raz-sports.com/baseball-cards-directory.html

Thanks for any help you can provide.

razsports
03-08-2006, 12:23 AM
Hello? Anyone home?

Kevuk2k
03-08-2006, 12:41 AM
Is this a paid version or free version? If its a free version you will probably have to wait a little while before your questions get answered. There are these fixes in version 3 I think.

Kev

David
03-08-2006, 01:09 AM
Shortening the URLs would be a pretty big task, because the navigation structure would need a lot of changes in the code.

I searched the forum for html and rewrite (include all words) and there were some helpful results.

Optimit
03-08-2006, 02:34 AM
The Description code in the header.tpl does exactly what you are asking. Just open header.tpl, and look for {$description}.

razsports
03-08-2006, 07:27 AM
Optimit,

What is the code to use to shorten the URL's and change titles for each page?

Optimit
03-08-2006, 10:05 AM
I can't help you with the URLS, but the page titles it in the Title and description code in the header. I gave you the description code, which changes with each page, and the title is located just above it in the header.tpl Tagged "Title"

tarheit
03-08-2006, 06:03 PM
I just modified the template in mine to shorten it to the TITLE_URL followed by the ID to get around this. If you have unique TITLE_URL's (I don't) you could leave out the ID part and add code to do a query to find the ID.

I just changed the code in main.tpl to read:
dir-{$cat.TITLE_URL}-{$cat.ID}.phtml"]{$cat.TITLE}
Then used htaccess to map it to index.php?c=#

-Tim

razsports
03-08-2006, 06:34 PM
None of this is working :( The URL's are to long and I can't seem to change the title for seach page.

My main page I wanted to have the title read, "Sports Directory- baseball, football, hockey, basketball, golf, tennis and soccer."

Once they click on any of the categories such as baseball the title would read, "Baseball Directory- The Raz-Sports.com Edited Web Directory."

And once they click on subcategory called baseball cards the title would read,
"Baseball Cards Directory- Web Pages Added By Raz-Sports.com."

And the URL's would be such as

Main page: raz-sports.com/sports-directory.html

baseball directory page: raz-sports.com/baseball-directory.html

baseball cards page: raz-sports.com/baseball-cards-directory.html

Optimit
03-08-2006, 06:52 PM
When you create a category, it gives you a place to enter a desciption. That description is conveyed on the webpage in the header.tpl file using the description code I gave you.

So, you can copy and paste the description code from the header.tpl and place it anywhere you want.

Then when you create a category like Baseball Cards, you would enter this for a description. "Baseball Cards Directory- Web Pages Added By Raz-Sports.com.", and it will display that description anyplace on the page you want.

razsports
03-08-2006, 07:48 PM
Optimit,

I did what you suggestioned and it didn't work. I even typed up a description and nothing. Could I PM you with my URL to the script? I don't want to post it here cause Google will pick it up and it's NOT ready for the engines, yet.

Optimit
03-08-2006, 08:07 PM
Sure, also It would help to know exactly where you are wanting the page titles to show up on your page.

Optimit
03-08-2006, 09:56 PM
Ok, I looked at the code in your header.tpl and main.tpl. It appears that the code that calls the page title and description is missing.

here they are.

This is your page title. it will display the name of whatever category you are in.

Content visible to registered users only.

here is the page description. When you create a category, this code calls up the description for that category, and displays it.

Content visible to registered users only.

These codes are normally found in the header.tpl. Aside from the DOCTYPE info, and meta, this code is about the only thing in a standard header.tpl file. In your site, they are gone.

Just copy those codes, and place them in your page wherever you want the subsequent information to be displayed.

You already have mod-rewrite enabled. So your page URLs are already displaying keywords.