Archive

Posts Tagged ‘Count’

Mysql – Count Distinct Ip Addresses For A Date Range

February 4th, 2012 Comments off

Hi,

I am looking for some help to create a mysql query to get the distinct (per day) count of ip addresses a link has been clicked for a date range.

Lets say my IP address clicks on the same link 5 times every day during January 2012 using the same ip address. There would be 155 (5*31) records in the table but the query result should display 31 as we are only counting the same ip address max of once per day.

Categories: MySQL Tags: , , , , , ,

Increase The Digg Count And Tweet Count For Our Blog Post

January 2nd, 2012 Comments off

Hi,
We need experience SEO person to increase our Digg votes and Re-tweet our blog post and increase the count

Please PMB with your previous examples where you have achieved good digg votes and retweets on twitter

We can discuss on the pricing amount and number

Thanks ,
Max

People Counter

December 29th, 2011 Comments off

We need a software that could be able to count people.
We do prefer open source based (like opencv or openframeworks).

The features we need are the same as in this youtube video http://www.youtube.com/watch?v=e19olH5goNY

Main features:
– application should show and operate based on a webcam attached to the computer
– count people that cross a line drawed on the screen
– count people that cross multiple lines drawed on the screen
– count objects and people on both scenarios above

Messages Count From Mysql

December 27th, 2011 Comments off

I got one script for messages between the users

In inbox the messages shows only the received messages (incoming)
but the counter counts all messages sent and received from the user

So the total messages is not correct

For example I sent 3 messages and received 4 messages
in inbox it shows you have 7 messages which is not correct
how to change the php attached to query to count only mesages received

I think line 83 need to be changed

Regards

Help Program Numeral Circles That Count-up W/i Post

November 16th, 2011 Comments off

I would like someone to code circled numbers (count up from 1-10) within the content of one post within my website.

Requirements:

- I would like for these numbers to be similar to Adweeks numeral countdown. (see the following post for an example: http://www.adweek.com/adfreak/30-freakiest-ads-2009-130548 )
- The coding must be optimized so that it does not negatively effect the SEO.
- The coding must be easy to apply to other content post pages.
- The numeral font must match the font a…

Web Fetching And Page Analysis In Php

October 31st, 2011 Comments off

Hello Guys,

I need a php script which when inputs url should analyze that page.

Fetch title, meta keywords, meta description, count the number of words and characters in title,meta keywords, description and comment on it as I suggest

Fetch the keywords from the page, post the count, comment on it, fetch h1, h2, h3, h4 tags from the page and as per the result comment on it. etc

Basically I need a script which can fetch the page content and comment on individual items.

Need an excellent layout, ajax preferrable in functionality with a smooth progress bar when someone enters url and hits submit to analyze the page.

In conclusion:
Submit url, show progress bar, fetch page contents, display page contents, title, meta keywords, etc show the count of individual items and comment as per my instructions on each and every result.

Should be done in php.

Categories: Ajax, PHP Tags: , , , , , ,

Increase Google+ Count On Four Websites

October 27th, 2011 Comments off

Please quote cost to increase Google + count on four sites to 25 each.

Count Files In Directory

October 24th, 2011 Comments off

PHP Code that counts files in the current directory. I should be able to upload this to any directory and when I visit the page, it shows a total count for the files in the directory it is in.

Add A Disqus Count And 2 Links On A Prestashop Website

October 21st, 2011 Comments off

We want to add on our productpage of our webshop (prestashop) a Disqus comment count function and 2 other links: see attachment (product.jpg)

example of a productpage: http://www.maselection.eu/product.php?id_product=20

Rewrite 1200 Words Count

August 2nd, 2011 Comments off

I need rewrite 1200 words count text.

I need you rewrite 6 times.

Thanks.

Increase Google+ Count On A Site

July 27th, 2011 Comments off

Please quote cost to increase Google+ count on a site.
Prefer to only increase by quantity 25 per week.

Re-write 180 Already Written 200 Word Count 2

June 27th, 2011 Comments off

Hello All,

I need someone to re-write 180 pages of around 200 word count.

http://www.kindgreenbuds.com/marijuana-strains/afghanica.html
See the strain drop down menu on the right side of page? These are the pages that I want re-written.

Please do not copy-write any of the information. I also “only” need the facts. I don’t need other writer’s comments that are written.

Thanks,
Michael

Re-write 180 Already Written 200 Word Count

June 26th, 2011 Comments off

Hello All,

I need someone to re-write 180 pages of around 200 word count.

http://www.kindgreenbuds.com/marijuana-strains/afghanica.html
See the strain drop down menu on the right side of page? These are the pages that I want re-written.

Please do not copy-write any of the information. I also “only” need the facts. I don’t need other writer’s comments that are written.

Thanks,
Michael

Count-up Timer Counter

June 16th, 2011 Comments off

I need a counter similar like the ones you see used in casino’s jackpot system which is money related. I need to put this on the website and the counter should be editable,
1-such as you should be able to edit the first initial amount
2- should have similar to millisecond, cent value and dollar value ( value should be editable)
3- dollar value should be separable by “,” ($4,000) sign and cent by “.”($4,000.25)
4- counter should go up by only ($10,000) a year, just about $27 a day, this also should be editable if i need to change

5- here would be a close example of what i need, but this is a clock without millisecound. http://www.flashdo.com/item/analogue-countdown-timer-01-as3/308

I dont mind if there is something on the net and you guys and adjusted to my needs, as long as it do the job for me

also there is a javascript one as well, please check this http://www.dynamicdrive.com/dynamicindex6/dhtmlcount.htm

Function Php To Count Backlinks In Google Yahoo And Bing

June 10th, 2011 Comments off

Hi,

I need a PHP function to count how many backlinks a give URL has at Google, Yahoo and Bing.

I would like to access this function like that:

$ret = Count_BackLinks(‘www.example.com’, $engine);

where $engine could be: 1 (Google), 2 (Yahoo), 3 (Bing)

and $ret = the number of backlinks

thank you

Sergio

Need A Count Down Timer

June 2nd, 2011 Comments off

I need a count down timer script to make the graphic on this page actually work. Please see the following site: http://ecorico.com/ and scroll down to the graphic with the words: EcoRico Available In. I need this done quickly (within 24 hours). Just the count down timer.

Open Source Platform Php Modifications

April 17th, 2011 Comments off

I need modifications to the following version of Project Pier

http://www.projectpier.org/projectrelease/projectpier-087beta (make sure you use 8.7 beta)

———————————————————————————-

Modifications needed:

1) Add sign-up form with username, password, password repeat, sub-domain (this is a new field)
2) Create new global site/users table that includes admin username, site id, sub-domain, create date, last login, project count, milestone count, user count, message count, task list count, task count, link count, file count, size of file directory (updated on each upload)
3) Upon successful signup, a duplicate set of database tables needs to be installed for each user (like wordpress multi-user)
3b) Upon successful signup, an email with username, and site URL (newsite.mysite.com) needs to be sent to user
4) The site DB logic needs to be altered so that upon logging in, users are using the correct set of DB tables for their site (key on site ID)
5) The site file storage logic needs to be altered to create sub-directories for each sign-up under the main file storage directory (so sites can’t overwrite each others files)
6) The platform allows user creation within each install. Created users will exist only in the DB tables for each account (current behavior). The login script needs to be modified to look for sub-domain so that users of each account ( subdomainname.projectsite.com ) login to the correct set of database tables. I will add a mod-rewrite rule to pass the sub-domain to the login page as a variable. (like wordpress multi-user)
7) Need an admin page that shows all global ‘sites’ with the data tables requested in # 2 above (sortable by each metric), paginated at 25 results
8) Need a delete site option on this admin page that deletes all tables associated with the site, as well as the file folder for that site

http://www.projectpier.org/projectrelease/projectpier-087beta (make sure you use 8.7 beta)

———————————————————————————–

Here is the desired user signup flow after modifications are complete:

1) User visits mysite.com and uses signup form to create a new account.

2) Upon signup, a new set of db tables is created to support this user at the sub-domain they created at signup.

(DB tables could look like site1_tables )

3) User is sent an email to welcome them to the site and give them their username and url to their new site

4) User can then visit either mysite.com or subdomain.mysite.com and login to their account

5) As the user sets up their account, the DB tables created for them are used, and the newly created sub-folder for their uploaded files is used

Selected developer will have experience with PHP & MySql (Project Pier uses a view/model/controller model), and will need to install the software on their own development machine. All new code and modifications to the existing code need to be well documented for easy future reference.

Thank for your bid. Preference will be given to developers that can start on the project ASAP.

Facebook Scripts On Counting Like

April 6th, 2011 Comments off

Hi all,
My website needs to held an advertising campaign. This campaign requires member to click “like” in fans page, and then upload a specific photo in their albums.

I need a script that is able to force member to click “like” in fans page and is able to count “like” from members facebook’s photos.

I am open to other ideas/ approaches on facebook.

Increase Viewers Count

February 13th, 2010 Comments off

Need to Increase/boost counter viewers on channels being broadcasted on justin.tv etc, ustream.tv, etc.
I need a fake hits script that will instantly boost the number of viewers on my justin.tv channel. This site has flash players and keeps track by the number of people who are actually watching a player on a particular page.

Increase Live Viewer Count

February 3rd, 2010 Comments off

Need to Increase/boost counter viewers on channels being broadcasted on justin.tv etc.
This site has flash players and keeps track by the number of people who are actually watching a player on a particular page.

Fix My Mysql Query

January 17th, 2010 Comments off

I need someone to provide me with the proper MySQL syntax for the query described below.

When running my current query code (listed below), I’m receiving the following error in MySQL:

[Err] 1064 – You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘) and entry_horse.entryID = T2.entryID(+) and entry_horse.entryID = T3.entryID(‘ at line 13

### My query code:

SELECT student.studentID, student_name, count_of_tests_started_by_student, count_of_tests_failed_by_student,
count_of_tests_passed_by_student, count_of_tests_currently_incomplete_by_student
FROM
( SELECT COUNT(*) AS count_of_tests_started_by_student, studentID FROM test GROUP BY studentID ) AS T1,
( SELECT COUNT(*) AS count_of_tests_failed_by_student , studentID FROM test WHERE test_result = ‘failed’ GROUP BY studentID ) AS T2,
( SELECT COUNT(*) AS count_of_tests_passed_by_student , studentID FROM test WHERE test_result = ‘passed’ GROUP BY studentID ) AS T3,
( SELECT COUNT(*) AS count_of_tests_incomplete_by_student , studentID FROM test WHERE test_result = ‘incomplete’
GROUP BY studentID ) AS T4 ,
student
where
student.studentID = T1.studentID(+) and student.studentID = T2.studentID(+) and student.studentID = T3.studentID(+)
and student.studentID = T4.studentID(+)

Here’s the details for what I need:

i have two myisam mysql tables (student and test). i need the query to return a row for every student in the student table and each returned row should contain the following columns:

* studentID
* student_name
* count_of_tests_started_by_student
* count_of_tests_failed_by_student
* count_of_tests_passed_by_student
* count_of_tests_currently_incomplete_by_student

The STUDENT table contains:
* studentID primary key (1234)
* student_name (john doe)

The TEST table contains:
* testID primary key (1234)
* studentID (1234)
* test_result (“passed”, “failed”, “incomplete”)

Each student may have any number of TEST table records (zero or more).

In my quest to debug the error in my query code, I’ve tried to get the following simpler query code to work. But, I can not even get the following query to work without getting the MySQL syntax error message:

SELECT student.studentID, student_name
FROM
test ,
student
where
student.studentID = test.studentID(+)

Categories: MySQL, SQL Tags: , , , , , ,

Get .gov Link From Any Count 2

December 25th, 2009 Comments off

We need permanent .GOV links (NOT on .GOV Blogs)

NOT HACKED! Must be LEGALLY Published.

They can be from any country, providing that they are a Government run website and they are not just a blog page.

All our links are NON controversial, so not porn, or gambling or anything stupid like that.

Price Structure we pay.

Simple Link: $25 USD

Link with Small Description & Logo: $50 USD

Link with Logo Article style write-up. $100 USD

We are not interested in temp links, blog links or anything like that. If you work in IT and can get the links published LEGALLY on GOV servers, then we have work for you.

No time wasters please.

Mysql Query Pls Help

December 2nd, 2009 Comments off

Hi

i am trying to create simple word filter but i have some problems in the SQL query can somebody please help me, (query needs to be very effcient since the terms table has 20,000 items and banned has 500+ so we cant use SELECT IN)

i have one table called banned(id, word)
then i have second table terms (term_id, keyword)

but when i try to run this query it gives me incorrect results

SELECT t.keyword, t.count, b.word
FROM terms t, banned b
WHERE CHAR_LENGTH( t.keyword ) <30
AND CHAR_LENGTH( t.keyword ) >5
AND t.keyword NOT LIKE ‘%b.word%’
AND t.active =1
AND t.count >4
AND t.count <100
GROUP BY t.keyword
ORDER BY rand( )
LIMIT 0 , 55

anybody can you pls help me ….

Categories: MySQL, PHP, SQL Tags: , , , , , ,

Count Down Timer On Website 2

November 29th, 2009 Comments off

I need someone who can write Flash and can embed a countdown timer on a sales page for me. I already have the script uploaded I just need to timer to be embedded and activated.

Count Down Timer On Website

November 28th, 2009 Comments off

I need someone who can write Flash and can embed a countdown timer on a sales page for me. I already have the script uploaded I just need to timer to be embedded and activated.

Count Down Timer On Website

November 28th, 2009 Comments off

I need someone who can write Flash and can embed a countdown timer on a sales page for me. I already have the script uploaded I just need to timer to be embedded and activated.

C/c++

November 19th, 2009 Comments off

I need a software program that will scrape keywords and sentences based on particular keywords and populate additional keywords form seed words. I have many sample programs to guide you but I need some customized versions of it mashed into one. This is an easy job for expert scraper as I would like a custom version of what is already out there with more of my own custom features. This is not a hard job.

I would just like more stable and better version of common programs already out there. I don’t want buggy program or else I would use what’s already available. The whole point is to be creative and create something better with many examples to guide you.

The program is written in C##.

If you are a visually creative person that would be a plus, I would like it to be easy to use and pleasent to the eye. The program will also have to compatible with win2k,XP,Vista and Windows 7, Mac would be cool too but not a must.

If you accept my project I expect the source code to be delivered to me before payment is released. I am honest and fair and expect the same from you and will rehire you here on scriptlance to support project. I enjoy working with loyal programmers who in turn enjoy valuable repeated business. If you really make stable and professional projects and are passionate about the project it will guarantee you more business to support the project on a task by task basis. So if you currently have no projects and are looking to spend some time completing a quality project that will ensure more jobs via scriptlance please do bid with repeat business in mind. This can be good for beginner programmer as well that need repeated business but that can spend extra time to get started.

Important Info:

You must speak English fluently. This does not mean you ahve to be able to write a book, but if you can’t understand me, and I can’ understand you – then it just won’t work.

You must be available online through IM.

This project will need to be done ASAP. Speed will be a major deciding factor. Don’t bid if you ahve other projects to do before mine.

You must bid AND send a PM. Bids for fake amounts, or PMS without bids will be deleted. The PM must show you read and understood the project – copy and paste an answer in and it will deleted.

I will give preference to people with good feedback, but if you are new feel free to bid as well but please keep your price low.

You can count on me to communciate well and often, and to be available when you need me. You can count on me to pay. I need to count on you to deliver what I need on time.

I welcome questions.

Job Type:
Programming
C/C++
.NET
PHP
MySQL

Flash Count Down Clock Edit

November 18th, 2009 Comments off

Have a look at this clock, I dont have the original file

http://www.hotelscombined.com/Widgets/Vacation-Countdown-Ticker.htm
I need:

Red / grey background
No Logo
My Text
150 x 200 pixels

Asap

Programming Project C##

November 10th, 2009 Comments off

I have a program that has been written for me by a friend programmer. The programmer is unavailble to revise it. I need someone who can look at, make changes for me and once all is done provide me with the source code. The program is written in C##.

If you are a visually creative person that would be a plus, I would like it to be easy to use and pleasent to the eye. The program will also have to compatible with win2k,XP,Vista and Windows 7, Mac would be cool too but not a must.

- Also program needs to be authenticated to only run one copy per pc.
- Also needs to check server and download install updates.
- Program needs agree to terms of service prompt.
- Program needs web form that will be available to create username and password in database and allow access to program when account is setup.

If you accept my project I expect the source code to be delivered to me before payment is released. I am honest and fair and expect the same from you.

Important Info:

You must speak English fluently. This does not mean you ahve to be able to write a book, but if you can’t understand me, and I can’ understand you – then it just won’t work.

You must be available online through IM.

This project will need to be done ASAP. Speed will be a major deciding factor. Don’t bid if you ahve other projects to do before mine.

You must bid AND send a PM. Bids for fake amounts, or PMS without bids will be deleted. The PM must show you read and understood the project – copy and paste an answer in and it will deleted.

I will give preference to people with good feedback, but if you are new feel free to bid as well but please keep your price low.

You can count on me to communciate well and often, and to be available when you need me. You can count on me to pay. I need to count on you to deliver what I need on time.

I welcome questions.

Fb Fans Count Increase 2

November 9th, 2009 Comments off

Hi,

I want to increase the FB fans count increase for a particular account.

Currently it is below 100. But I want someone to take it up to 10,000 within next couple of days.

I dont worry but what method you are going to do it,unless my account don’t get banned.

Tell me a fixed rate 10,000 counts.

I will place the amount in escrow only after seen atleast 50% of the progress.

In the PMB, don’t send unnecessary portfolio or other things not related to this project at all.

This is a test project and I will have atleast 20 more very similar projects within next week.

My maximum budget is 75 US$.

Don’t place more than that.

Violators will be banned from placing bids in my future projects.

If someone who cannot do by themseleves, but prefer to provide me a script to do this also welcome!

Moodle Form Character Count

November 4th, 2009 Comments off

We need to modify the Moodle grade.php file located on moodle/grade/edit/tree/grade.php to include a character count and limit of 255 characters for the id_feedback field. Our student information system only allows 255 characters and we need to programatically constrain this form field in moodle using javascript or php ASAP. See attached image for mockup.

Facebook Group User Harvester

November 1st, 2009 Comments off

Hello!

I am lookingfor a programmer to help with several projects. It seems I have 1-2 projects a week needing various skillsets.

This week I need a Facebook Group User Harvester.

Here is what it would do…

Must be multi threaded.

Load list of user:password

login.

enter page/group id

start parsing all users in that group. ( Use 1 user but multi threads )

after completed parsing all users in group

add users as friend w/out feed and optional textbox for message ( multiple accounts on multiple threads)

Important Info:

You must speak English fluently. This does not mean you ahve to be able to write a book, but if you can’t understand me, and I can’ understand you – then it just won’t work.

You must be available online through IM.

This project will need to be done ASAP. Speed will be a major deciding factor. DOn’t bid if you ahve other projects to do before mine.

I would prefer this in vb.net – but I am open to suggestions.

I will not escrow. I have an excellent record here. I will pay via paypal once it is complete and I have tested it for a few hours to make sure no bugs exist. If that is unaaceptabel – do not bid.

You must bid AND send a PM. Bids for fake amounts, or PMS without bids will be deleted. The PM must show you read and understood the project – copy and paste an answer in and it will deleted.

I will give preference to people with good feedback, but if you are new feel free to bid as well but please keep your price low.

You can count on me to communciate well and often, and to be available when you need me. You can count on me to pay. I need to count on you to deliver what I need on time.

I welcome questions.

Fb Fans Count Increase

October 31st, 2009 Comments off

Hi,

I want to increase the FB fans count increase for a particular account.

Currently it is below 100. But I want someone to take it up to 10,000 within next couple of days.

I dont worry but what method you are going to do it,unless my account don’t get banned.

Tell me a fixed rate 10,000 counts.

I will place the amount in escrow only after seen atleast 50% of the progress.

In the PMB, don’t send unnecessary portfolio or other things not related to this project at all.

This is a test project and I will have atleast 20 more very similar projects within next week.

My maximum budget is 75 US$.

Don’t place more than that.

Violators will be banned from placing bids in my future projects.

If someone who cannot do by themseleves, but prefer to provide me a script to do this also welcome!

Survey System

October 28th, 2009 Comments off

I need new funcionalities to this application – freesurveysapp (visit http://www.freesurveyapp.com/)

The main (title) page I will create by myself. There will be presenting information of what I am offering, why do all kind of people need internet surveys, what are the advatages of them and how simple it can be done.
BUT WHAT I NEED:

\*// From admin interface I should be able to add new languages (I will need 2 of them). In a user friendly way I should be able to translate existing website from english to my desirable language. In the result a user will have an opportunity to swap languages in the website’s main page. E.g. from english to russian.

\*// In the main page (I’ll create it) when a user clicks “Registration” he/she should get something simular how it is done here: http://en.e-formas.lv/?languageCodeChange=en (CLICK “PRICES”). User is offered to choose from 4 subscribtion plans. According to the subscribtion plan chosen user is allocated in one of the 4 user groups – free, basic, standard or pro. Each group has particular restrictions. I need you to figure out how to accommodate this restrictions to the groups.

The restrictions of the four groups are as follows.
FREE – Surveys (able to create up to 2), Questions in a Survey (up to 10 per survey), Max count of respondents (up to 50 per survey), Password protection (disabled (There is not an option provided to set password for a survey));
BASIC – Surveys (able to create up to 10), Questions in a Survey (up to 25 per survey), Max count of respondents (up to 250 per survey), Password protection (disabled (There is not an option provided to set password for a survey));
STANDARD – Surveys (able to create up to 20), Questions in a Survey (unlimited), Max count of respondents (up to 1000 per survey), Password protection (enabled);
PRO – Surveys (unlimited), Questions in a Survey (unlimited), Max count of respondents (unlimited), Password protection (enabled);

This can’t be very hard to do because in default survey creation process user can already choose max. count of respondents and either to password protect the survey or not. Have to disable the opportunity to choose and set constant values for appropriate groups in registration process. Tough part in my opinion is to limit the count of surveys and questions user being able to create. At least I think so..

If it does not raise the cost of the project a lot I would not mind being able to manage these user group restrictions from admin interface. But it also suits for me if you could just guide me where do I have to change the code. You can fulfil this task how it is easier for you!

\*// Survey creation is divided in 6 steps:
1. Properties; 2. Edit; 3. Style; 4. Permissions; 5. Activation; 6. Invitations
I need that the user groups BASIC, STANDARD and PRO after clicking “5. Activation” get statement “This section will be available just after the money transfer will be made.”
So I need an option in admin interface to activate this section for every BASIC, STANDART and PRO account after they have paid.

\*// In registering form a safety code (avoiding spam, bots) field is needed.

Well, it seems all. You guys have more experience and knowledge so I hope that you understood me. If there are some other needs you notice which I need for the site to run logically, please inform me. Hope it won’t cost a fortune for me :)
————————————————————————————————-
I REALLY NEED A POGRAMMER WHO WILL GET TO THIS JOB WITH THE BEST INTENSIONS.
NO SUPERFICIAL CODER NEEDE!
P.S. – I have no idea how much does this job may cost to get it done. So bid as much as you think it’s worth doing.

Categories: ASP, MS SQL Tags: , , , , , ,

Count Search Results

October 19th, 2009 Comments off

I need a very simple php script which will take a list of keywords from a txt document, query them on an xml feed and record the number of results returned. A response will include:

<results id=”2994508″ start=”0″ total=”14″ stotal=”4″>

In this instance, stotal will need to be stored.

The txt document with keywords will be in list format:
keyword 1
keyword 2

I would like the results to be saved in a separate file in comma delimited form:
keyword 1,10
keyword 2,1

The script should delete a keyword from file one once they have processed.

Image Upload Problem

October 14th, 2009 Comments off

When my users upload images I need it to strip out everything but the extension and rename it a numder
For example

upload = mypicture.jpg
rename = 9876788.jpg

My script already does this just not all the time I have a lot of broken images. I think it can’t recognize certain characters.

Also I have a thumbnail regeneration script that I had modifed because it timed out. It worked fine but now I have many more images it is timing out again. I am currently on a shared hosting account so that is why the problem. I think it needs to broken into smaller tasks.

I want to get the uploads scripts fixed. Then I want to delete all existing thumbnails and thne regenerate them with the fixed regeneration script.

I was wondering if it would be better to have many thumbnail folders instead of 1

Like this

thumbs1
thumbs2
thumbs3
thumbs4
thumbs5
thumbs6
etcetera

that way when the system renames an uploaded image they would not all be in the same folder allowing the regenertion process to happen in smaller batches?

So my regenration scriopt could say regenerate thumb1 or thumbs2 or thumbs3 …

This is part of the upload.php script
// check whether the file exists beforehand, if yes use randomvar in front of filename
mt_srand((double)microtime()*1000000);
$randvar = mt_rand(1,10000000);
settype($randvar,”string”);

$extension=explode(“.”,$realname);
$newfilename = “uploadedimages/” . $randvar.”.”.$extension[count($extension)-1];// str_replace(” “,”_”,$realname);
//echo $newfilename;
$shortfname = $randvar.”.”.$extension[count($extension)-1];// . str_replace(” “,”_”,$realname);

while ( file_exists($newfilename) != FALSE )
{
$randvar = mt_rand(1,10000000);
settype($randvar,”string”);
$newfilename = “uploadedimages/” . $randvar.”.”.$extension[count($extension)-1];// str_replace(” “,”_”,$realname);
$shortfname = $randvar.”.”.$extension[count($extension)-1];// str_replace(” “,”_”,$realname);
}

This is part of the regenerate script

include_once(‘logincheck.php’);
function main()
{
//$len=mysql_fetch_array(mysql_query(“select pwd_len from b2b_config”));
//$pwd_len=$len["pwd_len"];
?>

<script type=”text/javascript” src=”prototype.lite.js”></script>
<script type=”text/javascript” src=”moo.ajax.js”></script>
<script type=”text/javascript”>
/*
$step=(integer)$_REQUEST[step];
$count=(integer)$_REQUEST[count];
$current=(integer)$_REQUEST[current];
$limit=((integer)$_REQUEST[limit]>0?(integer)$_REQUEST[limit]:100);
*/
var arr_count =new Array(0,0,0);
var arr_current =new Array(0,0,0);
var limit=100
function Complete(request)
{
var str=request.responseText ;
var arr=str.split(“|”);
var ind=parseInt(arr[1]);

if(arr[0]==”count”)
{
arr_count[ind]=parseInt(arr[2]);
process(parseInt(arr[1]));

}
if(arr[0]==”process”)
{
if(arr_current[parseInt(arr[1])]<arr_count[parseInt(arr[1])])
{
arr_current[parseInt(arr[1])]=arr_current[parseInt(arr[1])]+limit;
process(parseInt(arr[1]));

}
else
{
document.getElementById(‘but’).disabled=false
}
}
if(arr_count[parseInt(arr[1])]>0)
{
var per1=(arr_current[parseInt(arr[1])]*100)/arr_count[parseInt(arr[1])];
var per2=(200*per1)/100
if(per2>200)
{
per2=”200″;
}
document.getElementById(“part”+parseInt(arr[1])).style.width=per2 +”px”
}
document.getElementById(“msg”+parseInt(arr[1])).innerHTML=(arr_current[parseInt(arr[1])]>arr_count[parseInt(arr[1])]?arr_count[parseInt(arr[1])]:arr_current[parseInt(arr[1])]) + “/” + arr_count[parseInt(arr[1])];

}
function process(step)
{
new ajax(‘regenerate_thumbs1.php’, {postBody: ‘ajax=1&step=’+step+”&count=”+arr_count[step]+”&current=”+arr_current[step]+”&limit=”+limit , update: $(‘asd’), onComplete: Complete});
}
function start()
{
document.getElementById(‘but’).disabled=true
process(0);
process(1)
process(2)
}
</script>

<center>
<div style=”display:none” id=”asd”></div>
<h1>Click On process to start</h1>
<table>
<tr>
<td>Part 1</td>
<td><div style=”width:200px; border:1px solid black; height:20px”>
<div id=”part0″ style=”background:red; height:18px;width:0px; padding:1px”></div>
</div></td>
<td id=”msg0″></td>
</tr>
<tr>
<td>Part 2</td>
<td><div style=”width:200px; border:1px solid black; height:20px”>
<div id=”part1″ style=”background:red; height:18px;width:0px; padding:1px”></div>
</div></td>
<td id=”msg1″></td>
</tr>
<tr>
<td>Part 3</td>
<td><div style=”width:200px; border:1px solid black; height:20px”>
<div id=”part2″ style=”background:red; height:18px;width:0px; padding:1px”></div>
</div></td>
<td id=”msg2″></td>
</tr>
<tr>
<td></td>
<td colspan=”2″><input type=”button” name=”but” onClick=”start()” value=”Process” id=”but”/> </td>
</tr>
</table>

I can give access to the full script but thought this might be helpful.

Thanks

C++ Structures And Classes

October 8th, 2009 Comments off

In C++ with good commenting Define a class for a type called CounterType. An object of this type is used to count things, so it records a count that is a nonnegative whole number. Include a mutator function that sets the counter to a count given as an argument. Include member functions to increase the count by one and to decrease the count by one. Be sure that no member function allows the value of the counter to become negative. Also, include a member function that returns the current count value and one that outputs the count. Embed your class definition in a test program.

Keyword Phrase Count Script

September 16th, 2009 Comments off

A script to take a keyword phrase and an URL of a web page, and then return the number of occurrences of that keyword phrase broken down by these criteria:

in Title tag
in meta description
in H1 tag
in H2 tag
in H3 tag
bold
underline
italics
in Alt Text
in Anchor text of outbound links
in First 200 characters of text in page body

The script should be accurate and able to accept complex urls like:
http://www.some-domain-name.com/index.php?kw=xxxxx&search=1&product=redxie8832

In other words, the script will tell the user how many times a selected keyword phrase occurs in the Title tag, meta description, H1 tag, H2 tag, H2 tag, bold tag, italics tag, underline tag, in Alt Text of photos, in anchor text of outbound links, and in first 200 characters of the text of the page.

Forum Posting Contest

September 10th, 2009 Comments off

I started a new forum at www.forum.trafficgeek.net that uses the forum script IP Board version 3 (IPB3). I wish to start a posting contest and need a utility program written to count the posts.

I would like this program to do the following:

Scan the mysql database and determine the top 10 posters within a specified date range.

I would like to specify (or omit) certain forum sections from the post count. For example, I do not want to include the chat forum when counting votes.

To avoid post spam, I would like to set a min number of chars (or words) to make a post a valid post count.

I would like a report generated showing the top 10 posters with the following info:

Forum User Name
Total Valid Posts

This should be an easy project. I will need to test the utility program before making payment. Please send me your questions.

Review Ratings Opinions Site

September 4th, 2009 Comments off

Objective of the Website
========================

Users can give ratings along with reviews, opinions, feedbacks to anything in the world. From giving ratings to users/contacts to their work to reviewing/rating or writing opinions or providing feedback about products or services to rating events, rating profiles to rating companies to rate countries, environment, processes, infrastructure, any user content can be rated, reviewed, opinionated & feedbacked. Users can also make friends, can increase their social network through similar interest groups and so on.

User Features
=============

- No need to register for posting reviews, ratings, opinions, feedbacks for various products and services. Site should allow review, rating, opinion, feedbacks to be posted by just a display name which user has to choose while posting these reviews, ratings, opinions, feedbacks. User should also have option to register (with all validations) and avail benefits associated with registration/premium registration.

- Registration type – Professional, businessmen, Student, Homemaker, etc

- User should have an option to create profile after registration. User should have his/her independent home page.

- Also Advertisers should have their own homepage where in they can do their advertisement management. See reports etc

- The profile photo should be visible along with the review when read by someone else. the intelligent thumbnail scaling option should also be available for viewing photos.

- User should have an option to create friend/professional list like facebook or orkut in his/her home page.

- Users should have an option to review and rate registered members. Users also can write opinions, feedback to other registered users.

- All rating should be AJAX based. No need to submit ratings. Just by clicking on stars the rating should apply to any applicable/defined/assigned object of the site

- Option to search reviews, ratings, opinions, feedbacks from the zip code, state, city or country

- User should have an option to send review via emails to friends & family

- After search for a product or service the site should show users with an option to compare similar products or services searched by user.

- Users should have an option to rate others reviews as thumbs up or thumbs down. Also a users can add reviews/documents/users/someone’s work into his/her favourite list. The review summary should show the count of thumbs up & thumbs down at the bottom of review

- Website should show the count of reviews in all the sub categories

- Website should show top rated / most viewed reviews, ratings, opinions

- Website should show top users who are entering most reviews, ratings, opinions

- Website should show top 10 products and top 10 services in the user country, state & city

- Site should have AJAX based all social bookmarks, tell a friend, invite friends from yahoo, msn, orkut, facebook contact lists , newsletter subscription and other viral marketing tools

- User can invite friends for reviews or invite friends to rate their reviews, ratings, opinions

- Users can create new sub-categories and post reviews, ratings, opinions under them. But these reviews, ratings, opinions would only be posted after admin approval. Admin should have rights to modify name of these sub-categories created by user to reduce spell mistakes

- User should have an option to get premium access where in their reviews, opinions, feedback would get featured listing or user can write links in his/her reviews for self promotion.

- By default all reviews, ratings, opinions to be created in the user country->state->city choosen during registration process. Updation of country->state->city by user should move his/her all existing reviews, ratings, opinions, feedbacks, any other data into that country->state->city DB/table

- When user searches reviews or clicks a sub-category to view reviews posted by others then reviews should be shown in Mouthshut format and should have an option to move to next or any of the page number visible at the bottom of the page.

- Save search option for users to save their regular/favourite searches.

- User should have option to upload content into the website which should be visible to others (basis the user preference/security setttins). The content can be documents, excel files, ppts, programming source codes, scripts for web development, videos, music, etc. User can upload content only after he accepts the copyright/trademark/other terms mentioned by site. Other users based on rights can rate, review, put opinions & feedback about this content.

Admin Features
==============

- Site should have advertisment module to manage ads on the site or in between the review (left or right like mouthshut), opinion, feedback content. Site should have an option of enabling/disabling random/prioritywise advertisements, change layout of advertisements, featured ads, header ads, footer ads, in reviews ads, etc

- If a user clicks on next page when viewing others’ reviews then on every new page their should be different advertisements from the advertisement booked by admin.

- Site should have contests, reward, gifts, prizes enablement for a) high review, rating, opinion creating users b) to attract new users c) to refer to friends and win prizes

