SEO Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   SEO Chat ForumsOtherSEO Scripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread SEO Chat Forums Sponsor:
  #1  
Old April 15th, 2008, 12:43 PM
Glenn Kilpatric Glenn Kilpatric is offline
Contributing User
SEO Chat Novice (500 - 999 posts)
 
Join Date: Jun 2006
Location: England
Posts: 603 Glenn Kilpatric User rank is Corporal (100 - 500 Reputation Level)Glenn Kilpatric User rank is Corporal (100 - 500 Reputation Level)Glenn Kilpatric User rank is Corporal (100 - 500 Reputation Level)Glenn Kilpatric User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 16 h 6 m 42 sec
Reputation Power: 5
Content Rotator script

Can anyone recommend a content rotator script that will fit into a html page ? Also has anyone any experience of using such a script ? are they positive, neutral or detrimental on the seo front ?

Thanks - Glenn

Reply With Quote
  #2  
Old April 16th, 2008, 06:20 PM
Darrin Ward's Avatar
Darrin Ward Darrin Ward is offline
Founder, SEOChat.com :)
SEO Chat Beginner (1000 - 1499 posts)
 
Join Date: Dec 2002
Location: Miami, Florida
Posts: 1,439 Darrin Ward User rank is Corporal (100 - 500 Reputation Level)Darrin Ward User rank is Corporal (100 - 500 Reputation Level)Darrin Ward User rank is Corporal (100 - 500 Reputation Level)Darrin Ward User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 17 h 5 m 20 sec
Reputation Power: 11
Hi Glenn,

It really depends what you use it for. If you're rotating the whole page on every hit, then I'd recommend against it. If you're rotating small parts of the page, then it might be OK. Are you doing it for SEO or for your visitors?

The only way to do it within a standard HTML file is to use Javascript, which eliminates the SEO benefit (since the content might not be read.) However, if you can have .htm(l) files parsed by the server as if they were php files, then you'd be able to embed php code which would perform the rotation.

I can't think of one off hand (I've always done it custom). Take a look at the array_rand php function.
__________________
Darrin J. Ward, a Professional SEO Consultant and Original Founder of SEO Chat (this site), Google Dance Tool & some other cool stuff!

* Rankings Reporter - Track your Website's Keyword Rankings in Google & Yahoo.

* ChatButton - Free AJAX Chatboxes to embed onto any Webpage - super-easy copy/paste setup!.

Reply With Quote
  #3  
Old April 24th, 2008, 11:47 AM
Glenn Kilpatric Glenn Kilpatric is offline
Contributing User
SEO Chat Novice (500 - 999 posts)
 
Join Date: Jun 2006
Location: England
Posts: 603 Glenn Kilpatric User rank is Corporal (100 - 500 Reputation Level)Glenn Kilpatric User rank is Corporal (100 - 500 Reputation Level)Glenn Kilpatric User rank is Corporal (100 - 500 Reputation Level)Glenn Kilpatric User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 16 h 6 m 42 sec
Reputation Power: 5
Quote:
Originally Posted by Darrin Ward
Hi Glenn,

It really depends what you use it for. If you're rotating the whole page on every hit, then I'd recommend against it. If you're rotating small parts of the page, then it might be OK. Are you doing it for SEO or for your visitors?

The only way to do it within a standard HTML file is to use Javascript, which eliminates the SEO benefit (since the content might not be read.) However, if you can have .htm(l) files parsed by the server as if they were php files, then you'd be able to embed php code which would perform the rotation.

I can't think of one off hand (I've always done it custom). Take a look at the array_rand php function.


Thanks Darren,

Finally got back to this little project. I just want to rotate small parts of a page mainly for the readers (Page is getting big and I dont want too much info on) but I would like search engines to read the rotated content too. I managed to source a rotator script off the net pretty cheap, but am now cheased off to learn that it uses java script so the bots cant read the content.

So I am back on with my search to find an seo friendly content rotator. Sadly I dont understand php to any great degree so it will have to be an already existing script.

Last edited by Glenn Kilpatric : April 24th, 2008 at 11:51 AM.

Reply With Quote
  #4  
Old April 24th, 2008, 12:34 PM
googler's Avatar
googler googler is offline
Cool Dude
SEO Chat Intermediate (1500 - 1999 posts)
 
Join Date: Aug 2003
Location: Vancouver, Washington, U.S.A.
Posts: 1,640 googler User rank is Sergeant (500 - 2000 Reputation Level)googler User rank is Sergeant (500 - 2000 Reputation Level)googler User rank is Sergeant (500 - 2000 Reputation Level)googler User rank is Sergeant (500 - 2000 Reputation Level)googler User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 11 h 29 m 11 sec
Reputation Power: 20
Send a message via AIM to googler Send a message via Google Talk to googler Send a message via XFire to googler
array_rand will definately work, I got this off the php manual:

PHP Code:
<?php
srand
((float) microtime() * 10000000);
$input = array("Neo""Morpheus""Trinity""Cypher""Tank");
$rand_keys array_rand($input2);
echo 
$input[$rand_keys[0]] . "\n";
echo 
$input[$rand_keys[1]] . "\n";
?>



just replace the elements in $input with your text ( the array function works with large strings as well, and HTML characters I believe), this code takes two random elements, change ($input, 2) to ($input, 1) to get only one element, and remove an instance of the echo.

Read more here: http://us2.php.net/array_rand
__________________
Work Smarter, Not Harder
The Definitive Guide to Page Rank
Link Building 101

Last edited by googler : April 24th, 2008 at 12:37 PM.

Reply With Quote
  #5  
Old April 24th, 2008, 01:07 PM
dzine's Avatar
dzine dzine is offline
Vergruizer: Vot tebe khuy
SEO Chat Intermediate (1500 - 1999 posts)
 
Join Date: Oct 2005
Location: in a life preserver @ seorefugee
Posts: 1,926 dzine User rank is Sergeant Major (2000 - 5000 Reputation Level)dzine User rank is Sergeant Major (2000 - 5000 Reputation Level)dzine User rank is Sergeant Major (2000 - 5000 Reputation Level)dzine User rank is Sergeant Major (2000 - 5000 Reputation Level)dzine User rank is Sergeant Major (2000 - 5000 Reputation Level)dzine User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Month 6 Days 2 h 22 m 27 sec
Reputation Power: 25
I'm rotating content using JS, but that's obviously only meant for humans. What it does is change the order of a row of links, so that every link gets to be first in the row now and again. Bots don't see it tho, so it doesn't work if your intention is about "fresh content" (whatever that may accomplish)

Reply With Quote
  #6  
Old April 24th, 2008, 02:48 PM
Glenn Kilpatric Glenn Kilpatric is offline
Contributing User
SEO Chat Novice (500 - 999 posts)
 
Join Date: Jun 2006
Location: England
Posts: 603 Glenn Kilpatric User rank is Corporal (100 - 500 Reputation Level)Glenn Kilpatric User rank is Corporal (100 - 500 Reputation Level)Glenn Kilpatric User rank is Corporal (100 - 500 Reputation Level)Glenn Kilpatric User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 16 h 6 m 42 sec
Reputation Power: 5
Quote:
Originally Posted by dzine
I'm rotating content using JS, but that's obviously only meant for humans. What it does is change the order of a row of links, so that every link gets to be first in the row now and again. Bots don't see it tho, so it doesn't work if your intention is about "fresh content" (whatever that may accomplish)


Hi Dzine,

Like you my main aim was to rotate some content for people. At the moment the page in question is rather full. The page is a list of links and info about articles elsewhere on the site under the same category (is this called a gateway page ??). Rather than fill the page with another dozen small excerpts and links I thought I would rotate the less important excerpts, but I would like the search engines to see it too - it would be an opportunity missed no matter how little value it has.

Reply With Quote
  #7  
Old April 24th, 2008, 02:52 PM
Glenn Kilpatric Glenn Kilpatric is offline
Contributing User
SEO Chat Novice (500 - 999 posts)
 
Join Date: Jun 2006
Location: England
Posts: 603 Glenn Kilpatric User rank is Corporal (100 - 500 Reputation Level)Glenn Kilpatric User rank is Corporal (100 - 500 Reputation Level)Glenn Kilpatric User rank is Corporal (100 - 500 Reputation Level)Glenn Kilpatric User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 16 h 6 m 42 sec
Reputation Power: 5
Quote:
Originally Posted by googler
array_rand will definately work, I got this off the php manual:

PHP Code:
<?php
srand
((float) microtime() * 10000000);
$input = array("Neo""Morpheus""Trinity""Cypher""Tank");
$rand_keys array_rand($input2);
echo 
$input[$rand_keys[0]] . "\n";
echo 
$input[$rand_keys[1]] . "\n";
?>



just replace the elements in $input with your text ( the array function works with large strings as well, and HTML characters I believe), this code takes two random elements, change ($input, 2) to ($input, 1) to get only one element, and remove an instance of the echo.

Read more here: http://us2.php.net/array_rand


Would this allow me to rotate several pieces of code similar to this ?

<h2><a href="http://mysite">Keyword here</a></h2>
<p>
<img src="../images/200quint.jpg" alt="Keyword fishing - Article about buying a keyword and kitting it out for sea fishing. Includes information on keyword fishing tackle and fishfinders, gps etc." align="right" border="1" height="153" hspace="6" width="200">This
excellent article was written by one of our fishing forum members quint.
Everything you could want to know about keyword is here including
: Which keyword to buy for sea fishing, what equipment like gps and
fish finders to buy, what safety equipment you will need, what tackle you
may wish to consider buying, where to fish, what to fish for including
cod, pollock and bass. All the information you will require is right
here in this one article. <a href="mysite">Please click here to read this wonderful example.</a></p><p>
&nbsp;</p><hr>

