Results 1 to 2 of 2
January 15th, 2008, 06:35 PM #1include "featured products" atother pages?
I'm wanting to mix perl, php and html again.
In the dyse templates random products are displayed by <!--cat.feature.grid.3-->
I'm thinking it would be cool if the script would also send the random products to a special url like mydomain.com/shopname/featured.php
Then I could include that with php into my index page. And if I happen to have more than one shop, I could use a rotator script to rotate between all the shops featured products.
Or maybe some other method. It would just be another nice way to entice visitors and spiders on into the shops.
February 5th, 2008, 03:43 PM #2
DySE view.pl does not support including its output into other pages (e.g.: like ae.pl). You would have to make a .php script that fetches DySE output using the php function file_get_contents such as:
thehtml = file_get_contents(url)
Then parse thehtml to isolate the Featured Products section. In your DySE template add recognizeable comments before/after the featured products so you can easily find them in PHP and delete before/after them. You might want to cache this html to disk and stale it out after a while (e.g.: 1 minute), that way you don't keep calling the DySE page each time.
per: David Cusimano
By James - AMWSO in forum AMWSOReplies: 0Last Post: April 5th, 2010, 02:56 AM
By markwelch in forum Unethical AffiliatesReplies: 4Last Post: November 29th, 2008, 07:31 AM
By Chocolate_Chicken in forum GoldenCANReplies: 2Last Post: July 29th, 2005, 12:51 PM