Pages:
Author

Topic: [Owner gone AWOL] Website Preview: BITADS.NET. Now Pay-Per-Day! - page 20. (Read 33771 times)

legendary
Activity: 1988
Merit: 1007
Dude, don´t allow custom JS script. Really, don´t. I could use that to grab cookie´s, to install malware and so much more.


I guess in this case what could be done is a "filler code"... like this:

Let's use your Bitads style for the example...



Alright, what you would do is allow inputting the user's id#, such that your code (pseuducode) would be like this:

$bitid = 37;
echo '
';

Would that help with safety? You could even set the type of input id could be such that it could only be a number.

copper member
Activity: 3948
Merit: 2201
Verified awesomeness ✔
Dude, don´t allow custom JS script. Really, don´t. I could use that to grab cookie´s, to install malware and so much more.
sr. member
Activity: 252
Merit: 250
That's perfect!

Thanks, Smiley.

No problem!

Also, regarding load times. You can try the following code which loads the ad upon the window loading. Although it made no difference on my end so I will have to do some more tests when I get some time

You will have to replace the two "###" 's with the adspace-id of your ad block, and with with of the iFrame to the correct width/height

With link:
Code:





Without link:
Code:



legendary
Activity: 1988
Merit: 1007
Can you add in fallback ad code boxes as well? For now we can put in a custom image + link, but we can't do a fallback to something like Adsense/A-Ads/etc. It would be better if we had those options open as well.

How's this? (You can place