Jump to content

darubillah

Members
  • Posts

    54
  • Joined

  • Last visited

    Never

Everything posted by darubillah

  1. hello, I need a little help from you Genius people out their I am working on a search engine script, I want to add Youtube Videos Thumbnails visit my site http://searching.cz.cc & click on Videos Tab & search something It will search on youtube see the below code $results_display.=' <table cellpadding="0" ><tr> <td width="0%" valign="top">'; if($show_thumbs==1){ $results_display.='<img src="http://open.thumbshots.org/image.pxf?url='.$link.'" border="0" onload="if (this.width>50) this.border=1; this.alt=\'Thumbnails by Thumbshots.org\';"> </td><td width="96%" valign="top">'; }else { $results_display.=' </td> <td width="96%" >'; } I have also attached the search.php file Currently it shows thumbnails from thumbshot.org, Which is not showing the Video thumbnails, I want to show Youtube video thumshot & when anyone click on it it would play video on the same page and remember it shows results of other TABS also i dont want to show thumbnails of youtube on other TABS hope you understand can anyone please help me, I would also add his name on big contributers list Please Help me I know how to create youtube thumbshot if you dont know then visit this http://www.technospot.net/blogs/how-to-grab-and-download-the-you-tube-video-thumbnail/ SOURCE for search.php http://searching.cz.cc/search.txt
  2. acctually I am looking for a PHP script which can do that for me
  3. hi, I am new to PHP, i wanna ask that is their any free script available through which I can export data from one db to another I want export from wordpress db from table wp_post from colom post_content & post_title to table entitles to colom description & title respectively any help will be appreciated Thanks Shayan Abbas
  4. hi, I want to sk that How to edit text on JPG file I dont have .psd file just .JPG and I want to edit text, If anyone can do it then please PM me or reply to this thread please Best Regards Shayan
  5. hi, i am getting the following error when visiting info.php Forbidden You don't have permission to access /info.php on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at mp3.thextremezik.com Port 80 can anyone tell me what wrong with it?? when ever i try to visit info.php, embed.php, listen.php, download.php in this page http://mp3.thextremezik.com/search/hands-held-high/1/mp3 i got the above error please help me
  6. thank you for your answers can you please tell me where I should add this code, or please add this code for me This one if(!preg_match('~\@thextremezik\.com$~i', $EmailVar)) or any other thanks
  7. hi, I want my users to use specific e-mail address that mean, when ever my user register on my site services they will use only my e-mail service @thextremezik.com following is my registering code <?php /*** Pirates of the Black Sea | Check RPGBUNNY.COM for more Full RPG Sources | www.rpgbunny.com ***/include "antet.php"; include "func.php"; $config=config(); if (!$config[3][1]) msg($lang['regClosed']); $factions=factions(); $_SESSION["code"]=rand(1000, 9999); ?> <html> <?php echo "<link rel='stylesheet' type='text/css' href='".$imgs.$fimgs."default.css'>"; ?> <head> <title><?php echo $title; ?> - <?php echo $lang['register'] ?></title> </head> <body class="q_body"> <link rel="stylesheet" type="text/css" href="layout/css/css/style.css"/> <div align="left"> <table class="q_table"> <form name="form1" method="post" action="register_.php"> <label><?php echo $lang['username'] ?> <input class='textbox' type="text" name="name"> </label> <p> <label><?php echo $lang['password'] ?> <input class='textbox' type="password" name="pass"> </label> </p> <p> <label><?php echo $lang['retypePass'] ?> <input class='textbox' type="password" name="pass_"> </label> </p> <p> <label><?php echo $lang['validEmail'] ?> <input class='textbox' type="text" name="email"> </label> </p> <p> <label><?php echo $lang['faction'] ?> <select class='dropdown' name="faction"> <?php for ($i=0; $i<count($factions); $i++) echo "<option value='".$i."'>".$factions[$i][1]."</option>"; ?> </select> </label> </p> <p> <label><?php echo $lang['typeCode'] ?> '<?php echo $_SESSION["code"];?>'<img src="captcha.php"> <input class='textbox' type="text" name="code"> </label> </p> <p> <label> <input class='button' type="submit" name="reg" value="<?php echo $lang['submit'] ?>"> </label> </p> </form> </td> </tr> </table> </div> </body> </html> see registeration page http://piratesoftheblacksea.thextremezik.com/ please help me
  8. please help me If you want whole script than I can give you
  9. this is members.php <?php // This script is copyrighted to FastTreck.info // You are not allowed to copy this script // If you modify this script you may not claim copyrights. // You are not allowed to remove this header // We will take legal action against all violators. require("program.php"); userlogin(); require("top.php"); ?> <br><br><center><font size="4" color=white face=Verdana><b>Member's Area</b></font><br></center> <?php $action = $_GET['action']; require("login_links.php"); if ($act == "edit") { $sql = "UPDATE users SET first='$first',last='$last',email='$email',acc='$acc',pass='$pass' WHERE id='$id'"; $result = mysql_query($sql); echo "Your information has been updated.\n"; } elseif ($act == "delete") { // delete a record $orsql = "SELECT * FROM users WHERE id='$id'"; $orresult = mysql_query($orsql); $ormyrow = mysql_fetch_array($orresult); $oldref = $ormyrow["ref"]; if ($oldref) { $usql = "UPDATE users SET refs=refs-1 WHERE id='$oldref'"; $uresult = mysql_query($usql); } $sql = "DELETE FROM users WHERE id='$id'"; $result = mysql_query($sql); echo "Your account has been deleted!<p>"; } elseif ($action == "delete") { $sql = "SELECT * FROM users WHERE id='$id'"; $result = mysql_query($sql); $myrow = mysql_fetch_array($result); ?> <center><font size="3" face=Verdana>Are you sure you want to delete your account?</font> <form method="post" action="<?php echo $PHP_SELF?>"> <input type="hidden" name="session" value="<?php echo $session ?>"> <input type="hidden" name="act" value="delete"> <input type="Submit" name="submit" value="Delete My Account"></center> <?php } elseif ($action == "edit") { $sql = "SELECT * FROM users WHERE id='$id'"; $result = mysql_query($sql); $myrow = mysql_fetch_array($result); ?> <font size="3" face=Verdana>Enter your information.</font><br> <table width="100%"><tr><td width="50%"><font size="4" face=Verdana> Your User-ID<br> Your first name<br> Your last name<br> Your Email<br> Your <?php echo $pay?> account<br> Your Password</font><br> </td><td width="50%" valign="top"> <form method="post" action="<?php echo $PHP_SELF?>"> <b><?php echo $myrow["id"] ?></b><br> <input type="Text" name="first" value="<?php echo $myrow["first"] ?>"><br> <input type="Text" name="last" value="<?php echo $myrow["last"] ?>"><br> <input type="Text" name="email" value="<?php echo $myrow["email"] ?>"><br> <input type="Text" name="acc" value="<?php echo $myrow["acc"] ?>"><br> <input type="password" name="pass" value="<?php echo $myrow["pass"] ?>"><br> <input type="hidden" name="session" value="<?php echo $session ?>"> <input type="hidden" name="act" value="edit"> </td></tr></table><input type="Submit" name="submit" value="Enter information"> </form> <br /><br /> <?php } else { $sql = "SELECT * FROM users WHERE id='$id'"; $result = mysql_query($sql); $myrow = mysql_fetch_array($result); ?> <table width="100%"><tr><td width="50%"> <font size="3" face=Verdana>Earnings<br> Personally sponsored members.</font> <br> </td><td width="50%" valign="top"> <font size="3" face=Verdana>$<?php echo $myrow["earnings"] ?><br> <?php echo $myrow["refs"] ?></font><br><br> </td></tr></table> <center><font size="3" face=Verdana>Downline</font></center> <?php $l = 1; $cl = array($id); foreach ($referral_levels as $percent) { $j = 0; $nl = array(); foreach ($cl as $refid) { $ref_result = mysql_query("SELECT id FROM users WHERE mpr='$refid'",$db); while ($ref_myrow = mysql_fetch_array($ref_result, MYSQL_ASSOC)) { $nl[$j] = $ref_myrow["id"]; $j++; } } if ($j == 0) { break; } ?> <table width="100%"><tr><td width="50%"> <b><font size="3" face=Verdana>Level <?php echo $l ?></font></b><br> </td><td width="50%" valign="top"> <?php echo $j ?> <select> <?php foreach ($nl as $rvalue) { ?> <option value="<?php echo $rvalue?>"><?php echo $rvalue?></option> <?php } ?> </select><br> </td></tr></table> <?php unset($cl); $cl = $nl; unset($nl); $l++; } ?> <center><font size="3" face=Verdana>Credits</font></center> <?php $trans_result = mysql_query("SELECT * FROM trans WHERE type='Credit' AND username='$id'",$db); while ($trans_myrow = mysql_fetch_array($trans_result, MYSQL_ASSOC)) { ?> <table width="100%"><tr><td width="50%"> <b><?php echo $trans_myrow["event"] ?></b><br> </td><td width="50%" valign="top"> <font size="3" face=Verdana>$<?php echo $trans_myrow["amount"] ?></font><br> </td></tr></table> <?php } ?> <center><font size="3" face=Verdana>Debits</font></center> <?php $trans_result = mysql_query("SELECT * FROM trans WHERE type='Debit' AND username='$id'",$db); while ($trans_myrow = mysql_fetch_array($trans_result, MYSQL_ASSOC)) { ?> <table width="100%"><tr><td width="50%"> <b><?php echo $trans_myrow["event"] ?></b><br> </td><td width="50%" valign="top"> $<?php echo $trans_myrow["amount"] ?><br><br> </td></tr></table> <?php } } require("bottom.php"); ?>
  10. no i did nothing with this file, I was just implementing a template plzzz help me
  11. the following is the code from 36-41 $gl = $level - 1; $total = $referral_levels[$gl] * $people; return number_format($total, 2); } function aperlevel($level) { foreach (array_keys($GLOBALS) as $i) {if(!isset(${$i})) global ${$i};} and line 39 has } in it please try to solve it
  12. hi, I am getting an error Fatal error: Cannot redeclare iperlevel() (previously declared in /home/shayan/public_html/pakmoneymatrix.com/program.php:30) in /home/shayan/public_html/pakmoneymatrix.com/program.php on line 39 when ever I visit member.php in my site it show the above error, my website url : http://pakmoneymatrix.com/members.php?r= the following is the code of program.php <? require("config.php"); $today = date(Ymd); $now = date(YmdHis); $utimestamp = time(); $r = $_GET["r"]; $step = $_GET["step"]; if ($header == '1') { $header = "<img src='$url/images/logo.gif' ALT='$pname' border='0' height='60' width='468'>"; } if ($header == '2') { $header = "<font size='6'>$pname</font>"; } $totallevels = count ($referral_levels); $db = mysql_pconnect($dbhost, $dbuser, $dbpass) or die("Could not connect"); mysql_select_db($dbname) or die("Could not select database"); require_once("payment_gateway.php"); function iperlevel($level) { foreach (array_keys($GLOBALS) as $i) {if(!isset(${$i})) global ${$i};} $people = 1; for ($i = 1; $i <= $level; $i++) { $people *= $maxrefs; } $gl = $level - 1; $total = $referral_levels[$gl] * $people; return number_format($total, 2); } function aperlevel($level) { foreach (array_keys($GLOBALS) as $i) {if(!isset(${$i})) global ${$i};} $gl = $level - 1; $total = $referral_levels[$gl]; return number_format($total, 2); } function tiperlevel($level) { foreach (array_keys($GLOBALS) as $i) {if(!isset(${$i})) global ${$i};} $people = $maxrefs; $gl = $level - 1; $total = 0; for ($i = 1; $i <= $level; $i++) { $temp = $referral_levels[$gl] * $people; $total += $temp; $people *= $maxrefs; } return number_format($total, 2); } function totalincome() { foreach (array_keys($GLOBALS) as $i) {if(!isset(${$i})) global ${$i};} $people = $maxrefs; $total = 0; foreach ($referral_levels as $amount) { $temp = $amount * $people; $total += $temp; $people *= $maxrefs; } return number_format($total, 2); } function pperlevel($level) { foreach (array_keys($GLOBALS) as $i) {if(!isset(${$i})) global ${$i};} $people = 1; for ($i = 1; $i <= $level; $i++) { $people *= $maxrefs; } return $people; } $ip = getenv("REMOTE_ADDR"); if ($payment_method == '1' || $payment_method == '3') { $pay = "PayPal"; } if ($payment_method == '2') { $pay = "E-gold"; } if ($payment_method == '4' || $payment_method == '5') { $pay = "StormPay"; } if ($payment_method == '3') { $time = ' per month'; $ctime = ' PER MONTH'; $timey = ' monthly'; } else { $time = ''; $ctime = ''; $timey = ''; } function brotator($br_rid) { foreach (array_keys($GLOBALS) as $i) {if(!isset(${$i})) global ${$i};} $br_exptype = "Date (YYYYMMDDHHMMSS)"; $br_updatesql = "UPDATE bannerrotator SET status='Expired' WHERE exptype='$br_exptype' AND expires<=$now"; $br_updateresult = mysql_query($br_updatesql); $br_sql2 = "SELECT * FROM bannerrotator WHERE adgroup='$br_rid' AND status='Normal' ORDER BY RAND() LIMIT 1"; $br_result2 = mysql_query($br_sql2) or die("Query failed"); $br_myrow2 = mysql_fetch_array($br_result2); $br_tid = $br_myrow2["id"]; $br_newviews = $br_myrow2["views"] + 1; if ($br_myrow2["exptype"] == "Views" && $br_newviews == $br_myrow2["expires"]) { $br_sql3 = "UPDATE bannerrotator SET views=views+1,status='Expired' WHERE id='$br_tid'"; } else { $br_sql3 = "UPDATE bannerrotator SET views=views+1 WHERE id='$br_tid'"; } $br_result3 = mysql_query($br_sql3) or die("Query failed"); if ($br_myrow2["type"] == "HTML") { echo $br_myrow2["html"]; } elseif ($br_myrow2["type"] == "Image") { ?> <a href="<?php echo $url ?>/bclick.php?go=<?php echo $br_myrow2["id"] ?>" target="_blank"><img src="<?php echo $br_myrow2["image"] ?>" ALT="<?php echo $br_myrow2["alt"] ?>" border="0" height="<?php echo $br_myrow2["ih"] ?>" width="<?php echo $br_myrow2["iw"] ?>"></a> <?php } } if ($_POST['id']) { $id = $_POST['id']; } elseif ($_GET['id']) { $id = $_GET['id']; } if (isset($_POST['password'])) { $password = md5($_POST['password']); } elseif (isset($_GET['password'])) { $password = md5($_GET['password']); } if ($remember == 'Yes') { setcookie('tsmatrixr', 'Yes',time()+999999); setcookie('tsmatrixid', $id,time()+999999); setcookie('tsmatrixpass', $password,time()+999999); } if (isset($_POST['session'])) { $session = $_POST['session']; } elseif (isset($_GET['session'])) { $session = $_GET['session']; } function clearusercookies() { setcookie('tsmatrixuser', ''); setcookie('tsmatrixlses', ''); setcookie('tsmatrixr', ''); setcookie('tsmatrixid', ''); setcookie('tsmatrixpass', ''); } function userlogin() { foreach (array_keys($GLOBALS) as $i) {if(!isset(${$i})) global ${$i};} if (!$session) { $session = $_COOKIE['tsmatrixlses']; } if ($_COOKIE['tsmatrixlses'] != $session) { setcookie('tsmatrixlses', '',time()-86400); setcookie('tsmatrixlses', $session,time()+86400); } if ($session != '') { $result = @mysql_query("SELECT * FROM sessions WHERE id='$session'"); $sessioninfo = @mysql_fetch_array($result); $sessionid = $sessioninfo['id']; if (!$sessionid) { clearusercookies(); require("login.php"); exit(); } $sessionexpires = $sessioninfo['time'] + 3600; if ($sessionexpires < time()) { clearusercookies(); require("login.php"); exit(); } if ($sessioninfo['ip'] != $ip && $sessioninfo['ip'] != '') { clearusercookies(); require("login.php"); exit(); } $GLOBALS['session'] = $sessioninfo['id']; $id = $sessioninfo['username']; $GLOBALS['id'] = $sessioninfo['username']; $password = $sessioninfo['password']; $GLOBALS['password'] = $sessioninfo['password']; } if (!$id) { clearusercookies(); require("login.php"); exit(); } $sql = "SELECT pass FROM users WHERE id='$id'"; $result = @mysql_query($sql); $opass = @mysql_result($result, 0); $epass = md5($opass); if ($password != $epass || !$opass) { clearusercookies(); require("invalid_login.php"); exit(); } if ($session == '') { if ($iplock == 'Yes') { $ipl = $ip; } else { $ipl = ''; } $sessionfull = time().$id; $session = substr(md5($sessionfull), 0, 32); $sql = "INSERT INTO sessions (id,username,password,ip,time) VALUES ('$session','$id','$password','$ipl','$utimestamp')"; $result = @mysql_query($sql); if ($remember != 'Yes') { setcookie('tsmatrixlses', $session,time()+86400); } $GLOBALS['session'] = $session; } else { $result = @mysql_query("UPDATE sessions SET time='$utimestamp' WHERE id='$session'"); } setcookie('tsmatrixuser', $id,time()+999999); } function userlogout() { global $db,$session; $result = @mysql_query("DELETE FROM sessions WHERE id='$session'"); setcookie('tsmatrixuser', '',time()-999999); setcookie('tsmatrixlses', '',time()-999999); setcookie('tsmatrixr', '',time()-999999); setcookie('tsmatrixid', '',time()-99999); setcookie('tsmatrixpass', '',time()-999999); unset($_COOKIE['tsmatrixuser']); $GLOBALS['id'] = ''; unset($_COOKIE['tsmatrixlses']); $GLOBALS['session'] = ''; unset($_COOKIE['tsmatrixr']); $GLOBALS['remember'] = ''; unset($_COOKIE['tsmatrixid']); unset($_COOKIE['tsmatrixpass']); $GLOBALS['password'] = ''; } if ($header == '1') { $header = "<img src=\"$url/images/logo.gif\" ALT=\"$pname\" border=\"0\" height=\"60\" width=\"468\">"; } if ($header == '2') { $header = "<font size=\"6\">$pname</font>"; } ?> Please Help me Thanks
  13. hi, i have an option of adding avaters in my site, where users placed their avater link and it is shown. Now i want a script which indexes images from a defined folder an when users click on the images it will automaically add the link of the image in the avater field please help me Thanks Shayan
  14. maybe this is not the right place for this post please move it to its right destination
  15. hi, recently I installed SocialEngine script, there's an option in it to convert long profile address into a sub domain with .htaccess file FOR EG. Before http://yourdomain.com/profile.php?=name After http://name.yourdomain.com SO I ALSO WANT TO USE THIS FEATURE IN MY WEBSITE i am using a PTC script of GeN3 the referral url which my users used to refer's other is like this http://www.myptc.com/index.php?ref=name and i want to convert it like name.myptc.com Please help me in it Thanks Shayan
  16. THANKS MAN YOU HAVE SOLVED MY PROBLEM THANKS SHAYAN
  17. hi, this is the code <?php if(!defined('GEN2_PROCESS')) { exit(); } $ref_title = "Recharge"; if(!$loggedin) { function filter_data($val) { return htmlentities($val,ENT_QUOTES); } if($_POST['ap']) { $post=array_map("filter_data",$_POST); $url = $post['url']; $clicks = $post['clicks']; $name = $post['name']; $bold = $post['bold']; $highlight = $post['highlight']; $email = $post['email']; $cat = $post['cat']; $desc = $post['desc']; if($post['url'] == "" || $post['name'] == "") { $contents .= "You need to fill in all fields. Please press back."; } else { $price = mysql_query("SELECT price FROM ad_packages WHERE clicks='{$clicks}' LIMIT 1;"); $price = mysql_fetch_array($price); $price = $price['price']; if($bold) { $price = $price + $set['bold_link_price']; } if($highlight) { $price = $price + $set['highlight_link_price']; } if($desc) { $price = $price + $set['desc_link_price']; } mysql_query("INSERT INTO outsideads (`id`,`url`,`name`,`email`,`category`,`bold`,`highlight`,`desc`,`clicks`,`type`) VALUES (NULL,'{$url}','{$name}','{$email}','{$cat}','{$bold}','{$highlight}','{$desc}','{$clicks}','Alertpay')")or die(mysql_error()); $contents .= "Your ad has been submitted. Please click the Alertpay icon below to proceed with your payment.<br /><br /> <form method='post' name='ap' action='https://www.alertpay.com/PayProcess.aspx'> <input type='hidden' name='ap_amount' value='{$price}'> <input type='hidden' name='ap_purchasetype' value='service'/> <input type='hidden' name='ap_merchant' value='{$set['ap_paymentemail']}'/> <input type='hidden' name='ap_itemname' value='{$set['outsideads']}'/> <input type='hidden' name='ap_currency' value='USD'/> <input type='hidden' name='ap_returnurl' value=''/> <input type='hidden' name='ap_quantity' value='1'/> <center><input type='image' name='ap_image' src='https://www.alertpay.com/PayNow/5B9DE53E8E9A4D8CB89C7EA37D4F04C5f.gif'/> </form>"; } } elseif($_POST['pp']) { $post=array_map("filter_data",$_POST); $url = $post['url']; $clicks = $post['clicks']; $name = $post['name']; $bold = $post['bold']; $highlight = $post['highlight']; $email = $post['email']; $cat = $post['cat']; $desc = $post['desc']; if($post['url'] == "" || $post['name'] == "") { $contents .= "You need to fill in all fields. Please press back."; } else { $price = mysql_query("SELECT price FROM ad_packages WHERE clicks='{$clicks}' LIMIT 1;"); $price = mysql_fetch_array($price); $price = $price['price']; if($bold) { $price = $price + $set['bold_link_price']; } if($highlight) { $price = $price + $set['highlight_link_price']; } if($desc) { $price = $price + $set['desc_link_price']; } mysql_query("INSERT INTO outsideads (`id`,`url`,`name`,`email`,`category`,`bold`,`highlight`,`desc`,`clicks`,`type`) VALUES (NULL,'{$url}','{$name}','{$email}','{$cat}','{$bold}','{$highlight}','{$desc}','{$clicks}','Paypal')")or die(mysql_error()); $contents .= "Your ad has been submitted. Please click the Paypal icon below to proceed with your payment.<br /><br /> <FORM ACTION='https://www.paypal.com/cgi-bin/webscr' METHOD='POST'> <INPUT TYPE='hidden' NAME='cmd' VALUE='_xclick'> <INPUT TYPE='hidden' NAME='business' VALUE='{$set['pp_paymentemail']}'> <INPUT TYPE='hidden' NAME='quantity' VALUE='1'> <INPUT TYPE='hidden' NAME='item_name' VALUE='{$set['outsideads']}'> <input type='hidden' name='amount' value='{$price}' > <INPUT TYPE='hidden' NAME='no_shipping' VALUE='1'> <INPUT TYPE='hidden' NAME='notify_url' VALUE=''> <INPUT TYPE='hidden' NAME='currency_code' VALUE='USD'> <INPUT TYPE='image' SRC='http://www.paypal.com/en_US/i/btn/x-click-but01.gif' BORDER='0' NAME='submit' ALT='Make payments with PayPal - it's fast, free and secure!'> </FORM>"; } } else { if($set['ap_enabled']) { $contents .= " <table> <tr> <td><img src='themes/GeN3/images/chart.png' align='center'></td> <td><h3><font>Recharge</font></h3></td> </tr> </table> <br /> <br /> <table width='600' border='1'> <tr> <td>Once payment is completed, we will have your advertisement up within 24 hours and then you can start clicking ads.<br /><br /> <p align='left'><strong>ADS PACKAGE VALIDATION </strong></p> <p align='left'>100 click = 10 days | 200 click = 20 days | 300 click = 30 days | 400 click = 40 days</p> <p align='left'>500 click = 50 days | 1000 click = 100 days | 10,000 click = 1000 days</p> <p align='left'><b>Note:</b> Use your current set Alertpay payment E-mail.</p><br /><br /></td> </tr> <tr> <td> <form method='post' name='ap'> <input type='hidden' name='ap' value='1'> <table width='675'> <tr> <td align='center' colspan='2'> <b><font size='2'>Pay with Alertpay</b></font> </td> </tr> <tr> <td width='213'> Your Payment E-mail: </td> <td width='457'> <input type='text' name='email' value='' size='35' /> </td> </tr> <tr> <td> Your Website Name: </td> <td> <input type='text' name='name' value='' size='35' /> </td> </tr> <tr> <td> Your Website URL: </td> <td> <input type='text' name='url' value='' size='35' /> </td> </tr> <tr> <td> Your Website Description (<b>\${$set['desc_link_price']}</b>): </td> <td> <input type='text' name='desc' value='' size='35' /> </td> </tr> <tr> <td> Click Package: </td> <td> <select name='clicks' value=''>"; $a = mysql_query("SELECT * FROM ad_packages"); while($b=mysql_fetch_array($a)) { $contents .= "<option value='{$b['clicks']}'>".number_format($b['clicks'])." clicks - \$".number_format($b['price'],2)."</option>"; } $contents .= " </select> </td> </tr> <tr> <td> Category: </td> <td> <select name='cat' value=''>"; $c = mysql_query("SELECT * FROM ad_catagories"); while($d=mysql_fetch_array($c)) { $contents .= "<option value='{$d['ac_name']}'>{$d['ac_name']}</option>"; } $contents .= " </select> </td> </tr> <tr> <td> Bold (<b>\${$set['bold_link_price']}</b>): </td> <td> <input type='checkbox' name='bold' value='1' {$ppauto}> </td> </tr> <tr> <td> Highlight (<b>\${$set['highlight_link_price']}</b>): </td> <td> <input type='checkbox' name='highlight' value='1' {$ppauto}> </td> </tr> </table> <center><input type='submit' value='Submit Alertpay Order'></center> </form> </td> </tr> </table>"; if($set['pp_enabled']) { $contents .= " <br /><br /> <table> <tr> <td> <form method='post'> <input type='hidden' name='pp' value='1'> <table> <tr> <td align='center' colspan='2'> <b><font size='2'>Pay with Paypal</b></font> </td> </tr> <tr> <td> Your Payment Email: </td> <td> <input type='text' name='email' value='' size='35' /> </td> </tr> <tr> <td> Your Website Name: </td> <td> <input type='text' name='name' value='' size='35' /> </td> </tr> <tr> <td> Your Website URL: </td> <td> <input type='text' name='url' value='' size='35' /> </td> </tr> <tr> <td> Your Website Description (<b>\${$set['desc_link_price']}</b>): </td> <td> <input type='text' name='desc' value='' size='35' /> </td> </tr> <tr> <td> Click Package: </td> <td> <select name='clicks' value=''>"; $a = mysql_query("SELECT * FROM ad_packages"); while($b=mysql_fetch_array($a)) { $contents .= "<option value='{$b['clicks']}'>".number_format($b['clicks'])." clicks - \$".number_format($b['price'],2)."</option>"; } $contents .= " </select> </td> </tr> <tr> <td> Category: </td> <td> <select name='cat' value=''>"; $c = mysql_query("SELECT * FROM ad_catagories"); while($d=mysql_fetch_array($c)) { $contents .= "<option value='{$d['ac_name']}'>{$d['ac_name']}</option>"; } $contents .= " </select> </td> </tr> <tr> <td> Bold (<b>\${$set['bold_link_price']}</b>): </td> <td> <input type='checkbox' name='bold' value='1' {$ppauto}> </td> </tr> <tr> <td> Highlight (<b>\${$set['highlight_link_price']}</b>): </td> <td> <input type='checkbox' name='highlight' value='1' {$ppauto}> </td> </tr> </table> <center><input type='submit' value='Submit Paypal Order'></center> </form> </td> </tr> </table> "; } $contents .= ""; } else { $contents .= "Sorry, outside advertising is currently unavailable."; } } } else { $contents .= "You must be logged OUT to advertise this way. If you wish to advertise, please go to the advertise panel in your account."; } ?></div> when ever any LOGGED IN user visit this page namely recharge.php , this page show that "You must be logged OUT to advertise this way. If you wish to advertise, please go to the advertise panel in your account." Now i don't want this error, i want that when any LOGGED IN user visit this page , it would appear as it appeared for LOGGED OUT user. Please help me in it THANKS Shayan
  18. hi, THIS WOULD BE THE NEXT STEP see this is themes/gen3/ads.php <?php if(!defined('GEN2_PROCESS')) { exit(); } $ref_title = "Surf Advertisements"; if(!$ads_show) { $ads_show = "<tr><td colspan=4 class='bar'>There are currently no advertisements.</p></td></tr>"; } $mbs = date("h:i A",$set['next_clearup']); $cst = date("h:i A"); if(!$ads_av) { $ads_av = '0'; } $contents = <<<CONT <table><tr><td><img src='themes/GeN3/images/chart.png' align='center'></td><td><h3 align="left">Advertisements</h3></td></tr></table> <div style='border:1px #121212 ridge; width:50%;'> <div align="left"> <table width=137% border=0> <tr><td> <p><b>Next Ad Refresh</b></p></td><td><p> {$mbs}</p></td></tr> <tr><td><p><b>Current Server Time</b></p></td><td><p> {$cst}</p></td></tr> <tr><td><p><b>Ads Available</b></p></td><td><p> {$ads_av}</p></td></tr> </table> </div> </div> <div align="left"> <p>When viewing an ad, please wait for a green message to appear for your advertisement credit to be issued</p> </div> <div id='ads_js'></div> <div align="left"> <table width=55% border=0> <tr> <td class='bar' width=50%>Advertisements </td> <td class='bar'> Member Clicks </td> <td class='bar'> Outside Clicks </td> </tr> {$ads_show} </table> CONT; ?></div> NOW i want to add some code in this page that First check in the users account that he had advertisement in his account running or not, and IF yes then it checks the EXPIRATION date of advertisement, if advertisement is expired or not runnig then it echo's an error that "YOU HAVE TO TOP-UP FIRST" and if advertisement is not expired then it shows the ads on that page to click. Thanks Shayan
  19. hello, sorry for late reply and also for double posting ya i understand this script well! see here this is the table for ads package -- phpMyAdmin SQL Dump -- version 2.11.7 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 18, 2009 at 08:05 PM -- Server version: 5.0.51 -- PHP Version: 5.2.6 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Database: `angaray_gen3` -- -- -------------------------------------------------------- -- -- Table structure for table `ad_packages` -- CREATE TABLE IF NOT EXISTS `ad_packages` ( `id` int(11) NOT NULL auto_increment, `clicks` int(11) NOT NULL, `price` varchar(100) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ; -- -- Dumping data for table `ad_packages` -- INSERT INTO `ad_packages` (`id`, `clicks`, `price`) VALUES (1, 100, '1.25'), (2, 200, '2.50'), (3, 300, '3.75'), (4, 400, '5.00'), (5, 500, '6.25'), (6, 1000, '12.5'); Now i want to add an expiration table in it, for example when anyone buys a 100 click package then it will expires in 10 days and similarly when anyone buys 200 click package then it will expires in 20 days IT WILL BE MORE EASY TO EXPLAIN ME, AND TO GET UNDERSTOOD BY YOU, IF INSTALL THIS SCRIPT YOU CAN FIND DEMO IN HTTP://PTCPLACES.COM ADMIN DEMO HTTP://PTCPLACES.COM/ADMIN login : admin Password : Dopy134 thanks Shayan
  20. hi, i want to convert GeN3 PTC Script into a GeN3 PTA script herez the script http://www.ziddu.com/download/4122590/Gen3v1.2.1.zip.html i just want to add some code in themes/gen3/ads.php so that it will only show advertisement if that user had buyed any advertisement package in SHORT I WANT IT TO WORK LIKE http://PAYEE.ME PLEASE DONT ADD CODE POST IT IN THIS TOPIC SO THAT I CAN LEARN HOW TO DO IT THANKS Shayan
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.