Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Tips, Tricks & Tutorials
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 17th, 2012, 04:29 AM
digitalcow digitalcow is offline
 
Join Date: Jun 2010
Posts: 494
Default Unique content on ALL product pages

Eric,

Thanks for your help in getting the unique content to work on product pages and categories, it's helping the seo a lot.

Have another related question though. I wish to add a unique article to each one of the product pages on my store - about 96,000. I have unlimited unique content so that's not a problem, however if I were to do it the same way as before, using the php to pull a .txt file from a folder, I would end up with at least 275,000 lines on the file which may be a little large!

Is a work around I could use where I could upload tons of articles to a folder and php include a random article?
  #2  
Old January 17th, 2012, 07:51 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

Sure, you could use PHP to grab a random article from a directory. Here's a snippet of code I found after a quick search: http://www.jonasjohn.de/snippets/php/random-file.htm

Eric
  #3  
Old January 17th, 2012, 07:57 AM
digitalcow digitalcow is offline
 
Join Date: Jun 2010
Posts: 494
Default

thanks, will try.
  #4  
Old January 31st, 2012, 10:39 AM
digitalcow digitalcow is offline
 
Join Date: Jun 2010
Posts: 494
Default

Eric, Sorry to ask another question on this and dig out an old thread....

Would it be possible to have the random unique content working on each product page but pulling from specific folders depending on which category a product is in?

Lets say I a category ID 1 for dresses, could I use a random code to pull content from a folder called 1. If I had category ID 2 for jeans, i would want to pull random articles from folder 2 to display on products in category 2.

Does that make sense?
  #5  
Old January 31st, 2012, 10:58 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

Sure, you would just need to pass the RandomFile() function the folder name based on the category ID or category slug.

print RandomFile($category->id.'/','.*');

Eric
  #6  
Old April 19th, 2012, 04:55 PM
jguinn1 jguinn1 is offline
 
Join Date: Sep 2011
Posts: 5
Default

Quote:
Originally Posted by digitalcow View Post
Eric,

Thanks for your help in getting the unique content to work on product pages and categories, it's helping the seo a lot.
Any chance I could get a link to this? Getting unique content would be something I would be interested in too.

Thanks
  #7  
Old April 19th, 2012, 05:29 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi
Quote:
Originally Posted by jguinn1 View Post
Any chance I could get a link to this? Getting unique content would be something I would be interested in too.
The link is posted in post #2 (above).

Eric
  #8  
Old August 11th, 2013, 12:49 PM
raj2006 raj2006 is offline
 
Join Date: Oct 2008
Location: New Delhi, India
Posts: 147
Default

Quote:
Originally Posted by Eric View Post
Hi

Sure, you would just need to pass the RandomFile() function the folder name based on the category ID or category slug.

print RandomFile($category->id.'/','.*');

Eric
Hi Eric,

One small doubt. If I want to use the category slug, then what should come in place of "id" in the above php code?

Also, how to find out the Category IDs for the store categories?
__________________
Making Sizeable Income From Passive, Hands-Off Affiliate Marketing Is A Reality!
Learn These Guaranteed Techniques from Confessions of a Lazy Super Affiliate eBook.

Last edited by raj2006 : August 11th, 2013 at 12:52 PM.
  #9  
Old August 11th, 2013, 05:02 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

$category->slug will give you the slug.

You can see the category IDs in the Factory on every category page. Example:



Eric
  #10  
Old August 11th, 2013, 06:57 PM
raj2006 raj2006 is offline
 
Join Date: Oct 2008
Location: New Delhi, India
Posts: 147
Default

Hi Eric,

Thanks a lot.

Raj
__________________
Making Sizeable Income From Passive, Hands-Off Affiliate Marketing Is A Reality!
Learn These Guaranteed Techniques from Confessions of a Lazy Super Affiliate eBook.
  #11  
Old August 11th, 2013, 08:31 PM
raj2006 raj2006 is offline
 
Join Date: Oct 2008
Location: New Delhi, India
Posts: 147
Default

Hi Eric,

I tried this function. It works fine but it assumes that I will have the folders equivalent to category slugs in the root (public_html).

When I have several categories, then the root becomes extremely cluttered with so many folders for the unique content.

I would like to put all these unique content related folders under "unique-content/top/category slug" and "unique-content/bottom/category slug" corresponding to content for top and bottom of the product detail page.

How to add this extra sub-folders specs in this function so that the random file is acquired from inside this sub-folder structure?

Sorry. I don't know php, so I would really appreciate if you would help me with this change.

Thanks
__________________
Making Sizeable Income From Passive, Hands-Off Affiliate Marketing Is A Reality!
Learn These Guaranteed Techniques from Confessions of a Lazy Super Affiliate eBook.
  #12  
Old August 12th, 2013, 08:59 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

Actually a better method would be to use what was mentioned in post # 13 of this thread: http://www.datafeedr.com/forums/showthread.php?t=5952

I wouldn't put any of the articles in the root folder. I would make a sub-folder and put them there.

Eric
  #13  
Old August 19th, 2013, 06:34 AM
raj2006 raj2006 is offline
 
Join Date: Oct 2008
Location: New Delhi, India
Posts: 147
Default

Hi Eric,

I have implemented it successfully. It is working fine now.

Thanks for your help.

Raj
__________________
Making Sizeable Income From Passive, Hands-Off Affiliate Marketing Is A Reality!
Learn These Guaranteed Techniques from Confessions of a Lazy Super Affiliate eBook.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unique content on each category homepage digitalcow Questions 15 January 16th, 2014 04:46 PM
Unique Content Vs No Content youngy Questions 13 September 23rd, 2011 09:23 AM


All times are GMT -5. The time now is 03:38 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.