- Enable/disable review, rating, opinion posting by just display name.

- Site should have payment gateway enablement option for online payments for premium members. Major gateway integration Paypal, Authorize.net, 2Checkout, WorldPay, Linkpoint, Internet Secure Source, Paypal Pro, Verisign Payflow Pro, Payment Express, CCauthorize and Nochex. Real time credit card processing integration.

- Option to create unlimited categories->sub categories. Move user reviews from one sub-category to another sub-category. Enable/disable count of reviews in a sub-category

- One click option to take site under maintainence mode

- Language/ localisation option enablement in admin panel. Language should be default for a user as per the registration. The time zone of the website should be as per the registration entry. The date & time format should be as per the country choosen by user during registration.

- Multiple currency enablement/default currency option in admin panel

- Customization of logo through image upload & theme change option should be available. Layout change option from admin panel. Also customization of stars, blocks, icons, fonts, layout etc should also be available.

- Option to change title, meta tags, page titles, page linking, SEO friendly URLs, meta keywords, terms & disclaimers, agreements, from admin panel

- Entire user management from admin panel. Option to disable/delete users, send alerts/emails to users, reports etc

- Database management/maintainance, performance tuning, backup, restore from admin panel

- Setting paid features like extra images, featured reviews, hot/urgent/excellent/ etc icons.

