GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Need some php help... Got a minute? (https://gfy.com/showthread.php?t=823727)

Jon Clark - BANNED FOR LIFE 04-22-2008 08:34 PM

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 04-22-2008 08:37 PM

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

qxm 04-22-2008 08:40 PM

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

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

Fucksakes 04-22-2008 08:45 PM

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..

Jon Clark - BANNED FOR LIFE 04-22-2008 08:47 PM

Quote:

Originally Posted by Fucksakes (Post 14099988)
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..

Jon Clark - BANNED FOR LIFE 04-22-2008 08:48 PM

Quote:

Originally Posted by GrouchyAdmin (Post 14099965)
Well, I'm not psychic, but it's returning a black image for your references..

Quote:

Originally Posted by qxm (Post 14099972)
mon ... each and every image uploaded is linked to a black placeholder........

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


What..................? :Oh crap


































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

GrouchyAdmin 04-22-2008 08:49 PM

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

Jon Clark - BANNED FOR LIFE 04-22-2008 08:54 PM

Quote:

Originally Posted by GrouchyAdmin (Post 14100009)
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>


Jon Clark - BANNED FOR LIFE 04-22-2008 08:55 PM

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>


Jon Clark - BANNED FOR LIFE 04-22-2008 08:57 PM

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

halfpint 04-22-2008 09:00 PM

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>

halfpint 04-22-2008 09:05 PM

Quote:

Originally Posted by halfpint (Post 14100048)
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>

Jon Clark - BANNED FOR LIFE 04-22-2008 09:09 PM

Quote:

Originally Posted by halfpint (Post 14100073)
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...

aico 04-22-2008 09:24 PM

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

Fucksakes 04-22-2008 09:31 PM

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

Fucksakes 04-22-2008 09:33 PM

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

GrouchyAdmin 04-22-2008 09:34 PM

Quote:

Originally Posted by Jon Clark (Post 14100029)
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.

Jon Clark - BANNED FOR LIFE 04-22-2008 09:36 PM

Quote:

Originally Posted by Fucksakes (Post 14100167)

Thanks bro... That is just what I needed :)


Quote:

Originally Posted by aico (Post 14100140)
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...

Fucksakes 04-22-2008 09:37 PM

hes only a beginner haha dont confuse him

Jon Clark - BANNED FOR LIFE 04-22-2008 09:53 PM

Quote:

Originally Posted by Fucksakes (Post 14100189)
hes only a beginner haha dont confuse him

What he said... :1orglaugh



I appreiciate the help...

GrouchyAdmin 04-22-2008 09:54 PM

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

natkejs 04-22-2008 10:00 PM

for $200 per hour I will get you exactly what you want :)

Jon Clark - BANNED FOR LIFE 04-22-2008 10:00 PM

Quote:

Originally Posted by GrouchyAdmin (Post 14100238)
Well, do what I said, and it'll help more, because you're assuming site_link is set if ccbill_id is set. :thumbsup

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?

AlienQ - BANNED FOR LIFE 04-22-2008 10:14 PM

Echo?

Wazzat!

Nookster 04-23-2008 08:39 AM

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

Nookster 04-23-2008 08:41 AM

Forgot to add:

Or if you're not using any dbase or mysql:
Code:

$site_link = addslashes(trim($_GET['ccbill_id']));
Just examples.


All times are GMT -7. The time now is 10:24 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123