Need some php help... Got a minute?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jon Clark - BANNED FOR LIFE
    North Coast Pimp
    • Dec 2005
    • 9395

    #1

    Need some php help... Got a minute?

    I am am trying to set up some galleries..

    Can you view the source and tell me what is wrong and also tell me what I add to the link in question to add the affilaite code and carry it over..

    http://www.freepornnut.com/xtremeint...y-01/index.php

    Thanks...
  • GrouchyAdmin
    Now choke yourself!
    • Apr 2006
    • 12085

    #2
    Well, I'm not psychic, but it's returning a black image for your references..

    Comment

    • qxm
      Confirmed User
      • Jul 2006
      • 5970

      #3
      mon ... each and every image uploaded is linked to a black placeholder........

      http://www.freepornnut.com/xtremeint...gall-01_03.jpg

      ICQ: 266990876

      Comment

      • Fucksakes
        Shit... Fuck! What the Hell?
        • Dec 2003
        • 7567

        #4
        I am guessing you are trying to replace the pa=xxxxxx

        http://www.freepornnut.com/xtremeint....php?pa=xxxxxx

        something like that.. doesnt seem to work thou, you might be missing the php code in the source of the gallery link..

        Comment

        • Jon Clark - BANNED FOR LIFE
          North Coast Pimp
          • Dec 2005
          • 9395

          #5
          Originally posted by Fucksakes
          I am guessing you are trying to replace the pa=xxxxxx

          http://www.freepornnut.com/xtremeint....php?pa=xxxxxx

          something like that.. doesnt seem to work thou, you might be missing the php code in the source of the gallery link..
          Correct...

          If you look at the source of the page all the php is there, but I do not think it is in the right place...


          Thanks..

          Comment

          • Jon Clark - BANNED FOR LIFE
            North Coast Pimp
            • Dec 2005
            • 9395

            #6
            Originally posted by GrouchyAdmin
            Well, I'm not psychic, but it's returning a black image for your references..
            Originally posted by qxm
            mon ... each and every image uploaded is linked to a black placeholder........

            http://www.freepornnut.com/xtremeint...gall-01_03.jpg

            What..................?


































            I have not loaded images yet... I am trying to get the linking to work correctly first...

            Comment

            • GrouchyAdmin
              Now choke yourself!
              • Apr 2006
              • 12085

              #7
              You need to name it .phps or .txt so we can see the source.

              Comment

              • Jon Clark - BANNED FOR LIFE
                North Coast Pimp
                • Dec 2005
                • 9395

                #8
                Originally posted by GrouchyAdmin
                You need to name it .phps or .txt so we can see the source.
                Sorry bud, I figure you could right click and see...

                Code:
                <html>
                <head>
                <title>pic-gall-01</title>
                <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
                <style type="text/css">
                <!--
                body {
                	background-color: #B6B6AC;
                }
                -->
                </style></head>
                <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
                <table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td><table id="Table_01" width="770" height="1286" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <td colspan="14"><img src="images/pic-gall-01_01.jpg" width="770" height="359" alt=""></td>
                      </tr>
                      <tr>
                        <td colspan="3"><img src="images/pic-gall-01_02.jpg" width="76" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_03.jpg" width="120" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_04.jpg" width="5" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_05.jpg" width="120" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_06.jpg" width="5" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_07.jpg" width="120" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_08.jpg" width="5" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_09.jpg" width="120" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_10.jpg" width="5" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_11.jpg" width="120" height="180" alt=""></td>
                        <td colspan="2"><img src="images/pic-gall-01_12.jpg" width="74" height="180" alt=""></td>
                      </tr>
                      <tr>
                        <td colspan="14"><img src="images/pic-gall-01_13.jpg" width="770" height="6" alt=""></td>
                      </tr>
                      <tr>
                        <td colspan="3"><img src="images/pic-gall-01_14.jpg" width="76" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_15.jpg" width="120" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_16.jpg" width="5" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_17.jpg" width="120" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_18.jpg" width="5" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_19.jpg" width="120" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_20.jpg" width="5" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_21.jpg" width="120" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_22.jpg" width="5" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_23.jpg" width="120" height="180" alt=""></td>
                        <td colspan="2"><img src="images/pic-gall-01_24.jpg" width="74" height="180" alt=""></td>
                      </tr>
                      <tr>
                        <td colspan="14"><img src="images/pic-gall-01_25.jpg" width="770" height="12" alt=""></td>
                      </tr>
                      <tr>
                        <td colspan="14"><table width="770" height="47" border="0" cellpadding="0" cellspacing="0">
                          <tr>
                            <td background="images/pic-gall-01_26.jpg">&nbsp;</td>
                          </tr>
                        </table></td>
                      </tr>
                      <tr>
                        <td colspan="14"><img src="images/pic-gall-01_27.jpg" width="770" height="12" alt=""></td>
                      </tr>
                      <tr>
                        <td colspan="3"><img src="images/pic-gall-01_28.jpg" width="76" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_29.jpg" width="120" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_30.jpg" width="5" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_31.jpg" width="120" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_32.jpg" width="5" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_33.jpg" width="120" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_34.jpg" width="5" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_35.jpg" width="120" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_36.jpg" width="5" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_37.jpg" width="120" height="180" alt=""></td>
                        <td colspan="2"><img src="images/pic-gall-01_38.jpg" width="74" height="180" alt=""></td>
                      </tr>
                      <tr>
                        <td colspan="14"><img src="images/pic-gall-01_39.jpg" width="770" height="5" alt=""></td>
                      </tr>
                      <tr>
                        <td colspan="3"><img src="images/pic-gall-01_40.jpg" width="76" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_41.jpg" width="120" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_42.jpg" width="5" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_43.jpg" width="120" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_44.jpg" width="5" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_45.jpg" width="120" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_46.jpg" width="5" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_47.jpg" width="120" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_48.jpg" width="5" height="180" alt=""></td>
                        <td><img src="images/pic-gall-01_49.jpg" width="120" height="180" alt=""></td>
                        <td colspan="2"><img src="images/pic-gall-01_50.jpg" width="74" height="180" alt=""></td>
                      </tr>
                      <tr>
                        <td colspan="14"><img src="images/pic-gall-01_51.jpg" width="770" height="9" alt=""></td>
                      </tr>
                      <tr>
                        <td colspan="2"><img src="images/pic-gall-01_52.jpg" width="36" height="53" alt=""></td>
                        <td colspan="11">
                        <?php 
                $site_link = "http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=935991&PA=&HTML=http://www.xtremeinterracial.com/splash_a.html"; 
                if(isset($_GET['ccbill_id'])){ 
                $site_link = "http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=935991&PA=" . $_GET['ccbill_id'] . "&HTML=" . $_GET['site_link']; 
                } 
                ?><a href="<?php echo $site_link; ?>"><img src="images/pic-gall-01_53.gif" width="697" height="53" alt="" border="0"></a></td>
                        <td><img src="images/pic-gall-01_54.jpg" width="37" height="53" alt=""></td>
                      </tr>
                      <tr>
                        <td><img src="images/pic-gall-01_55.jpg" width="17" height="62" alt=""></td>
                        <td colspan="13"><img src="images/pic-gall-01_56.jpg" width="753" height="62" alt=""></td>
                      </tr>
                      <tr>
                        <td><img src="images/spacer.gif" width="17" height="1" alt=""></td>
                        <td><img src="images/spacer.gif" width="19" height="1" alt=""></td>
                        <td><img src="images/spacer.gif" width="40" height="1" alt=""></td>
                        <td><img src="images/spacer.gif" width="120" height="1" alt=""></td>
                        <td><img src="images/spacer.gif" width="5" height="1" alt=""></td>
                        <td><img src="images/spacer.gif" width="120" height="1" alt=""></td>
                        <td><img src="images/spacer.gif" width="5" height="1" alt=""></td>
                        <td><img src="images/spacer.gif" width="120" height="1" alt=""></td>
                        <td><img src="images/spacer.gif" width="5" height="1" alt=""></td>
                        <td><img src="images/spacer.gif" width="120" height="1" alt=""></td>
                        <td><img src="images/spacer.gif" width="5" height="1" alt=""></td>
                        <td><img src="images/spacer.gif" width="120" height="1" alt=""></td>
                        <td><img src="images/spacer.gif" width="37" height="1" alt=""></td>
                        <td><img src="images/spacer.gif" width="37" height="1" alt=""></td>
                      </tr>
                    </table></td>
                  </tr>
                </table>
                </body>
                </html>

                Comment

                • Jon Clark - BANNED FOR LIFE
                  North Coast Pimp
                  • Dec 2005
                  • 9395

                  #9
                  This is the area of question...
                  Code:
                          <?php 
                  $site_link = "http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=935991&PA=&HTML=http://www.xtremeinterracial.com/splash_a.html"; 
                  if(isset($_GET['ccbill_id'])){ 
                  $site_link = "http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=935991&PA=" . $_GET['ccbill_id'] . "&HTML=" . $_GET['site_link']; 
                  } 
                  ?><a href="<?php echo $site_link; ?>"><img src="images/pic-gall-01_53.gif" width="697" height="53" alt="" border="0"></a></td>

                  Comment

                  • Jon Clark - BANNED FOR LIFE
                    North Coast Pimp
                    • Dec 2005
                    • 9395

                    #10
                    I know, it is all fucked up, lmao, but I want to learn how to make it correct, that is why I am asking...

                    Comment

                    • halfpint
                      GFY's Halfpint
                      • Jun 2007
                      • 15223

                      #11
                      dont know if this is what you mean

                      Code:
                      <a href="http://www.youraffliate.com"><img src="images/pic-gall-01_03.jpg" width="82" height="31" width="120" height="180" alt=""></td>

                      Get FREE website listings on Cryptocoinshops.net

                      Comment

                      • halfpint
                        GFY's Halfpint
                        • Jun 2007
                        • 15223

                        #12
                        Originally posted by halfpint
                        dont know if this is what you mean

                        Code:
                        <a href="http://www.youraffliate.com"><img src="images/pic-gall-01_03.jpg" width="82" height="31" width="120" height="180" alt=""></td>
                        lol left out some code forget the top one


                        Code:
                        <td><a href="http://www.youraffliate.com"><img src="images/pic-gall-01_03.jpg" width="82" height="31" width="120" height="180" alt=""></a></td>

                        Get FREE website listings on Cryptocoinshops.net

                        Comment

                        • Jon Clark - BANNED FOR LIFE
                          North Coast Pimp
                          • Dec 2005
                          • 9395

                          #13
                          Originally posted by halfpint
                          lol left out some code forget the top one


                          Code:
                          <td><a href="http://www.youraffliate.com"><img src="images/pic-gall-01_03.jpg" width="82" height="31" width="120" height="180" alt=""></a></td>
                          lol, you are way off mang...

                          Comment

                          • aico
                            Moo Moo Cow
                            • Mar 2004
                            • 14748

                            #14
                            why don't you just make it an .shtml file and use an echo query?

                            Comment

                            • Fucksakes
                              Shit... Fuck! What the Hell?
                              • Dec 2003
                              • 7567

                              #15
                              http://www.freepornnut.com/xtremeint...ccbill_id=asdf

                              Comment

                              • Fucksakes
                                Shit... Fuck! What the Hell?
                                • Dec 2003
                                • 7567

                                #16
                                http://www.freepornnut.com/xtremeint...link=fucksakes

                                Comment

                                • GrouchyAdmin
                                  Now choke yourself!
                                  • Apr 2006
                                  • 12085

                                  #17
                                  Originally posted by Jon Clark
                                  This is the area of question...
                                  Code:
                                          <?php 
                                  $site_link = "http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=935991&PA=&HTML=http://www.xtremeinterracial.com/splash_a.html"; 
                                  if(isset($_GET['ccbill_id'])){ 
                                  $site_link = "http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=935991&PA=" . $_GET['ccbill_id'] . "&HTML=" . $_GET['site_link']; 
                                  } 
                                  ?><a href="<?php echo $site_link; ?>"><img src="images/pic-gall-01_53.gif" width="697" height="53" alt="" border="0"></a></td>
                                  You're missing a hell of a lot, dude.

                                  Here's just an example to make it 'work':

                                  Code:
                                  <?php
                                  $link = isset($_GET['site_link']) ? $_GET['site_link'] : "http://www.xtremeinterracial.com/splash_a.html";
                                  $site_link = isset($_GET['ccbill_id']) ? "http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=935991&PA=" . $_GET['ccbill_id'] . "&HTML=$link"   : "http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=935991&PA=&HTML=$link"
                                  ... 
                                  ?>
                                  This will test for site_link being set, and if ccbill_id is set, will construct, accordingly. ccbill_id is kind of a nobrainer, but I'm lazy, and not getting paid for this.

                                  You might also consider testing with a:
                                  Code:
                                  if (parse_url($site_link)) {... works } else { ... failed }
                                  construct, so if someone's too retarded to set a proper URL, you get credited.

                                  Comment

                                  • Jon Clark - BANNED FOR LIFE
                                    North Coast Pimp
                                    • Dec 2005
                                    • 9395

                                    #18
                                    Thanks bro... That is just what I needed


                                    Originally posted by aico
                                    why don't you just make it an .shtml file and use an echo query?
                                    I have to do it the way it is being done now so it will work correctly will CCBTools...

                                    Comment

                                    • Fucksakes
                                      Shit... Fuck! What the Hell?
                                      • Dec 2003
                                      • 7567

                                      #19
                                      hes only a beginner haha dont confuse him

                                      Comment

                                      • Jon Clark - BANNED FOR LIFE
                                        North Coast Pimp
                                        • Dec 2005
                                        • 9395

                                        #20
                                        Originally posted by Fucksakes
                                        hes only a beginner haha dont confuse him
                                        What he said...



                                        I appreiciate the help...

                                        Comment

                                        • GrouchyAdmin
                                          Now choke yourself!
                                          • Apr 2006
                                          • 12085

                                          #21
                                          Well, do what I said, and it'll help more, because you're assuming site_link is set if ccbill_id is set.

                                          Comment

                                          • natkejs
                                            Confirmed User
                                            • Jan 2003
                                            • 1640

                                            #22
                                            for $200 per hour I will get you exactly what you want

                                            Comment

                                            • Jon Clark - BANNED FOR LIFE
                                              North Coast Pimp
                                              • Dec 2005
                                              • 9395

                                              #23
                                              Originally posted by GrouchyAdmin
                                              Well, do what I said, and it'll help more, because you're assuming site_link is set if ccbill_id is set.
                                              Ok, I will see if I can get it worked out, lol...

                                              Do you know of any simple docs on php that are easy for a clown like me to learn from?

                                              Comment

                                              • AlienQ - BANNED FOR LIFE
                                                best designer on GFY
                                                • Mar 2003
                                                • 30307

                                                #24
                                                Echo?

                                                Wazzat!

                                                Comment

                                                • Nookster
                                                  Confirmed IT Professional
                                                  • Nov 2005
                                                  • 3744

                                                  #25
                                                  Always sanitize your php variables or some bad guy can come across and do whatever he/she wants with it. You can also cause problems/exploit other (unprotected) systems which you're sending the variables to.
                                                  Code:
                                                  $site_link = mysql_real_escape_string($_GET['ccbill_id']);
                                                  ALWAYS
                                                  The Best Affiliate Software, Ever.

                                                  Comment

                                                  • Nookster
                                                    Confirmed IT Professional
                                                    • Nov 2005
                                                    • 3744

                                                    #26
                                                    Forgot to add:

                                                    Or if you're not using any dbase or mysql:
                                                    Code:
                                                    $site_link = addslashes(trim($_GET['ccbill_id']));
                                                    Just examples.
                                                    Last edited by Nookster; 04-23-2008, 07:42 AM.
                                                    The Best Affiliate Software, Ever.

                                                    Comment

                                                    Working...