Jump to content
Sign in to follow this  
iankil

[Contribution] Mindsparx admin

Recommended Posts

OK. I'll keep after it. I must be missing something. It sounds like maybe I need to install STS first and then Mindsparx Admin second.

 

Thanks,

Scott

 

Maybe the error message can give a clue: Warning: Cannot modify header information - headers already sent by (output started at /homepages/1/d239117530/htdocs/BZW/catalog/admin/includes/filenames.php:1) in /homepages/1/d239117530/htdocs/BZW/catalog/admin/includes/functions/general.php on line 18

Share this post


Link to post
Share on other sites

Hello Scott,

 

The "headers already sent by..." can appear for many reasons, in this case im almost sure that you have a whitespace before the <?php code starts, the <?php has to be all the way up in every file that starts with a php tagg take a look in all files that you edit when you install the contribution or STS.

 

/Janne.K


My contributions

Mindsparx admin for 2.2

Mindsparx admin for 2.3

Mindsparx admin for 3.0

Mindsparx specials 2.2

Starproduct pimped for 2.2

Starproduct pimped for 2.3

Mindsparx template osc Sport 2.2

Mindsparx template Horizon 2.3

+ a few more...

Share this post


Link to post
Share on other sites
Hello Scott,

 

The "headers already sent by..." can appear for many reasons, in this case im almost sure that you have a whitespace before the <?php code starts, the <?php has to be all the way up in every file that starts with a php tagg take a look in all files that you edit when you install the contribution or STS.

 

/Janne.K

 

 

Hi Janne,

 

I was able to get it all working. I ended up doing manual changes to all the files instead of just copying the files. That seems to have helped everything to play nicely together.

 

Regards,

Scott

Share this post


Link to post
Share on other sites

Hi all,

i installed the sts 4.5.8 and the Mindsparx_admin_v2_1, works great the only problem it is with the name of the sts module, because appear this:

HEADING_TITLE_MODULES_STS

What i do wrong?

Thanks Costel

Share this post


Link to post
Share on other sites

I'm encountering a problem with the new enhanced fly-out menu.

 

Only Administrators (one without more than 1 option) works whereas the rest simply don't show.

 

Where the admin link goes to:

http://localhost/catalog/admin/administrators.php

 

all the others link to:

 

http://localhost/catalog/admin/index.php# <_<

 

but here's the kicker, when I tried later Friday night they worked fine again but Saturday again till now nothing. :blink:

 

I assume it's something to do with my database since i've been adding product VIA ecxel. :huh:


"I have no special talent. I am only passionately curious"

- Albert Einstein

Share this post


Link to post
Share on other sites

nope, happening to me as well.

I installed this admin ages ago and it worked fine, now on a new installation the top links dont work, maybe something is different???

The javascript is also VERY buggy in the latest firefox, is opens up then instantly shuts, need a fix for this please?

 

Not all take though, got a bug fix for you all.

For those complaining of a blank screen there is a bug in the latest release.

 

in html_output.php

 

////
// Output a function button in the selected language
 function tep_image_button($image, $alt = '', $params = '') {
global $language;

 if (ADMIN_BUTTON =="true"){
	  return tep_image(DIR_WS_ADMIN . 'mindsparx_admin/template/'. ADMIN_TEMPLATE.'/images/buttons/'. $language . '/' . $image, $alt, '', '', $params);
 }else {
return tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image, $alt, '', '', $params);
 }

}

 

should be:

 

////
// Output a function button in the selected language
 function tep_image_button($image, $alt = '', $params = '') {
global $language;

 if (ADMIN_BUTTON =="true"){
	  return tep_image(DIR_WS_ADMIN . 'mindsparx_admin/template/'. ADMIN_TEMPLATE.'/images/buttons/'. $language . '/' . $image, $alt, '', '', $params);
 }else {
return tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image, $alt, '', '', $params);
 }

 

there is a rogue } in the code causing the page to stall.

 

Also, those with boxes_configuration_administrators prob.

 

remove this line from the admin header:

<li><div class="line"><a href="<?php echo tep_href_link(FILENAME_ADMINISTRATORS) ?> "><?php echo BOX_CONFIGURATION_ADMINISTRATORS ?></a></div></li>

 

It's being called from the configuration dropdown already and is not needed in the header nav.

Share this post


Link to post
Share on other sites

Ok to fix the links issue this is in the header file.... i knew i would get it if i had some sleep ;)

 

the href needs to be configured... if you want them to point to links rather than #

easy enough to do.

 

in admin/includes/header.php

 

replace

<div id="smoothmenu1" class="ddsmoothmenu">
<ul>

<li><div class="line"><a href="#"><?php echo BOX_HEADING_CATALOG ?></a></div>
 <ul>
 <?php require(DIR_WS_BOXES . 'catalog.php');?>
 </ul>
</li>

<li><div class="line"><a  href="#"><?php echo BOX_HEADING_CUSTOMERS ?></a></div>
 <ul>
 <?php  require(DIR_WS_BOXES . 'customers.php');?>
 </ul>
</li>

<li><div class="line"><a  href="#"><?php echo BOX_HEADING_TOOLS ?></a></div>
 <ul>
 <?php  require(DIR_WS_BOXES . 'tools.php');?>
 </ul>
</li>

<li><div class="line"><a  href="#" ><?php echo BOX_HEADING_MODULES ?></a></div>
 <ul>
<?php  require(DIR_WS_BOXES . 'modules.php'); ?>
 </ul>
