Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Information Pages Unlimited v1.0


chooch

Recommended Posts

I came here to the forum to see if this had just this thing. If you get it working that would be really good. The ability to edit Title, keywords and description is key.

I am working on some stuff at the moment but will try a different angle on this, maybe the Header Tags Controller can be modified to account for this contribution. I can't start testing things until the middle of next week but will let you know if I have success.

Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Link to comment
Share on other sites

But I dont find an option to EDIT WELCOME messages

 

I suspect your main language is not English anymore, and so not set to ID=1.

 

To illustrate, have a look in your install package (sql\information_additional.sql) and you will find the following:

INSERT INTO `information` (`information_id`, `information_group_id`, `visible`, `sort_order`, `information_title`, `information_description`, `language_id`, `parent_id`) VALUES (1, 2, '1', 1, 'HEADING_TITLE', 'What\'s New Here?', 1, 0);

 

The before last 1 in this code is your language ID. This should be set to your main language. So, find out what your main language ID is, and change all those (before last) 1's to your language ID. Then upload the SQL file again.

 

If it works, let the forum know it worked, or not.

Link to comment
Share on other sites

  • 3 weeks later...
Did anyone ever get it to work with "WYSIWYG HTMLArea FOR PRODUCT DESCRIPTIONS v1.7" - I read nigecon question earlier - and it seems he never got an answer??

 

Please

Helle :-)

 

I'd like to know that too. I have HTML Area installed from this contribution here: http://www.oscommerce.com/community/contributions,1347

So I'd like to use it for this one too.

 

I've been trying all day by comparing with other contributions that use HTML Area, but since I'm no programmer, I can't get it working.

 

This is what I've been doing:

 

 

In file information_manager.php added the code below just before </head>:

 

 

<script language="Javascript1.2"><!-- // load htmlarea
// MaxiDVD Added WYSIWYG HTML Area Box + Admin Function v1.7 - 2.2 MS2 HTML Newsletter <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_INFORMATION == '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>

<script language="javascript" src="includes/general.js"></script>

 

In file information_form.php right after

 

		<td class="main" valign="top"><?php echo tep_draw_textarea_field('information_description[' . $languages[$i]['id'] . ']', '', '100', '20', (($languages[$i]['id'] == $languages_id) ? stripslashes($edit[information_description]) : tep_get_information_entry($information_id, $languages[$i]['id'], 'information_description'))); ?></td>

 

added the following code:

 

  <?php if (HTML_AREA_WYSIWYG_DISABLE_INFORMATION == 'Disable') {} else { ?>
  <script language="JavaScript1.2" defer>
	  // MaxiDVD Added WYSIWYG HTML Area Box + Admin Function v1.6.5 Products Description HTML - Body
		 var config = new Object();  // create new config object
		 config.width = "<?php echo DEFINE_INFORMATION_WYSIWYG_WIDTH; ?>px";
		 config.height = "<?php echo DEFINE_INFORMATION_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; ?>;
		 // More Configs can added here:
		 // Dreamscape added Dynamic Language Function
	  editor_generate('information_description',config);
   <?php } ?>
 </script>

 

Inserted the following into DB:

 

INSERT INTO `configuration` VALUES (2104, 'PAGE MANAGER use WYSIWYG HTMLAREA?', 'HTML_AREA_WYSIWYG_DISABLE_INFORMATION', 'Enable', 'Use WYSIWYG Area in Define Mainpage', 112, 40, '2007-03-22 16:26:59', '2007-03-22 16:26:59', NULL, 'tep_cfg_select_option(array(''Enable'', ''Disable''),');
INSERT INTO `configuration` VALUES (2105, 'Page Manager Basic/Advanced Version?', 'HTML_AREA_WYSIWYG_BASIC_INFORMATION', 'Advanced', 'Basic Features FASTER<br>Advanced Features SLOWER', 112, 41, '2007-03-22 16:28:06', '2007-03-22 16:26:59', NULL, 'tep_cfg_select_option(array(''Basic'', ''Advanced''),');
INSERT INTO `configuration` VALUES (2106, 'Page Manager Layout Width', 'INFORMATION_WYSIWYG_WIDTH', '605', 'How WIDE should the HTMLAREA be in pixels (default: 505)', 112, 42, '2007-03-22 16:26:59', '2007-03-22 16:26:59', NULL, '');
INSERT INTO `configuration` VALUES (2107, 'Page Manager Layout Height', 'INFORMATION_WYSIWYG_HEIGHT', '300', 'How HIGH should the HTMLAREA be in pixels (default: 140)', 112, 43, '2007-03-22 16:26:59', '2007-03-22 16:26:59', NULL, '');

 

 

