Community Add-Ons
Infobox Admin
for osCommerce Online Merchant v2.2
Infobox Admin
Based on an idea by Michael Cohen
This contribution will allow you to select which Infoboxes to display on your site through the Admin panel.
You can also choose which column, and what order they are displayed in.
Written for osCommerce v2.2MS1/CVS
Also working on a loaded5 snapshot
Feedback/problems
Either post here or email me
Pretty simple update, not sure if everyone would want this, that's why I didn't include it as a full release/package.
This will combine your colum_left.php and colum_right.php into 1 new file, columns.php
Columns.php also includes some logic to only display certian infobox's when there's a product_id available or a customer_id is set.
This reverts the column behavior back to the normal OsC functionality to only display things like the manufacturers infobox when viewing a product.
-DeathAdder
InfoBox Admin v2.25 + danish, english and french. And the java info is back again.
Update description in my last post... ><
About update 2.25
=====
- integration multilanguage KEY in action Edit, Delete, New (the text was english in file infobox_configuration.php).
- FIX Missing text for image IMAGE_NEW_INFOBOX
- integration update by Thomas Schittli (for use set_function to edit 'left' and 'right') (screenshot)
- delete Help windows popup in action new infobox
- add language FR
- integration SQL others infobox (whishlist, loginbox, featured, shop by price...)
--------------------------------------------------
Au sujet de la mise à jour 2.25
=====
- integration multilanguage des KEY sur les actions Edit, Delete, New (le texte était qu'en anglais dans le fichier infobox_configuration.php).
- FIX Texte manquant dans le fichier langage pour l'image IMAGE_NEW_INFOBOX
- integration de la mise à jour by Thomas Schittli (for use set_function to edit 'left' and 'right') (screenshot joint)
- suppression du popup Aide
- rajout du langage FR
- intégration SQL de plusieurs autres infobox (whishlist, loginbox, featured, shop by price, etc...)
Enjoy :)
About update 2.25
=====
- integration multilanguage KEY in action Edit, Delete, New
- FIX Text manquant for image IMAGE_NEW_INFOBOX
- integration update by Thomas Schittli (for use set_function to edit 'left' and 'right') (screenshot)
- delete Help windows popup in action new infobox
- add language FR
--------------------------------------------------
Au sujet de la mise à jour 2.25
=====
- integration multilanguage des KEY sur les actions Edit, Delete, New (le texte était qu'en anglais dans le fichier infobox_configuration.php).
- FIX Texte manquant dans le fichier langage pour l'image IMAGE_NEW_INFOBOX
- integration de la mise à jour by Thomas Schittli (for use set_function to edit 'left' and 'right') (screenshot joint)
- suppression du popup Aide
- rajout du langage FR
- intégration SQL de plusieurs autres infobox (whishlist, loginbox, featured, shop by price, etc...)
The left and right column buttons didn't work for me in Internet Explorer.
To fix this open admin/infobox_configuration.php and find:
case 'setflagcolumn': //set the status of a box left or right.
if ( ($HTTP_GET_VARS['flag'] == 'left') || ($HTTP_GET_VARS['flag'] == 'right') ) {
if ($HTTP_GET_VARS['cID']) {
tep_db_query("update " . TABLE_THEME_CONFIGURATION . " set configuration_column = '" . $HTTP_GET_VARS['flag'] . "' where configuration_id = '" . (int)$cID . "'");
}
}
Replace it with:
case 'setflagcolumn': //set the status of a box left or right.
if ( ($HTTP_GET_VARS['flag'] == 'left') || ($HTTP_GET_VARS['flag'] == 'right') ) {
if ($HTTP_GET_VARS['cID']) {
tep_db_query("update " . TABLE_THEME_CONFIGURATION . " set configuration_column = '" . $HTTP_GET_VARS['flag'] . "' where configuration_id = '" . $HTTP_GET_VARS['cID'] . "'");
}
}
That should do the trick!
The only difference is the configuration_id. Changed it from (int)$cID to $HTTP_GET_VARS['cID']
Hope this helps.
NOTE: Zip contains .txt file with above text.
There is an SQL error in 31 jul 06 version.
It shows when you reinstall a backup database
Read the link from under here:
http://forums.oscommerce.com/index.php?showtopic=246492&hl=InfoBox+Admin
The zip contains the text as shown here
Helle
New InfoBox Items, German translation, use set_function to edit 'left' and 'right'
To see the meaning of "use set_function to edit 'left' and 'right'"
just open the included screenshot.png.
Setup for the Items:
1. New InfoBox Items
====================
To add the new InfoBox Items
- CoolMenu
- News Scroller Box
- Login Box with members name
- wishlist
- Enhanced BestSeller box with admin
- Suggested Accessories
just execute the SQL:
box_selection New Items.sql
2. German translation
=====================
To add the german translation, just copy the following files:
catalogadminincludeslanguagesgermanimagesbuttonsbutton_new_infobox.gif
catalogadminincludeslanguagesgermaninfobox_configuration.php
catalogadminincludeslanguagesgermanpopup_infobox_help.php
And merge with your file:
catalogadminincludeslanguagesgerman.php
You can also just add the following two lines:
// Infobox Admin
define('BOX_HEADING_BOXES', 'Infobox Admin');
3. use set_function to edit 'left' and 'right'
- Execute the SQL Script
update for tep_cfg_select_option.sql
This should add the new column set_function
to theme_configuration and define for all
rows the default value
'tep_cfg_select_option(array('left', 'right'),'
- Copy
catalogadmininfobox_configuration.php
If you also changed something, then merge it and
look for 'tom 001'
31.7.2006
Thomas Schittli
Is On Danish Now
This is the complete package of v2.23 with a fix to product notification.
search:
new infoBoxDefault($info_box_contents, true, true);
replace:
new infoBox($info_box_contents, true, true);
When I add one product into cart without login, the product notification box did not appear, however when I have login and add the product into cart, the notification box appear along with error:
"Fatal error: Cannot instantiate non-existent class: infoboxdefault in E:My Web SitesIntranettestsiteincludesboxesproduct_notifications.php on line 48"
The following is on line 48:
new infoBoxDefault($info_box_contents, true, true);
Please advice!!
Thank you very much!
[b]This is the complete repackage of [/b]
3 Jun 2004 - InfoBox Admin Author: Steve (aka 241) and 4 Jun 2004 - InfoBox Admin Update Author: Steve (aka 241)
So as to provide a one file download for the contribution.
Other variante with german files and german sql-dump
In dieser Variante sind zusätzlich die deutschen Sprachdateien und der deutsche SQL-Dump enthalten.
Außerdem sind einige Verbesserungen in der Funktionalität hinzugekommen.
- Fixed the sql due to messing up of box locations in the sort order.
- Changed the location from varchar(64) which is alphabetic sorting to INT(5) which is numeric sorting.
- added some code to allow arrow icons instead of the text left and right.
- made it so that left and right can be switched by the arrows.
*** THIS IS THE UPDATES ONLY***
- Fixed the sql due to messing up of box locations in the sort order
- Changed the location from varchar(64) which is alphabetic sorting to INT(5) which is numeric sorting
[b]This is the complete package[/b]
just updated code for ms2 2.2
I'm not too sure about this, but it seems that there are two bugs in the current version in the file catalog/includes/boxes/product_notifications.php (MS2). Please verify thsi if you encounter problems:
1) The constant "FILENAME_PRODUCT_NOTIFICATION" does not exist. Replace it with "FILENAME_ACCOUNT_NOTIFICATION"
2) In line 48 comment out "new infoBoxDefault($info_box_contents, true, true);"
Hope that helps,
Martin
This is a correction to infobox_configuration.php. The current version only works on MS1. infobox_configuration.php is the only file included.
Infobox Admin
Based on an idea by Michael Cohen
This contribution will allow you to select which Infoboxes to display on your site through the Admin panel.
You can also choose which column, and what order they are displayed in.
Written for osCommerce v2.2MS1/CVS
Also working on a loaded5 snapshot
Feedback/problems
Either post here or email me