</li>

<li><div class="line"><a  href="#" ><?php echo BOX_HEADING_REPORTS ?></a></div>
 <ul>
 <?php require(DIR_WS_BOXES . 'reports.php');?>
 </ul>
</li>

<li><div class="line"><a  href="#" ><?php echo BOX_HEADING_LOCATION_AND_TAXES ?></a></div>
 <ul>
 <?php require(DIR_WS_BOXES . 'taxes.php');?>
 </ul>
</li>


<li><div class="line"><a  href="#" ><?php echo BOX_HEADING_LOCALIZATION ?></a></div>
 <ul>
 <?php require(DIR_WS_BOXES . 'localization.php');?>
 </ul>
</li>

<li><div class="line"><a  href="#"><?php echo BOX_HEADING_CONFIGURATION ?></a></div>
 <ul>
<?php  require(DIR_WS_BOXES . 'configuration.php');?>
 </ul>
</li>

 

 

with:

 

<div id="smoothmenu1" class="ddsmoothmenu">
<ul>

<li><div class="line"><a href="categories.php"><?php echo BOX_HEADING_CATALOG ?></a></div>
 <ul>
 <?php require(DIR_WS_BOXES . 'catalog.php');?>
 </ul>
</li>

<li><div class="line"><a  href="orders.php"><?php echo BOX_HEADING_CUSTOMERS ?></a></div>
 <ul>
 <?php  require(DIR_WS_BOXES . 'customers.php');?>
 </ul>
</li>

<li><div class="line"><a  href="backup.php"><?php echo BOX_HEADING_TOOLS ?></a></div>
 <ul>
 <?php  require(DIR_WS_BOXES . 'tools.php');?>
 </ul>
</li>

<li><div class="line"><a  href="modules.php?set=payment" ><?php echo BOX_HEADING_MODULES ?></a></div>
 <ul>
<?php  require(DIR_WS_BOXES . 'modules.php'); ?>
 </ul>
</li>

<li><div class="line"><a  href="stats_products_viewed.php" ><?php echo BOX_HEADING_REPORTS ?></a></div>
 <ul>
 <?php require(DIR_WS_BOXES . 'reports.php');?>
 </ul>
</li>

<li><div class="line"><a  href="countries.php" ><?php echo BOX_HEADING_LOCATION_AND_TAXES ?></a></div>
 <ul>
 <?php require(DIR_WS_BOXES . 'taxes.php');?>
 </ul>
</li>


<li><div class="line"><a  href="currencies.php" ><?php echo BOX_HEADING_LOCALIZATION ?></a></div>
 <ul>
 <?php require(DIR_WS_BOXES . 'localization.php');?>
 </ul>
</li>

<li><div class="line"><a  href="configuration.php"><?php echo BOX_HEADING_CONFIGURATION ?></a></div>
 <ul>
<?php  require(DIR_WS_BOXES . 'configuration.php');?>
 </ul>
</li>

 

replace any of the links for your own hotlinks.

I find it easier to use the most common sections and have those as the hotlinks.

You can also use this section to add extra links if you want.

Share this post


Link to post
Share on other sites

Yawn oh cool I'l check that,

 

I fixed it! :lol:

 

The problem was my google contribution I think. <_<

 

When I use national capp only it doesn't work.

 

When I got my International cap for this month and used that no problems since. :)


"I have no special talent. I am only passionately curious"

- Albert Einstein

Share this post


Link to post
Share on other sites

any of you running mindsparx admin with header tags seo v.3?

im racking my brains on how to get the thing into the top bar instead of in a little box in the admin.

Share this post


Link to post
Share on other sites

Hello!

Thanks for the fix evilonion.