This is as far as I could get. But I'm still getting a javascript error and can't get it to work.

Can somebody please shed a light here? :blink:

Edited by Patty

Patty

Link to comment
Share on other sites

im so glad to see a new version with so much more function!

 

i was using v1.3a and tried to make a fresh install today.

everything is fine except whenever i click any of the titles, it comes out 'Page not found' and

'The requested information page was not found on this server.'

i did check the sql and i saw those descriptions i typed.

 

can anyone help fixing this problem?

Link to comment
Share on other sites

im so glad to see a new version with so much more function!

 

i was using v1.3a and tried to make a fresh install today.

everything is fine except whenever i click any of the titles, it comes out 'Page not found' and

'The requested information page was not found on this server.'

i did check the sql and i saw those descriptions i typed.

 

can anyone help fixing this problem?

 

 

i just tried to use the catalog/information.php in v2.02

now contents do show, but only the top ones can show...

i mean, if a page is under a parent page, it disappeared in the catalog

what should i do now? sorry if bother but i really need help >_<

Link to comment
Share on other sites

Hello,

 

I use v1.3 of this wonderful (Information Pages Unlimited) contribution that includes the parent/child feature for the information pages.

 

Unfortunately, the way it's currently constructed is that the breadcrumb doesn't add a child's parent ID's title (if one exists), so we jump from the child directly to the catalog if we want to go back.

 

I tried to add something like

 

before the "regular" breadcrumb insert in the information.php page and update the SQL query to include the parent_id, but I'm not a strong php coder, so it doesn't work (I don't know how to check what happens if the $parent is NULL and how to extract the $parent_title information if one exists).

 

Would anyone care to help me on this?

 

Thanks,

 

David

 

PS. I opened a new topic by mistake. I apologize in advance for the double-post. I wish there was an option to remove a post that you created.

 

I needed this. I've needed it before but never had time to jack with it. Considering what the purpose of the breadcrumbs is, this probably should be standard code for the contrib. Maybe it is now or will be :thumbsup:

   // Added for information pages
 if(!isset($HTTP_GET_VARS['info_id']) || !tep_not_null($HTTP_GET_VARS['info_id'])) {
  $title = 'Sorry. Page Not Found.';
 $breadcrumb->add($INFO_TITLE, tep_href_link(FILENAME_INFORMATION, 'info_id=' . $HTTP_GET_VARS['info_id'], 'NONSSL'));
} else {
$info_id = $HTTP_GET_VARS['info_id'];
 $information_query = tep_db_query("SELECT parent_id, info_title, description FROM " . TABLE_INFORMATION . " WHERE visible='1' AND information_id='" . $info_id . "'");
 $information = tep_db_fetch_array($information_query);
  $title = stripslashes($information['info_title']);
  $description = stripslashes($information['description']);

 // if assigned to Parent - get parent too :)
 $parent = $information['parent_id'];
 if ($parent >= '0') {
 $information_parent_query = tep_db_query("SELECT info_title FROM " . TABLE_INFORMATION . " WHERE information_id='" . $parent . "'");
  $information_parent = tep_db_fetch_array($information_parent_query);
  $parent_title = stripslashes($information_parent['info_title']);
  $breadcrumb->add($parent_title, tep_href_link(FILENAME_INFORMATION, 'info_id=' . $parent, 'NONSSL'));
  $breadcrumb->add($title, tep_href_link(FILENAME_INFORMATION, 'info_id=' . $HTTP_GET_VARS['info_id'], 'NONSSL'));
} else {
$breadcrumb->add($title, tep_href_link(FILENAME_INFORMATION, 'info_id=' . $HTTP_GET_VARS['info_id'], 'NONSSL'));
}
 }

 // Added as noticed by infopages module
 if (!preg_match("/([\<])([^\>]{1,})*([\>])/i", $description)) {
  $description = str_replace("\r\n", "<br>\r\n", $description); 
 }

Link to comment
Share on other sites

How do I REMOVE this MOD? I know what files to restore, but could someone post SQL commands to remove the updates that the instal SQL commands put in place?

 

Thanks in advance!

 

PS: If interested, I am having to remove this MOD because it does not work well with my template and I don't have time to adjust it unfortunately.

Link to comment
Share on other sites

I am using Information Pages Unlimited v2.03 with Ultimate SEO URLs - 2.1d. When I upgraded from Info Pages 1.3 to 2.0, it broke the urls for information.php. They all show up as /catalog/-i-1.html?osCsid=df....

 

The entry in .htaccess is

 

RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING}

 

does anyone know how to correct the urls?

 

I also have Sitemap 2.2 installed and <?php echo $sitemapString; ?> doesn't work as well as it used to. All the entries are up one level on the list. I can probably fix this one pretty easily when I sit down and take a look at that function.

 

Any help on the seo url would be appreciated.

 

Thanks

 

-Mike

Link to comment
Share on other sites

How do I REMOVE this MOD? I know what files to restore, but could someone post SQL commands to remove the updates that the instal SQL commands put in place?

 

Thanks in advance!

 

PS: If interested, I am having to remove this MOD because it does not work well with my template and I don't have time to adjust it unfortunately.

 

to remove the sql databases, use the following 2 commands

 

DROP TABLE IF EXISTS `information`;

DROP TABLE IF EXISTS `information_group`;

Link to comment
Share on other sites

Firstly I would like to thank you for the excellent contribution.

 

I have to refer a conflict with the contribution:

 

Meta Tags On The Fly

http://www.oscommerce.com/community/contributions,4971/category,all/search,meta+tags+on+the+fly

 

The solution is to replace every $description variable in the catalog/information.php to something else (like $description_pages).

Spyros

Link to comment
Share on other sites

  • 3 weeks later...

Hello

 

I am having a problem with UPI module:

 

after the installation, I add some information pages and it was ok.

 

Yesterday I was adding content to that new info pages and the links in the info box desapeared...

 

I had to delete all info pages and add a new one and again, at the first time everitinhg goes ok, but after an update the link desapeares...

 

HELP, please!!!!!

Link to comment
Share on other sites

Hello

 

I am having a problem with UPI module:

 

after the installation, I add some information pages and it was ok.

 

Yesterday I was adding content to that new info pages and the links in the info box desapeared...

 

I had to delete all info pages and add a new one and again, at the first time everitinhg goes ok, but after an update the link desapeares...

 

HELP, please!!!!!

Link to comment
Share on other sites

when I add the sql in information.sql using phpmyadmin I get:

Error
SQL query: 

CREATE TABLE `information` (

`information_id` tinyint( 3 ) unsigned NOT NULL AUTO_INCREMENT ,
`information_group_id` int( 11 ) unsigned NOT NULL default '0',
`information_title` varchar( 255 ) NOT NULL default '',
`information_description` text NOT NULL ,
`parent_id` int( 11 ) default NULL ,
`sort_order` tinyint( 3 ) unsigned NOT NULL default '0',
`visible` enum( '1', '0' ) NOT NULL default '1',
`language_id` int( 11 ) NOT NULL default '0',
PRIMARY KEY ( `information_id` , `language_id` ) 
) ENGINE = MYISAM DEFAULT CHARSET = latin1;

MySQL said:  

#1064 - You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=latin1' at line 11

 

Line 11 is: `sort_order` tinyint( 3 ) unsigned NOT NULL default '0',

 

I have MySQL 4.0.27-standard.

Trying to instal version 2.03 (IPU) but have tried the sql from some earlier versions (down to v2) but no luck there either.

latest osc - as of a few weeks ago.

I know not much about mysql, but have run sql from other mods & other stores no probs.

 

Can anyone shed some light on what the problem might be?

My guess is it needs a different version of mysql perhaps - cant find anyone else with this problem.

 

Ive not installed this contribution before - had used Information Pages Enhanced v1.3 in previous stores. I downloaded this one by mistake ... but thought I'd give it a try.

 

Thanks

ant

Link to comment
Share on other sites

I am using Information Pages Unlimited v2.03 with Ultimate SEO URLs - 2.1d. When I upgraded from Info Pages 1.3 to 2.0, it broke the urls for information.php. They all show up as /catalog/-i-1.html?osCsid=df....

 

The entry in .htaccess is

 

RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING}

 

does anyone know how to correct the urls?

 

I also have Sitemap 2.2 installed and <?php echo $sitemapString; ?> doesn't work as well as it used to. All the entries are up one level on the list. I can probably fix this one pretty easily when I sit down and take a look at that function.

 

Any help on the seo url would be appreciated.

 

Thanks

 

-Mike

 

 

Im having the SEO url problem too, ive checked the seo.class.php and found that it was looking for "info_title" in the database wich is now "information_title", renamed the occurances and retried it all, but still no dice, something more is missing and i cant find that on my own, i cry out for help here now!

Link to comment
Share on other sites

I just installed the newset version, 2.03, and I'm having no luck. I added some test content through the admin, but it doesn't show up in information.php on the catalog side. You can view my test site to see what I'm talking about. Could someone please point me in the right direction?

Link to comment
Share on other sites

  • 2 weeks later...

