Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[contribution] Multilayer SEO Pop Out Menu


Recommended Posts

Hi I just tried changing the code in fwr_cat_functions.php and reset the menu, it doesnt change c.sort_order, but it lists all the sub categories as the main category when I chose c.categories_id.

 

I dont have cache enabled in the shop, but it does seem when you use the cache for this contribution, the search box dissapears, same when you switch on cache, must be some bug in oscommerce?

 

but it does seem when you use the cache for this contribution, the search box dissapears

 

Only for you so it seems a site specific coding issue

Link to comment
Share on other sites

  • Replies 188
  • Created
  • Last Reply

Top Posters In This Topic

Menu was the right way round before the contribution was installed

 

Are you talking about sort order? if so I posted the code about two posts up. Last thing I was commenting on was a disappearing search box.

Edited by FWR Media
Link to comment
Share on other sites

Are you talking about sort order? if so I posted the code about two posts up. Last thing I was commenting on was a disappearing search box.

 

I tried the code posted two posts up, (thanks for that) what happend when I changed the code was one option didnt change anything, the other option made the whole sub category visable in the main category.

 

Ive got Chemo's SEO urls installed (also the reason I chose this contribution for the benifits of SEO), its set to cName rather than rewrite, do you think that could have anything to do with it? I dont know am only guessing now, my category list is listed in alphabetical order, but when I install SEO Pop Out Menu, the category list changes to reverse alphabetical order.

 

edited for spelling

Edited by Windows
Link to comment
Share on other sites

I tried the code posted two posts up, (thanks for that) what happend when I changed the code was one option didnt change anything, the other option made the whole sub category visable in the main category.

 

Ive got Chemo's SEO urls installed (also the reason I chose this contribution for the benifits of SEO), its set to cName rather than rewrite, do you think that could have anything to do with it? I dont know am only guessing now, my category list is listed in alphabetical order, but when I install SEO Pop Out Menu, the category list changes to reverse alphabetical order.

 

edited for spelling

 

Just add to the query DESC for descending or ASC for ascending e.g.

 

ORDER BY c.parent_id, $order_by, cDescr.categories_name DESC

 

or

 

ORDER BY c.parent_id, $order_by, cDescr.categories_name ASC

 

[edit]Sorry forgot to add the file is includes/fwr_cat_functions.php line 145(ish)[/edit]

Edited by FWR Media
Link to comment
Share on other sites

Just add to the query DESC for descending or ASC for ascending e.g.

 

ORDER BY c.parent_id, $order_by, cDescr.categories_name DESC

 

or

 

ORDER BY c.parent_id, $order_by, cDescr.categories_name ASC

 

[edit]Sorry forgot to add the file is includes/fwr_cat_functions.php line 145(ish)[/edit]

 

That did the job Robert, same with the search box, it was being called between the cache tags.

 

Is it possible to have the sub categories split into half to save scrolling down the page to see the bottom half? I have a lot of sub categories, only customers with a scroll in the mouse would be able to see all the sub categories, anyone who used the scroll bar on the right to scroll down would see the sub category dissapear.

Link to comment
Share on other sites

Hi Robert

 

Some more feedback for you, the menu apears on top of images, but it does not apear over flash movies.

If there is a flash movie beside the pop out menu, the menu gets squashed.

Link to comment
Share on other sites

Security Pro - Querystring protection against hackers.

 

I installed this contribution today on a live store with Worldpay, Paypal, Ultimate SEO, Header Tags, Image pack and a lot more contributions I cant remeber, all seems to be working fine, payment modules and shipping doent apear to be effected.

Link to comment
Share on other sites

Robert,

Thanks for contribution, I like it pretty much.

I have some minor problems though, I want you to know about them, so probably you can fix them or probably I did something wrong and you can direct me a bit.

First one is that when I use STS mode (and generally I always use it), there are no small pictures in a categories menu. When STS is off, I can see them fine.

Second one is that when menu line is pretty close to bottom of a screen I cannot see bottom lines of pop-up menu, they are lower than edge of a screen. I'm not sure if you can do it, but it would be better if in that case pop-up menu will open up, not down (like usual correct behavior of pop-up menu).

Thank you for any help.

Computers777dotcom

Link to comment
Share on other sites

Hi Robert >> Denmark caling

 

Thanks Great Contributions i have install the menu and the sitmap and it works perfekt but now i have install the rss and the sitemap and i also ok - but it wil not make the 4 files in the root - insted it makes this file 4_categories.ser and delte the eksiten file categories.ser (this i put there manuelt)

 

Her is the kode in the 4_categories.ser

 