To add more drops to the top bar you need to create a new drop in the header.php file and then strip out the <td><tr> and add code from an existing /boxes/ file to your new /boxes/your_new_box.php file (you can compare a existing (boxes/file.php with your new one and you can see what you need to add).

 

I guess that the new dropdown is not as good as the old one, it was created just so that a user can add submenues. But if you dont need submenues you sould use version 2.0 its exactly the same as 2.1 exept for the new java dropdown. And i think that 2.0 was more easy to understand than the new one. Im thinking of going back to the old dropdown system (http://www.mindsparx.se/mindsparx_admin/) , if there is any more releses of the admin. Any suggestions?

 

/Janne.K


My contributions

Mindsparx admin for 2.2

Mindsparx admin for 2.3

Mindsparx admin for 3.0

Mindsparx specials 2.2

Starproduct pimped for 2.2

Starproduct pimped for 2.3

Mindsparx template osc Sport 2.2

Mindsparx template Horizon 2.3

+ a few more...

Share this post


Link to post
Share on other sites

The javascript menu is an issue for anyone running firefox, seems to work fine in IE though... maybe there is a better version? or perhaps the javascript has some bugs?

 

 

as for the box issue i have a quick fix for people wanting to add header tag seo v3.

 

Firstly you need to make your header_tags_seo.php file look like this:

 

<?php
/*
 $Id: header_tags_seo.php,v 1.00 2008/04/04 Exp $

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

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/
?>
<!-- header_tags_seo //-->
<?php
 $heading = array();
 $contents = array();

 $heading[] = array('text'  => BOX_HEADING_HEADER_TAGS_SEO,
				 'link'  => tep_href_link(FILENAME_HEADER_TAGS_SEO, 'selected_box=headertags'));

/*This is for your subcategories. If you are installing a contribution and want the menu item to show up as a submenu in your navigationbar, just add your submenu link here. for example, if you install a contribution like header tags SEO that requires a new link in the header bar or your old column left, then you can add it in a existing box like "tools" and instead of adding links to the main links ($contents[]) below, just add them in $catalogSub1 or $catalogSub2 etc...

Then you need to add the variable to the main links ($contents[]) and its done like this:
Choose what link you want your submeny to appare after and add for example $catalogSub1. (note the dot after the variable) after any '</a>' . like this:

'<a href="' . tep_href_link(FILENAME_PRODUCTS_EXPECTED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_PRODUCTS_EXPECTED . '</a>' .$subcategory1. 
*/

  /*subcategories start 
	you can create as many subs you need, just copy the code below and change $catalogSub1 to $catalogSub2 etc...*/
 $customerSub1= '</li><li><a class="menuBoxContentLink" href="#">'.BOX_HEADING_HEADER_TAGS_SEO.'</a>
	<ul>
		<li><a href="' . tep_href_link(FILENAME_HEADER_TAGS_SEO, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_HEADER_TAGS_ADD_A_PAGE . '</a>				</li>
		<li><a href="' . tep_href_link(FILENAME_HEADER_TAGS_FILL_TAGS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_HEADER_TAGS_FILL_TAGS . '</a></li>
		<li><a href="' . tep_href_link(FILENAME_HEADER_TAGS_TEST, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_HEADER_TAGS_TEST . '</a></li>

	</ul>
</li><li>';
/*	if you want to create deeper submenus just add the code below after any </li> above and you will have a sub menu in your submenu

<li><a class="menuBoxContentLink" href="#">deeper category</a>
	<ul>
		<li><a href="#" class="menuBoxContentLink">deep sub1</a>				</li>
	</ul>
</li>
 subcategories end*/

// if ($selected_box == 'headertags') {


  // Add your old links here start
$contents[] = array('text'  => '<a href="' . tep_href_link(FILENAME_HEADER_TAGS_SEO, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_HEADER_TAGS_ADD_A_PAGE . '</a>' .
							   '<a href="' . tep_href_link(FILENAME_HEADER_TAGS_FILL_TAGS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_HEADER_TAGS_FILL_TAGS . '</a>' .
							   '<a href="' . tep_href_link(FILENAME_HEADER_TAGS_TEST, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_HEADER_TAGS_TEST . '</a>');


  // Add your old links here end
// }

 //$box = new box;
// echo $box->menuBox($heading, $contents);

  foreach($contents as $value) {	  
  echo '<li>'.$value['text'].'</li>';
}
?>
<!-- header_tags_seo_eof //-->

 

 

Then in admin/includes/header.php

add :

 

<li><div class="line"><a href="header_tags_seo.php"><?php echo BOX_HEADING_HEADER_TAGS_SEO ?></a></div>
 <ul>
 <?php require(DIR_WS_BOXES . 'header_tags_seo.php');?>
 </ul>
</li>

 

 

And finally to remove the box from the left of the screen that i was having issues with, you need to edit the columnleft.php in the admin folders, seo v3 adds a box to this, you need to comment it out so the file should look like this:

 

<?php
/*
 $Id: column_left.php 1739 2007-12-20 00:52:16Z hpdl $

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

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/

 //require(DIR_WS_BOXES . 'configuration.php');
 //require(DIR_WS_BOXES . 'catalog.php');
// require(DIR_WS_BOXES . 'modules.php');
 //require(DIR_WS_BOXES . 'customers.php');
 //require(DIR_WS_BOXES . 'taxes.php');
// require(DIR_WS_BOXES . 'localization.php');
// require(DIR_WS_BOXES . 'reports.php');
 //require(DIR_WS_BOXES . 'tools.php');
/*** Begin Header Tags SEO ***/
//require(DIR_WS_BOXES . 'header_tags_seo.php');
/*** End Header Tags SEO ***/
?>

 

as you can see i've added a // before the require(DIR_WS_BOXES etc

 

 

So far i have mindsparx admin working fine with sts templates and header tag seo, im going to be adding;

Featured products ( developing this into multiple levels of featured products)

seo urls, mindsparx featured, mindsparx buttons, define mainpage, gallery, customer groups

seo images, purchase without account, sitemap seo, and others when i get to it.

 

As and when i complete all of this i will update and let you all know.

Might be interesting to build it into a complete pack but im not sure how to combine sql files together (so the main instal sql works auto with seo sql etc)

Share this post


Link to post
Share on other sites
The javascript menu is an issue for anyone running firefox, seems to work fine in IE though... maybe there is a better version? or perhaps the javascript has some bugs?

 

 

as for the box issue i have a quick fix for people wanting to add header tag seo v3.

 

Firstly you need to make your header_tags_seo.php file look like this:

 

<?php
/*
 $Id: header_tags_seo.php,v 1.00 2008/04/04 Exp $

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

 Copyright (c) 2002 osCommerce


 Released under the GNU General Public License
*/
?>
<!-- header_tags_seo //-->
<?php
 $heading = array();
 $contents = array();

 $heading[] = array('text'  => BOX_HEADING_HEADER_TAGS_SEO,
				 'link'  => tep_href_link(FILENAME_HEADER_TAGS_SEO, 'selected_box=headertags'));

/*This is for your subcategories. If you are installing a contribution and want the menu item to show up as a submenu in your navigationbar, just add your submenu link here. for example, if you install a contribution like header tags SEO that requires a new link in the header bar or your old column left, then you can add it in a existing box like "tools" and instead of adding links to the main links ($contents[]) below, just add them in $catalogSub1 or $catalogSub2 etc...

Then you need to add the variable to the main links ($contents[]) and its done like this:
Choose what link you want your submeny to appare after and add for example $catalogSub1. (note the dot after the variable) after any '</a>' . like this:

'<a href="' . tep_href_link(FILENAME_PRODUCTS_EXPECTED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_PRODUCTS_EXPECTED . '</a>' .$subcategory1. 
*/

  /*subcategories start 
	you can create as many subs you need, just copy the code below and change $catalogSub1 to $catalogSub2 etc...*/
 $customerSub1= '</li><li><a class="menuBoxContentLink" href="#">'.BOX_HEADING_HEADER_TAGS_SEO.'</a>
	<ul>
		<li><a href="' . tep_href_link(FILENAME_HEADER_TAGS_SEO, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_HEADER_TAGS_ADD_A_PAGE . '</a>				</li>
		<li><a href="' . tep_href_link(FILENAME_HEADER_TAGS_FILL_TAGS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_HEADER_TAGS_FILL_TAGS . '</a></li>
		<li><a href="' . tep_href_link(FILENAME_HEADER_TAGS_TEST, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_HEADER_TAGS_TEST . '</a></li>

	</ul>
</li><li>';
/*	if you want to create deeper submenus just add the code below after any </li> above and you will have a sub menu in your submenu

<li><a class="menuBoxContentLink" href="#">deeper category</a>
	<ul>
		<li><a href="#" class="menuBoxContentLink">deep sub1</a>				</li>
	</ul>
</li>
 subcategories end*/

// if ($selected_box == 'headertags') {


  // Add your old links here start
$contents[] = array('text'  => '<a href="' . tep_href_link(FILENAME_HEADER_TAGS_SEO, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_HEADER_TAGS_ADD_A_PAGE . '</a>' .
							   '<a href="' . tep_href_link(FILENAME_HEADER_TAGS_FILL_TAGS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_HEADER_TAGS_FILL_TAGS . '</a>' .
							   '<a href="' . tep_href_link(FILENAME_HEADER_TAGS_TEST, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_HEADER_TAGS_TEST . '</a>');


  // Add your old links here end
// }

 //$box = new box;
// echo $box->menuBox($heading, $contents);

  foreach($contents as $value) {	  
  echo '<li>'.$value['text'].'</li>';
}
?>
<!-- header_tags_seo_eof //-->

 

 

Then in admin/includes/header.php

add :

 

<li><div class="line"><a href="header_tags_seo.php"><?php echo BOX_HEADING_HEADER_TAGS_SEO ?></a></div>
 <ul>
 <?php require(DIR_WS_BOXES . 'header_tags_seo.php');?>
 </ul>
</li>

 

 

And finally to remove the box from the left of the screen that i was having issues with, you need to edit the columnleft.php in the admin folders, seo v3 adds a box to this, you need to comment it out so the file should look like this:

 

<?php
/*
 $Id: column_left.php 1739 2007-12-20 00:52:16Z hpdl $

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

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/

 //require(DIR_WS_BOXES . 'configuration.php');
 //require(DIR_WS_BOXES . 'catalog.php');
// require(DIR_WS_BOXES . 'modules.php');
 //require(DIR_WS_BOXES . 'customers.php');
 //require(DIR_WS_BOXES . 'taxes.php');
// require(DIR_WS_BOXES . 'localization.php');
// require(DIR_WS_BOXES . 'reports.php');
 //require(DIR_WS_BOXES . 'tools.php');
/*** Begin Header Tags SEO ***/
//require(DIR_WS_BOXES . 'header_tags_seo.php');
/*** End Header Tags SEO ***/
?>

 

as you can see i've added a // before the require(DIR_WS_BOXES etc

 

 

So far i have mindsparx admin working fine with sts templates and header tag seo, im going to be adding;

Featured products ( developing this into multiple levels of featured products)

seo urls, mindsparx featured, mindsparx buttons, define mainpage, gallery, customer groups

seo images, purchase without account, sitemap seo, and others when i get to it.

 

As and when i complete all of this i will update and let you all know.

Might be interesting to build it into a complete pack but im not sure how to combine sql files together (so the main instal sql works auto with seo sql etc)

 

 

Great contribution. Great look for my admin section.

 

My question is in reference to the dropdown menus.

 

When the admin/index page is open, if you "mouse over" each of the links in the menu, the only ones that changes the "Page link" available is the configurations, administrator, and logout pages. The other links must be "clicked" on first, then the menu head drops below as a new head and the rest of the menu drops down as active. Any idea how to fix this?

 

The other problem is the dropdown menu also gives a complete downward list, spaces, and a second complete list of the links.


Frederick C Brace,III PA-C

www.21st-tees.com (osc)

www.tanda-designs.com (osc)

Share this post


Link to post
Share on other sites

i have a problem with the information unlimited addon

http://addons.oscommerce.com/info/1026

now in the information.php from the boxes folder i have this code

 

<?php
 /*
 Module: Information Pages Unlimited
	  File date: 2007/02/17
	  Based on the FAQ script of adgrafics
	  Adjusted by Joeri Stegeman (joeri210 at yahoo.com), The Netherlands

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

 Released under the GNU General Public License
 */
?>
<!-- information //-->
	  <tr>
		<td>
<?php
 $heading = array();
 $contents = array();

 $heading[] = array('text'  => BOX_HEADING_INFORMATION,
				 'link'  => tep_href_link(FILENAME_INFORMATION_MANAGER, 'selected_box=information'));

 if ($selected_box == 'information') {
$info_groups = '';
$information_groups_query = tep_db_query("select information_group_id as igID, information_group_title as igTitle from " . TABLE_INFORMATION_GROUP . " where visible = '1' order by sort_order");
while ($information_groups = tep_db_fetch_array($information_groups_query)) {
  $info_groups .= '<a href="' . tep_href_link(FILENAME_INFORMATION_MANAGER, 'gID=' . $information_groups['igID'], 'NONSSL') . '" class="menuBoxContentLink">' . $information_groups['igTitle'] . '</a><br>';
}

$contents[] = array('text'  => $info_groups);
 }

 $box = new box;
 echo $box->menuBox($heading, $contents);
?>
		</td>
	  </tr>
<!-- information_eof //-->

 

you see it's different than the other boxes

i tried this

<?php
 /*
 Module: Information Pages Unlimited
	  File date: 2007/02/17
	  Based on the FAQ script of adgrafics
	  Adjusted by Joeri Stegeman (joeri210 at yahoo.com), The Netherlands

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

 Released under the GNU General Public License
 */
?>
<!-- information //-->
<?php
 $heading = array();
 $contents = array();

 $heading[] = array('text'  => BOX_HEADING_INFORMATION,
				 'link'  => tep_href_link(FILENAME_INFORMATION_MANAGER, 'selected_box=information'));


// if ($selected_box == 'information') {
$info_groups = '';
$information_groups_query = tep_db_query("select information_group_id as igID, information_group_title as igTitle from " . TABLE_INFORMATION_GROUP . " where visible = '1' order by sort_order");
while ($information_groups = tep_db_fetch_array($information_groups_query)) {
  $info_groups .= '<a href="' . tep_href_link(FILENAME_INFORMATION_MANAGER, 'gID=' . $information_groups['igID'], 'NONSSL') . '" class="menuBoxContentLink">' . $information_groups['igTitle'] . '</a>');
 //  }

  // $contents[] = array('text'  => $info_groups);
// }

 //$box = new box;
// echo $box->menuBox($heading, $contents);
//?>
	   foreach($contents as $value) {	  
  echo '<li>'.$value['text'].'</li>';
}
?>
<!-- information_eof //-->

 

but not working :(

 

EDIT:

found the trick..it's the same as the configuration box so it goes like this;

<?php
 /*
 Module: Information Pages Unlimited
	  File date: 2007/02/17
	  Based on the FAQ script of adgrafics
	  Adjusted by Joeri Stegeman (joeri210 at yahoo.com), The Netherlands

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

 Released under the GNU General Public License
 */
?>
<!-- information //-->

<?php
 $heading = array();
 $contents = array();

 $heading[] = array('text'  => BOX_HEADING_INFORMATION,
				 'link'  => tep_href_link(FILENAME_INFORMATION_MANAGER, 'selected_box=information'));

 //if ($selected_box == 'information') {
$info_groups = '';
$information_groups_query = tep_db_query("select information_group_id as igID, information_group_title as igTitle from " . TABLE_INFORMATION_GROUP . " where visible = '1' order by sort_order");
while ($information_groups = tep_db_fetch_array($information_groups_query)) {
  $info_groups .= '<a href="' . tep_href_link(FILENAME_INFORMATION_MANAGER, 'gID=' . $information_groups['igID'], 'NONSSL') . '" class="menuBoxContentLink">' . $information_groups['igTitle'] . '</a>';
}

$contents[] = array('text'  => $info_groups);
//  }

 // $box = new box;
 // echo $box->menuBox($heading, $contents);
foreach($contents as $value) {	  
  echo '<li>'.$value['text'].'</li>';
}
?>
<!-- information_eof //-->

Edited by natashome

Share this post


Link to post
Share on other sites

Before, i would like to say thank you for this contribution

I have one question relative to stats_low_stock.php

 

It's possible to change the link of the product that show in low stock report

to change the product Qty available? Because as you must know, actualy it´s linking to

edit category. see: categories.php?cPath=&cID=&action=edit_category

 

 

 

The code i have in stats_low_stock.php is:

 

<tr class="datatableRow" onMouseOver="this.className='datatableRowOver';this.style.cursor='hand'" onMouseOut="this.className='datatableRow'" onClick="document.location.href='<?php echo tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $category_path_string . '&cID=' . $cInfo->categories_id . '&action=edit_category'); ?>'">
           <td align="left" class="smallText"> <?php echo $rows; ?>. </td>
           <td class="smallText"> <?php echo '<a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $category_path_string . '&cID=' . $cInfo->categories_id . '&action=edit_category') . '" class="blacklink">' . $products['products_name'] . '</a>'; ?> </td>
           <td align="right" class="smallText"> <?php echo $products['products_quantity']; ?> </td>
         </tr>

 

Thanks

Edited by ptdesigner

Share this post


Link to post
Share on other sites
Before, i would like to say thank you for this contribution

I have one question relative to stats_low_stock.php

 

It's possible to change the link of the product that show in low stock report

to change the product Qty available? Because as you must know, actualy it´s linking to

edit category. see: categories.php?cPath=&cID=&action=edit_category

 

 

 

The code i have in stats_low_stock.php is:

 

<tr class="datatableRow" onMouseOver="this.className='datatableRowOver';this.style.cursor='hand'" onMouseOut="this.className='datatableRow'" onClick="document.location.href='<?php echo tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $category_path_string . '&cID=' . $cInfo->categories_id . '&action=edit_category'); ?>'">
           <td align="left" class="smallText"> <?php echo $rows; ?>. </td>
           <td class="smallText"> <?php echo '<a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $category_path_string . '&cID=' . $cInfo->categories_id . '&action=edit_category') . '" class="blacklink">' . $products['products_name'] . '</a>'; ?> </td>
           <td align="right" class="smallText"> <?php echo $products['products_quantity']; ?> </td>
         </tr>

 

Thanks

 

 

Problem Solved

Changed code to:

 

<tr class="datatableRow" onMouseOver="this.className='datatableRowOver';this.style.cursor='hand'" onMouseOut="this.className='datatableRow'" onClick="document.location.href='<?php echo tep_href_link(FILENAME_CATEGORIES, 'action=new_product&read=only&pID=' . $products['products_id'] .  '?page=' . $HTTP_GET_VARS['page'], 'NONSSL'); ?>'">
               <td align="left" class="smallText"> <?php echo $rows; ?>.</td>
               <td class="smallText"> <?php echo '<a href="' . tep_href_link(FILENAME_CATEGORIES, 'action=new_product&read=only&pID=' . $products['products_id'] .  '?page=' . $HTTP_GET_VARS['page'], 'NONSSL') . '">' . $products['products_name'] . '</a> '; ?></td>
               <td align="right" class="smallText"><?php echo $products['products_quantity']; ?> </td>
             </tr>

 

And It's Working correctly

Edited by ptdesigner

Share this post


Link to post
Share on other sites

Hello,

 

I'm trying to add a dropdown menu to the header (fot my Quickbooks Integration contrib).

 

When I add the menu to the header, it pushes the language selection to the very top of the page and off of the blue header. Any ideas?

Share this post


Link to post
Share on other sites

Hi there,

 

I am still very much a complete newbie, and have two questions where I am unsure:

 

Step 4: should it look like this after making the changes?

 

// customization for the design layout
 define('BOX_WIDTH', 0); // how wide the boxes should be in pixels (default: 125)

Or should the 125 be replaced by 0 ?

 

Second, when I try the instructions of step 5, the admin interface won't work any more, I get this error message:

Parse error: syntax error, unexpected '}' in /home/theblac3/public_html/shop/admin/includes/functions/html_output.php on line 127

 

The code looks like this:

 

<?php
/*
 $Id: html_output.php 1739 2007-12-20 00:52:16Z hpdl $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2007 osCommerce

 Released under the GNU General Public License
*/

////
// The HTML href link wrapper function
 function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL') {
   if ($page == '') {
     die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>Function used:<br><br>tep_href_link(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')</b>');
   }
   if ($connection == 'NONSSL') {
     $link = HTTP_SERVER . DIR_WS_ADMIN;
   } elseif ($connection == 'SSL') {
     if (ENABLE_SSL == 'true') {
       $link = HTTPS_SERVER . DIR_WS_ADMIN;
     } else {
       $link = HTTP_SERVER . DIR_WS_ADMIN;
     }
   } else {
     die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL<br><br>Function used:<br><br>tep_href_link(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')</b>');
   }
   if ($parameters == '') {
     $link = $link . $page . '?' . SID;
   } else {
     $link = $link . $page . '?' . $parameters . '&' . SID;
   }

   while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1);

   return $link;
 }

 function tep_catalog_href_link($page = '', $parameters = '', $connection = 'NONSSL') {
   if ($connection == 'NONSSL') {
     $link = HTTP_CATALOG_SERVER . DIR_WS_CATALOG;
   } elseif ($connection == 'SSL') {
     if (ENABLE_SSL_CATALOG == 'true') {
       $link = HTTPS_CATALOG_SERVER . DIR_WS_CATALOG;
     } else {
       $link = HTTP_CATALOG_SERVER . DIR_WS_CATALOG;
     }
   } else {
     die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL<br><br>Function used:<br><br>tep_href_link(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')</b>');
   }
   if ($parameters == '') {
     $link .= $page;
   } else {
     $link .= $page . '?' . $parameters;
   }

   while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1);

   return $link;
 }

////
// The HTML image wrapper function
 function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') {
   $image = '<img src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"';

   if (tep_not_null($alt)) {
     $image .= ' title=" ' . tep_output_string($alt) . ' "';
   }

   if (tep_not_null($width) && tep_not_null($height)) {
     $image .= ' width="' . tep_output_string($width) . '" height="' . tep_output_string($height) . '"';
   }

   if (tep_not_null($parameters)) $image .= ' ' . $parameters;

   $image .= '>';

   return $image;
 }

////
// The HTML form submit button wrapper function
// Outputs a button in the selected language
 function tep_image_submit($image, $alt = '', $parameters = '') {
   global $language;

   $image_submit = '<input type="image" src="' . tep_output_string(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image) . '" border="0" alt="' . tep_output_string($alt) . '"';

   if (tep_not_null($alt)) $image_submit .= ' title=" ' . tep_output_string($alt) . ' "';

   if (tep_not_null($parameters)) $image_submit .= ' ' . $parameters;

   $image_submit .= '>';

   return $image_submit;
 }

////
// Draw a 1 pixel black line
 function tep_black_line() {
   return tep_image(DIR_WS_IMAGES . 'pixel_black.gif', '', '100%', '1');
 }

////
// Output a separator either through whitespace, or with an image
 function tep_draw_separator($image = 'pixel_black.gif', $width = '100%', $height = '1') {
   return tep_image(DIR_WS_IMAGES . $image, '', $width, $height);
 }

////
// Output a function button in the selected language
   function tep_image_button($image, $alt = '', $params = '') {
   global $language;

 if (ADMIN_BUTTON =="true"){
	  return tep_image(DIR_WS_ADMIN . 'mindsparx_admin/template/'. ADMIN_TEMPLATE.'/images/buttons/'. $language . '/' . $image, $alt, '', '', $params);
 }else {
   return tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image, $alt, '', '', $params);
 }
 }
   global $language;

   return tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image, $alt, '', '', $params);
 }

////
// javascript to dynamically update the states/provinces list when the country is changed
// TABLES: zones
 function tep_js_zone_list($country, $form, $field) {
   $countries_query = tep_db_query("select distinct zone_country_id from " . TABLE_ZONES . " order by zone_country_id");
   $num_country = 1;
   $output_string = '';
   while ($countries = tep_db_fetch_array($countries_query)) {
     if ($num_country == 1) {
       $output_string .= '  if (' . $country . ' == "' . $countries['zone_country_id'] . '") {' . "\n";
     } else {
       $output_string .= '  } else if (' . $country . ' == "' . $countries['zone_country_id'] . '") {' . "\n";
     }

     $states_query = tep_db_query("select zone_name, zone_id from " . TABLE_ZONES . " where zone_country_id = '" . $countries['zone_country_id'] . "' order by zone_name");

     $num_state = 1;
     while ($states = tep_db_fetch_array($states_query)) {
       if ($num_state == '1') $output_string .= '    ' . $form . '.' . $field . '.options[0] = new Option("' . PLEASE_SELECT . '", "");' . "\n";
       $output_string .= '    ' . $form . '.' . $field . '.options[' . $num_state . '] = new Option("' . $states['zone_name'] . '", "' . $states['zone_id'] . '");' . "\n";
       $num_state++;
     }
     $num_country++;
   }
   $output_string .= '  } else {' . "\n" .
                     '    ' . $form . '.' . $field . '.options[0] = new Option("' . TYPE_BELOW . '", "");' . "\n" .
                     '  }' . "\n";

   return $output_string;
 }

////
// Output a form
 function tep_draw_form($name, $action, $parameters = '', $method = 'post', $params = '') {
   $form = '<form name="' . tep_output_string($name) . '" action="';
   if (tep_not_null($parameters)) {
     $form .= tep_href_link($action, $parameters);
   } else {
     $form .= tep_href_link($action);
   }
   $form .= '" method="' . tep_output_string($method) . '"';
   if (tep_not_null($params)) {
     $form .= ' ' . $params;
   }
   $form .= '>';

   return $form;
 }

////
// Output a form input field
 function tep_draw_input_field($name, $value = '', $parameters = '', $required = false, $type = 'text', $reinsert_value = true) {
   global $HTTP_GET_VARS, $HTTP_POST_VARS;

   $field = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"';

   if ( ($reinsert_value == true) && ( (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) || (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) ) ) {
     if (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) {
       $value = stripslashes($HTTP_GET_VARS[$name]);
     } elseif (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) {
       $value = stripslashes($HTTP_POST_VARS[$name]);
     }
   }

   if (tep_not_null($value)) {
     $field .= ' value="' . tep_output_string($value) . '"';
   }

   if (tep_not_null($parameters)) $field .= ' ' . $parameters;

   $field .= '>';

   if ($required == true) $field .= TEXT_FIELD_REQUIRED;

   return $field;
 }

////
// Output a form password field
 function tep_draw_password_field($name, $value = '', $required = false) {
   $field = tep_draw_input_field($name, $value, 'maxlength="40"', $required, 'password', false);

   return $field;
 }

////
// Output a form filefield
 function tep_draw_file_field($name, $required = false) {
   $field = tep_draw_input_field($name, '', '', $required, 'file');

   return $field;
 }

////
// Output a selection field - alias function for tep_draw_checkbox_field() and tep_draw_radio_field()
 function tep_draw_selection_field($name, $type, $value = '', $checked = false, $compare = '') {
   global $HTTP_GET_VARS, $HTTP_POST_VARS;

   $selection = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"';

   if (tep_not_null($value)) $selection .= ' value="' . tep_output_string($value) . '"';

   if ( ($checked == true) || (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name]) && (($HTTP_GET_VARS[$name] == 'on') || (stripslashes($HTTP_GET_VARS[$name]) == $value))) || (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name]) && (($HTTP_POST_VARS[$name] == 'on') || (stripslashes($HTTP_POST_VARS[$name]) == $value))) || (tep_not_null($compare) && ($value == $compare)) ) {
     $selection .= ' CHECKED';
   }

   $selection .= '>';

   return $selection;
 }

////
// Output a form checkbox field
 function tep_draw_checkbox_field($name, $value = '', $checked = false, $compare = '') {
   return tep_draw_selection_field($name, 'checkbox', $value, $checked, $compare);
 }

////
// Output a form radio field
 function tep_draw_radio_field($name, $value = '', $checked = false, $compare = '') {
   return tep_draw_selection_field($name, 'radio', $value, $checked, $compare);
 }

////
// Output a form textarea field
 function tep_draw_textarea_field($name, $wrap, $width, $height, $text = '', $parameters = '', $reinsert_value = true) {
   global $HTTP_GET_VARS, $HTTP_POST_VARS;

   $field = '<textarea name="' . tep_output_string($name) . '" wrap="' . tep_output_string($wrap) . '" cols="' . tep_output_string($width) . '" rows="' . tep_output_string($height) . '"';

   if (tep_not_null($parameters)) $field .= ' ' . $parameters;

   $field .= '>';

   if ( ($reinsert_value == true) && ( (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) || (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) ) ) {
     if (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) {
       $field .= tep_output_string_protected(stripslashes($HTTP_GET_VARS[$name]));
     } elseif (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) {
       $field .= tep_output_string_protected(stripslashes($HTTP_POST_VARS[$name]));
     }
   } elseif (tep_not_null($text)) {
     $field .= tep_output_string_protected($text);
   }

   $field .= '</textarea>';

   return $field;
 }

