Need help with a script for a website...
Page 1 of 2 Goto page 1, 2  Next
Ronhrin
Banned



Posts: 6428
Location: Paradigms are changeable, reality is absolute.
PostPosted: Fri, 5th Feb 2010 14:49    Post subject: Need help with a script for a website...
I need to make a website with the following layout/functions, usually I find a script with what I need, but I'm not finding anything this time.

Can anyone help me with the scripting part of what I need here, thanks.



He who sacrifices freedom for security deserves neither
- Benjamin Franklin - 1759

Back to top
LeoNatan
☢ NFOHump Despot ☢



Posts: 73250
Location: Ramat HaSharon, Israel 🇮🇱
PostPosted: Fri, 5th Feb 2010 18:28    Post subject:
You can do this with any server-side scripting software and a small DB. I'd go for ASP.NET (C#) because it is the easiest for me. If you don't expect 100000000000 clicks, you could just use a MDB (MS Access file) for the DB, it is very simple to use.
Also, why 3 pages? They seem to be doing the same thing. Just distinguish which counter should be updated. Smile
Back to top
Ronhrin
Banned



Posts: 6428
Location: Paradigms are changeable, reality is absolute.
PostPosted: Fri, 5th Feb 2010 18:43    Post subject:
they are "signup forms"

I'm setting up a contest website, with 3 different contests, one is daily, the other is weekly, and the 3rd is monthly.

when the user goes for the weekly contest for example, he clicks on option 2 in the main page
he Signs up on page 2, when he does, I receive an email informing me of his details and at the same time, my site saves that count in the main page.


for instance


on the main page you would see

| Monthly Contest - 230 Signups | Weekly Contest - 89 Signups | Daily Contest - 15 Signups |

Any idea on how can I set up something like this?


He who sacrifices freedom for security deserves neither
- Benjamin Franklin - 1759

Back to top
LeoNatan
☢ NFOHump Despot ☢



Posts: 73250
Location: Ramat HaSharon, Israel 🇮🇱
PostPosted: Fri, 5th Feb 2010 19:13    Post subject:
No, I understand what you intend to do, I am just saying that the same page can be used for all three actions. When you click on options 1,2,3 on the main page, send a hidden variable that tells it how to process the input at the end. During the processing, according to the type, send the email accordingly and update the correct counter.
Back to top
Ronhrin
Banned



Posts: 6428
Location: Paradigms are changeable, reality is absolute.
PostPosted: Fri, 5th Feb 2010 23:10    Post subject:
iNatan wrote:
No, I understand what you intend to do, I am just saying that the same page can be used for all three actions. When you click on options 1,2,3 on the main page, send a hidden variable that tells it how to process the input at the end. During the processing, according to the type, send the email accordingly and update the correct counter.


Yes...but...

I require the 3 option pages because I will have a different CPA gateway on each one of them.

The user can only signup to the contest after he completes a CPA offer.

I've been thinking about this for a while now, only way I can setup this site the way I need to is through the layout that I've shown previously.

But I really don't know how to get it to work.


He who sacrifices freedom for security deserves neither
- Benjamin Franklin - 1759

Back to top
PumpAction
[Schmadmin]



Posts: 26759

PostPosted: Fri, 5th Feb 2010 23:12    Post subject:
TL;DR

but

Send all the info to one MAIN page that processes the data and opens up one of the other 3 pages?


=> NFOrce GIF plugin <= - Ryzen 3800X, 16GB DDR4-3200, Sapphire 5700XT Pulse
Back to top
Ronhrin
Banned



Posts: 6428
Location: Paradigms are changeable, reality is absolute.
PostPosted: Fri, 5th Feb 2010 23:24    Post subject:


So basicaly is this, the CPA gateways are setup in the network page of the CPA network, and I set them up in such a way that when users click on one of the options on the main page the option page loads up with the CPA gateway, and they can't do anything on the option page until they complete one of the surveys that I demand.


I just didn't mentioned the CPA surveys because they aren't relevant for the working of the site, only to explain that I need the 3 "different" option pages.

I need 2 things.

The code on how to create a signup form like the one I mentioned above, and the code for a counter that saves a value on a file in the site everytime someones click the signup button.

Can you post a script that does this?


He who sacrifices freedom for security deserves neither
- Benjamin Franklin - 1759

Back to top
LeoNatan
☢ NFOHump Despot ☢



Posts: 73250
Location: Ramat HaSharon, Israel 🇮🇱
PostPosted: Fri, 5th Feb 2010 23:28    Post subject:
What I previously said about one input page is still correct. You are doing the CPA load inside the input page, so you can load the appropriate CPA according to the hidden info.

I will see if I can do some ASP.NET code later to show you.
Back to top
Ronhrin
Banned



Posts: 6428
Location: Paradigms are changeable, reality is absolute.
PostPosted: Fri, 5th Feb 2010 23:37    Post subject:
iNatan wrote:
What I previously said about one input page is still correct. You are doing the CPA load inside the input page, so you can load the appropriate CPA according to the hidden info.

I will see if I can do some ASP.NET code later to show you.


That would be great, anyway, do most host retaillers allow ASP?

Most of them have in big letters that they allow PHP, but make no mention of ASP.

I will use hostgator btw, I believe they support ASP, but I'm not sure.

Let me know when you have something Smile

Thanks


He who sacrifices freedom for security deserves neither
- Benjamin Franklin - 1759

Back to top
LeoNatan
☢ NFOHump Despot ☢



Posts: 73250
Location: Ramat HaSharon, Israel 🇮🇱
PostPosted: Fri, 5th Feb 2010 23:41    Post subject:
It doesn't matter, you can look at the code and adapt it to PHP. Programming language is just a mean towards the end.
BTW, ASP is not the same as ASP.NET. Smile
Back to top
Ronhrin
Banned



Posts: 6428
Location: Paradigms are changeable, reality is absolute.
PostPosted: Fri, 5th Feb 2010 23:49    Post subject:
iNatan wrote:
It doesn't matter, you can look at the code and adapt it to PHP. Programming language is just a mean towards the end.
BTW, ASP is not the same as ASP.NET. Smile


Oh ok...

I really don't have that much of experience with coding Wink


He who sacrifices freedom for security deserves neither
- Benjamin Franklin - 1759

Back to top
LeoNatan
☢ NFOHump Despot ☢



Posts: 73250
Location: Ramat HaSharon, Israel 🇮🇱
PostPosted: Fri, 5th Feb 2010 23:53    Post subject:
If you have Windows and have IIS, you can try what I will send you locally with no problem.
Back to top
Ronhrin
Banned



Posts: 6428
Location: Paradigms are changeable, reality is absolute.
PostPosted: Fri, 5th Feb 2010 23:58    Post subject:
iNatan wrote:
If you have Windows and have IIS, you can try what I will send you locally with no problem.


What is the latest scene release of IIS?


He who sacrifices freedom for security deserves neither
- Benjamin Franklin - 1759

Back to top
LeoNatan
☢ NFOHump Despot ☢



Posts: 73250
Location: Ramat HaSharon, Israel 🇮🇱
PostPosted: Sat, 6th Feb 2010 00:01    Post subject:
Windows 7/Windows Server 2008 R2 Laughing

It is a web server that comes with Windows. Smile Just go into Windows Features and enable it (make sure to enable ASP and ASP.NET features as well).
Here is how: http://learn.iis.net/page.aspx/28/install-iis-7-on-windows-vista-and-windows-7/
Back to top
Ronhrin
Banned



Posts: 6428
Location: Paradigms are changeable, reality is absolute.
PostPosted: Sat, 6th Feb 2010 00:04    Post subject:
iNatan wrote:
Windows 7/Windows Server 2008 R2 Laughing

It is a web server that comes with Windows. Smile Just go into Windows Features and enable it (make sure to enable ASP and ASP.NET features as well).
Here is how: http://learn.iis.net/page.aspx/28/install-iis-7-on-windows-vista-and-windows-7/



I knew what it was, I just didn't knew it was free.

A free Microsoft server product, that is unexpected Laughing


He who sacrifices freedom for security deserves neither
- Benjamin Franklin - 1759

Back to top
Ronhrin
Banned



Posts: 6428
Location: Paradigms are changeable, reality is absolute.
PostPosted: Sat, 6th Feb 2010 00:17    Post subject:
Done installing it Smile

How long do you think it will take for me to setup up a site like this, I already have some articles posted and youtube videos, facebook groups and etc, driving traffic for it Wink


He who sacrifices freedom for security deserves neither
- Benjamin Franklin - 1759

Back to top
LeoNatan
☢ NFOHump Despot ☢



Posts: 73250
Location: Ramat HaSharon, Israel 🇮🇱
PostPosted: Sat, 6th Feb 2010 00:35    Post subject:
Well, it all depends on how much you spend on design. The rest should be quite easy. I will build a small demo soon, and you can work with that. Smile
Back to top
Ronhrin
Banned



Posts: 6428
Location: Paradigms are changeable, reality is absolute.
PostPosted: Sat, 6th Feb 2010 00:44    Post subject:
iNatan wrote:
Well, it all depends on how much you spend on design. The rest should be quite easy. I will build a small demo soon, and you can work with that. Smile


Design as in logos, and images, I believe that part is almost done, maybe a little resize here and there to fit the page is all I need.

All the text that I will have in there is also written, the only part that I'm lacking is the technical part.


He who sacrifices freedom for security deserves neither
- Benjamin Franklin - 1759

Back to top
LeoNatan
☢ NFOHump Despot ☢



Posts: 73250
Location: Ramat HaSharon, Israel 🇮🇱
PostPosted: Sat, 6th Feb 2010 00:51    Post subject:
Do you have office installed? Unfortunately I don't, and I need an empty MDB file for the demo. Can you just open Access, start a new project and save that as Access 2003 MDB (not .ACCDB)?
Upload that and I will use it. Smile
Back to top
Ronhrin
Banned



Posts: 6428
Location: Paradigms are changeable, reality is absolute.
PostPosted: Sat, 6th Feb 2010 01:00    Post subject:
http://rapidshare.com/files/346482010/Database1.mdb.html

there Smile


He who sacrifices freedom for security deserves neither
- Benjamin Franklin - 1759

Back to top
LeoNatan
☢ NFOHump Despot ☢



Posts: 73250
Location: Ramat HaSharon, Israel 🇮🇱
PostPosted: Sat, 6th Feb 2010 01:08    Post subject:
Nice Smile
Back to top
tainted4ever
VIP Member



Posts: 11336

PostPosted: Sat, 6th Feb 2010 01:40    Post subject:
Might be interesting to you Ronhrin. You probably already know about this, but just in case.

http://cpalead.com/


Sense Amid Madness, Wit Amidst Folly
Back to top
LeoNatan
☢ NFOHump Despot ☢



Posts: 73250
Location: Ramat HaSharon, Israel 🇮🇱
PostPosted: Sat, 6th Feb 2010 04:30    Post subject:
Sorry for the delay, got carried away with TV Laughing

http://www.mediafire.com/?minuo4kwdmk
Back to top
Ronhrin
Banned



Posts: 6428
Location: Paradigms are changeable, reality is absolute.
PostPosted: Sat, 6th Feb 2010 12:52    Post subject:
tainted4ever wrote:
Might be interesting to you Ronhrin. You probably already know about this, but just in case.

http://cpalead.com/


I'm already working with them for almost a year. they have a really great user interface and always pay on time, but imo they shave a little bit to much.

They are one of the best networks out there that are lenient towards blackhat traffic, but since this site I'm building is for white hat purposes, I will also use other CPA networks.

Thanks anyway Smile


iNatan wrote:
Sorry for the delay, got carried away with TV Laughing

http://www.mediafire.com/?minuo4kwdmk


Thanks, this was actually quite fast, anyway, I put this on the server and when I try to browse it, it prompts me an error saying.

Quote:
Server Error in '/' Application.
Access is denied.
Description: An error occurred while accessing the resources required to serve this request. You might not have permission to view the requested resources.

Error message 401.3: You do not have permission to view this directory or page using the credentials you supplied (access denied due to Access Control Lists). Ask the Web server's administrator to give you access


Any ideas?


He who sacrifices freedom for security deserves neither
- Benjamin Franklin - 1759

Back to top
LeoNatan
☢ NFOHump Despot ☢



Posts: 73250
Location: Ramat HaSharon, Israel 🇮🇱
PostPosted: Sat, 6th Feb 2010 16:37    Post subject:
What directory did you put it? Files need to have read access and the db needs to have write access.
Back to top
Ronhrin
Banned



Posts: 6428
Location: Paradigms are changeable, reality is absolute.
PostPosted: Sat, 6th Feb 2010 18:40    Post subject:
iNatan wrote:
What directory did you put it? Files need to have read access and the db needs to have write access.


I went to the inetmgr -> view sites -> add web site - load the dir from your script from the physical path option, and started the server.


He who sacrifices freedom for security deserves neither
- Benjamin Franklin - 1759

Back to top
LeoNatan
☢ NFOHump Despot ☢



Posts: 73250
Location: Ramat HaSharon, Israel 🇮🇱
PostPosted: Sat, 6th Feb 2010 18:47    Post subject:
That's correct, but you need to give the directory permissions. You can do that from IIS as well. Smile
I don't remember how to do this exactly in IIS7, but try right clicking on the folder and resetting permissions or something similar.
Back to top
Ronhrin
Banned



Posts: 6428
Location: Paradigms are changeable, reality is absolute.
PostPosted: Sat, 6th Feb 2010 19:04    Post subject:
iNatan wrote:
That's correct, but you need to give the directory permissions. You can do that from IIS as well. Smile
I don't remember how to do this exactly in IIS7, but try right clicking on the folder and resetting permissions or something similar.


Where exatly do I change them?

I go to the edit permissions link in the actions menu, uncheck the read only option, and when I start the server it auto checks the read only option on again :\


He who sacrifices freedom for security deserves neither
- Benjamin Franklin - 1759

Back to top
LeoNatan
☢ NFOHump Despot ☢



Posts: 73250
Location: Ramat HaSharon, Israel 🇮🇱
PostPosted: Sat, 6th Feb 2010 19:06    Post subject:
I don't have IIS installed, so can't tell you exactly.

Try this:
http://www.phdcc.com/findinsite/instperm.htm
Back to top
Ronhrin
Banned



Posts: 6428
Location: Paradigms are changeable, reality is absolute.
PostPosted: Sat, 6th Feb 2010 19:11    Post subject:
iNatan wrote:
I don't have IIS installed, so can't tell you exactly.

Try this:
http://www.phdcc.com/findinsite/instperm.htm


You don't want to know what I misread in the last part of that link Laughing


He who sacrifices freedom for security deserves neither
- Benjamin Franklin - 1759

Back to top
Page 1 of 2 All times are GMT + 1 Hour
NFOHump.com Forum Index - Programmers Corner Goto page 1, 2  Next
Signature/Avatar nuking: none (can be changed in your profile)  


Display posts from previous:   

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.8 © 2001, 2002 phpBB Group