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
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
