May 4, 2011

Post headers and Post footers - randomization request | CyberSEO Pro | Support Forum

Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Related Related Topics sp_TopicIcon
Post headers and Post footers - randomization request
Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 (0 votes) 
March 10, 2012
8:17 pm
Avatar
webmaster4you
Guest
Guests

Dear admin, i have about 300 words that i want to use it in both post headers and post footers, and right now, if i place ” <!–more–> ” between each word, the script will pull just one random word ( if i place “<!–more–>” between two words, will take those two words and so on )

I want to make it pull 8-10 words from the list but random. It's that possible?

Thank you in advance.

March 11, 2012
1:46 pm
Avatar
CyberSEO
Admin
Forum Posts: 3666
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

No, it’s impossible to do via “Post Headers” and “Post Footers”. But it can be done with a simple code which must be added to your existing code (if any) in the “PHP code <?php .. ?>” box:

Login to see the code

Where ‘words.txt’ should be replaced with a path or an URL of the raw text file which must contain the words (one word per line), e.g.:

word1
word2
word3
word4
etc…

March 12, 2012
4:42 am
Avatar
webmaster4you
Guest
Guests

Thanks for this nice code but where can i specify that i want only 10 random words to be pulled from the list?

March 12, 2012
11:21 am
Avatar
CyberSEO
Admin
Forum Posts: 3666
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

This line says 8-10 words:

Login to see the code

If you need exactly 10 words, it should be changed this way:

Login to see the code

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 541

Currently Online:
13 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ninja321: 84

s.baryshev.aoasp: 64

Freedom: 61

MediFormatica: 49

B8europe: 47

saviulisse67: 45

Member Stats:

Guest Posters: 338

Members: 2633

Moderators: 0

Admins: 1

Forum Stats:

Groups: 1

Forums: 4

Topics: 1529

Posts: 7735

Newest Members:

t.schleiser, worldnetsites, janodamek, socialbiz4themasses, suren.manvelyan.sv, Darick

Administrators: CyberSEO: 3666