Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Link Lists & Getting Listed (http://www.greenguysboard.com/board/forumdisplay.php?f=7)
-   -   Problem - No Periods in submissions! (http://www.greenguysboard.com/board/showthread.php?t=27584)

ladydesigner 2006-01-03 07:59 PM

I actually require that the first letter of the description sentence be capitalized. I have it stated clearly on the rules page. On one of my link lists, the script will fix it automatically but on the one I run by hand (yikes!), I'd have to manually fix all the submits that didn't follow this and it's just to tedious. I automatically delete submitted sites that don't capitalize the first letter of the description sentence and also if the first letter of each word in the title isn't capitalized. I do this pretty much because I run Click 4Sex Fun all by hand and simply don't have the time to fix each submit. As it is, my backlog is out of control!! |cry|

MadMax 2006-01-03 09:21 PM

Hey Netgoonie, what script are you running? I can give you a snippet of code to detect a period at the end of the description and add one if it isn't there (if your script is php). :)

kenny 2006-01-04 03:01 AM

Quote:

Originally Posted by ClickBuster
Man, don't know how your script is coded, but if it's PHP maybe the following piece of code will be useful:

Code:

 $end = $description[strlen($description) - 1];
 $end != "." ? $description .= "." : 1;
?>

Assuming that the name of the variable is $description, this code will put a period at the end, in case the last char is not a period.


This is the route I would go if I wanted to insure periods.

kenny 2006-01-04 03:06 AM

Quote:

Originally Posted by ladydesigner
I actually require that the first letter of the description sentence be capitalized. I have it stated clearly on the rules page. On one of my link lists, the script will fix it automatically but on the one I run by hand (yikes!), I'd have to manually fix all the submits that didn't follow this and it's just to tedious. I automatically delete submitted sites that don't capitalize the first letter of the description sentence and also if the first letter of each word in the title isn't capitalized. I do this pretty much because I run Click 4Sex Fun all by hand and simply don't have the time to fix each submit. As it is, my backlog is out of control!! |cry|


There is code that does that too.

I know in perl if the variable is called "$description" you do it like this:

ucfirst($description)

There is a way to do this in PHP too. But I never use PHP so I don't know

Xeno 2006-01-04 03:37 AM

I am using a cgi script....so any changes to this would need to be done from the makers. Thanks for the suggestion though :) ....I decided not to make it a submission guideline, however, modifying the script would make things easier for "eveyone" overall and I should maybe get them to do that.

ClickBuster 2006-01-04 04:54 AM

Quote:

Originally Posted by sleeper
There is code that does that too.

I know in perl if the variable is called "$description" you do it like this:

ucfirst($description)

There is a way to do this in PHP too. But I never use PHP so I don't know

It's ucfirst($description) in PHP too ;)


All times are GMT -4. The time now is 06:44 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc