Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 132,463 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,388 people online right now. Registration is fast and FREE... Join Now!




Code Required

 
Reply to this topicStart new topic

Code Required

PurEvil
post 11 May, 2005 - 06:31 AM
Post #1


New D.I.C Head

*
Joined: 11 May, 2005
Posts: 4

Back in the day when the online warez scene started, you had to click on sponsor links to gain access to the sites.

I was wondering if it was possible to create a similiar system in PHP?

Before I get banned, its NOT for a warez site.

I have a phpbb based forum and I was wondering if it was possible to implement a system where if the user wanted to send a private msg he/she would have to click on a sponser's link/image before being allowed to continue.

I dont know if this is possible or not, but its something that just came to mind.

If it IS possible and involves a bit of work I am willing to pay for it.

Thanks
User is offlineProfile CardPM

Go to the top of the page

Amadeus
post 11 May, 2005 - 07:13 AM
Post #2


g++ -o drink whiskey.cpp

Group Icon
Joined: 12 Jul, 2002
Posts: 12,173



Thanked 33 times

Dream Kudos: 25
My Contributions


It is possible, in a number of ways...the way you choose would depend on how your site is set up now. Can only logged in members send messages? Are you already using cookies and/or session variables?

There would be some work involved (the amount would depend on your current setup).
User is offlineProfile CardPM

Go to the top of the page

PurEvil
post 11 May, 2005 - 07:45 AM
Post #3


New D.I.C Head

*
Joined: 11 May, 2005
Posts: 4

QUOTE(Amadeus @ May 11 2005, 08:13 AM)
It is possible, in a number of ways...the way you choose would depend on how your site is set up now. Can only logged in members send messages? Are you already using cookies and/or session variables?

There would be some work involved (the amount would depend on your current setup).

Yes only logged in users can send private messages and we only use cookies at the moment.

Any ideas?

And could it easily be integrated with the forum?
User is offlineProfile CardPM

Go to the top of the page

Amadeus
post 11 May, 2005 - 05:39 PM
Post #4


g++ -o drink whiskey.cpp

Group Icon
Joined: 12 Jul, 2002
Posts: 12,173



Thanked 33 times

Dream Kudos: 25
My Contributions


I might be tempted to try writing a javascript function to do it...you can go with one of two ideas

1. A function that checked to see if a cookie existed indicating the user had clicked on a sponsor ad...if so, let them send a message. If not, write them a message. Another javascript to write to a cookie when they do click on a sponsor ad.

2. A user clicks a button to send a message, and the onclick property takes them to a page that has a sponsor ad, message says click here to continue. When the ad is clicked, a function does two things...first, it would launch a child window to the sponsor site, second, the parent window would continue with the message functionality.

Either one would be pretty easy to implement.
User is offlineProfile CardPM

Go to the top of the page

PurEvil
post 12 May, 2005 - 05:11 AM
Post #5


New D.I.C Head

*
Joined: 11 May, 2005
Posts: 4

2nd idea sounds like what I was thinking of.

But would it be stopped by the 'block pop-up' property of browsers and such?

and could you make such a code?
User is offlineProfile CardPM

Go to the top of the page

Amadeus
post 12 May, 2005 - 05:58 AM
Post #6


g++ -o drink whiskey.cpp

Group Icon
Joined: 12 Jul, 2002
Posts: 12,173



Thanked 33 times

Dream Kudos: 25
My Contributions


Yes, the popups could be stopped by a browser's blocking capability...it depends how robust the blocker is, or what it's settings are. Many block popups that go to a URL external to the current site...this can be mitigated by having the parent window go to the sponsor site, and the popup continue the message functionality. There are also many other ways to combat blocker add-ins.

As to whether I could write the code...if you're asking if I have the requisite knowledge and skill set, then yes, I do...if you're asking if I'd actually do it (for money or otherwise), then I'm afraid I must decline (although I thank you for the offer). My own belief (and I'm not saying anything about anyone else, just me) is that people should be able to decide for themselves if they wish to view ads, whether the answer is not using the message capability, blocking the ads, or leaving the site. I won't help circumvent that right.

Please be assured that I'm not advocating that a particular course of action is right or wrong...merely my own view.

You should be able to easily find someone to program that for you, however, it is fairly simple functionality. There are several sites dedicated to obtaining programming resources...there is even a 'Job Offers' section of this site where you may wish to try your luck.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/22/08 01:26PM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month