Community Add-Ons
Information Pages Unlimited v1.0
for osCommerce Online Merchant v2.2
Module: Information Pages Unlimited v1.0 (2003/02/25)
Based on the FAQ script of adgrafics
Information Pages Unlimited system can:
1.Multilanguage automatically
2.Create Unlimited information entries
3. Edit information entries
4.Delete information entries
5.Activation / DeActivation the information entries
6.Change Queue
Legend:
Download
Report
This is the Greek translation by Fedon Dimopoulos for Information Pages Unlimited v1.0.
Instructions included.
Full add-on NOT included.
Just changed 1 file /catalog/admin/information_form.php
Now the descriptions and titles are tabbed into languages
FULL PACKAGE
The languages were encoded incorrectly, and there was an error in the install instructions. Download this version, not my May 25th version.
FULL PACKAGE
The following is Information Pages Unlimited v2.05 for osCommerce v2.3.1.
I have removed all the old WYSIWYG code, allowing you to add the one you like. Personally with v2.3.1 I like using TinyMCE, that way you don't have to edit anything.
FULL PACKAGE
English______________
Adapted to CKEditor
Español_____________
Adaptado a CKEditor
FULL PACKAGE
English_______
Added "´s;" in admin to define the Spanish language in information.php
Adapted for the FCK Editor, not to Tiny MCE
If you use TinyMCE Bux fixes in previous contributions
Español______
Añadido "´s" en defines de admin para lenguaje Españolen information.php
Está adaptado para FCK Editor, no para Tiny MCE
Si usas TinyMCE bux fixes en las contribuciones anteriores
There is an error in the call to tep_draw_textarea_field. Just replace one line and information text can been seen and edited again in ADMIN when you are using TineyMCE.
This is just a small fix to get TinyMCE running with Information Pages Unlimeted.
Contains a small fix to DB to add configuration option to enable TinyMCE.
Run this in phpmyadmin. Remember to check the 2 values 1184 (configuration_id) and 16 (configuration_group_id) that they fit with your instalation.
INSERT INTO `configuration` VALUES (1184, 'TinyMCE aktiv', 'DESCRIPTION_TINYMCE_EDITOR', 'true', 'Bruke TinyMCE til editering.', 16, 1, '2009-03-24 15:02:35', '2007-05-13 06:37:14', NULL, 'tep_cfg_select_option(array(''true'', ''false''),');
The changes that need to be made with admin/information_manager.php is to add this code before the closing </HEAD> tag.
<?php // START tinyMCE Anywhere
if (DESCRIPTION_TINYMCE_EDITOR == 'true')
{
if ($information_action == 'Edit' || $information_action == 'Added') { // No need to put JS on all pages.
$languages = tep_get_languages(); // Get all languages
$str = '';
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$str .= "information_description[".$languages[$i]['id']."],";
} //end for each language
$mce_str = rtrim ($str,","); // Removed the last comma from the string.
// You can add more textareas to convert in the $str, be careful that they are all separated by a comma.
echo '<script language="javascript" type="text/javascript" src="includes/javascript/tiny_mce/tiny_mce.js"></script>';
include "includes/javascript/tiny_mce/general.php";
// END tinyMCE Anywhere
}
}
?>
Thanks to Jack_mcs (Header Tags SEO V 3.0) for this code, only modifyed it to fit here.
TinyMCE used is http://addons.oscommerce.com/info/4852 installed when installing HT SEO 3.0
english________
File admin/information_manager had a little bug.
(Warning: "Headers already sent" or "Cannot modify header information")
español_______
Archivo admin/information_manager tenía un pequeño error.
(Warning: "Headers already sent" or "Cannot modify header information")
FULL PACKAGE
I started using IPUV a little more in depth and added a few changes to make it a little more user friendly and a little more intuitive.
+ added standard osc update successful message with green bar at top of page instead of in the page heading.
Full Package+Update Guide
basically apurba_soft changed some variable names and values from german? to english in the sql database and revised the configuration id's.
+ fixed sql insert query ture to true
+ included most apurba_soft's changes
+ added update guide from 2.04.6(lildog) to 2.0.47
+ renamed revisions to history.txt
- i removed apurba softs' FCK_Editor height change in information_form.php as it is set in the configure section.
FULL package + update guide
Information Pages Unlimited v1.0 Update.......
Ver: (ipuv2046)
Please use this.............
Bug fix...........
Please checkout the bugfix.txt.
Thanks.
Information Pages Unlimited v1.0 Update.......
Ver: (ipuv2046)
Bug fix...........
Please checkout the bugfix.txt.
Thanks.
Information Pages Unlimited v1.0 Upadte.......
(ipuv2046)
Bug fix...........
Please checkout the bugfix.txt.
Thanks.
ipuv2046 Upadate.........
See the bugfix.txt...............
Thanks.
* added a list of files added and changed for easy un-installation if needed.
+ added compatibility note for tinyMCE anywhere
I found this important fix on the forum. Certainly this is a needed fix so here goes. All credit goes to Ezio Caffi
The file includes this same text here and not the full package.
Nothing seem to happen if you try to activate/deactivate the information by click on the bullet in the "Information pages" page.
This is what I've been doing:
In file
admin/information_manager.php two new line added
CODE
[...]
273 case 'Visible':
+ $information_id = $_GET['information_id'];
+ $visible = $_GET['visible'];
274 if ($visible == '1') {
275 $vivod=DEACTIVATION_ID_INFORMATION;
276 tep_db_query("update " . TABLE_INFORMATION . " set visible = '0' where information_id = '" . (int)$information_id . "'");
277 }
278 else {
279 $vivod=ACTIVATION_ID_INFORMATION;
280 tep_db_query("update " . TABLE_INFORMATION . " set visible = '1' where information_id = '" . (int)$information_id . "'");
281 }
282 $data=tep_get_information_list();
283 $title="$confirm $vivod $information_id " . SUCCED_INFORMATION . "";
284 include('information_list.php');
285 break;
[...]
eZio
Added the Spanish language files for Admin and Catalog
v2.04 Revision by AVS-PROS (2008/03/22)
************************************
* full register globals off compatible
* better german translation
* fixed broken icons
+ better FCKeditor support (enable/disable in configuration menu)
- no TinyMCE
SQL statements for FCKeditor configuration support (change group id 16 if taken):
-----------------------------------
INSERT INTO `configuration_group` (`configuration_group_id`, `configuration_group_title`,
`configuration_group_description`, `sort_order`, `visible`) VALUES
('16', 'HTML-Editor', 'HTML-Editor Optionen', 16, 1);
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`,
`configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`,
`last_modified`, `date_added`, `use_function`, `set_function`) VALUES
(182, 'FCKeditor verwenden', 'DESCRIPTION_EDITOR', 'ja', 'Soll der HTML-Editor für
Beschreibungen benutzt werden?', 16, 1, '2008-03-20 22:40:05', '2007-05-13 06:37:14', NULL,
'tep_cfg_select_option(array(''ja'', ''nein''),'),
(183, 'Höhe FCKeditor', 'FCK_EDITOR_HEIGHT', '600', 'Höhe der Eingabefelder in Pixel
bei Verwendung des FCK-Editors.', 16, 2, '2007-12-17 01:08:56', '2007-05-13 06:37:14', NULL,
NULL);
*********************************************UPDATE FOR USERS OF "WYSIWYG HTMLArea MS2 v1.7" CONTRIBUTION******************************************
1)Open catalog/admin/information_form.php file
====================================================================================
- Find this lines:
====================================================================================
<tr>
<td class="pageHeading"><?php echo $title ?></td>
</tr>
====================================================================================
And directly UNDERNEATH IT add this:
====================================================================================
<script language="Javascript1.2"><!-- // load htmlarea
// MaxiDVD Added WYSIWYG HTML Area Box + Admin Function v1.7 - 2.2 MS2 Products Description HTML - Head
_editor_url = "<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_ADMIN; ?>htmlarea/"; // URL to htmlarea files
var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; }
<?php if (HTML_AREA_WYSIWYG_BASIC_PD == 'Basic'){ ?> if (win_ie_ver >= 5.5) {
document.write('<scr' + 'ipt src="' +_editor_url+ 'editor_basic.js"');
document.write(' language="Javascript1.2"></scr' + 'ipt>');
} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }
<?php } else{ ?> if (win_ie_ver >= 5.5) {
document.write('<scr' + 'ipt src="' +_editor_url+ 'editor_advanced.js"');
document.write(' language="Javascript1.2"></scr' + 'ipt>');
} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }
<?php }?>
// --></script>
====================================================================================
- Find this lines:
====================================================================================
echo ' <a href="' . tep_href_link(FILENAME_INFORMATION_MANAGER, "gID=$gID", 'NONSSL') . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>';
?></td>
</tr>
</table>
</td>
</tr>
</form>
====================================================================================
And directly UNDERNEATH IT add this:
====================================================================================
<?php
//MaxiDVD Added WYSIWYG HTML Area Box + Admin Function v1.7 - 2.2 MS2 Products Description HTML - </form>
if (HTML_AREA_WYSIWYG_DISABLE == 'Disable') {} else { ?>
<script language="JavaScript1.2" defer>
var config = new Object(); // create new config object
config.width = "<?php echo HTML_AREA_WYSIWYG_WIDTH; ?>px";
config.height = "<?php echo HTML_AREA_WYSIWYG_HEIGHT; ?>px";
config.bodyStyle = 'background-color: <?php echo HTML_AREA_WYSIWYG_BG_COLOUR; ?>; font-family: "<?php echo HTML_AREA_WYSIWYG_FONT_TYPE; ?>"; color: <?php echo HTML_AREA_WYSIWYG_FONT_COLOUR; ?>; font-size: <?php echo HTML_AREA_WYSIWYG_FONT_SIZE; ?>pt;';
config.debug = <?php echo HTML_AREA_WYSIWYG_DEBUG; ?>;
<?php for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { ?>
editor_generate('information_description[<?php echo $languages[$i]['id']; ?>]',config);
<?php } } ?>
</script>
2)And if you don't want to overwrite to old information file than use with this way, Open catalog/includes/boxes/information.php file
====================================================================================
Find this lines:
====================================================================================
<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_INFORMATION);
new infoBoxHeading($info_box_contents, false, false);
$info_box_contents = array();
$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .
====================================================================================
And replace with this lines:
====================================================================================
<?php
// Add-on - Information Pages Unlimited
require_once(DIR_WS_FUNCTIONS . 'information.php');
$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_INFORMATION);
new infoBoxHeading($info_box_contents, true, false);
$info_box_contents = array();
$info_box_contents[] = array('text' => tep_information_show_category() .
'<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .
THAT'S ALL!
2.04.2
-Better integration of information pages in the osc stock layout. Same layout as privacy, shipping, ...
-Bugfix of WhiteKnight (19 Nov 2007) added
-Added 2 versions of information_form.php: one is if you have FCK editor installed, one is standard without FCK editor.
-Changed instructions about FCK editor integration
There is a missing <?php tag in information_manager as reported on 30-May-2007 below.
This is just that 1 file with the tag fixed. This works with IPUV2.04.1 from 4-Oct-2007. (The 30-May file below seems to not be the fixed one anymore?)
Sorry I found another one bug to show subcategories below the parent categories.
I just fixed Freeman's last release (added on 18 Feb 2007).
There was 3 bugs:
- first in catalog/includes/functions/information.php
- second in admin/information_form.php
- third also in catalog/includes/functions/information.php
Who earlier have downloaded Freeman's release, please, make the following corrections, see my post in forum: http://forums.oscommerce.com/index.php?s=&showtopic=179289&view=findpost&p=1145411
Who haven't downloaded his contribution, please, download and install this.
** This is full package.
I just fixed Freeman's last release (added on 18 Feb 2007).
There was 2 bugs:
- first in catalog/includes/functions/information.php
- second in admin/information_form.php
Who earlier have downloaded Freeman's release, please, make the following corrections, see my post in forum: http://forums.oscommerce.com/index.php?s=&showtopic=179289&view=findpost&p=1145411
Who haven't downloaded his contribution, please, download and install this.
** This is full package.
There is a missing <?php tag in the information_manager.php
Have attached just the fixed file...
Ok. Feel officially kinda stupid. I had attached an old version of catalog information.php. Won't do it again, promised ;) (Thx Freeman for letting me know).
* Replaced original catalog/information.php
* Fixed routine in includes/functions/information.php
FOR SUGGESTIONS/HELP: http://forums.oscommerce.com/index.php?showtopic=179289
Updated a few strings into file catalog/information.php to make it work properly.All creds to Joeri which brought this cool contribution really forward from what it was since latest release.Full pack included.
* Fixed language routines (As noted in the support forum)
+ Multi languages support (By standard OsCommerce behavior - finally)
+ Added some new languages (now IPU has: dutch, german, portugese, and english)
+ Added support for dynamic groups in IPU. Same behavior like OsCommerce's 'configuration'
+ Added 'Main page' editing support (by using the dynamic groups)
* Use default (english) language when people forgot to install their own language (this to avoid ugly define statements)
* Renamed and re-ordered the db table names - according Oscommerce style
* Completely checked and adjusted (where needed) the existing code
* Completely re-wrote the 'readme.txt' file
* Moved essential functions to a seperate file (functions/information.php), so adjustments would be kept small and clean
* Fixed behavior of the parent/child pulldown
* Made some cosmetic changes to the backend
- Removed article behavior of displaying childs next to heading (catalog)
NOTE: To old IPU users, please do a fresh install of IPU as the database layout hase changed dramatically
FOR SUGGESTIONS/HELP: http://forums.oscommerce.com/index.php?showtopic=179289
Same version of Thunderace, just fixed a security breach that has been in IPU since the very start... :s
PS. Amazing... Haven't been active for years, it comes as a pleasant surprise this contribution is still being developed. Great job people!
This is a full package.
>>Adds a new table to the DB parent_id
>>Each page can have children (One layer)
>>Articles menu works like standard osC categories
>>Support for dynamic sitemap
just add <?php echo $sitemapString; ?> before the final </ul> on about line 76 of catalog/dynamic_sitemap.php to show all your articles and their children.
>>Admin support where pages can be assigned "parents"
>>catalog/information.php replaces right hand image opposite the TITLE with a list of page "children".
Great contribution and great work to all who have participated in its development.
This is a complete package that includes the following modifications:
-Updated the information.php box file to use the osC 2.2 functions
-Updated the catalog information.php to check if the id is set and if not, it will display Sorry. Page Not Found as the title.
-Made some cosmetic changes to the backend.
-Removed 1 file that is no longer needed.
Great Work,
Tornadoburn.com Team
This is an excellent piece of work but has been modified in to various branches by others... here is is the Support Thread for this contribution, let's see if we can use this script to it's maximum potential:
http://forums.oscommerce.com/index.php?showtopic=179289
This is a derivative of the excellent Information Unlimited package. This derivative adds the following functions to Information Unlimited:
1. Menu items can have children, grand-children etc. (5 levels deep)
2. The selected menu item is highlighted with a small bullet to the left
3. Menu items can point to any URL, not simply to other info_id pages
The bad news is that I achieved this by hacking the code. The code is so hacked that switching back to standard Information Unlimited would be difficult. This should really be considered a fork.
The worse news is that there is no admin module for what I have created and that this hack is incompatible with the admin module of Information Unlimited. Once you begin to use this fork, you must stop using the old admin module and maintain the table 'information' manually.
Latest version with the SQL file attached as it was missing on the previous version
Now You Can delete information entries.
In distributions 1.1e, 1.1f, 1.1g, the SQL query within:
catalog/information.php
was not adapted to multi-lingual sites. This file corrects this problem.
I've made a typo. The file catalog/includes/boxes/information.php wasn't fixed. Here is the correct contribution.
This is my first contribution, and a very small one: I've updated release 1.1e with portuguese translation. I've also made other small changes, so please read the included ReleaseNotes-v1.1f.txt Text File.
there is a missing closing table tag in information.php. This makes the footer move to the right hand side.
the second closing table tag needs to be added in line 93.
91 <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
92<!-- right_navigation_eof //-->
93 </table> </table></td>
94 </tr>
95</table>
96<!-- body_eof //-->
I did small changes to v1.1d just to make it works with multilanguage sites.
I hope it works.
--
Janusz
1.1d Revision:
- The installation procedure is simplified. The original was not working properly.
- Installation is now like all the other contributions.
- Only the redirections are edited). The core remains the same as in 1.1c
- All credit goes to Joeri Stegeman for the core code and FAQ script of adgrafics
Small update:
Output now detects whether the info is HTML code or PLAIN text and threads it that way. (As suggested by Stuart Owens/Greg Williams).
Bugs fixed:
- Showing incorrect breadcrumbs
- If OsCommerce session was on, the pages failed to load.
- Forgot to include the INFO_FILENAME
Just got emailed. It appeared I left behind a FAQ_BOX in the code, which caused some trouble. Removed it and tested it.
Same product, just the thing I had forgotten was:
1. To not show a listing if it was set on NOT shown in the admin. (Ahum)
2. Strip slashes on output from the db.
Should be working nice and smooth now!
Joeri
Module: Information Pages Unlimited v1.0 (2003/02/25)
Based on the FAQ script of adgrafics
Information Pages Unlimited system can:
1.Multilanguage automatically
2.Create Unlimited information entries
3. Edit information entries
4.Delete information entries
5.Activation / DeActivation the information entries
6.Change Queue
