Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Content spinner by site refresh? Something like that?
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Content spinner by site refresh? Something like that?

BuyAdsBuyAds Member

Guys I need some script that spinns the site content by every refresh.

EX:

i come in a site with this content: hello every one.

after the site refresh, the content should be changed to: every one hello. by the next refresh should be: hello one every...

is there something like that?

Thank you!

«1

Comments

  • tdaletdale Member

    Like a marquee but on refresh?

  • BuyAdsBuyAds Member

    marquee?

  • shovenoseshovenose Member, Host Rep

    @tdale said:
    Like a marquee but on refresh?

    No.

    @BuyAds you could use a PHP array if you want a pretermined set of options. Or do you want it to be completely random? And do you care if it makes sense?

  • cassacassa Member
    edited May 2015
    $messages = array(
      "Hello everyone",
      "Hello one every"
    );
    $message = $messages[rand(0, count($messages - 1))];
    
    Thanked by 14n0nx
  • BuyAdsBuyAds Member

    thank you guys.. I mean to spin the whole article and not only the three words

  • JoeryJoery Member

    You want to shuffle all words? You could explode your string on ' ' and then use shuffle(). If that's what you mean.

  • maybe use the spinbot api? interesting idea to keep your content "original"

  • DalCompDalComp Member

    @BuyAds said:
    thank you guys.. I mean to spin the whole article and not only the three words

    If you're doing this for search engines, they will penalize you. Well, google at least (I tried).

    But anyways,

    $article = "hello everyone and every single one of you";
    $parts = explode(" ", $article);
    shuffle($parts);
    
    $randomarticle = implode(" ", $parts);
    
  • BuyAdsBuyAds Member

    @DalComp said:

    Thank you! Will give it a try

  • DeanDean Member

    Can't Google detect if your content is grammatically/structurally correct? It's the same way that they detect if a paragraph is just keywords one after the other and penalize if so.

  • BuyAdsBuyAds Member

    No idea, they keep everything secret. Will give it a try who knows, maybe is a good idea.

  • chrispchrisp Member
    edited May 2015

    You are a bad person

  • BuyAdsBuyAds Member

    DalComp said: $article = "hello everyone and every single one of you";

    $parts = explode(" ", $article);
    shuffle($parts);

    $randomarticle = implode(" ", $parts);

    Sir when I write this one:


    <?php $article = "hello everyone and every single one of you"; $parts = explode(" ", $article); shuffle($parts); $randomarticle = implode(" ", $parts); ?>

    Am getting error:
    Parse error: syntax error, unexpected '=' in /home/../ on line 2

  • BuyAdsBuyAds Member

    @chrisp said:
    You are a bad person

    Is that you Jesus?

  • AmitzAmitz Member

    @BuyAds said:
    Is that you Jesus?

  • ricardoricardo Member

    He's not doing it for search engines, otherwise it'd be the same on every page load.

  • TrafficTraffic Member

    @ricardo said:
    He's not doing it for search engines, otherwise it'd be the same on every page load.

    Shh, don't tell him why his post doesn't make sense :)

  • @shovenose said:
    BuyAds you could use a PHP array if you want a pretermined set of options. Or do you want it to be completely random? And do you care if it makes sense?

    facedesk

    BuyAds said: <?php $article = "hello everyone and every single one of you"; $parts = explode(" ", $article); shuffle($parts); $randomarticle = implode(" ", $parts); ?>

    <?php 
    $article = "hello everyone and every single one of you"; 
    $parts = explode(" ", $article);
    $randomamount = count($parts);
    $hit = rand(0, $randomamount);
    if(isset($_SESSION['last'])) {
        // already seen?ok
        if($hit == 0) {
            $hit=$hit+1;
        } else {
            $hit=$hit-1;
        }
    }
    $_SESSION['last']=$hit;
    echo $parts[$hit];
    ?>
    
    Thanked by 1BuyAds
  • BuyAdsBuyAds Member

    @KwiceroLTD said:

    Thank you, will try it asap!

  • ricardoricardo Member

    Can I ask why you're doing it? It seems like A/B testing, but if you're doing it randomly you won't know the results.

  • BuyAdsBuyAds Member

    I will implement it into a script and this thing works very good. Is just a seo experiment.

  • BuyAdsBuyAds Member

    @KwiceroLTD thank you this worked. I wonder is there is option to add a link in this inside:

    $article = "hello everyone testlink every single one of you";

  • KwiceroLTDKwiceroLTD Member
    edited May 2015

    @BuyAds said:
    KwiceroLTD thank you this worked. I wonder is there is option to add a link in this inside:

    $article = "hello everyone testlink every single one of you";

    Presuming you're not putting spaces, yes, you're exploding by space, also you can't double double quotes without causing an error, you'll have to escape or swap to single.

    IE:

    $article = "hello everyone testlink every single one of you"; 
    

    OR:

    $article = "hello everyone testlink every single one of you"; 
    
  • 4n0nx4n0nx Member

    I think it's a good thing that people try to scam search engines. This will prevent it from happening in the long run. And it wastes their time that they otherwise would have used to scam old people over the phone.

    <- can't wait for the random words blogs and sites like rssing and alternativeto to disappear

  • BuyAdsBuyAds Member

    am getting error :(

    Parse error: syntax error, unexpected 'http' (T_STRING) in /home

    I used like this:

    http://pastebin.com/raw.php?i=QrmRhDmd

  • @BuyAds same problem I just explained, you're double double quoting, if you do a string like

    $x = "a"a"a";

    Then expect errors, as the " causes a break, and if you did something like ".session_id()." it wouldn't cause an error, so change the href ( " ) to '.

    Thanked by 1BuyAds
  • BuyAdsBuyAds Member

    Thank you Sir! I have change it but now it shows as text and not as link.

    Here you can test it: http://veniceholiday.org/4444.php

  • Post the raw PHP code please.

  • BuyAdsBuyAds Member

    @KwiceroLTD sorry for the late reply, I was under stress you know it :)

    Here is the raw code: http://pastebin.com/raw.php?i=E9Amfkfu

    Thank you for the time Sir!

  • madtbhmadtbh Member
    edited May 2015

    Maybe try something like this: http://pastebin.com/raw.php?i=fGzzrRWA

    It replaces the word "testlink" for the url.

    Thanked by 1BuyAds
Sign In or Register to comment.