Untitled thread
lgoss 0
From: -
From: -
Notice
This topic is archived. New comments cannot be posted and votes cannot be cast.Responses to this topic
1 Re: Untitled thread
lgoss
OP
0
From: -
From: -
Untitled thread
That fixed it! Thanks!
That fixed it! Thanks!
1 Re: Untitled thread
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
Untitled thread
Try the following:
Open core.php and find:
Then add:
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
lgoss
OP
0
From: -
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?
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
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, 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:
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:
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]"; ?>");
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.