a:15:{i:21;a:6:{s:2:"id";s:2:"21";s:6:"parent";s:1:"0";s:4:"sort";s:1:"1";s:4:"path";s:2:"21";s:4:"name";s:6:"Kamera";s:8:"children";s:15:"22,23,24,25,29,";}i:26;a:5:{s:2:"id";s:2:"26";s:6:"parent";s:1:"0";s:4:"sort";s:1:"2";s:4:"path";s:2:"26";s:4:"name";s:11:"DVR Optager";}i:27;a:6:{s:2:"id";s:2:"27";s:6:"parent";s:1:"0";s:4:"sort";s:1:"3";s:4:"path";s:2:"27";s:4:"name";s:15:"Tilbehør";s:8:"children";s:9:"31,32,34,";}i:28;a:5:{s:2:"id";s:2:"28";s:6:"parent";s:1:"0";s:4:"sort";s:1:"4";s:4:"path";s:2:"28";s:4:"name";s:22:"Pakke løsninger";}i:33;a:5:{s:2:"id";s:2:"33";s:6:"parent";s:1:"0";s:4:"sort";s:1:"5";s:4:"path";s:2:"33";s:4:"name";s:12:"Skærme";}i:22;a:5:{s:2:"id";s:2:"22";s:6:"parent";s:2:"21";s:4:"sort";s:1:"1";s:4:"path";s:5:"21_22";s:4:"name";s:13:"Hjem / kontor";}i:23;a:5:{s:2:"id";s:2:"23";s:6:"parent";s:2:"21";s:4:"sort";s:1:"2";s:4:"path";s:5:"21_23";s:4:"name";s:27:"Høj opløsning";}i:24;a:5:{s:2:"id";s:2:"24";s:6:"parent";s:2:"21";s:4:"sort";s:1:"3";s:4:"path";s:5:"21_24";s:4:"name";s:20:"Trådløs";}i:25;a:5:{s:2:"id";s:2:"25";s:6:"parent";s:2:"21";s:4:"sort";s:1:"4";s:4:"path";s:5:"21_25";s:4:"name";s:20:"Nat / infarød";}i:29;a:5:{s:2:"id";s:2:"29";s:6:"parent";s:2:"21";s:4:"sort";s:1:"5";s:4:"path";s:5:"21_29";s:4:"name";s:22:"Baby overvågning";}i:31;a:5:{s:2:"id";s:2:"31";s:6:"parent";s:2:"27";s:4:"sort";s:1:"3";s:4:"path";s:5:"27_31";s:4:"name";s:15:"Tilbehør";}i:32;a:5:{s:2:"id";s:2:"32";s:6:"parent";s:2:"27";s:4:"sort";s:1:"2";s:4:"path";s:5:"27_32";s:4:"name";s:7:"Diverse";}i:34;a:5:{s:2:"id";s:2:"34";s:6:"parent";s:2:"27";s:4:"sort";s:1:"1";s:4:"path";s:5:"27_34";s:4:"name";s:6:"Linser";}s:13:"menuid_string";s:49:""menu_21","menu_26","menu_27","menu_28","menu_33"";s:9:"menuid_js";s:294:"<script language="javascript" type="text/javascript">

function get_menu_ids() {

var menuids=["menu_21","menu_26","menu_27","menu_28","menu_33"] //Enter id(s) of SuckerTree UL menus, separated by commas

return menuids;

}

</script>

<script src="suckertree.js.php" type="text/javascript"></script>";}

Link to comment
Share on other sites

This is the 4 files it wil not created

 

fwrrss.xml

sitemapIndex.xml

sitemapCategories.xml

sitemapProducts.xml

 

 

I have only testet it whit the index.php

 

this is the shop http://www.shop.net2admin.dk

 

Hi Steen

 

Is your server running PHP5 and DOM XML?

Link to comment
Share on other sites

Now it have don this file ??? 4_boxes.ser

 

Whit this kode:

 

a:5:{s:16:"best_sellers.php";a:2:{i:0;a:10:{i:0;s:109:"<a href="http://www.shop.net2admin.dk/product_info.php/products_id/57">PC-DVR Camera Surveillance System™</a>";i:1;s:92:"<a href="http://www.shop.net2admin.dk/product_info.php/products_id/29">OutdoorCam™ Color</a>";i:2;s:101:"<a href="http://www.shop.net2admin.dk/product_info.php/products_id/55">1030™ Camera Housing 390MM</a>";i:3;s:100:"<a href="http://www.shop.net2admin.dk/product_info.php/products_id/54">Universal Camera Bracket™</a>";i:4;s:90:"<a href="http://www.shop.net2admin.dk/product_info.php/products_id/50">Maxi Day/Night™</a>";i:5;s:86:"<a href="http://www.shop.net2admin.dk/product_info.php/products_id/49">SecuraView™</a>";i:6;s:101:"<a href="http://www.shop.net2admin.dk/product_info.php/products_id/56">1060™ Camera Housing 400MM</a>";i:7;s:101:"<a href="http://www.shop.net2admin.dk/product_info.php/products_id/53">DIY Color Video Doorphone™</a>";i:8;s:85:"<a href="http://www.shop.net2admin.dk/product_info.php/products_id/52">MegaFlood™</a>";i:9;s:93:"<a href="http://www.shop.net2admin.dk/product_info.php/products_id/31">SpyCam™ with Audio</a>";}i:1;a:10:{i:0;s:34:"PC-DVR Camera Surveillance System™";i:1;s:17:"OutdoorCam™ Color";i:2;s:26:"1030™ Camera Housing 390MM";i:3;s:25:"Universal Camera Bracket™";i:4;s:15:"Maxi Day/Night™";i:5;s:11:"SecuraView™";i:6;s:26:"1060™ Camera Housing 400MM";i:7;s:26:"DIY Color Video Doorphone™";i:8;s:10:"MegaFlood™";i:9;s:18:"SpyCam™ with Audio";}}s:15:"information.php";a:2:{i:0;a:7:{i:0;s:72:"<a href="http://www.shop.net2admin.dk/om_net2admin.php">Om net2admin</a>";i:1;s:79:"<a href="http://www.shop.net2admin.dk/lovgivning.php">Lov om TV-overvågning</a>";i:2;s:68:"<a href="http://www.shop.net2admin.dk/shipping.php">Fortrolighed</a>";i:3;s:85:"<a href="http://www.shop.net2admin.dk/privacy.php">Salgs- og leveringsbetingelser</a>";i:4;s:68:"<a href="http://www.shop.net2admin.dk/conditions.php">Anvendelse</a>";i:5;s:63:"<a href="http://www.shop.net2admin.dk/sitemap.php">Site Map</a>";i:6;s:68:"<a href="http://www.shop.net2admin.dk/contact_us.php">Kontakt Os</a>";}i:1;a:7:{i:0;s:12:"Om net2admin";i:1;s:21:"Lov om TV-overvågning";i:2;s:12:"Fortrolighed";i:3;s:30:"Salgs- og leveringsbetingelser";i:4;s:10:"Anvendelse";i:5;s:8:"Site Map";i:6;s:10:"Kontakt Os";}}s:17:"manufacturers.php";a:2:{i:0;a:0:{}i:1;a:0:{}}s:21:"manufacturer_info.php";a:2:{i:0;a:0:{}i:1;a:0:{}}s:15:"header_tags.php";a:2:{i:0;a:1:{i:0;s:111:"<a style="color: red;" href="http://www.shop.net2admin.dk/product_info.php/products_id/0" > (...see more)</a>";}i:1;a:1:{i:0;s:15:" (...see more)";}}}

Link to comment
Share on other sites

Still need to know ..

 

Is your server running PHP5 and DOM XML

Link to comment
Share on other sites

How can i test that

 

 

 

Here is the data

 

Database: MySQL 5.1.11-beta

 

HTTP server: Apache/2.0.59 (FreeBSD) PHP/4.4.4 mod_ssl/2.0.59 OpenSSL/0.9.8b

PHP version: 4.4.4 (Zend: 1.3.0)

 

 

XML Support active

XML Namespace Support active

EXPAT Version expat_2.0.0

 

 

xmlrpc

core library version xmlrpc-epi v. 0.51

php extension version 0.51

author Dan Libby

homepage http://xmlrpc-epi.sourceforge.net

open sourced by Epinions.com

Link to comment
Share on other sites

it sems like i dont have the right ekstensions - right! - so i have to contakt my host first in the morning (its midtnat in DK now :-)

 

Or is ther a work arround

 

I dont have a test server - it ronning live on http//www.shop.net2admin.dk

 

As You can se thi icon RSS is in the browser but the files is missing

 

Great constribution :-0

Link to comment
Share on other sites

it sems like i dont have the right ekstensions - right! - so i have to contakt my host first in the morning (its midtnat in DK now :-)

 

Or is ther a work arround

 

I dont have a test server - it ronning live on http//www.shop.net2admin.dk

 

As You can se thi icon RSS is in the browser but the files is missing

 

Great constribution :-0

 

No work arounds Steen

 

As it states in the instructions .. the XML features (RSS - XML sitemaps) are PHP5 only.

Link to comment
Share on other sites

Is it possible to have the sub categories split into two or three boxes across the page rather than one full sub category list? (50 sub categories)

 

I enabled the seo pop out menu, but soon had a customer send me an email he was unable to browse the full sub categorys becuase it went off the bottom of the page, when he tried to scroll down, the menu dissapeared.

 

Only customers with a scroll wheel in their mouse would be able to see all the sub categories in the SEO pop out menu since that doesnt invole leaving the menu.

 

The seo pop out menu apears on top of images, but it does not apear over flash movies.

If there is a flash movie beside the pop out menu, the seo pop out menu gets squashed and is unreadable.

Link to comment
Share on other sites

Is it possible to have the sub categories split into two or three boxes across the page rather than one full sub category list? (50 sub categories)

 

I enabled the seo pop out menu, but soon had a customer send me an email he was unable to browse the full sub categorys becuase it went off the bottom of the page, when he tried to scroll down, the menu dissapeared.

 

Only customers with a scroll wheel in their mouse would be able to see all the sub categories in the SEO pop out menu since that doesnt invole leaving the menu.

 

The seo pop out menu apears on top of images, but it does not apear over flash movies.

If there is a flash movie beside the pop out menu, the seo pop out menu gets squashed and is unreadable.

 

Anyone know how this could be achieved?

Link to comment
Share on other sites

Hi,

 

I am trying to get the contribution to work. I have followed the instructions and the problem that i am getting is that as soon as i swtch it on in admin my categories are already maximised rather than appearing when i hover the mouse over one. After following the instructions, the first error i got was the categories.ser error ( Warning: fopen(1_categories.ser) [function.fopen]: failed to open stream: Permission denied in /home/httpd/vhosts/rail-order.co.uk/httpdocs/includes/functions/fwr_cat_functions.php on line 118

Couldn't fopen _categories.ser.ser)

 

This happens when the cache path is set to DIR_FS_CACHE but the website works if i change that to false. I'm not sure if this is causing my problems.

 

When the menus work, do they kind of look like this, http://www.the-bed-shop.com/

 

Thanks

 

Rich

Link to comment
Share on other sites

Hi,

 

I am trying to get the contribution to work. I have followed the instructions and the problem that i am getting is that as soon as i swtch it on in admin my categories are already maximised rather than appearing when i hover the mouse over one. After following the instructions, the first error i got was the categories.ser error ( Warning: fopen(1_categories.ser) [function.fopen]: failed to open stream: Permission denied in /home/httpd/vhosts/rail-order.co.uk/httpdocs/includes/functions/fwr_cat_functions.php on line 118

Couldn't fopen _categories.ser.ser)

 

This happens when the cache path is set to DIR_FS_CACHE but the website works if i change that to false. I'm not sure if this is causing my problems.

 

When the menus work, do they kind of look like this, http://www.the-bed-shop.com/

 

Thanks

 

Rich

 

If the categories are already maximised then you perhaps haven't added the code in the <head> of the page .. e.g. in index.php

Link to comment
Share on other sites

If the categories are already maximised then you perhaps haven't added the code in the <head> of the page .. e.g. in index.php

 

Hey thanks for the quick reply!

 

I've just checked the index.php file under the root, and the code <?php

if ( defined('FWR_SUCKERTREE_MENU_ON') && FWR_SUCKERTREE_MENU_ON === 'true' )

echo '<link rel="stylesheet" type="text/css" href="fwr_suckertree_css_menu.php" />';

?> is present.

 

I've turned the menu on now, www.rail-order.co.uk

 

It dosen't even show the fwr_arrow.gif files so i'm guessing something might be wrong. I'm pretty sure that no other contributions have been done on the menus in the past which might have conflicted with this contribution.

 

Any ideas? :lol:

Link to comment
Share on other sites

Hey thanks for the quick reply!

 

I've just checked the index.php file under the root, and the code <?php

if ( defined('FWR_SUCKERTREE_MENU_ON') && FWR_SUCKERTREE_MENU_ON === 'true' )

echo '<link rel="stylesheet" type="text/css" href="fwr_suckertree_css_menu.php" />';

?> is present.

 

I've turned the menu on now, www.rail-order.co.uk

 

It dosen't even show the fwr_arrow.gif files so i'm guessing something might be wrong. I'm pretty sure that no other contributions have been done on the menus in the past which might have conflicted with this contribution.

 

Any ideas? :lol:

 

On another note, STS is installed. Should that make a difference?

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...