////
// Output a form hidden field
 function tep_draw_hidden_field($name, $value = '', $parameters = '') {
   global $HTTP_GET_VARS, $HTTP_POST_VARS;

   $field = '<input type="hidden" name="' . tep_output_string($name) . '"';

   if (tep_not_null($value)) {
     $field .= ' value="' . tep_output_string($value) . '"';
   } elseif ( (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) || (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) ) {
     if ( (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) ) {
       $field .= ' value="' . tep_output_string(stripslashes($HTTP_GET_VARS[$name])) . '"';
     } elseif ( (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) ) {
       $field .= ' value="' . tep_output_string(stripslashes($HTTP_POST_VARS[$name])) . '"';
     }
   }

   if (tep_not_null($parameters)) $field .= ' ' . $parameters;

   $field .= '>';

   return $field;
 }

////
// Hide form elements
 function tep_hide_session_id() {
   $string = '';

   if (defined('SID') && tep_not_null(SID)) {
     $string = tep_draw_hidden_field(tep_session_name(), tep_session_id());
   }

   return $string;
 }

////
// Output a form pull down menu
 function tep_draw_pull_down_menu($name, $values, $default = '', $parameters = '', $required = false) {
   global $HTTP_GET_VARS, $HTTP_POST_VARS;

   $field = '<select name="' . tep_output_string($name) . '"';

   if (tep_not_null($parameters)) $field .= ' ' . $parameters;

   $field .= '>';

   if (empty($default) && ( (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) || (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) ) ) {
     if (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) {
       $default = stripslashes($HTTP_GET_VARS[$name]);
     } elseif (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) {
       $default = stripslashes($HTTP_POST_VARS[$name]);
     }
   }

   for ($i=0, $n=sizeof($values); $i<$n; $i++) {
     $field .= '<option value="' . tep_output_string($values[$i]['id']) . '"';
     if ($default == $values[$i]['id']) {
       $field .= ' SELECTED';
     }

     $field .= '>' . tep_output_string($values[$i]['text'], array('"' => '"', '\'' => ''', '<' => '<', '>' => '>')) . '</option>';
   }
   $field .= '</select>';

   if ($required == true) $field .= TEXT_FIELD_REQUIRED;

   return $field;
 }
?>

 

Can anyone tell me where I went wrong? Help is much appreciated! :)

 

Thanks in advance!

 

Dan

Share this post


Link to post
Share on other sites

as i have a lot of contributions installed i would like to have the top horizontal menu, vertically displayed...is there any way?

thanks

Share this post


Link to post
Share on other sites

Hi, I've added http://addons.oscommerce.com/info/1561 (ban IP addresses) but it's not working with Mindsparx Admin. To access it you have to go to www.domain.com/catalogue/admin/_banned.php - then the whole admin layout is mis-aligned... Anyone know how to fix it so it all runs smoothly (can be accessed by a link in the admin) and keeps the site admin looking good?????? Thanks :-)

Share this post


Link to post
Share on other sites

Hi there. I'm working on a new shop.

 

First I installed STS and then Mindsparks Admin.

Before the install of Admin I could choose STS in the modules but since I installed Admin STS is gone in the dropdown menu.

Anyone knows how to fix this? The problem is that I can't enable STS.

 

My second problem is Login. No problem in English but when set to Dutch I'm getting a blanc page after Login.

Then I have to go back to the url of Admin and I'm logged in. Same thing with logout.

Share this post


Link to post
Share on other sites

dont know what i have done but here goes;

 

when i click on Categories / Products i get the following error;

 

Error: Catalog images directory does not exist: /kunden/homepages/28/d208931384/htdocs/aquareef/catalog/images/

 

but thats not my absolute path to the folder the actuall path is minus the "catalog" folder;

 

/kunden/homepages/28/d208931384/htdocs/aquareef/images/

 

where has it got this from???

 

it also appears in a few more places throughout the admin control panel.. :angry:

Share this post


Link to post
Share on other sites

Getting this error...

 

Warning: require(includes/classes/navigation_history.php) [function.require]: failed to open stream: No such file or directory in /home/nyrescue/public_html/store/admin/includes/application_top.php on line 128

 

Warning: require(includes/classes/navigation_history.php) [function.require]: failed to open stream: No such file or directory in /home/nyrescue/public_html/store/admin/includes/application_top.php on line 128

 

Fatal error: require() [function.require]: Failed opening required 'includes/classes/navigation_history.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nyrescue/public_html/store/admin/includes/application_top.php on line 128

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×