Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Information Pages Unlimited v1.0


348 replies to this topic

#281 zac123

  • Community Member
  • 80 posts
  • Real Name:zac

Posted 15 March 2010, 08:37

ok.. well a fix for this is:

simply remove:

?>
<script language="javascript" type="text/javascript" src="includes/javascript/tiny_mce/tiny_mce.js"></script>
<?php 
  require('includes/javascript/tiny_mce/general.php');
// END tinyMCE 
?>

from: admin/information_manager.php

Unfortunatly the instructions say:

Quote

tinyMCE compatibility: (If you hace CKEditor installed, this part is not necessary)

in admin/information_manager.phpUnfortunately:

***FIND:
</head>

***ADD BEFORE:
<?php // START tinyMCE
$mce_str='information_description[' . tep_db_prepare_input($gID) . ']';

?>
<script language="javascript" type="text/javascript" src="includes/javascript/tiny_mce/tiny_mce.js"></script>
<?php
require('includes/javascript/tiny_mce/general.php');
// END tinyMCE
?>

I dont have 'ckeditor' installed so i didnt ignore this part of the instructions. I think perhaps the instructions SHOULD say:

Quote

(If you hace FCKEditor installed, this part is not necessary)

This might sound like i'm being pedantic but if there is one thing i have learnt from these forums its that you MUST follow the instructions exactly otherwiose peopledint one wondidn'tt support yoI'motherwiseu.

Nice addon thanks very much. but the install doc could do with an overhaul.

thanks
zac

Edited by zac123, 15 March 2010, 08:38.


#282 zac123

  • Community Member
  • 80 posts
  • Real Name:zac

Posted 15 March 2010, 13:15

Hmm, ok so with a bit more testing i discovered that my FCKeditor is not displaying when i go to create a new 'info page'

i felt i needed to run through the install again to make sure i hadnt missed anything....


and i'm a bit confused. I'm looking at this part of the the install doc again:

Quote

===============================================================================
tinyMCE compatibility: (If you hace CKEditor installed, this part is not necessary)

in admin/information_manager.php:

***FIND:
</head>

***ADD BEFORE:
<?php // START tinyMCE
$mce_str='information_description[' . tep_db_prepare_input($gID) . ']';

?>
<script language="javascript" type="text/javascript" src="includes/javascript/tiny_mce/tiny_mce.js"></script>
<?php
require('includes/javascript/tiny_mce/general.php');
// END tinyMCE
?>
===============================================================================

so not only do i not have CKEditor installed but i dont have TinyMCE installed either! Having followed the install doc i DID install FCKEditor and i used an addon to do so; http://addons.oscommerce.com/info/2900, this worked fine, no probs at all.

also i notice that my admin/information_manager.php is calling <script type="text/javascript" src="./ckeditor/ckeditor.js"></script> in the <head> section. Ive tried changing that bit to read; fckeditor instead of CKEditor but didnt seem to make any difference.... hmmm....

i'll keep digging around but if anyone can spot anything wrong here, please do jump in.

thanks
zac

Edited by zac123, 15 March 2010, 13:17.


#283 www.in.no

  • Community Member
  • 235 posts
  • Real Name:Arild Evensen

Posted 15 March 2010, 14:26

Try to use the 2.06 version off information pages unlimited, as the latest 2.07 is adapted to ckeditor. 2.06 is for fckeditor.

#284 zac123

  • Community Member
  • 80 posts
  • Real Name:zac

Posted 15 March 2010, 15:04

oooohhhhh ok. or.... could i at this stage just swap my FCK for CK?

#285 zac123

  • Community Member
  • 80 posts
  • Real Name:zac

Posted 15 March 2010, 16:12

ok so i'm nearly there.... i can now get the FCKEditor to appear but its a little strange...

it completly takes over the text box and the only way i can actually see what i'm type is by collapsing the FCK so that it disapears. please see screen shots:

Edited by Mark Evans, 24 June 2010, 04:41.


