hubcat, on Jul 2 2005, 03:56 PM, said:
I just installed Ultimate SEO before installing this contribution and I have a question. Both contributions modify the admin/categories.php file. Each modification looks like it is doing something very similar. The following code is how it should be installed following the install directions for both.
$action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : '');
// ========== begin Ultimate SEO URLs ==========
// Ultimate SEO URLs v2.1
// If the action will affect the cache entries
if ( eregi("(insert|update|setflag)", $action) ) include_once('includes/reset_seo_cache.php');
// ========== end Ultimate SEO URLs ==========
if (tep_not_null($action)) {
// ========== begin cDynamic Meta Tags ==========
# cDynamic Meta Tags
// If the action will affect the cache entries
if ( eregi("(insert|update|setflag)", $action) ) include_once('includes/reset_meta_cache.php');
// ========== end cDynamic Meta Tags ==========
switch ($action) {
case 'setflag':
Since they seem to be both doing the same thing, I thought they might need to both be together, as in the following example:
$action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : '');
// ========== begin Ultimate SEO URLs ==========
// Ultimate SEO URLs v2.1
// If the action will affect the cache entries
if ( eregi("(insert|update|setflag)", $action) ) include_once('includes/reset_seo_cache.php');
// ========== end Ultimate SEO URLs ==========
// ========== begin cDynamic Meta Tags ==========
# cDynamic Meta Tags
// If the action will affect the cache entries
if ( eregi("(insert|update|setflag)", $action) ) include_once('includes/reset_meta_cache.php');
// ========== end cDynamic Meta Tags ==========
if (tep_not_null($action)) {
switch ($action) {
case 'setflag':
Should they both be separate as in the first example or together as in the second example? Or maybe together with the Ultimate SEO code with the Meta Tags below the "if (tep_not_null($action)) {"?
Thanks for any insights into this.
Peace,
Jeff
Jeff....
They both do not do the same but the do do it at the same time...
so yes you could combine like:
if (tep_not_null($action)) {
// ========== begin Ultimate SEO URLs ==========
// Ultimate SEO URLs v2.1
// If the action will affect the cache entries
if ( eregi("(insert|update|setflag)", $action) ) include_once('includes/reset_seo_cache.php');
// ========== end Ultimate SEO URLs ==========
// ========== begin cDynamic Meta Tags ==========
# cDynamic Meta Tags
// If the action will affect the cache entries
if ( eregi("(insert|update|setflag)", $action) ) include_once('includes/reset_meta_cache.php');
// ========== end cDynamic Meta Tags ==========
switch ($action) {
case 'setflag':
or like this:
if (tep_not_null($action)) {
// ========== begin Ultimate SEO URLs & cDynamic Meta Tags==========
// Ultimate SEO URLs v2.1 / cDynamic Meta Tags
// If the action will affect the cache entries
if (eregi("(insert|update|setflag)", $action)) {
include_once('includes/reset_seo_cache.php');
include_once('includes/reset_meta_cache.php');
}
// ========== end of mod ==========
switch ($action) {
case 'setflag':
Chris
Edited by clarocque, 02 July 2005, 20:27.














