Find Jobs
Hire Freelancers

561413 Add links in text PHP class

N/A

Igangværende
Slået op cirka 12 år siden

N/A

Betales ved levering
I need a php class to inject links in to text The class should have take the following arguments: • Text (paragraphed) • Number of links (random rage ie. 1-3) • Related keywords • Main Keywords • Link type o Standard html <a href=“link“></a> (default) o Media wiki format o BB code • Links Here are a few examples how it needs to work: 1. Loads text 2. I specify the numbers of links range. Let's say 1-4, and the script selects a random number from 1-3 3. Optionally loads the related keywords 4. Loads main keywords (randomly selects one to work with) 5. Randomly selects a link to work with 6. Uses a link type i specify Examples: Let's say these are the random picked keywords and the list of all related keywords, and we are injection two links in html format Main Related Keywords Big company company Because noise Drama This is because Let's look at the following text (paragraphed) before we use the class: It increases the sales of your company. This is because with good services, the final product is appealing to your target readers. It also attracts them from a distance. This is usually the case especially when you use graphics. It also enhances communication. You will be able to pass your messages in a clearer way by using quality services. This is because people present the final product in a material that makes it visible from a distance. Quality services will also giver your prints more durability. This is because the project will be done on materials with special coating. The papers used will also be thicker than those used by ordinary service providers. As such, they will be able to shrug dirt and moisture off easily. This way, they will last long and retain their appearance. After: It increases the sales of your <a href=“link“>Big company</a>. This is because with good services, the final product is appealing to your target readers. It also attracts them from a distance. This is usually the case especially when you use graphics. It also enhances communication. You will be able to pass your messages in a clearer way by using quality services. This is <a href=“link“>because</a>. people present the final product in a material that makes it visible from a distance. Quality services will also giver your prints more durability. This is because the project will be done on materials with special coating. The papers used will also be thicker than those used by ordinary service providers. As such, they will be able to shrug dirt and moisture off easily. This way, they will last long and retain their appearance. So what happened: It firs started working with keyword „Big company“. Since it wasn't in the text it started looking for a replacement in related keywords. Found that the keyword is in the text and replaced that keyword in the text with the one it needs to work with and added the html link code Then it moved on to the next keyword that it needs to work with; „Because“. Found a few matches in the text and it didn't need to look up related ones to replace it. BUT, since there is already a link in the first paragraph, the link is added in the second paragraph Let's look at a few problems WHAT IF? 1. You need add 4 links to the text that has only 2 paragraphs? You spread the evenly. 2 in the first, and 2 in second paragraph 2. 5 links, 2 paragraphs 2 in the first, and 2 in second paragraph and the fifth one would go randomly in the first or second 3. The class can't find the main or related keywords in text? It randomly picks one word in text and replaces it with the one it needs to use   What musn't hapen: A link in link <a href=“link“>Big <a href=“link“>because</a></a> Partitialy matching a keyword We have a <a href=“link“>few Keyword</a>s when it should match „few keyword“ The class should also have a bind method for the keywords and links. So if I specify in the class: $inject->bindlink(“kw”, “link”); $inject->bindlink(“kw2”, “link2”); When it's injecting the keyword, it only can use that link
Projekt-ID: 2307368

Om projektet

Projekt på afstand
Aktiv 12 år siden

Leder du efter muligheder for at tjene penge?

Fordele ved budafgivning på Freelancer

Fastsæt dit budget og din tidsramme
Bliv betalt for dit arbejde
Oprids dit forslag
Det er gratis at skrive sig op og byde på jobs

Om klienten

Flag for CROATIA
Zagreb, Croatia
5,0
9
Betalingsmetode verificeret
Medlem siden okt. 30, 2010

Klientverificering

Tak! Vi har sendt dig en e-mail med et link, så du kan modtage din kredit.
Noget gik galt, da vi forsøgte at sende din mail. Prøv venligst igen.
Registrerede brugere Oprettede jobs i alt
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Indlæser forhåndsvisning
Geolokalisering er tilladt.
Din session er udløbet, og du er blevet logget ud. Log venligst ind igen.