Jump to content



Latest News: (loading..)

* * * * * 1 votes

[Addon} Modular Front Page


  • Please log in to reply
841 replies to this topic

#701   cramli

cramli
  • Members
  • 71 posts
  • Real Name:marc
  • Gender:Male
  • Location:Sao Paulo / Brazil

Posted 06 July 2012 - 05:06 PM

Hello Jim
Sorry but I was out and so I couldn't tell you, that I already done that.

But back to the Banner problem, I see nothing on my homepage. What I am doing wrong? I have to put a new Banner in the admin side?

Thank you and best regards

Marc

#702 ONLINE   kymation

kymation

    Believers

  • Community Sponsor
  • 6,682 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 06 July 2012 - 05:18 PM

You must have done something wrong. I can't tell what your error is from here. I can only suggest that you read the instructions and check everything again.

Regards
Jim
My Addons

Banners Box 2.3.x  Support
Categories Accordion Box 2.3.x  Support
Categories Images Box 2.2x  2.3.x  Support
Closest Shipper 2.2x  Support
Document Manager 2.2x  Support
Generic Box 2.3.x  Support
Get 1 Free 2.2x  Support
jQuery Banner Rotator 2.2x  2.3.x  Support
Modular Front Page 2.3.x  Support
Modular SEO Header Tags 2.3.x  Support
MVS 2.2x  Support
PDF Datasheet 2.3.x  Support
Price Updater 2.2x
Products Specifications 2.2x  2.3.x  Development Version  Support  Bugs/Suggestions
Request a Review 2.2x - 2.3.x  Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x  Support

#703   BlakeBG

BlakeBG
  • Members
  • 22 posts
  • Real Name:Georgi
  • Gender:Male
  • Location:Bulgaria

Posted 12 July 2012 - 03:11 PM

Hello , i`ve just instaled and it works sweet with english. But with bulgarian , it goes that error
Warning: buildblocks(includes/languages/bulgarian/modules/front_page/banner_rotator.php) [function.buildblocks]: failed to open stream: No such file or directory in/var/www/html/vhosts/flamingo-toys.com/public_html/toys-commerce/shop/includes/classes/osc_template.php on line 86
How can i fix this ? Tnx in advance

#704 ONLINE   kymation

kymation

    Believers

  • Community Sponsor
  • 6,682 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 12 July 2012 - 07:13 PM

I can't provide every language in the world. You will have to copy the files from includes/languages/english/modules/front_page/ and put them in includes/languages/bulgarian/modules/front_page/, then translate the text in the defines to Bulgarian.

When you finish the translation, please provide the files so others may benefit.

Regards
Jim
My Addons

Banners Box 2.3.x  Support
Categories Accordion Box 2.3.x  Support
Categories Images Box 2.2x  2.3.x  Support
Closest Shipper 2.2x  Support
Document Manager 2.2x  Support
Generic Box 2.3.x  Support
Get 1 Free 2.2x  Support
jQuery Banner Rotator 2.2x  2.3.x  Support
Modular Front Page 2.3.x  Support
Modular SEO Header Tags 2.3.x  Support
MVS 2.2x  Support
PDF Datasheet 2.3.x  Support
Price Updater 2.2x
Products Specifications 2.2x  2.3.x  Development Version  Support  Bugs/Suggestions
Request a Review 2.2x - 2.3.x  Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x  Support

#705   CrazyCarzCustoms

CrazyCarzCustoms
  • Members
  • 151 posts
  • Real Name:Rob
  • Gender:Male
  • Location:Oliveira do Hospital - Portugal

Posted 13 July 2012 - 10:11 AM

Hi Jim,

Just installed your contribution and it all seems to work in one go ( this means something as i am all new to this) , thank you very much for a great contribution and saving me many headaches!!

Gr. Rob

#706   psytanium

psytanium
  • Members
  • 92 posts
  • Real Name:Ludwig Arcache
  • Gender:Male
  • Location:Lebanon

Posted 16 July 2012 - 07:54 AM

Hi, i'm using the contribution V1.3.6 on my OSC 2.3.1

what i did, is copying all the new files to the exact directories, and i modified the index.php, then i installed all the front page modules. but none of them appeared on the main page.
also i tried to upload the entire index.php provided with the contribution but no modules appeared.

i appreciate any help or hints.

thX Jim

#707 ONLINE   kymation

kymation

    Believers

  • Community Sponsor
  • 6,682 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 16 July 2012 - 03:54 PM

You must have uploaded your index.php to the wrong place. It needs to go in the directory where your store is installed.

Regards
Jim
My Addons

Banners Box 2.3.x  Support
Categories Accordion Box 2.3.x  Support
Categories Images Box 2.2x  2.3.x  Support
Closest Shipper 2.2x  Support
Document Manager 2.2x  Support
Generic Box 2.3.x  Support
Get 1 Free 2.2x  Support
jQuery Banner Rotator 2.2x  2.3.x  Support
Modular Front Page 2.3.x  Support
Modular SEO Header Tags 2.3.x  Support
MVS 2.2x  Support
PDF Datasheet 2.3.x  Support
Price Updater 2.2x
Products Specifications 2.2x  2.3.x  Development Version  Support  Bugs/Suggestions
Request a Review 2.2x - 2.3.x  Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x  Support

#708   psytanium

psytanium
  • Members
  • 92 posts
  • Real Name:Ludwig Arcache
  • Gender:Male
  • Location:Lebanon

Posted 17 July 2012 - 07:45 AM

View Postkymation, on 16 July 2012 - 03:54 PM, said:

You must have uploaded your index.php to the wrong place. It needs to go in the directory where your store is installed.

i'm sure i have uploaded the files to the exact directory. any other possibilities ?

#709   CrazyCarzCustoms

CrazyCarzCustoms
  • Members
  • 151 posts
  • Real Name:Rob
  • Gender:Male
  • Location:Oliveira do Hospital - Portugal

Posted 17 July 2012 - 11:44 AM

View Postkymation, on 30 October 2011 - 08:34 PM, said:

All of the modules in this package can also be used in the page header or footer using the Header Footer Content Modules Addon. You will need to move the module and language files to the appropriate directory, then change one line in the module code file from

	var $group = 'front_page';
to

	var $group = 'header_footer_contents';
I have used the Categories Images module (with the images turned off) in the Footer as an alternate site navigations system. Works just fine. So if you want a banner rotator in your page header, now that's easy to do.

Regards
Jim


Hi Jim

First thank you for your contribution , works like a charm ( even with a noob like me ;-).

My question is ; can you explain a bit more about putting the category images module into the header of the HFC module as that is exactly what i want to do.

Many thanks in advance,

Gr. Rob

#710   CrazyCarzCustoms

CrazyCarzCustoms
  • Members
  • 151 posts
  • Real Name:Rob
  • Gender:Male
  • Location:Oliveira do Hospital - Portugal

Posted 17 July 2012 - 02:53 PM

Hi Jim

I have the "category images module" showing up in the HFC module but i must be missing something as i can not tell it to go anywere , did i miss something here?

Gr,  Rob

#711 ONLINE   kymation

kymation

    Believers

  • Community Sponsor
  • 6,682 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 17 July 2012 - 05:09 PM

@psytanium
Most modules will not show up if there is nothing for them to show (i.e. the Banner Rotator needs banners to show.) So if you are seeing a blank front page, you need to give whatever modules you have installed something to show. If you just want to verify the installation, install the Text Main module and put some text in it.


@CrazyCarzCustoms
You need to make a few more changes. In the module file, find this code:

	  if (defined('MODULE_FRONT_PAGE_CATEGORIES_IMAGES_STATUS')) {
		$this->sort_order = MODULE_FRONT_PAGE_CATEGORIES_IMAGES_SORT_ORDER;
		$this->enabled = (MODULE_FRONT_PAGE_CATEGORIES_IMAGES_STATUS == 'True');
	  }

and replace it with this:

	  if ( defined('MODULE_FRONT_PAGE_CATEGORIES_IMAGES_STATUS') ) {
		$this->sort_order = MODULE_FRONT_PAGE_CATEGORIES_IMAGES_SORT_ORDER;
		$this->enabled = (MODULE_FRONT_PAGE_CATEGORIES_IMAGES_STATUS == 'True');
		switch (MODULE_FRONT_PAGE_CATEGORIES_IMAGES_CONTENT_PLACEMENT) {
		 case 'Left Header' : $this->group = 'header_contents_left';
			break;
		  case 'Center Header' : $this->group = 'header_contents_center';
			break;
		  case 'Right Header' : $this->group = 'header_contents_right';
			break;
		  case 'Header Line' : $this->group = 'header_line';
			break;
		  case 'Left Footer' : $this->group = 'footer_contents_left';
			break;
		  case 'Center Footer' : $this->group = 'footer_contents_center';
			break;
		  case 'Right Footer' : $this->group = 'footer_contents_right';
			break;
		  case 'Footer Line' : $this->group = 'footer_line';
			break;
		}
	  }

Then find this code

	  tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Show Image', 'MODULE_FRONT_PAGE_CATEGORIES_IMAGES_SHOW_IMAGE', 'True', 'Show the category image in the Categories Images box', '6', '6', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())");
	  tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Show Name', 'MODULE_FRONT_PAGE_CATEGORIES_IMAGES_SHOW_NAME', 'True', 'Show the category name in the Categories Images box', '6', '7', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())");
	  tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Show Subcategories', 'MODULE_FRONT_PAGE_CATEGORIES_IMAGES_SHOW_SUBCATEGORIES', 'True', 'Show the subcategories list under each category (Float mode only)', '6', '8', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())");

and add just after that:

	  tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Content Placement', 'MODULE_FRONT_PAGE_CATEGORIES_IMAGES_CONTENT_PLACEMENT', 'Right Header', 'Should the module be loaded in the header or the footer position?', '6', '1', 'tep_cfg_select_option(array(\'Left Header\', \'Center Header\', \'Right Header\', \'Header Line\', \'Left Footer\', \'Center Footer\', \'Right Footer\', \'Footer Line\'), ', now())");

Last, find this code:

	  $keys[] = 'MODULE_FRONT_PAGE_CATEGORIES_IMAGES_SHOW_IMAGE';
	  $keys[] = 'MODULE_FRONT_PAGE_CATEGORIES_IMAGES_SHOW_NAME';
	  $keys[] = 'MODULE_FRONT_PAGE_CATEGORIES_IMAGES_SHOW_SUBCATEGORIES';

and add just after that:

	  $keys[] = 'MODULE_FRONT_PAGE_CATEGORIES_IMAGES_CONTENT_PLACEMENT;

You will need to remove and reinstall the module for these changes to show up.

Regards
Jim

Edit: Copy-paste errors.

Edited by kymation, 17 July 2012 - 05:11 PM.

My Addons

Banners Box 2.3.x  Support
Categories Accordion Box 2.3.x  Support
Categories Images Box 2.2x  2.3.x  Support
Closest Shipper 2.2x  Support
Document Manager 2.2x  Support
Generic Box 2.3.x  Support
Get 1 Free 2.2x  Support
jQuery Banner Rotator 2.2x  2.3.x  Support
Modular Front Page 2.3.x  Support
Modular SEO Header Tags 2.3.x  Support
MVS 2.2x  Support
PDF Datasheet 2.3.x  Support
Price Updater 2.2x
Products Specifications 2.2x  2.3.x  Development Version  Support  Bugs/Suggestions
Request a Review 2.2x - 2.3.x  Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x  Support

#712   psytanium

psytanium
  • Members
  • 92 posts
  • Real Name:Ludwig Arcache
  • Gender:Male
  • Location:Lebanon

Posted 18 July 2012 - 07:20 AM

View Postkymation, on 17 July 2012 - 05:09 PM, said:

Most modules will not show up if there is nothing for them to show (i.e. the Banner Rotator needs banners to show.) So if you are seeing a blank front page, you need to give whatever modules you have installed something to show. If you just want to verify the installation, install the Text Main module and put some text in it.

done that with no success, well i have installed many complicated contributions on my website, this 1 is really easy to install but i can' work it out.
do you think there is something to check on the database ?

Thx mate!

#713   CrazyCarzCustoms

CrazyCarzCustoms
  • Members
  • 151 posts
  • Real Name:Rob
  • Gender:Male
  • Location:Oliveira do Hospital - Portugal

Posted 18 July 2012 - 11:00 AM

Hi Jim,

Thanks for your response.

I have the module working on the frontpage in the header now , so the code worked like a charm.
But it is not showing up on the other pages yet so i think i am still missing something.

I was looking for the $keys line that you showed as the last part in your response but i could only find :

function keys() {
	  return array (
		'MODULE_FRONT_PAGE_CATEGORIES_IMAGES_SORT_ORDER',
		'MODULE_FRONT_PAGE_CATEGORIES_IMAGES_STATUS',
		'MODULE_FRONT_PAGE_CATEGORIES_IMAGES_FRONT_TITLE',
		'MODULE_FRONT_PAGE_CATEGORIES_IMAGES_BOX_STYLE',
		'MODULE_FRONT_PAGE_CATEGORIES_IMAGES_BOX_MOUSEOVER',
		'MODULE_FRONT_PAGE_CATEGORIES_IMAGES_BOX_COLUMNS',
		'MODULE_FRONT_PAGE_CATEGORIES_IMAGES_SHOW_IMAGE',
		'MODULE_FRONT_PAGE_CATEGORIES_IMAGES_SHOW_NAME',
		'MODULE_FRONT_PAGE_CATEGORIES_IMAGES_SHOW_SUBCATEGORIES',
		'MODULE_FRONT_PAGE_CATEGORIES_IMAGES_CONTENT_PLACEMENT',
	  );
	}

As you can see here the code that you gave me is a bit different from  this one at the end , the ; is now a '
Maybe i did this wrong?
Maybe i am looking in the totaly wrong place.........

Can you help me please?

Gr, Rob

#714 ONLINE   kymation

kymation

    Believers

  • Community Sponsor
  • 6,682 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 18 July 2012 - 04:42 PM

That's just a different way of doing the same thing. Your code should look like this:

function keys() {
		  return array (
			'MODULE_FRONT_PAGE_CATEGORIES_IMAGES_SORT_ORDER',
			'MODULE_FRONT_PAGE_CATEGORIES_IMAGES_STATUS',
			'MODULE_FRONT_PAGE_CATEGORIES_IMAGES_FRONT_TITLE',
			'MODULE_FRONT_PAGE_CATEGORIES_IMAGES_BOX_STYLE',
			'MODULE_FRONT_PAGE_CATEGORIES_IMAGES_BOX_MOUSEOVER',
			'MODULE_FRONT_PAGE_CATEGORIES_IMAGES_BOX_COLUMNS',
			'MODULE_FRONT_PAGE_CATEGORIES_IMAGES_SHOW_IMAGE',
			'MODULE_FRONT_PAGE_CATEGORIES_IMAGES_SHOW_NAME',
			'MODULE_FRONT_PAGE_CATEGORIES_IMAGES_SHOW_SUBCATEGORIES',
			'MODULE_FRONT_PAGE_CATEGORIES_IMAGES_CONTENT_PLACEMENT',
		 	 'MODULE_FRONT_PAGE_CATEGORIES_IMAGES_CONTENT_PLACEMENT'
		  );
	}

Regards
Jim

Edit: Forum editor munged the code again.

Edited by kymation, 18 July 2012 - 04:43 PM.

My Addons

Banners Box 2.3.x  Support
Categories Accordion Box 2.3.x  Support
Categories Images Box 2.2x  2.3.x  Support
Closest Shipper 2.2x  Support
Document Manager 2.2x  Support
Generic Box 2.3.x  Support
Get 1 Free 2.2x  Support
jQuery Banner Rotator 2.2x  2.3.x  Support
Modular Front Page 2.3.x  Support
Modular SEO Header Tags 2.3.x  Support
MVS 2.2x  Support
PDF Datasheet 2.3.x  Support
Price Updater 2.2x
Products Specifications 2.2x  2.3.x  Development Version  Support  Bugs/Suggestions
Request a Review 2.2x - 2.3.x  Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x  Support

#715   CrazyCarzCustoms

CrazyCarzCustoms
  • Members
  • 151 posts
  • Real Name:Rob
  • Gender:Male
  • Location:Oliveira do Hospital - Portugal

Posted 18 July 2012 - 04:53 PM

Hi Jim,

I just copied and pasted your code into place but the result remained the same , it shows up on the index page but not on the other pages................here is the website if you want to have a look at what goes wrong : www.crazycarz.pt  and for now it´s eating and sleeping time ..i will have to investigate some more tomorow . ;-)

Thanks very much so far for your help.

Gr, Rob

#716 ONLINE   kymation

kymation

    Believers

  • Community Sponsor
  • 6,682 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 18 July 2012 - 05:04 PM

You need to remove and reinstall the module after these changes.

Regards
Jim
My Addons

Banners Box 2.3.x  Support
Categories Accordion Box 2.3.x  Support
Categories Images Box 2.2x  2.3.x  Support
Closest Shipper 2.2x  Support
Document Manager 2.2x  Support
Generic Box 2.3.x  Support
Get 1 Free 2.2x  Support
jQuery Banner Rotator 2.2x  2.3.x  Support
Modular Front Page 2.3.x  Support
Modular SEO Header Tags 2.3.x  Support
MVS 2.2x  Support
PDF Datasheet 2.3.x  Support
Price Updater 2.2x
Products Specifications 2.2x  2.3.x  Development Version  Support  Bugs/Suggestions
Request a Review 2.2x - 2.3.x  Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x  Support

#717   CrazyCarzCustoms

CrazyCarzCustoms
  • Members
  • 151 posts
  • Real Name:Rob
  • Gender:Male
  • Location:Oliveira do Hospital - Portugal

Posted 19 July 2012 - 10:51 AM

Hi Jim

I did remove and reinstalled the module , it still doesn´t show up on the other pages tho.
First i will go and check everything over again to see if everything is like you have told , just to make sure i am not wasting your time , than i will get back.

Thanks so far!.

Gr, Rob

#718   CrazyCarzCustoms

CrazyCarzCustoms
  • Members
  • 151 posts
  • Real Name:Rob
  • Gender:Male
  • Location:Oliveira do Hospital - Portugal

Posted 19 July 2012 - 11:30 AM

Hi Jim

It starts to look like something in the header footer contents thing as i also do not have a complete shopping cart or buttons for it....

Need ti investigate some more........

Gr, Rob

#719 ONLINE   kymation

kymation

    Believers

  • Community Sponsor
  • 6,682 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 19 July 2012 - 05:11 PM

Some modules have restrictions to allow them to run only on the page they are supposed to appear on. This prevents errors on other pages, since without the restriction the module will attempt to run on every page, and the external variables it depends on may not be available. If you want a module to appear on every page, look for code like this near the beginning of the execute() method:

	  if ($PHP_SELF == 'index.php' && $cPath == '') {

and change it to:

	  if (true) {

Regards
Jim
My Addons

Banners Box 2.3.x  Support
Categories Accordion Box 2.3.x  Support
Categories Images Box 2.2x  2.3.x  Support
Closest Shipper 2.2x  Support
Document Manager 2.2x  Support
Generic Box 2.3.x  Support
Get 1 Free 2.2x  Support
jQuery Banner Rotator 2.2x  2.3.x  Support
Modular Front Page 2.3.x  Support
Modular SEO Header Tags 2.3.x  Support
MVS 2.2x  Support
PDF Datasheet 2.3.x  Support
Price Updater 2.2x
Products Specifications 2.2x  2.3.x  Development Version  Support  Bugs/Suggestions
Request a Review 2.2x - 2.3.x  Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x  Support

#720   CrazyCarzCustoms

CrazyCarzCustoms
  • Members
  • 151 posts
  • Real Name:Rob
  • Gender:Male
  • Location:Oliveira do Hospital - Portugal

Posted 21 July 2012 - 09:04 AM

View Postkymation, on 19 July 2012 - 05:11 PM, said:

Some modules have restrictions to allow them to run only on the page they are supposed to appear on. This prevents errors on other pages, since without the restriction the module will attempt to run on every page, and the external variables it depends on may not be available. If you want a module to appear on every page, look for code like this near the beginning of the execute() method:

	  if ($PHP_SELF == 'index.php' && $cPath == '') {

and change it to:

	  if (true) {

Regards
Jim

YES , that did the trick!!! , THANKS very very much for your time and help.

Gr.  Rob