This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Untitled thread


avatar
lgoss 0
From: -
Untitled thread

Another question for ya Phillip. I see in the site_header template that keywords is inserted into the meta tag. I am having trouble finding where the keywords is handled. I think I found an area in core.php but have not had any luck getting it to work as the keywords are not inserted.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Untitled thread
avatar
OP 0
From: -
Untitled thread

That fixed it! Thanks!
1 Re: Untitled thread
avatar
Administrator
1342
From: Austria
Untitled thread

Try the following:

Open core.php and find:

                $query = DBQuery("SELECT * FROM esselbach_st_downloads WHERE download_id = '$det'");

$data = mysql_fetch_array($query);

Then add:

$id = $det;
1 Re: Untitled thread
avatar
OP 0
From: -
Untitled thread

Thanks, I see where the default keywords are handled and it works like a charm. However, the download details page also shows the default keywords and not the keywords in the database (for that particular title).

I see the generated cache file in the tags folder and it contains the proper data, but I guess the cache file is not passing properly to the site_header? Any ideas?
1 Re: Untitled thread
avatar
Administrator
1342
From: Austria
Untitled thread

You can set the default keywords under Other => Website => Edit

The keywords are generated in the function HeaderBlock in core.php. Here an example of the code for news stories:

                $insert[page_title] = addslashes($data[story_title]);

$insert[page_keywords] = addslashes(DoKeywords($data[story_text]));
MiniCache("cache/tags/story-$id", "<?php $insert[page_title] = "$insert[page_title]";n$insert[page_keywords] = "$insert[page_keywords]"; ?>");

This code is generating the keywords based on the news story (using function DoKeywords) and write it back to a caching file in the /cache/tags directory

Here another code snippet with the default keywords:

                $insert[page_title] = addslashes($data[website_dtitle]);

$insert[page_keywords] = addslashes($data[website_dkeywords]);
MiniCache("cache/tags/default", "<?php $insert[page_title] = "$insert[page_title]";n$insert[page_keywords] = "$insert[page_keywords]"; ?>");

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.