- In review advertisement options (URLs) enable/disable feature. User can entre URL for self promotion through this tool.

- Reviews, opinions, feedback posting after admin approval. Option to enable automatic approval and to disable automatic approval. Automatic bad word highlight in admin panel in case of manual approval of reviews, opinions, feedbacks. Automatic bad word filter in case of automatic approval.

- IP banning, spam filters, security images, bad word filters

- Option to enable/disable reviews, ratings, opinions, feedback through SMS. Site to display only last 4 digits of mobile no.

- Site should have RSS feeds options along with a news section

- Entire CMS in WYSIWYG editor with all rich text options through admin panel

- Dyanmic/custom fields for ratings for each sub-category. For example for automobile the rating field should show ratings on Cost, Performance, Economy, Handling, etc like wise for music sub-categories the ratings fields should be Genre, Music Type, Band Reputation, etc

- Admin should have an option to show enter/ create products in top 10 products and top 10 services which can be viewed by users. The respective companies have to pay for this service. Also option to enable/disable this feature.

- Google adsense & other advertising providers enablement/disable option

- Admin can add surveys, polls, newsletters, articles, etc to the website. Option to Enable/disable these features

- enable/disable sending reviews, ratings, opinions, feedbacks via email to friends / family

- Option to copy categories -> sub-categories to new category->sub-category for faster creation of categories->sub-categories

- Option to change email templates, notifications mail templates, registration mail templates, etc from admin panel.

- View/edit/delete success, registration success, subscription expiry mail for premium customers, category creation success mail to user. Enable/disable this feature option.

- Fee charging types – flat fees, time base fees, website location based fees, category specific, user group specific charging, unlimited price plans, discount codes, taxes option, credit listings (free), etc membership options like monthly, yearly, etc option from admin panel along with renewal options

- Custom registration fields, custom search fields/forms, etc

- Creation of knowledgebase, FAQs, contact us forms, terms and conditions, disclaimer, privacy policy, etc

Other requirements
==================

- Full source code required. All source code needs to be open and not encrypted.

- Installation script required for automated installation including mysql database/tables

- Site should be light and fast. Performance is key factor for the website along with features/functionalities

- All features should be module based. In case required modules can be removed/added into the application by the owner of application

- Free support (in case required) for 3 months from the date website go live

- Most of the activities should be AJAX based wherein user does not have to leave the page on which he is. Like rating the service or product. That should be done without leaving the page.

Categories: Ajax, MySQL, PHP, Social Networking, XHTML Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Bear