I was having the same problem as a few others, with pages being created but not showing either in the list in admin nor on the navigation in the catalog. And yes the info was there in the database.

 

I noticed that all the pages I had created in the information table had information_group_id set to zero. What the heck, let's edit the table and set information_group_id to 1.

 

Next think you know, up pops my pages in the info manager list in admin and in the catalog pages navigation.

 

It seems this ID is set from $gID variable in information_manager.php, but the logic of how this is set is beyond me and my PHP knowledge.

 

While I can hack the table in PHPmyadmin for now, this won't help when my client wants to create a new page on their own.

 

Would appreciate the developers of this great mod taking a look at this one. I have installed all the latest files V2.03. This is a clean install of this mod.

Link to comment
Share on other sites

Hi, sorry for my bad english, I have a problem with a this contribuition ( Pages Unimited 2.03) , I follow all the steps and in te catalog appears the mesage

 

Parse error: parse error in d:\archivos de programa\oscommerce\oscommerce-2.2ms2-060817\catalog\index.php on line 33

 

Tht is the edit for index.php in line 33

 

 

/ Add-on - Information Pages Unlimited
 require_once(DIR_WS_FUNCTIONS . 'information.php');
 tep_information_customer_greeting_define(); // Should be called before the Default Language is defined

 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT);
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>

 

 

and this around the line 303

 

          <!-- Add-on - Information Pages Unlimited -->
           <td class="main"><?php echo tep_information_customer_greeting(); ?></td>	
         </tr>
         <tr>
           <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
         </tr>
         <td class="main"><?php echo TEXT_MAIN; ?><br>
             <?php include(DIR_WS_MODULES . FILENAME_NEWS); ?>
             </td>

         <tr>

 

I don't know who's the problem, my experience in php is very limited and I need help please, What can I do?

 

Thanks for all.

Link to comment
Share on other sites

  • 2 weeks later...

Hi all,

 

I'm looking to integrate either this contribution or 'Extra pages-info box w/ admin'.

 

First off does anyone know what the main differences between the 2 are?

 

I've read through both of the forum threads about it and it appears that this is the contribution which was originally intended to work with Ultimate SEO URL's which I also have installed on the store I am looking to integrate with - however from reading latter posts it seems the more recent updates are no longer working. Has a fix already been released or would I need to sort that after integration?

 

Also is it possible to use this contribution and not have the information pages showing in the infobox? ie could I set the parent of one of the items to be 'main' and exclude them from the infobox display? Then I can use those generated pages in another place in the store (eg privacy policy, terms etc which I don't want in the sidebar but would like to be editable via admin still preferably using this contribution to keep things all together).

 

Many thanks in advance if you can let me know answers to any of the above.

Sadie

Link to comment
Share on other sites

I am using 1.2.1 (ya I know I need to update!)

hey quick question -

 

I have a little video icon next to one of the text links in the information box

I got it there by using this (and tried various other syntax) in the Title line of the page setup

 

How To: Video</a> <img src="/images/icons/video_sm.gif" border=0 />

 

problem is I end up with a link like this

....com/videoa-srcimagesiconsvideosmgif-border0-i-1.html

 

when it should look like this

....com/how-to-video-i-1.html

 

How can I stop or correct the weird link?

 

Thank you for the help.

-Dave

Link to comment
Share on other sites

I am using 1.2.1 (ya I know I need to update!)

hey quick question -

 

I have a little video icon next to one of the text links in the information box

I got it there by using this (and tried various other syntax) in the Title line of the page setup

 

How To: Video</a> <img src="/images/icons/video_sm.gif" border=0 />

 

problem is I end up with a link like this

....com/videoa-srcimagesiconsvideosmgif-border0-i-1.html

 

when it should look like this

....com/how-to-video-i-1.html

 

How can I stop or correct the weird link?

 

Thank you for the help.

 

 

I htink you may need to post your html code into the output html editor. Simply copy-paste finished html code, then type in your updates to it and resubmit it.

 

 

Anyways, my old site used to have the wysiwyg tiny_mce integrated into it, but now my new server, same files and all, is not seeing the little proggy. I have it installed in both parts of admin/ and in the javascript folder.

Link to comment
Share on other sites

  • 2 weeks later...

Is it possible to use Google's new website optimizer tool for conducting multivariate tests on these html virtual pages created with the information pages unlimited contribution?

 

According to google, you can't use it with sections of a page that are database driven; however, I'm not sure what that means.

 

Keep in mind that while you can use pages that are dynamically generated, like .cgi pages, you won't be able to test sections of the page that are database-driven.

Best Regards,

 

 

Victor Wise

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...