+ Reply to Thread
Page 1 of 4 123 ... LastLast
Results 1 to 10 of 35

Thread: Ad Perl Code?

  1. #1
    PSP-Heaven is offline x10 Sophmore PSP-Heaven is an unknown quantity at this point
    Join Date
    May 2006
    Posts
    214

    Ad Perl Code?

    Is there a xAdvance ad code in Perl? SO I can stick the ad in my forum?:hsughwigg
    Domainlagoon.com
    Win a free domain, you only need to complete a few offers. I am amazed to, you can get .com, .org, .biz, .net, and others for 9.95 points. While for 4 points you can get a .info domain. It's even better than ezyrewards.



    Before I had to switch to dial up, man I miss these speeds.


  2. #2
    PSP-Heaven is offline x10 Sophmore PSP-Heaven is an unknown quantity at this point
    Join Date
    May 2006
    Posts
    214

    Re: Ad Perl Code?

    Sorry for it, but please, I need someone to help me! I will donate 100 points to the person who gives me the xAdvance ad code in perl.
    Last edited by PSP-Heaven; 05-25-2006 at 12:39 PM.
    Domainlagoon.com
    Win a free domain, you only need to complete a few offers. I am amazed to, you can get .com, .org, .biz, .net, and others for 9.95 points. While for 4 points you can get a .info domain. It's even better than ezyrewards.



    Before I had to switch to dial up, man I miss these speeds.


  3. #3
    The_Magistrate's Avatar
    The_Magistrate is offline x10 Elder The_Magistrate is an unknown quantity at this point
    Join Date
    May 2005
    Location
    PA
    Posts
    559

    Re: Ad Perl Code?

    I'm no expert on YABB, but Perl -> PHP shouldn't be that hard... I'm not sure how well this will work, but it's worth giving it a try:

    Code:
    use PHP::Interpreter;
    
    my $p = PHP::Interpreter->new();
    $p->include("http://staff.x10hosting.com/adCode.php?ad=advanced");
    Put that in your forum footer document and it should display the ad code.

    P.S. Put the ad code on your site's splash page. It's not there, and you'll get suspended for it too.
    Getting Started | Terms of Service | Paid Hosting | Forum Rules | Free Server Status | Banned Countries

    If I have helped you through one of my posts, please click the
    blue checkbox on the right below my avatar to add to my reputation.

  4. #4
    PSP-Heaven is offline x10 Sophmore PSP-Heaven is an unknown quantity at this point
    Join Date
    May 2006
    Posts
    214

    Re: Ad Perl Code?

    Oh, maybe that's why I got suspended. Damnit, thats my index page, no wonder! Thanks for reminding me!
    Thanks for telling me that, the code doesnt work, but Ill give you 50 points for saving my butt. It may not be much, but its something.
    Last edited by PSP-Heaven; 05-25-2006 at 12:54 PM.
    Domainlagoon.com
    Win a free domain, you only need to complete a few offers. I am amazed to, you can get .com, .org, .biz, .net, and others for 9.95 points. While for 4 points you can get a .info domain. It's even better than ezyrewards.



    Before I had to switch to dial up, man I miss these speeds.


  5. #5
    The_Magistrate's Avatar
    The_Magistrate is offline x10 Elder The_Magistrate is an unknown quantity at this point
    Join Date
    May 2005
    Location
    PA
    Posts
    559

    Re: Ad Perl Code?

    Sorry the Perl code didn't work. Were there any error messages? Maybe it worked, it just wasn't displaying correctly. EDIT: It looks like the code worked. I can see it on your Forum.

    By the way, I took a look at your site and saw your Arcade. I know you were discouraged about having to put the ad code on all the pages in the arcade, and I think I have a solution for you. Create a function in Javascript to open a new window which will contain the game as well as the adcode dynamically. Could be pretty simple really, call the Javascript function with the parameter of which game to display, then have it output a PHP page which receives the game name in the URL and includes the game file and the ad code. That way, you would only have to have 1 PHP page with the ad code which would include the game files dynamically.
    Last edited by The_Magistrate; 05-25-2006 at 01:13 PM.
    Getting Started | Terms of Service | Paid Hosting | Forum Rules | Free Server Status | Banned Countries

    If I have helped you through one of my posts, please click the
    blue checkbox on the right below my avatar to add to my reputation.

  6. #6
    PSP-Heaven is offline x10 Sophmore PSP-Heaven is an unknown quantity at this point
    Join Date
    May 2006
    Posts
    214

    Re: Ad Perl Code?

    No i didnt know there was a javascript version.
    The tick based game, should be Shadow of Light, has 104 PHP pages. Ill try what you said. I donated 50 points, if you dont know, for telling me about the index page, and if this works, expect another 100 points! By the way, do you like how my site looks?

    EDIT: Do you have ANY idea on HOW to create a function? Im not that advanced in JavaScript.
    Last edited by PSP-Heaven; 05-25-2006 at 01:22 PM.
    Domainlagoon.com
    Win a free domain, you only need to complete a few offers. I am amazed to, you can get .com, .org, .biz, .net, and others for 9.95 points. While for 4 points you can get a .info domain. It's even better than ezyrewards.



    Before I had to switch to dial up, man I miss these speeds.


  7. #7
    The_Magistrate's Avatar
    The_Magistrate is offline x10 Elder The_Magistrate is an unknown quantity at this point
    Join Date
    May 2005
    Location
    PA
    Posts
    559

    Re: Ad Perl Code?

    Put this code in the <head> of your site.
    Code:
    <script>
    function newWindow(targetGame)
    {
      newWindow = window.open ('http://www.yourdomain.com/path/to/somefile.php?gamename=' + targetGame,
      'newWindow', 'width=400, height=400, scrollbars=no, resizable=no, toolbar=no');
    }
    </script>
    Then call the function with a normal anchor.

    Code:
    <a href="javascript:newWindow('abc')">Open a new window with the ABC game</a>
    Last edited by The_Magistrate; 05-25-2006 at 01:36 PM.
    Getting Started | Terms of Service | Paid Hosting | Forum Rules | Free Server Status | Banned Countries

    If I have helped you through one of my posts, please click the
    blue checkbox on the right below my avatar to add to my reputation.

  8. #8
    PSP-Heaven is offline x10 Sophmore PSP-Heaven is an unknown quantity at this point
    Join Date
    May 2006
    Posts
    214

    Re: Ad Perl Code?

    The head of my arcade PHP game? Or my Main Website?
    Also, does this solve the problem of manually editing all my PHP files in my Shadow of Light game? It has 104 files, so this will display the ad code in each of them?
    Last edited by PSP-Heaven; 05-25-2006 at 01:41 PM.
    Domainlagoon.com
    Win a free domain, you only need to complete a few offers. I am amazed to, you can get .com, .org, .biz, .net, and others for 9.95 points. While for 4 points you can get a .info domain. It's even better than ezyrewards.



    Before I had to switch to dial up, man I miss these speeds.


  9. #9
    The_Magistrate's Avatar
    The_Magistrate is offline x10 Elder The_Magistrate is an unknown quantity at this point
    Join Date
    May 2005
    Location
    PA
    Posts
    559

    Re: Ad Perl Code?

    Insert it in the <head> of your site so that it is included in the Arcade page where all the links are to the games.
    Getting Started | Terms of Service | Paid Hosting | Forum Rules | Free Server Status | Banned Countries

    If I have helped you through one of my posts, please click the
    blue checkbox on the right below my avatar to add to my reputation.

  10. #10
    PSP-Heaven is offline x10 Sophmore PSP-Heaven is an unknown quantity at this point
    Join Date
    May 2006
    Posts
    214

    Re: Ad Perl Code?

    Okay, but does this solve the ad code problem? Thanks.
    Okay, I did it, I see it makes my games pop-up now! Its awesome! But I still need something to help with the adcode. Maybe like a function kindof like this:

    function adcodesol {
    add <? adcode code here ?> to pages <index.php, items.php, etc.>
    }
    end

    Something like that, it inserts the adcode automatically into all those pages.

    EDIT AGAIN: Also, is there a way, you can make the function autosize the window to fit all the content?
    Last edited by PSP-Heaven; 05-25-2006 at 02:01 PM.
    Domainlagoon.com
    Win a free domain, you only need to complete a few offers. I am amazed to, you can get .com, .org, .biz, .net, and others for 9.95 points. While for 4 points you can get a .info domain. It's even better than ezyrewards.



    Before I had to switch to dial up, man I miss these speeds.


+ Reply to Thread
Page 1 of 4 123 ... LastLast

Similar Threads

  1. Hybrid's HTML Lessons
    By Hybrid in forum Tutorials
    Replies: 18
    Last Post: 11-28-2009, 02:12 PM
  2. how can i convert Php pages and code into asp pages and code
    By n4tec in forum Scripts & 3rd Party Apps
    Replies: 11
    Last Post: 01-10-2009, 09:40 PM
  3. Every10Minutes.com code for sale
    By ƒorte in forum The Marketplace
    Replies: 5
    Last Post: 10-30-2005, 11:09 AM
  4. Ad Code Question
    By reiterb in forum Free Hosting
    Replies: 1
    Last Post: 08-18-2005, 09:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers