best-try Posted July 8, 2008 Share Posted July 8, 2008 This a really great contrib. Has anyone added more than 9 pages? I have manged to tweak the php to show (in admin) more than 9 page types but when I create a page and choose a page type over 9 it doesn't show in the box, the box shows only 8 lines. I must add 5 links more, can anyone help? Thanks :blink: Quote Link to comment Share on other sites More sharing options...
best-try Posted July 9, 2008 Share Posted July 9, 2008 This a really great contrib. Has anyone added more than 9 pages? I have manged to tweak the php to show (in admin) more than 9 page types but when I create a page and choose a page type over 9 it doesn't show in the box, the box shows only 8 lines. I must add 5 links more, can anyone help? Thanks :blink: Never mind, I managed. I just went to MyPhp, selected the database of the cart, dropped 'page type' from the table 'pages' and then executed (in sql): ALTER TABLE pages ADD `page_type` int(2) default NULL; INSERT INTO `pages` (`page_type`) VALUES ('1'), ('2'); The links show up now in any quantity I want. I also changed some code in catalog/admin/extra_info_pages.php and I found: --------------------------------- if ($action == 'insert') { if($page_type == "1" || $page_type == "2" || $page_type == "3" || $page_type == "4" || $page_type == "5" || $page_type == "6" || $page_type == "7" || $page_type == "8" || $page_type == "9") { ----------------------------------- and changed for --------------------------------- if ($action == 'insert') { if($page_type == "1" || $page_type == "2" || $page_type == "3" || $page_type == "4" || $page_type == "5" || $page_type == "6" || $page_type == "7" || $page_type == "8" || $page_type == "9"|| $page_type == "10" || $page_type == "11" || $page_type == "12" || $page_type == "13" || $page_type == "14" ) { -------------------------------------- You can add as many as you want as "$page_type == "xx" Also found --------------------------------- if ($action == 'update') { if($page_type == "1" || $page_type == "2" || $page_type == "3" || $page_type == "4" || $page_type == "5" || $page_type == "6" || $page_type == "7" || $page_type == "8" || $page_type == "9") { ----------------------------------- and changed for --------------------------------- if ($action == 'update') { if($page_type == "1" || $page_type == "2" || $page_type == "3" || $page_type == "4" || $page_type == "5" || $page_type == "6" || $page_type == "7" || $page_type == "8" || $page_type == "9"|| $page_type == "10" || $page_type == "11" || $page_type == "12" || $page_type == "13" || $page_type == "14" ) { -------------------------------------- and ------------------------------------------------------------------------------------------------------------- <option value="9" <? if($page_type == 9) { echo 'selected="selected"'; } ?>>9 - Old Page</option> -------------------------------------------------------------------------------------------------- And changed it for -------------------------------------------------------------------------------------------------------- <option value="9" <? if($page_type == 9) { echo 'selected="selected"'; } ?>>9 - Links</option> <option value="10" <? if($page_type == 10) { echo 'selected="selected"'; } ?>>10 - Links</option> <option value="11" <? if($page_type == 11) { echo 'selected="selected"'; } ?>>11 - Links</option> <option value="12" <? if($page_type == 12) { echo 'selected="selected"'; } ?>>12 - Links</option> <option value="13" <? if($page_type == 13) { echo 'selected="selected"'; } ?>>13 - Links</option> <option value="14" <? if($page_type == 14) { echo 'selected="selected"'; } ?>>14 - Old Page</option> ------------------------------------------------------------------------------------------------------------------- Can add as many page types as you want. I thought to add it to the contribution as an update but I am not that good at codes so just in case I made a mistake, I didn't add it as an update. If any of you more experienced guys see that all is fine, please add it as an update because many people is trying to get this contrib working with more than 9 pages. I have tried it only with external linked pages and it works, I don't know with internal pages. Quote Link to comment Share on other sites More sharing options...
Guest Posted July 9, 2008 Share Posted July 9, 2008 Never mind, I managed. I just went to MyPhp, selected the database of the cart, dropped 'page type' from the table 'pages' and then executed (in sql): ALTER TABLE pages ADD `page_type` int(2) default NULL; INSERT INTO `pages` (`page_type`) VALUES ('1'), ('2'); The links show up now in any quantity I want. I also changed some code in catalog/admin/extra_info_pages.php and I found: --------------------------------- if ($action == 'insert') { if($page_type == "1" || $page_type == "2" || $page_type == "3" || $page_type == "4" || $page_type == "5" || $page_type == "6" || $page_type == "7" || $page_type == "8" || $page_type == "9") { ----------------------------------- and changed for --------------------------------- if ($action == 'insert') { if($page_type == "1" || $page_type == "2" || $page_type == "3" || $page_type == "4" || $page_type == "5" || $page_type == "6" || $page_type == "7" || $page_type == "8" || $page_type == "9"|| $page_type == "10" || $page_type == "11" || $page_type == "12" || $page_type == "13" || $page_type == "14" ) { -------------------------------------- You can add as many as you want as "$page_type == "xx" Also found --------------------------------- if ($action == 'update') { if($page_type == "1" || $page_type == "2" || $page_type == "3" || $page_type == "4" || $page_type == "5" || $page_type == "6" || $page_type == "7" || $page_type == "8" || $page_type == "9") { ----------------------------------- and changed for --------------------------------- if ($action == 'update') { if($page_type == "1" || $page_type == "2" || $page_type == "3" || $page_type == "4" || $page_type == "5" || $page_type == "6" || $page_type == "7" || $page_type == "8" || $page_type == "9"|| $page_type == "10" || $page_type == "11" || $page_type == "12" || $page_type == "13" || $page_type == "14" ) { -------------------------------------- and ------------------------------------------------------------------------------------------------------------- <option value="9" <? if($page_type == 9) { echo 'selected="selected"'; } ?>>9 - Old Page</option> -------------------------------------------------------------------------------------------------- And changed it for -------------------------------------------------------------------------------------------------------- <option value="9" <? if($page_type == 9) { echo 'selected="selected"'; } ?>>9 - Links</option> <option value="10" <? if($page_type == 10) { echo 'selected="selected"'; } ?>>10 - Links</option> <option value="11" <? if($page_type == 11) { echo 'selected="selected"'; } ?>>11 - Links</option> <option value="12" <? if($page_type == 12) { echo 'selected="selected"'; } ?>>12 - Links</option> <option value="13" <? if($page_type == 13) { echo 'selected="selected"'; } ?>>13 - Links</option> <option value="14" <? if($page_type == 14) { echo 'selected="selected"'; } ?>>14 - Old Page</option> ------------------------------------------------------------------------------------------------------------------- Can add as many page types as you want. I thought to add it to the contribution as an update but I am not that good at codes so just in case I made a mistake, I didn't add it as an update. If any of you more experienced guys see that all is fine, please add it as an update because many people is trying to get this contrib working with more than 9 pages. I have tried it only with external linked pages and it works, I don't know with internal pages. Go ahead and add it. No one ever worries if the updates have errors. Quote Link to comment Share on other sites More sharing options...
IcedDante Posted July 11, 2008 Share Posted July 11, 2008 This is a great contribution. I feel like it could do with a major improvement though. A lot of these extra pages contain content that is used to build up Page Rank and the URLs generated by this are not very SEO friendly. I was thinking it would be good to try to modify this contrib so that the pagename was used as the URL. Does anyone with a better understanding of the architecture of this contribution think that will be a tough thing to accomplish? Quote Link to comment Share on other sites More sharing options...
sysyphus Posted August 1, 2008 Share Posted August 1, 2008 I'm having a wee bit of trouble with this contrib. it installed fine, but on the new contact now page I have lost the name, email, message fields that were on the original contact page. did I muck up somewhere or is there something else I have to do to get them up? Quote Link to comment Share on other sites More sharing options...
brenwa Posted August 12, 2008 Share Posted August 12, 2008 Index page for English pages...This text can be changed from the admin section... the problem: this text displays on the main page of the cart "Index page for English pages...This text can be changed from the admin section..." this is displaying on the main page of my site and I can not change it??? it CANNOT be changed form the "Index page for English pages" also the text: "Index page for English pages...This text can be changed from the admin section..." this verbaige does not exist in the english index.php page The Solution is here: The problem is coming form the installation of: Extra pages-info box w-admin 4.6.1 (and possibly other versions of the mod.. I cant call that since this is the one I installed) in the install instructions at approx line 125 it says QUOTE in catalog/index.php AFTER require('includes/application_top.php'); ADD ################# $page_query = tep_db_query("select p.pages_id, p.sort_order, p.status, s.pages_title, s.pages_html_text from " . TABLE_PAGES . " p LEFT JOIN " .TABLE_PAGES_DESCRIPTION . " s on p.pages_id = s.pages_id where p.status = 1 and s.language_id = '" . (int)$languages_id . "' and p.page_type = 1"); $page_check = tep_db_fetch_array($page_query); $pagetext=stripslashes($page_check[pages_html_text]); ##################### same file REPLACE <?php echo TEXT_MAIN; ?> WITH <?php echo $pagetext; ?> the problem is specifically with the lines same file *******source of the problem******** REPLACE <?php echo TEXT_MAIN; ?> WITH <?php echo $pagetext; ?>[ *******source of the problem******** I have undone this edit and everything started working normally again This mod also seems to be working fine without that specific line edit.... Quote Link to comment Share on other sites More sharing options...
SHOP4M Posted August 18, 2008 Share Posted August 18, 2008 hi i have just install this contribution and i have a problem i have osCommerce Online Merchant v2.2 Release Candidate 2a and i installed Extra pages-info box w-admin 4.6.1 sutikah1 18 Dec 2007 the error message i'm getting is:- Parse error: syntax error, unexpected '}' in F:\wamp\www\oscommerce-2.2rc2a\catalog\admin\extra_info_pages.php on line 540 thanks Quote Link to comment Share on other sites More sharing options...
AlwaysNewbie Posted August 20, 2008 Share Posted August 20, 2008 I want to install that great contribution, but before doing that want to know if it works and has no conflicts with STS 4.58. Thanks for any help. Michael Quote Computers777dotcom Link to comment Share on other sites More sharing options...
Guest Posted September 14, 2008 Share Posted September 14, 2008 (edited) Hello Guys I have problem with the contribution how can I raise the length of title in extra_page box? I need to write 5-6 words in title, but it automatically converts to ??? symbols or subtracts the word. also I have problem when I insert image it appears like it is on image below thanks see image for first problem http://gbn.ge/images/imagee.JPG image for second problem http://gbn.ge/images/imagees.JPG Edited September 14, 2008 by fxtrader777 Quote Link to comment Share on other sites More sharing options...
Guest Posted September 21, 2008 Share Posted September 21, 2008 anyone? Quote Link to comment Share on other sites More sharing options...
SHOP4M Posted October 5, 2008 Share Posted October 5, 2008 hi i have just install this contribution and i have a problem i have osCommerce Online Merchant v2.2 Release Candidate 2a and i installed Extra pages-info box w-admin 4.6.1 sutikah1 18 Dec 2007 the error message i'm getting is:- Parse error: syntax error, unexpected '}' in F:\wamp\www\oscommerce-2.2rc2a\catalog\admin\extra_info_pages.php on line 540 and in admin\extra_info_pages.php on line 540 is } else { thanks Quote Link to comment Share on other sites More sharing options...
Guest Posted October 14, 2008 Share Posted October 14, 2008 I have just installed Extra pages-info box w/ admin 4.6.1 on Oscommerce 2.2rc2a I am using apache 2.2.8 PHP 5.2.6 I get the following error when i try to access the page manager in Admin Fatal error: Call to a member function add() on a non-object in C:\wamp\www\catalog\admin\extra_info_pages.php on line 39 below is the line 39 $breadcrumb->add($page_check[pages_title], tep_href_link('info_pages.php?pages_id=' . $infopageid)); Hope someone can help. Nick Quote Link to comment Share on other sites More sharing options...
jubez Posted November 5, 2008 Share Posted November 5, 2008 I intalled this contribution, and modified it to fit my template, however I'm stuck with this one problem which I know for most of you is very simple.... See the photo below, under the Informations section, I want the link to the Contact Us to be transparent, like the Information section below it. What line of code do I modify to get rid of that white highlight on the text?? Any help would be great. Thanks, Angie Quote Link to comment Share on other sites More sharing options...
jubez Posted November 14, 2008 Share Posted November 14, 2008 I intalled this contribution, and modified it to fit my template, however I'm stuck with this one problem which I know for most of you is very simple.... See the photo below, under the Informations section, I want the link to the Contact Us to be transparent, like the Information section below it. What line of code do I modify to get rid of that white highlight on the text??Any help would be great. Thanks, Angie I found it, it was embedded in a table in the includes/boxes/extra_info_pages.php file... :lol: Quote Link to comment Share on other sites More sharing options...
Guest Posted December 2, 2008 Share Posted December 2, 2008 http://whitecloudcigarettes.com/catalog/conditions.php how do i get my "informations" menu to match up with my template? Quote Link to comment Share on other sites More sharing options...
arash_rst Posted December 3, 2008 Share Posted December 3, 2008 hi all... i use persian version of oscommerce! how to install this mod??! i am installing this mod and it work properly in user mode!but i can't edit and add page in admin panel!!(maybe because i use persian admin panel) help me please... thanx Quote Link to comment Share on other sites More sharing options...
ChilliNr1 Posted December 3, 2008 Share Posted December 3, 2008 Hello, I`m trying to install the Contribution, but the SQL File caused an error: Fehler SQL-Befehl: CREATE TABLE `pages` ( `pages_id` int( 11 ) NOT NULL AUTO_INCREMENT , `sort_order` int( 3 ) default NULL , `status` int( 1 ) NOT NULL default '1', `page_type` char( 1 ) default NULL , PRIMARY KEY ( `pages_id` ) ) TYPE = MYISAM AUTO_INCREMENT =4; MySQL meldet: #1046 - No database selected What does it mean? I`m using MySQL 5.0 Thank you! Quote Link to comment Share on other sites More sharing options...
ChilliNr1 Posted December 3, 2008 Share Posted December 3, 2008 Hi, sorry guys, my fault. I didn`t selected the Database :wacko: Greets! Quote Link to comment Share on other sites More sharing options...
tjoppru Posted December 23, 2008 Share Posted December 23, 2008 hi i have just install this contribution and i have a problem i have osCommerce Online Merchant v2.2 Release Candidate 2a and i installed Extra pages-info box w-admin 4.6.1 sutikah1 18 Dec 2007 the error message i'm getting is:- Parse error: syntax error, unexpected '}' in F:\wamp\www\oscommerce-2.2rc2a\catalog\admin\extra_info_pages.php on line 540 and in admin\extra_info_pages.php on line 540 is } else { thanks I am receiving the same error. Did this ever get resolved? I have osCommerce Online Merchant v2.2 RC2a and I installed Extra pages-info box w-admin 4.6.1. In admin I just get a blank page when I choose Extra Info Pages Manager. Thanks Quote Link to comment Share on other sites More sharing options...
reformedman Posted December 31, 2008 Share Posted December 31, 2008 How do I link the font of the inside text of the box, with the other boxes? What line of code must I change to make this new info box get its font characteristics from the css line of the rest of my site? Quote man of a reformed faith. Link to comment Share on other sites More sharing options...
pomarja Posted February 4, 2009 Share Posted February 4, 2009 Hi! I have now successfully finished installation of this package. :) The only existing problem is how to change the colour of the text/font in the boxes from white to another colour. I have tried to use the /catalog/stylesheets/stylesheet.css without any result. Do anyone here have any suggestions? :rolleyes: //Per Quote Link to comment Share on other sites More sharing options...
seodaddy Posted February 6, 2009 Share Posted February 6, 2009 Go ahead and add it. No one ever worries if the updates have errors. I agree. This is a nice Mod but with the lack of useful page title and meaningless URL, it has a long way to go before it adds value to a site. I am currently working on some code to make it more SEO friendly, however it is not finished yet. If anyone else has something already please post up! Quote Link to comment Share on other sites More sharing options...
Solan Posted February 20, 2009 Share Posted February 20, 2009 what have i missed? it says that i can write in siple text or in html but i dont have any html editor????? Quote Link to comment Share on other sites More sharing options...
Solan Posted February 20, 2009 Share Posted February 20, 2009 i now have tinyMCE but i dont know how to add this to work with extra pages... :( is there any one who can give a helping hand? Quote Link to comment Share on other sites More sharing options...
Solan Posted February 21, 2009 Share Posted February 21, 2009 insn´t there anyone who uses this with an HTMLeditor? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.