Reply With Quote
  #8  
Old April 24th, 2008, 03:09 PM
Darrin Ward's Avatar
Darrin Ward Darrin Ward is offline
Founder, SEOChat.com :)
SEO Chat Beginner (1000 - 1499 posts)
 
Join Date: Dec 2002
Location: Miami, Florida
Posts: 1,439 Darrin Ward User rank is Corporal (100 - 500 Reputation Level)Darrin Ward User rank is Corporal (100 - 500 Reputation Level)Darrin Ward User rank is Corporal (100 - 500 Reputation Level)Darrin Ward User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 17 h 5 m 20 sec
Reputation Power: 11
A safer way would probably be to have several external "include files", rotating between them. With the above code, you'd need to check carefully that there were no accidental non-escaped quotes. Using a double quote would cause the script to break (and that's in your HTML).

So - create multiple .htm(l) pages, each with a variant of the code you have below.. and then go like this:

PHP Code:
 srand((float) microtime() * 10000000); 
$input = array("file1.html""file2.html""file3.html"); 
$rand_keys array_rand($input);
$contents file_get_contents($rand_keys[0]);
echo 
$contents

I haven't tested this, but it should work... you can add/edit "file1.html", "file2.html", "file3.html". This assumes the files are in the same directory as the executing php. Let me know if it works.
Comments on this post
googler agrees: This is a simpler method

Last edited by Darrin Ward : April 24th, 2008 at 03:17 PM. Reason: Changed from file() to file_get_contents()

Reply With Quote
  #9  
Old April 24th, 2008, 03:09 PM
googler's Avatar
googler googler is offline
Cool Dude
SEO Chat Intermediate (1500 - 1999 posts)
 
Join Date: Aug 2003
Location: Vancouver, Washington, U.S.A.
Posts: 1,640 googler User rank is Sergeant (500 - 2000 Reputation Level)googler User rank is Sergeant (500 - 2000 Reputation Level)googler User rank is Sergeant (500 - 2000 Reputation Level)googler User rank is Sergeant (500 - 2000 Reputation Level)googler User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 11 h 29 m 11 sec
Reputation Power: 20
Send a message via AIM to googler Send a message via Google Talk to googler Send a message via XFire to googler
Yes just make sure you escape the quotes. In other words, simply add a \ before each quotation mark within the HTML Like this:
PHP Code:
<?php
srand
((float) microtime() * 10000000);
$input = array("<h2><a href=\"http://mysite\">Keyword here</a></h2>
<p>
<img src=\"../images/200quint.jpg\" alt=\"Keyword fishing - Article about buying a keyword and kitting it out for sea fishing. Includes information on keyword fishing tackle and fishfinders, gps etc.\" align=\"right\" border=\"1\" height=\"153\" hspace=\"6\" width=\"200\">This
excellent article was written by one of our fishing forum members quint.
Everything you could want to know about keyword is here including
: Which keyword to buy for sea fishing, what equipment like gps and
fish finders to buy, what safety equipment you will need, what tackle you
may wish to consider buying, where to fish, what to fish for including
cod, pollock and bass. All the information you will require is right
here in this one article. <a href=\"mysite\">Please click here to read this wonderful example.</a></p><p>
&nbsp;</p><hr>"
"Morpheus""Trinity""Cypher""Tank");
$rand_keys array_rand($input2);
echo 
$input[$rand_keys[0]] . "\n";
echo 
$input[$rand_keys[1]] . "\n";
?>

Reply With Quote
  #10  
Old April 26th, 2008, 12:07 PM
Glenn Kilpatric Glenn Kilpatric is offline
Contributing User
SEO Chat Novice (500 - 999 posts)
 
Join Date: Jun 2006
Location: England
Posts: 603 Glenn Kilpatric User rank is Corporal (100 - 500 Reputation Level)Glenn Kilpatric User rank is Corporal (100 - 500 Reputation Level)Glenn Kilpatric User rank is Corporal (100 - 500 Reputation Level)Glenn Kilpatric User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 16 h 6 m 42 sec
Reputation Power: 5
Ok it turns out I ordered the wrong rotator and they do a php one and they swapped it for me. I've installed it and it works well. Very cheap at £5 thats USA $10 from

http://www.mooonbaby.com/scripts/phpabsoluterotators.html/

Reply With Quote
Reply

Viewing: SEO Chat ForumsOtherSEO Scripts > Content Rotator script


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |