Contributions
Dynamic Information Pages
D (ynamic) I (nformation) P (ages) 1.0
This contribution is a modified categories module :-) It works and acts the same. Its 100% OSC code certified ;-)
This will allow you to create your information pages dynamically using the database instead of the normal hardcoded pages.
This makes adjusting your pages ease and fast to do. You can also disable and enable the pages. Multilanguage supported.
In a nutshell:
Dynamic Information pages unlimited system can:
1.Multilanguage automatically
2.Create Unlimited information entries (for each language used)
3.Edit information entries
4.Delete information entries
5.copy information entries
6.Activation / DeActivation the information entries
6.Change Queue
Have fun :)
Expand All / Collapse All
Replace this section:
case 'delete_page_confirm':
if ( ($HTTP_POST_VARS['pages_id']) ) {
$page_id = tep_db_prepare_input($HTTP_POST_VARS['pages_id']);
for ($i = 0, $n = sizeof($page_id); $i < $n; $i++) {
tep_db_query("delete from " . TABLE_PAGES . " where pages_id = '" . tep_db_input($page_id) . "' ");
tep_db_query("delete from " . TABLE_PAGES_DESCRIPTION . " where pages_id = '" . tep_db_input($page_id) . "' ");
}
$page_id_query = tep_db_query("select count(*) as total from " . TABLE_PAGES . " where pages_id = '" . tep_db_input($page_id) . "'");
$page_id = tep_db_fetch_array($page_id_query);
if ($page_id['total'] == '0') {
tep_remove_page($page_id);
}
}
if (USE_CACHE == 'true') {
tep_reset_cache_block('pages');
}
tep_redirect(tep_href_link(FILENAME_INFORMATION));
break;
With :
case 'delete_page_confirm':
$page_id = tep_db_prepare_input($HTTP_POST_VARS['pages_id']);
tep_db_query("delete from " . TABLE_PAGES . " where pages_id = '" . (int)$page_id . "'");
tep_db_query("delete from " . TABLE_PAGES_DESCRIPTION . " where pages_id = '" . (int)$page_id . "'");
$messageStack->add_session(SUCCESS_PAGE_REMOVED, 'success');
tep_redirect(tep_href_link(FILENAME_INFORMATION));
break;
Now this contribution is working with oscommerce-2.2rc2a
This will allow you to ADD META TAGS for each Information Page dynamically using the database.
This makes adjusting your META TAGS with ease and fast to do. Multilanguage supported.
This will allow you to ADD META TAGS for each Information Page dynamically using the database.
This makes adjusting your META TAGS with ease and fast to do. Multilanguage supported.
Now this contribution is working with OSC MS2.2.
Furthermore I added the sort order but it keeps the order of the static information pages. In case of static pages it is easy to modify for own wishes.
This version now supports on admin/catalog side following languages:
- english
- german
- turkish
Enjoy it!
Note: This contribution is similar to "Information Pages Unlimited" (compared with v1.1h.zip). Of course the other looks better, but I missed a better handling of multi lingual support. Find yourself your favorite one.
Forgot to say. Its made for MS1. I think certain modifications needed to make it work on MS2.
Contrib is the same as 1.0 no changes
D (ynamic) I (nformation) P (ages) 1.0
This contribution is a modified categories module :-) It works and acts the same. Its 100% OSC code certified ;-)
This will allow you to create your information pages dynamically using the database instead of the normal hardcoded pages.
This makes adjusting your pages ease and fast to do. You can also disable and enable the pages. Multilanguage supported.
In a nutshell:
Dynamic Information pages unlimited system can:
1.Multilanguage automatically
2.Create Unlimited information entries (for each language used)
3.Edit information entries
4.Delete information entries
5.copy information entries
6.Activation / DeActivation the information entries
6.Change Queue
Have fun :)
Note: Contributions are used at own risk.