#286 www.in.no

  • Community Member
  • 235 posts
  • Real Name:Arild Evensen

Posted 15 March 2010, 18:34

There is one place where you can set with and hight of fckeditor window size, but i dont recall where. You will have to look aroung or ask google.

#287 zac123

  • Community Member
  • 80 posts
  • Real Name:zac

Posted 15 March 2010, 19:29

I really dont know why i'm bothering with this. Its so poorly documented i'll probably find that once i do get it to actauly work its functionality is probably poor as well!

I cant get FCKEditor to display at all now.

I think i'll just start stripping out the files and restoring my db back to how it was before. :angry:

oh well, one out of five addons that isnt any good isnt a bad average.

#288 Drako

  • Community Member
  • 200 posts
  • Real Name:Drako

Posted 04 April 2010, 10:35

View Postzac123, on 15 March 2010, 19:29, said:

I really dont know why i'm bothering with this. Its so poorly documented i'll probably find that once i do get it to actauly work its functionality is probably poor as well!

I cant get FCKEditor to display at all now.

I think i'll just start stripping out the files and restoring my db back to how it was before. :angry:

oh well, one out of five addons that isnt any good isnt a bad average.

If i were you i won't complain about this nice app and i wuold try to fix it. From my poitn of view it's a great piece of software that need some fix here and there. It work great on my site with a few tune i did to fit my project.

Cheers everyone
my contribution: Alex's Contributions

#289 zac123

  • Community Member
  • 80 posts
  • Real Name:zac

Posted 04 April 2010, 11:05

Quote

If i were you i won't complain about this nice app and i wuold try to fix it. From my poitn of view it's a great piece of software that need some fix here and there. It work great on my site with a few tune i did to fit my project.

Cheers everyone

i'm incredibly grateful for the FREE add-ons that i get from this site. out of the 6 FREE add-ons i currently use i have made 3 donations to the authors. i would have made more donations but the other three did not display a donation button on their web-site.

what I’m not grateful for is add-ons that are poorly documented and haven’t been thoroughly tested. if the author cannot be bothered to release a fully working version then they should keep the add-ons to themselves and save us all the trouble.

i'm sure this add-on is great - if i had the time available to make it work!

#290 nicole zhang

  • Community Member
  • 9 posts
  • Real Name:nicole

Posted 11 June 2010, 10:42

Any one who can help me,please!!!!!!!!!!!!!!!!
I have installed the info-unlimited-v2.07,but it does work.I insert two pieces of information into the database throgh http://localhost/admin,but when I open this url "http://localhost/information.php" it shows

Sorry. Page Not Found.

Then I trace the code and find that codes below of the catalog/information.php was executed

if(!isset($_GET['info_id']) || !tep_not_null($_GET['info_id']) || !is_numeric($_GET['info_id']) )
{
$title = 'Sorry. Page Not Found.'; $breadcrumb->add($INFO_TITLE, tep_href_link(FILENAME_INFORMATION, 'info_id=' . $_GET['info_id'], 'NONSSL'));
}
else
{
$info_id = intval($_GET['info_id']);
$information_query = tep_db_query("SELECT information_title, information_description FROM " . TABLE_INFORMATION . " WHERE visible='1' AND information_id='" . $info_id . "' and language_id='" . (int)$languages_id ."'");
$information = tep_db_fetch_array($information_query);
$title = stripslashes($information['information_title']);
$page_description = stripslashes($information['information_description']);

// Added as noticed by infopages module
if (!preg_match("/([\<])([^\>]{1,})*([\>])/i", $page_description))
{
$page_description = str_replace("\r\n", "<br>\r\n", $page_description);
}
$breadcrumb->add($title, tep_href_link(FILENAME_INFORMATION, 'info_id=' . $_GET['info_id'], 'NONSSL'));
}

Could someone tell me how to fix this problem,and any help will be very very very appreciated!

#291 puddlec

  • Community Member
  • 118 posts
  • Real Name:Craig
  • Gender:Male
  • Location:UK

Posted 11 June 2010, 13:29

View Postnicole zhang, on 11 June 2010, 10:42, said:

Any one who can help me,please!!!!!!!!!!!!!!!!
I have installed the info-unlimited-v2.07,but it does work.I insert two pieces of information into the database throgh http://localhost/admin,but when I open this url "http://localhost/information.php" it shows

Sorry. Page Not Found.

Then I trace the code and find that codes below of the catalog/information.php was executed

if(!isset($_GET['info_id']) || !tep_not_null($_GET['info_id']) || !is_numeric($_GET['info_id']) )
{
$title = 'Sorry. Page Not Found.'; $breadcrumb->add($INFO_TITLE, tep_href_link(FILENAME_INFORMATION, 'info_id=' . $_GET['info_id'], 'NONSSL'));
}
else
{
$info_id = intval($_GET['info_id']);
$information_query = tep_db_query("SELECT information_title, information_description FROM " . TABLE_INFORMATION . " WHERE visible='1' AND information_id='" . $info_id . "' and language_id='" . (int)$languages_id ."'");
$information = tep_db_fetch_array($information_query);
$title = stripslashes($information['information_title']);
$page_description = stripslashes($information['information_description']);

// Added as noticed by infopages module
if (!preg_match("/([\<])([^\>]{1,})*([\>])/i", $page_description))
{
$page_description = str_replace("\r\n", "<br>\r\n", $page_description);
}
$breadcrumb->add($title, tep_href_link(FILENAME_INFORMATION, 'info_id=' . $_GET['info_id'], 'NONSSL'));
}

Could someone tell me how to fix this problem,and any help will be very very very appreciated!
theres no problem, you would need to have something like ?info_id=7 at the end of the url for it to find the page

e.g.
http://localhost/information.php?info_id=7

within the infomation box, there should be links to the content you created (unless it was the greatings message or homepage)
you click on those links and it finds the pages correctly

#292 nicole zhang

  • Community Member
  • 9 posts
  • Real Name:nicole

Posted 12 June 2010, 01:04

View Postpuddlec, on 11 June 2010, 13:29, said:

theres no problem, you would need to have something like ?info_id=7 at the end of the url for it to find the page

e.g.
http://localhost/information.php?info_id=7

within the infomation box, there should be links to the content you created (unless it was the greatings message or homepage)
you click on those links and it finds the pages correctly
You give me the push in the right direction,thank you very much! :P

#293 Francys

  • Community Member
  • 124 posts
  • Real Name:Francis
  • Gender:Male

Posted 22 June 2010, 22:49

Hi there,

I have installed information pages last version 207 and it's working, when i click the link of the article entitled puppets www.mysite.com/information.php?info_id=7 i can see the info page regarding puppets info.

What doesnt appear is the Puppets article page in the infobox on column left, near contact us or terms.

my boxes/information.php code is this:
<?php
/*
  $Id: information.php 1739 2007-12-20 00:52:16Z hpdl $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
*/
?>
	<!-- information //-->
          <tr>
            <td>
<?php
    // BOF code added Add-on - Information Pages Unlimited
  require_once(DIR_WS_FUNCTIONS . 'information.php');
    // EOF code added Add-on - Information Pages Unlimited  
  $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>' .
                                         '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' .
                                         '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' .
//BOF code news blog  
                                         '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>
                                          <br><a href="' . tep_href_link(FILENAME_NEWS) . '">News</a><br>'.
//EOF code news blog
/***** BOF  code added End Sitemap_SEO *****/
                                          '<a href="' . tep_href_link(FILENAME_SITEMAP_SEO) . '">' . BOX_INFORMATION_SITEMAP_SEO . '</a>');
/***** EOF  code added End Sitemap_SEO *****/			

  new infoBox($info_box_contents);
?>
            </td>
          </tr>
<!-- information_eof //-->


