Minor Modification to Rails Article App

Closed

Description

I have a small script for my Rails articles app that puts a piece of HTML between X and Y characters in each article (eg. X = 3000 and Y = 7000, it puts the code somewhere between 3000 and 7000 characters into the article). The three other pieces of logic at the moment are that it searches for a line break to insert the code (so it doesn't break sentences), it prefers numbers to the lower side of the spectrum (but can still be anywhere in it) and that if the article is not at least X characters long, it just puts it at the end.

I would like 1 conditional and 2 more related piece of logic to be added to the code:

#1. Variable in [url removed, login to view] to turn on/off the "prefer lower" functionality the previous coder did. and similar variable to set the value range it prefers if it is on.

#2. Determine if it is attempting to place it within a list (<ul> or <li>) and if so, either place it above or below the <ul> list, according to my preference, and change the HTML code in either scenario. In the existing config file is the original HTML and X/Y variables, and I need 4 more options: 1. Prefer=Above/Below/Split (which tells it what action to take globally), 2. SplitAbove= If "Split" is selected in the previous one, then this variable sets the % of the time it will place the code above the <ul> (and by deduction the remaining % is the % for below), 3. HTMLAbove= Code for HTML to be used when placing above, 4. HTMLBelow = Code for HTML to be used when placing below

#3. Add the functionality to display a different HTML code based on the overall position the existing script chooses from X and Y for where to place the code, in unlimited different ranges. The ranges must all be definable via config, and if possible, the variable to enable more ranges should be in the config.

Example:

in config:

Ranges=A,Best,1

Range_A_Min=1000

Range_A_Max=1500

Range_A_Code="<br />"

Range_A_Above="<hr />"

Range_A_Below="<br /><hr />

Range_Best_Min=3000

Range_Best_Max=3500

Range_Best_Code="<a name="#me" />

Range_Best_Above="<script type='text/javascript'>"

Range_Best_Below="<br /><hr />"

Range_1_Min=9000

Range_1_Max=12000

Range_1_Code="<ul></ul>"

Range_1_Above="<hr />"

Range_1_Below="<br /><hr />"

So in this set of ranges, for example, if we used the original XY values of 3000,7000, only RangeC would ever be displayed (if within those values). If not within those values, the default HTML code (already defined in [url removed, login to view]) would be used.

==

This is the first piece of work, it is fairly simple to test price/quality/speed, and afterwards I will require further development and troubleshooting on my App, please provide your hourly rate if it is not already listed in your profile.

Also provide your estimate of time it will take to complete this part (eg. same day, 2-4 hours) and when you can begin (eg. immediately).

Skills: HTML, Ruby on Rails, Software Architecture

See more: work logic hr, what is test scenario, software development price list, software development hourly rate, rails architecture, html 4.01 test, hr position, app development software price, app development price list, app development price, where to work at 15, speed type test, rails time, best app development software, test my app 2, software troubleshooting, name my app, modification to php script, minor modification, br software, small php script variable, set rails, split file php script, file split php script, javascript html modification

Project ID: #5300147

7 freelancers are bidding on average $312 for this job

tuxmin

Hi there , Regarding:-Minor Modification to Rails Article App We have gone through your project description and regarding this we want to go for depth analysis and functional discussion with you. In this short space More

$309 USD in 10 days
(4 Reviews)
5.2
fattahaabdul

i have 8+ years of experience. Can we discuss the project. Please initiate a chat with me so that we can discuss the project at a broader level Please see my reviews https://www.freelancer.com/u/fattahaabdul.html Ce More

$1030 USD in 10 days
(11 Reviews)
5.0
pintalpandey92

hello, i am ruby on rail expert and i can do this in given time , id one this before many time,kindly award me the project, need a positive review,

$144 USD in 2 days
(5 Reviews)
2.4
venetanji

I've done a lot of HTML parsing for my web scraping projects and my approach would be to use Nokogiri library to navigate through the document nodes, give a score to each potential insertion point based on the paramete More

$133 USD in 3 days
(0 Reviews)
0.0
mamadoutoure

Hi, I'm an experienced developer (19 years experience in total, with 4 in ruby on rails). In my last project, I've dealt a lot with html, because I had to make the html code genrated by the backendend(server), in or More

$155 USD in 3 days
(0 Reviews)
0.0
theinventor2013

A proposal has not yet been provided

$250 USD in 3 days
(0 Reviews)
0.0
nobi1

A proposal has not yet been provided

$155 USD in 3 days
(0 Reviews)
0.0
oscglezm13

La propuesta todavía no ha sido proveída

$155 USD in 3 days
(0 Reviews)
0.0