#294 Francys

  • Community Member
  • 124 posts
  • Real Name:Francis
  • Gender:Male

Posted 23 June 2010, 23:06

View Postpuddlec, on 11 June 2010, 13:29, said:

theres no problem, you would need to have something like ?info_id=7 at the end of the url for it to find the page

e.g.
http://localhost/information.php?info_id=7

within the infomation box, there should be links to the content you created (unless it was the greatings message or homepage)
you click on those links and it finds the pages correctly

I read carefully all this thread pages, and haven't found the answer to the problem im trying to sort... so can't say i haven't tried... everything runs smoothly and i can create nice info pages, but the problem is that it isn't showing the created content in the information box.

If anyone knows to sort this reply is appreciated really

Have here nice tools and sorting now thanks

Edited by Mark Evans, 24 June 2010, 04:43.


#295 dgriff

  • Community Member
  • 348 posts
  • Real Name:Jim
  • Gender:Male

Posted 05 July 2010, 16:31

Hi
I'm having a little problem with editing my information pages using the WYSIWYG editor. I put some code into the box and hit update. I get the message that the changes have been applied successfully but when I refresh my website, the changes have not taken place and when I go back into the editor and check the code, the code in the window is not the same code that I put in. Looks like the editor is changing some code on me. Is this a bug? Or is there something I'm doing wrong? Thanks.

#296 Francys

  • Community Member
  • 124 posts
  • Real Name:Francis
  • Gender:Male

Posted 10 July 2010, 01:16

Hi all,

It's amazing that people should give more attention, when adding updates to contributions, the minimum that is asked is to read what is written in the contribution thread. If this is not done when a new update to info_pages comes up a problem is sorted, but some already spoted bugs may not be sorted.

How to make this nice contribution to work properly:

1 - go to addon infos download info-unlimited-v2.07 --- escri version

2 - follow all instructions steps

2.1 - YES YOU SHOULD OPT WITH CKEDITOR it's the most advanced html editor, and it is ultra easy to install, just d/l it from ckeditor website and upload it to your server.

2.2 - if you are going for welcome pages (which i think you should) the sql is ok, bear in mind for n-languages websites you will need to create n x sql_additional (and dont forget your language id)

3 - After you do everything right, and finishing escri version instructions, you will now fix the following bugs:

3.1 BreadCrumbs not showing parent Ids properly

This is not accurate but i have worked it out and this version works to show properly the breadcrumbs:

/// Added for information pages
	if(!isset($_GET['info_id']) || !tep_not_null($_GET['info_id']) || !is_numeric($_GET['info_id']) ) 
	{
		$title = 'Sorry. Page Not Found.';
		$breadcrumb->add($INFO_TITLE, tep_href_link(FILENAME_INFORMATION, 'info_id=' . $_GET['info_id'], 'NONSSL'));
	} 
	else 
	{
		$info_id = intval($_GET['info_id']);
		$information_query = tep_db_query("SELECT parent_id, information_title, information_description FROM " . TABLE_INFORMATION . " WHERE visible='1' AND information_id='" . $info_id . "' and language_id='" . (int)$languages_id ."'");
		$information = tep_db_fetch_array($information_query);
		$title = stripslashes($information['information_title']);
		$page_description = stripslashes($information['information_description']);
	
		// Added as noticed by infopages module
		if (!preg_match("/([\<])([^\>]{1,})*([\>])/i", $page_description)) 
		{
		  	$page_description = str_replace("\r\n", "<br>\r\n", $page_description); 
		}
	  	// if assigned to Parent - get parent too :)
  $parent = $information['parent_id'];
  if ($parent > '0') {
        $information_parent_query = tep_db_query("SELECT information_title FROM " . TABLE_INFORMATION . " WHERE information_id='" . $parent . "' and language_id='" . (int)$languages_id ."'");
   		$information_parent = tep_db_fetch_array($information_parent_query);
   		$parent_title = stripslashes($information_parent['information_title']);
  		$breadcrumb->add($parent_title, tep_href_link(FILENAME_INFORMATION, 'info_id=' . $parent, 'NONSSL'));
   		$breadcrumb->add($title, tep_href_link(FILENAME_INFORMATION, 'info_id=' . $_GET['info_id'], 'NONSSL'));
 } else {
 		$breadcrumb->add($title, tep_href_link(FILENAME_INFORMATION, 'info_id=' . $_GET['info_id'], 'NONSSL'));
}
	}
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>


3.2 Another issue to fix has to do with children infopages don't update in information box


Quote

View Postnikita, on 04 October 2007, 12:55, said:


Uhh, sorry, there're another one small bug.
Now to show subcategories open catalog/includes/function/informatio.php find the line instances:
for ( $i = 1; $i < ($count_child+1); $i++ ) {
and replace with this:
for ( $i = 0; $i < ($count_child); $i++ ) {
And now it works for me with subcategories!


3.3 Edit catalog/includes/languages/yourlanguage.php (only if you have welcome pages as info pages) and:

find:
define('TEXT_GREETING_PERSONAL'
define('TEXT_GREETING_PERSONAL_RELOGON',
define('TEXT_GREETING_GUEST',

and replace for:
//define('TEXT_GREETING_PERSONAL'
//define('TEXT_GREETING_PERSONAL_RELOGON',
//define('TEXT_GREETING_GUEST',


4 This sorts it out. Everything works.

CONCLUSION: When adding updates is appreciated to check the forums so nothing is by passed in terms of solutions.

Edited by Francys, 10 July 2010, 01:27.


#297 Nathali

  • Community Member
  • 368 posts
  • Real Name:Nathali
  • Gender:Female

Posted 04 August 2010, 14:28

Hi,

I would like to remove Information Pages Unlimited Contribution.

Could someone help me what the syntax I should use in phpadmin to remove the contribution tables?

would it be..

DROP TABLE IF EXISTS `information`;
DROP TABLE IF EXISTS `information_group`;

what about `configuration_group` TABLE and `configuration` TABLE ??? I should also remove some tables there.. right?

Could someone please tell me the complete syntax to use?

Thank you in advance !

Best Regards,

Nathali
Best Regards,
Nathali

#298 robyna

  • Community Member
  • 14 posts
  • Real Name:robyna
  • Gender:Not Telling

Posted 04 August 2010, 18:23

Hi.
I've played around with this great application and managed to accomplish 2 things I've seen people here are asking about, so here it goes:

To apply the application to a separate box:
Duplicate the information box, as you would when adding a new box (there are instructions on adding a new box in the docs that come with the original installation of osc) - on the original information box, comment out the added code for info pages unlimited, and in the new information box (make sure you name it something else) comment out the default pages (conditions, shipping, contact etc...)
add your new box to column left or right and voila.

as for adding SEO meta tags
Header Tags SEO : http://addons.oscommerce.com/info/5851
has an option for adding Pseudo Pages that works great with info pages unlimited & has very detailed and coherent instructions on how to do it.

If anyone has figured out how to make IPU work with more than one box , or how to have pages not show up on a menu but linkable from elsewhere, I would love to know

Thanks for a great addon!

#299 admtools

  • Community Member
  • 10 posts
  • Real Name:Andy

Posted 14 August 2010, 22:21

Hi,

I have followed the installation instructions for this (I am assuming correctly!)

The Info manager box has appeared in the admin section of my store, but when I create a page with it and click insert, I get the following:

Warning: Cannot modify header information - headers already sent by (output started at /home/admtools/public_html/admin/includes/languages/english.php:306) in /home/admtools/public_html/admin/includes/functions/general.php on line 22


Please advise.

Thanks in advance.

#300 admtools

  • Community Member
  • 10 posts
  • Real Name:Andy

Posted 15 August 2010, 00:07

This seems to be sorted now but although all is ok in admin, nothing appears on the homepage.

Please advise.

Thanks in advance.