Jump to content

Chrisj

Members
  • Posts

    551
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Chrisj

  1. How can I create an second table, like tableX and then make them both appear side-by-side? <table class="tableX"> <thead> <tr> <th class="type">Type</th> <th>Number</th> </tr> </thead> <tbody> <tr> <td>x</td> <td>1</td> </tr> <tr> <td>y</td> <td>2</td> </tr> </tbody> </table>
  2. I was provided this code for an Upload Form, but I need some help with "do some additional validation here to make sure the submitted data is correct" And "probably do more filtering here". Can you enlighten me on what would be required there? Thanks <?php try { if (false === isset($_POST) || false === isset($_POST['form_submit']) { throw new Exception('The form has not been submitted'); } // collect thge submitted data from $_POST array foreach ($_POST as $k => $v) { $$k = trim($v); // probably do more filtering here // maybe check that data isn't too short or too long etc } // do some additional validation here to make sure // the submitted data is correct $dsn = 'mysql:dbname=testdb;host=127.0.0.1'; $user = 'dbuser'; $password = 'dbpass'; try { $dbh = new PDO($dsn, $user, $password); } catch (PDOException $e) { echo 'Connection failed: ' . $e->getMessage(); } // insert new row to the database $statement = $dbh->prepare('INSERT INTO table_name (number, word) VALUES (?, ?)'); $statement->bindParam(1, $number, PDO::PARAM_INT); $statement->bindParam(2, $word, PDO::PARAM_STR, strlen($word)); if (false === $statement->execute(array($number, $word))) { throw new Exception('Failed to insert row to database') } echo 'Everything went successfully '; } catch (Exception $e) { echo $e->getMessage(); }
  3. Thanks for your reply. I'd like a web visitor to enter information into a Form, and rather than it be a Mail Form, I'd rather, when they Submit, it uploads to a server folder.
  4. Need to upload data not files. text and numbers, basically, to a protected folder. Can you provide some insight on doing this? Or code? Or a recommended script? Thanks
  5. I'd like to create a Form where a web visitor can enter personal information and then I can receive it and process it securely. After reading about Secure Mail Forms, I'm wondering if it would be more secure to create an Upload Form, rather than emailing the information, via a Mail Form. I look forward to replies/opinions. Thanks.
  6. Regarding Amazon Simple Pay - Standard w/IPN I'm trying to find out how/where I can find the script that writes to the log.txt file. Any help would be appreciated. Thanks
  7. I'm not very skilled at lining up text next to an image. This didn't work: <font size="6" color="#800000" face="Arial">Text<img src="images/img1.jpg" border="0" /></font><br/> Can you tell me how to put an image in the same line (roughly) as the text? Thanks
  8. I have this html page that displays purchase button choices which directs a user to Paypal, in the Form, on this page: <!--Begin Wide Column--> <div id="column-wide"> <div id="generic-container" style="height:400px;"> <div style="margin-left:12px; float:left;"> <img src="themes/[var.user_theme]/images/icons/members_32.png" alt="members" width="32" height="32" align="absmiddle" /> <strong> <!--[var.members_total;comm]--></strong> </div> <br /> <div id="members-search"> <br><br> <div class="container10"> <br> <p><font face="verdana"><font size="3";font color=#800000;"><u>Purchase</u></font> <table> <tr> <td width="100px"><font size="3" color="#000000" face="Arial"><u>Amount</u></font></td> <td width="100px"><u><font size="3" color="#000000" face="Arial">Cost</font></u></td> </tr> <tr> <td>[blk1.name;block=tr]</td> <td> <form action="paypal_file.php" method="post"> <input type="hidden" value="[var.user_id]" name="uid"> <input type="hidden" value="[blk1.cred_amt]" name="cre"> <input type="hidden" value="Account Credits" name="itnm"> <input type="hidden" value="[blk1.value]" name="valu"> <input style="border:1px black solid;width:100px"; type="submit" value="[blk1.value]" name="valu"></font> </form> </td> </tr> </table> </div> <br><br> </div> </div> <br> <!--End Wide Column--> When I try to add another Form, that has an Amazon purchase button, below the existing Form, it appears to overlap when I view the page. Here's what the code looks like when I add the Amazon Form (button): <!--Begin Wide Column--> <div id="column-wide"> <div id="generic-container" style="height:400px;"> <div style="margin-left:12px; float:left;"> <img src="themes/[var.user_theme]/images/icons/members_32.png" alt="members" width="32" height="32" align="absmiddle" /> <strong> <!--[var.members_total;comm]--></strong> </div> <br /> <div id="members-search"> <br><br> <div class="container10"> <br> <p><font face="verdana"><font size="3";font color=#800000;"><u>Purchase</u></font> <table> <tr> <td width="100px"><font size="3" color="#000000" face="Arial"><u>Amount</u></font></td> <td width="100px"><u><font size="3" color="#000000" face="Arial">Cost</font></u></td> </tr> <tr> <td>[blk1.name;block=tr]</td> <td> <form action="paypal_file.php" method="post"> <input type="hidden" value="[var.user_id]" name="uid"> <input type="hidden" value="[blk1.cred_amt]" name="cre"> <input type="hidden" value="Account Credits" name="itnm"> <input type="hidden" value="[blk1.value]" name="valu"> <input style="border:1px black solid;width:100px"; type="submit" value="[blk1.value]" name="valu"></font> </form> </td> </tr> </table> </div> <br><br> </div> <div> <table> <tr> <td width="100px"><font size="3" color="#000000" face="Arial"><u>Amount</u></font></td> <td width="100px"><u><font size="3" color="#000000" face="Arial">Cost</font></u></td> </tr> <tr> <td>[blk1.name;block=tr]</td> <td> <form action="https://authorize.payments.amazon.com" method="post"> <input type="hidden" name="immediateReturn" value="1" > <input type="hidden" name="collectShippingAddress" value="0" > <input type="hidden" name="accessKey" value="11XCCBB8TTTH88XYY" > <input type="hidden" name="amount" value="USD 1.00" > <input type="hidden" name="signature" value="HtCCCvY0ohiugfBBB=" > <input type="hidden" name="isDonationWidget" value="0" > <input type="hidden" name="description" value="Purchase" > <input type="hidden" name="amazonPaymentsAccountId" value="YTUYTu7uytuyv88634904FFg5" > <input type="hidden" name="ipnUrl" value="http://www.website.com/ipnbo.php" > <input type="hidden" name="returnUrl" value="http://www.website.com/amazon_succeed.php" > <input type="hidden" name="processImmediate" value="1" > <input type="hidden" name="cobrandingStyle" value="logo" > <input type="hidden" name="abandonUrl" value="http://www.website.com/amazon_fail.php" > <input type="image" src="http://g-ecx.images-amazon.com/images/G/01/asp/beige_paynow_withmsg_whitebg.gif" border="0"> </form> </td> </tr> </table> </div> </div> <br> <!--End Wide Column--> Can you help me correct whatever in this code is making the Amazon button appear on top of (or overlapping) the other buttons?
  9. I'm setting up Amazon Simple Pay (like paypal) on a php web site. The Read Me states things like Edit config.php and enter URl, etc, It also states: "Enter the filename for request logging (this file will need write permissions on your server)". Can somone explain "request logging" to me? Any info will be appreciated. Thanks
  10. Thanks for your reply. I can change the <div> to <p> and the </div> to </p>, but I don't know, by your reply, if I change anything in the css? If so, how/what, please? Can you be more specific regarding "play with the top and bottom padding of the p tag (since you will change it) and/or the line-height of the p tag"? I'd appreciate it. Thanks again
  11. I'm using the html and css below. The text seems to appear towards the bottom of the box (cell?). How can I add just a little space below the text, so it appears more in the center with even space all around it? Thanks <ul class="table" id="a"> <li><div>Type</div></li> </ul> <ul class="table" id="b"> <li><div>Number</div></li> </ul> <br> <ul class="table" id="c"> <li><div>TEST</div></li> </ul> <ul class="table" id="d"> <li><div>HELLO</div></li> </ul> ul.table { CSS: ul.table { width:110px; margin: 0px 0 0 1px; float:left; clear:left list-style-type: none; padding:1; } ul.table li { height:1em; margin:0; padding:100; float:left; clear:left } ul.table li div{ width: 100px; height: 200px; text-align:center; color:black; font-color: #000000; font-size: 12px; padding:.2em .0em .2em .2em; } ul.table li div:first-child { color:black; float:center; clear:none; } #a { border: 1px solid #000000; ; } #b { border: 1px solid #000000; margin: 0px 8px 0px 0px; } #c { border: 1px solid #000000; } #d { border: 1px solid #000000; margin: 0px 8px 0px 0px; }
  12. Thank you for your help. I appreciate it. I have another question, and have started another posting. Thanks again.
  13. Thanks for your help, but when I added clear:left to the ul.table (shown below). It did nothing. Then I removed the <br><br> and it moved table "c" and "d" out from underneath table "a" and "b" and now they are directly to the right of table "a" and table "b". In other words that didn't work, unless I did it wrong. Any other help would be appreciated. Thanks. ul.table { width:110px; margin: 0px 0 0 10px; float:left; clear:left list-style-type: none; padding:0; }
  14. I have this html code and css(below). I'd like table "c" and table "d" to be directly under table "a" and table"b", which they are currently, but I'm using <br><br> to accomplish that. Which I'm sure is not the best way to do it. And by using <br><br> the gap between the top two tables and the bottom two tables is too large. What should I use instead of <br><br>? Any help would be appreciated. Thanks <ul class="table" id="a"> <li><div>Type</div></li> </ul> <ul class="table" id="b"> <li><div>Number</div></li> </ul> <br><br> <ul class="table" id="c"> <li><div>Test</div></li> </ul> <ul class="table" id="d"> <li><div>Hello</div></li> </ul> CSS: ul.table { width:110px; margin: 0px 0 0 10px; float:left; list-style-type: none; padding:0; } ul.table li { height:1em; margin:0; padding:0; } ul.table li div{ width: 100px; height: 200px; float: left; clear:right; text-align:center; color:black; font-color: #000000; font-size: 12px; padding:.2em .2em .2em .2em; } ul.table li div:first-child { color:black; float: center; clear:none; } #a { border: 1px solid #000000; } #b { border: 1px solid #000000; } #c { border: 1px solid #990099; } #d { border: 1px solid #666666; }
  15. I want to create an email Form on my web site. How can I make the Form secure so the submitted info going to the database gets there securely?
  16. As a poor coder, I would add your code like this, and I know it won't work. Any other help would be appreciated: <!--Begin Wide Column--> <div id="column-wide"> <div id="generic-container" style="height:500px;"> <div style="margin-left:12px; float:left;"> <img src="themes/[var.user_theme]/images/icons/members_32.png" alt="members" width="32" height="32" align="absmiddle" /> <strong>Pay Fee: <!--[var.members_total;comm]--></strong> </div> <div style="margin-right:12px; float:right;"> </div> <br /> <br /> <div id="members-search"> <br> <table style="margin: 10px auto;border:1px solid lightgrey; background:lightyellow"> <tr> <td width="150px"><br><u>Details</u></td> <td width="150px"><br><br><u>Pay Fee</u><br><br></td> <br> </tr> <tr> <td><br>Pay Fee<br><br></td> <td> <form action="payment/paypal_start.php" method="post"> <input type="hidden" value="[var.user_id]" name="uid"> <input type="hidden" value="1" name="cre"> <input type="hidden" value="Pay Fee" name="itnm"><!-- Must match paypal_ipn.php name --> <input type="submit" value="0.01" name="valu"> <!-- Set dollar amount of fee here. --> <div style="margin-left:30px; float:left;"><a href="page.php?page=3" target="_blank"><span style="color: #800000;"><u>Read These Terms</u> </span></a> <b><span style="color: #000000;">Click Here</span><input type="radio" value="yes" name="terms" [var.checked] /><span style="color: #000000;">To Agree To The Terms</span> </div> </form> if ($_POST['checkbox_name']) prior to processing </td> </tr> <!-- ================================================================= --> </table> </div> <br><br> </div> </div> <!--End Wide Column-->
  17. I have a web page where the visitor pays a fee before proceeding. I'd like to add a requirement that the visitor "check" that he has Read The Terms, before he can proceed to pay. I have this html code of the pay page here: (There is also a php page that works with this html page). <!--Begin Wide Column--> <div id="column-wide"> <div id="generic-container" style="height:500px;"> <div style="margin-left:12px; float:left;"> <img src="themes/[var.user_theme]/images/icons/members_32.png" alt="members" width="32" height="32" align="absmiddle" /> <strong>Pay Fee: <!--[var.members_total;comm]--></strong> </div> <div style="margin-right:12px; float:right;"> </div> <br /> <br /> <div id="members-search"> <br> <table style="margin: 10px auto;border:1px solid lightgrey; background:lightyellow"> <tr> <td width="150px"><br><u>Details</u></td> <td width="150px"><br><br><u>Pay Fee</u><br><br></td> <br> </tr> <tr> <td><br>Pay Fee<br><br></td> <td> <form action="payment/paypal_start.php" method="post"> <input type="hidden" value="[var.user_id]" name="uid"> <input type="hidden" value="1" name="cre"> <input type="hidden" value="Pay Fee" name="itnm"><!-- Must match paypal_ipn.php name --> <input type="submit" value="0.01" name="valu"> <!-- Set dollar amount of fee here. --> </form> </td> </tr> <!-- ================================================================= --> </table> <br><br> </div> </div> <!--End Wide Column--> And I grabbed this line of code from the Registration Page and added into the pay page, but of course it didn't work, by me just adding it: <div style="margin-left:30px; float:left;"><a href="page.php?page=3" target="_blank"><span style="color: #800000;"><u>Read These Terms</u> </span></a> <b><span style="color: #000000;">Click Here</span><input type="radio" value="yes" name="terms" [var.checked] /><span style="color: #000000;">To Agree To The Terms</span> </div> Can you help me integrate a "required to read" instruction before proceeding, into the pay page? Thanks
  18. I'm using a php web script, and the font and text look fine, but when I log in the text font is bigger than before I log-in. Can you help me with that?
  19. I'm using a php video-sharing site script. Currently when you select a thumbnail, to view a video, a page pops-up in a pop-up box showing a message. Someone added code, to change it so that just a pop-up message box appears (rather than the page-pop-up), called Custom Message Block, but the page still appears, instead of the Custom Message Block. Can you help me figure out how I can make this so the Custom Message Block appears, rather than the (inner_purchase) page? Thanks. Any help or suggestions will be appreciated. <!--Begin Left Column--> <div id="column-left-2"> <br /> <!--Begin Whats Showing Menu--> <div class="header-narrow"><h3>[var.get_type]</h3></div> <div class="whats-showing"> </div> <div class="container-narrow-bottom"></div><!--End Whats Showing Menu--> <br /> </div><!--End Left Column--> <!--Begin Right Column--> <div id="column-right-2"> <!--Begin Video Search List--> <div style="height: 2px;"> </div> <span style="margin-bottom: 12px;" class="font5_15"> "[var.keyword]" [var.get_type_word] [var.lang_search] [var.results_show] - [var.results_of] of [var.total_records] [var.lang_results] <br /> <form id="buyVideo" name="buyVideo" method="post" action="buy-video.php"> <!--input type="submit" name="purchase" value="Continue" style="margin:7px 0" rel="gb_page_center[600, 435] "--> <input type="submit" name="purchase" value="Use Credits Now" style="margin:7px 0" rel="gb_page_center[600, 435] "> <input type="button" name="search" value="Search Again" onclick="window.location.href='page.php?page=9';" style="margin:7px 0"> <input type="button" name="search" value="Purchase Credits" onclick="window.location.href='credits.php';" style="margin:7px 0"> <input type="hidden" name="keyword" value="[var.keywords2]"> <input type="hidden" name="submitted" value="yes"> <input type="hidden" name="ttl" value="[var.total_price]"> <input type="hidden" name="user_id" value="[var.user_id]"> <input type="hidden" name="credits" value="[var.member_credits]"> <input type="hidden" name="id[]" value="[blkfeatured2.indexer;block=input]"></input> </span> <br><!-- Check All Box by DizzyD --> <input type="checkbox" name="checkall" onclick='checkedAll()'> Select All<br> <!-- end checkbox mod --> <!-- ******************************** START OF CUSTOM MESSAGE BLOCK ******************************* -JG --> <script> function doCreditCheck() { // The custom message block only appears when the PAY/SEARCH buttons are present. // The presence of those buttons indicates that you need to pay before viewing the video. document.getElementById('popupBuyMsg').style.display = 'block'; // We return false so that the href associated with this object is ignored. return false; } </script> <style> .buymsg { display:none; position:absolute; top:300px; left:300px; width:350px; background-color:#eeeeff; border-style:solid; border-width:1px; padding:15px 20px 5px 20px; } .buymsgclose { text-decoration:none; font-size:0.9em; font-variant:small-caps; margin-top:10px; } </style> <!-- Hidden message block to replace inner_purchase.htm when only a GreyBox message is being displayed. --> <div id="popupBuyMsg" class="buymsg"> You must use "credits" to view this video.<br> You have <strong>[var.member_credits]</strong> credits in your account.<br> <br /> To view this video select "Use Credits Now".<br> To purchase credits select "Purchase Credits".<br> Or Search Again. <div style="width:100%; text-align:right;"> <a class="buymsgclose" href="#" onclick="document.getElementById('popupBuyMsg').style.display = 'none'; return false;">Close Window</a> </div> </div> <!-- ********************************** END OF CUSTOM MESSAGE BLOCK ********************************** --> <div id="content-list"> <ul class="content-list-thumb" style="margin-top: 13px;"> <span style="margin-left: 1px;"><input type="checkbox" name="checkedBoxs[]" value="[blkfeatured.indexer;block=div]"></span><br /> <br /> <!-- Add an onclick feature that first checks to see if you need to use purchase credits. -JG --> <li><a href="videos/[blkfeatured.indexer;block=div]/[blkfeatured.title_seo;block=div]" rel="gb_page_center[600, 435]"><img src="uploads/thumbs/[blkfeatured.thumb_string;block=div].jpg" alt="video pic" width="120" height="90" border="0" /></a></li> <!--li><a onclick="return doCreditCheck();" href="videos/[blkfeatured.indexer;block=div]/[blkfeatured.title_seo;block=div]"><img src="uploads/thumbs/[blkfeatured.thumb_string;block=div].jpg" alt="video pic" width="120" height="90" border="0" /></a></li--> </ul> <ul class="content-list-info"> <li><h4><span style="color: #800000;">[var.lang_title]:</span> <a href="videos/[blkfeatured.indexer;block=div]/[blkfeatured.title_seo;block=div]" rel="gb_page_center[600, 435] "><!--[blkfeatured.title;htmlconv=no;block=div;ope=max:70;comm]--></a></h4></li> <!--<li><b>[var.lang_description]: </b><!--[blkfeatured.description;htmlconv=no;block=div;ope=max:68;comm]--></li>--> </li> <li><!--<span class="font4_12">[var.lang_tags]: </span>--></li> <li><!--<b>[var.lang_comments] - [var.lang_responses]: </b>--><!--(<!--[blkfeatured.comments;block=div;ope=max:80;comm]-->)--></li> </ul> [onload;block=div;when [var.type_videos]=1;] </div> <!--End Video Search--> <!-- Pagination start --> <div align="center"> <div id="pagination"> <li> </li> <ul>[var.show_pages;htmlconv=no]</ul> </div> </div> <!-- Pagination end --> </div><!--End Right Column--> </form>
  20. Thanks for your advice. How can I edit my posting?
  21. I'm using a php video-sharing site script where you would make a purchase to view a video. The code below is from the html search results page, where a list of thumbnails appears when you search certain keywords. Currently when you select the thumbnail, to view the video, prior to paying, a page pops-up in a pop-up box(inner_purchase.htm page) showing a message. I asked someone (JG) to help me change it to just a pop-up message box to appear, rather than a page popping-up, and he added code below called Custom Message Block, but the inner_purchase page still appears, instead of the Custom Message Block. Can you help me figure out how I can make this so the Custom Message Block appears, rather than the inner_purchase page? Thanks. Any help or suggestions will be appreciated <!--Begin Left Column--> <div id="column-left-2"> <br /> <!--Begin Whats Showing Menu--> <div class="header-narrow"><h3>[var.get_type]</h3></div> <div class="whats-showing"> <ul> <li><!--<a href="[var.url_link]/load/featured">[var.lang_featured]</a>--></li> <li><!--<a href="[var.url_link]/load/viewed">[var.lang_most_viewed]</a>--></li> <li><!--<a href="[var.url_link]/load/recent">[var.lang_most_recent]</a>--></li> <li><!--<a href="[var.url_link]/load/comments">[var.lang_most_comments]</a>--></li> </ul> </div> <div class="container-narrow-bottom"></div><!--End Whats Showing Menu--> <br /> <!--Begin Popular Tag Cloud populate from search type ??--> <!--<div class="header-narrow"><h3>[var.lang_Tags_most_popular]</h3></div>--> <!--<div class="whats-showing"><!--[var.tag_cloud_block;htmlconv=no;comm]--></div>--> <!--<div class="container-narrow-bottom"></div>--><!--End Popular Tag Cloud--> <!--Begin Left Advert--> <!--<div class="container-narrow-top"></div>--> <!--<div id="advert-left"><!--[var.ads_left;htmlconv=no;comm]--></div>--> <!--<div class="container-narrow-bottom"></div>--><!--End Left Advert--> <!--<div style="height:120px;"> </div>--> </div><!--End Left Column--> <!--Begin Right Column--> <div id="column-right-2"> <!--Begin Video Search List--> <div style="height: 2px;"> </div> <span style="margin-bottom: 12px;" class="font5_15"> "[var.keyword]" [var.get_type_word] [var.lang_search] [var.results_show] - [var.results_of] of [var.total_records] [var.lang_results] <br /> <!-- Replace ambiguous text with clear button links below. -JG --> <!-- Please Select the Continue Button to Purchase Now - Or Search Again.<br />--> <form id="buyVideo" name="buyVideo" method="post" action="buy-video.php"> <!-- CONTINUE button replaced. -JG --> <!--input type="submit" name="purchase" value="Continue" style="margin:7px 0" rel="gb_page_center[600, 435] "--> <input type="submit" name="purchase" value="Use Credits Now" style="margin:7px 0" rel="gb_page_center[600, 435] "> <input type="button" name="search" value="Search Again" onclick="window.location.href='page.php?page=9';" style="margin:7px 0"> <input type="button" name="search" value="Purchase Credits" onclick="window.location.href='credits.php';" style="margin:7px 0"> <input type="hidden" name="keyword" value="[var.keywords2]"> <input type="hidden" name="submitted" value="yes"> <input type="hidden" name="ttl" value="[var.total_price]"> <input type="hidden" name="user_id" value="[var.user_id]"> <input type="hidden" name="credits" value="[var.member_credits]"> <input type="hidden" name="id[]" value="[blkfeatured2.indexer;block=input]"></input> </span> <br><!-- Check All Box --> <input type="checkbox" name="checkall" onclick='checkedAll()'> Select All<br> <!-- end checkbox mod --> <!-- ******************************** START OF CUSTOM MESSAGE BLOCK ******************************* -JG --> <script> function doCreditCheck() { // The custom message block only appears when the PAY/SEARCH buttons are present. // The presence of those buttons indicates that you need to pay before viewing the video. document.getElementById('popupBuyMsg').style.display = 'block'; // We return false so that the href associated with this object is ignored. return false; } </script> <style> .buymsg { display:none; position:absolute; top:300px; left:300px; width:350px; background-color:#eeeeff; border-style:solid; border-width:1px; padding:15px 20px 5px 20px; } .buymsgclose { text-decoration:none; font-size:0.9em; font-variant:small-caps; margin-top:10px; } </style> <!-- Hidden message block to replace inner_purchase.htm when only a GreyBox message is being displayed. --> <div id="popupBuyMsg" class="buymsg"> You must use "credits" to view this video.<br> You have <strong>[var.member_credits]</strong> credits in your account.<br> <br /> To view this video select "Use Credits".<br> To purchase credits select "Purchase Credits".<br> Or Search Again. <div style="width:100%; text-align:right;"> <a class="buymsgclose" href="#" onclick="document.getElementById('popupBuyMsg').style.display = 'none'; return false;">Close Window</a> </div> </div> <!-- ********************************** END OF CUSTOM MESSAGE BLOCK ********************************** --> <div id="content-list"> <ul class="content-list-thumb" style="margin-top: 13px;"> <span style="margin-left: 1px;"><input type="checkbox" name="checkedBoxs[]" value="[blkfeatured.indexer;block=div]"></span><br /> <br /> <!-- Add an onclick feature that first checks to see if you need to use purchase credits. -JG --> <li><a href="videos/[blkfeatured.indexer;block=div]/[blkfeatured.title_seo;block=div]" rel="gb_page_center[600, 435]"><img src="uploads/thumbs/[blkfeatured.thumb_string;block=div].jpg" alt="video pic" width="120" height="90" border="0" /></a></li> <!--li><a onclick="return doCreditCheck();" href="videos/[blkfeatured.indexer;block=div]/[blkfeatured.title_seo;block=div]"><img src="uploads/thumbs/[blkfeatured.thumb_string;block=div].jpg" alt="video pic" width="120" height="90" border="0" /></a></li--> </ul> <ul class="content-list-info"> <li><h4><span style="color: #000000;">[var.lang_title]:</span> <a href="videos/[blkfeatured.indexer;block=div]/[blkfeatured.title_seo;block=div]" rel="gb_page_center[600, 435] "><!--[blkfeatured.title;htmlconv=no;block=div;ope=max:70;comm]--></a></h4></li> <!--<li><b>[var.lang_description]: </b><!--[blkfeatured.description;htmlconv=no;block=div;ope=max:68;comm]--></li>--> <li><!--<span class="font4_12">[var.lang_rating]test </span>--> <!--<img border="0" src="themes/[var.user_theme]/images/[blkfeatured.star1;block=div]" width="18" height="18" alt="1 Star" />--> <!--<img border="0" src="themes/[var.user_theme]/images/[blkfeatured.star2;block=div]" width="18" height="18" alt="1 Star" />--> <!--<img border="0" src="themes/[var.user_theme]/images/[blkfeatured.star3;block=div]" width="18" height="18" alt="1 Star" />--> <!--<img border="0" src="themes/[var.user_theme]/images/[blkfeatured.star4;block=div]" width="18" height="18" alt="1 Star" />--> <!--<img border="0" src="themes/[var.user_theme]/images/[blkfeatured.star5;block=div]" width="18" height="18" alt="1 Star" />--> <!--<span class="font4_12">[var.lang_views]: </span>--><!--(<!--[blkfeatured.number_of_views;block=div;comm]-->)--> <!--<span class="font4_12">[var.lang_duration]: </span>--><!--(<!--[blkfeatured.video_length;block=div;ope=max:45;comm]-->)--> <!--<span class="font4_12">[var.lang_uploaded]: </span>--> </li> <li><!--<span class="font4_12">[var.lang_tags]: </span>--></li> <li><!--<b>[var.lang_comments] - [var.lang_responses]: </b>--><!--(<!--[blkfeatured.comments;block=div;ope=max:80;comm]-->)--></li> </ul> [onload;block=div;when [var.type_videos]=1;] </div> <!--End Video Search--> <!-- Pagination start --> <div align="center"> <div id="pagination"> <li> </li> <ul>[var.show_pages;htmlconv=no]</ul> </div> </div> <!-- Pagination end --> </div><!--End Right Column--> </form>
  22. I'm using a php video-sharing site script where you would make a purchase to view a video. The code below is from the html search results page, where a list of thumbnails appears when you search certain keywords. Currently when you select the thumbnail, to view the video, prior to paying, a page pops-up in a pop-up box(inner_purchase.htm page) showing a message. I asked someone (JG) to help me change it to just a pop-up message box to appear, rather than a page popping-up, and he added code below called Custom Message Block, but the inner_purchase page still appears, instead of the Custom Message Block. Can you help me figure out how I can make this so the Custom Message Block appears, rather than the inner_purchase page? Thanks. Any help or suggestions will be appreciated. <!--Begin Left Column--> <div id="column-left-2"> <br /> <!--Begin Whats Showing Menu--> <div class="header-narrow"><h3>[var.get_type]</h3></div> <div class="whats-showing"> <ul> <li><!--<a href="[var.url_link]/load/featured">[var.lang_featured]</a>--></li> <li><!--<a href="[var.url_link]/load/viewed">[var.lang_most_viewed]</a>--></li> <li><!--<a href="[var.url_link]/load/recent">[var.lang_most_recent]</a>--></li> <li><!--<a href="[var.url_link]/load/comments">[var.lang_most_comments]</a>--></li> </ul> </div> <div class="container-narrow-bottom"></div><!--End Whats Showing Menu--> <br /> <!--Begin Popular Tag Cloud populate from search type ??--> <!--<div class="header-narrow"><h3>[var.lang_Tags_most_popular]</h3></div>--> <!--<div class="whats-showing"><!--[var.tag_cloud_block;htmlconv=no;comm]--></div>--> <!--<div class="container-narrow-bottom"></div>--><!--End Popular Tag Cloud--> <!--Begin Left Advert--> <!--<div class="container-narrow-top"></div>--> <!--<div id="advert-left"><!--[var.ads_left;htmlconv=no;comm]--></div>--> <!--<div class="container-narrow-bottom"></div>--><!--End Left Advert--> <!--<div style="height:120px;"> </div>--> </div><!--End Left Column--> <!--Begin Right Column--> <div id="column-right-2"> <!--Begin Video Search List--> <div style="height: 2px;"> </div> <span style="margin-bottom: 12px;" class="font5_15"> "[var.keyword]" [var.get_type_word] [var.lang_search] [var.results_show] - [var.results_of] of [var.total_records] [var.lang_results] <br /> <!-- Replace ambiguous text with clear button links below. -JG --> <!-- Please Select the Continue Button to Purchase Now - Or Search Again.<br />--> <form id="buyVideo" name="buyVideo" method="post" action="buy-video.php"> <!-- CONTINUE button replaced. -JG --> <!--input type="submit" name="purchase" value="Continue" style="margin:7px 0" rel="gb_page_center[600, 435] "--> <input type="submit" name="purchase" value="Use Credits Now" style="margin:7px 0" rel="gb_page_center[600, 435] "> <input type="button" name="search" value="Search Again" onclick="window.location.href='page.php?page=9';" style="margin:7px 0"> <input type="button" name="search" value="Purchase Credits" onclick="window.location.href='credits.php';" style="margin:7px 0"> <input type="hidden" name="keyword" value="[var.keywords2]"> <input type="hidden" name="submitted" value="yes"> <input type="hidden" name="ttl" value="[var.total_price]"> <input type="hidden" name="user_id" value="[var.user_id]"> <input type="hidden" name="credits" value="[var.member_credits]"> <input type="hidden" name="id[]" value="[blkfeatured2.indexer;block=input]"></input> </span> <br><!-- Check All Box --> <input type="checkbox" name="checkall" onclick='checkedAll()'> Select All<br> <!-- end checkbox mod --> <!-- ******************************** START OF CUSTOM MESSAGE BLOCK ******************************* -JG --> <script> function doCreditCheck() { // The custom message block only appears when the PAY/SEARCH buttons are present. // The presence of those buttons indicates that you need to pay before viewing the video. document.getElementById('popupBuyMsg').style.display = 'block'; // We return false so that the href associated with this object is ignored. return false; } </script> <style> .buymsg { display:none; position:absolute; top:300px; left:300px; width:350px; background-color:#eeeeff; border-style:solid; border-width:1px; padding:15px 20px 5px 20px; } .buymsgclose { text-decoration:none; font-size:0.9em; font-variant:small-caps; margin-top:10px; } </style> <!-- Hidden message block to replace inner_purchase.htm when only a GreyBox message is being displayed. --> <div id="popupBuyMsg" class="buymsg"> You must use "credits" to view this video.<br> You have <strong>[var.member_credits]</strong> credits in your account.<br> <br /> To view this video select "Use Credits".<br> To purchase credits select "Purchase Credits".<br> Or Search Again. <div style="width:100%; text-align:right;"> <a class="buymsgclose" href="#" onclick="document.getElementById('popupBuyMsg').style.display = 'none'; return false;">Close Window</a> </div> </div> <!-- ********************************** END OF CUSTOM MESSAGE BLOCK ********************************** --> <div id="content-list"> <ul class="content-list-thumb" style="margin-top: 13px;"> <span style="margin-left: 1px;"><input type="checkbox" name="checkedBoxs[]" value="[blkfeatured.indexer;block=div]"></span><br /> <br /> <!-- Add an onclick feature that first checks to see if you need to use purchase credits. -JG --> <li><a href="videos/[blkfeatured.indexer;block=div]/[blkfeatured.title_seo;block=div]" rel="gb_page_center[600, 435]"><img src="uploads/thumbs/[blkfeatured.thumb_string;block=div].jpg" alt="video pic" width="120" height="90" border="0" /></a></li> <!--li><a onclick="return doCreditCheck();" href="videos/[blkfeatured.indexer;block=div]/[blkfeatured.title_seo;block=div]"><img src="uploads/thumbs/[blkfeatured.thumb_string;block=div].jpg" alt="video pic" width="120" height="90" border="0" /></a></li--> </ul> <ul class="content-list-info"> <li><h4><span style="color: #000000;">[var.lang_title]:</span> <a href="videos/[blkfeatured.indexer;block=div]/[blkfeatured.title_seo;block=div]" rel="gb_page_center[600, 435] "><!--[blkfeatured.title;htmlconv=no;block=div;ope=max:70;comm]--></a></h4></li> <!--<li><b>[var.lang_description]: </b><!--[blkfeatured.description;htmlconv=no;block=div;ope=max:68;comm]--></li>--> <li><!--<span class="font4_12">[var.lang_rating]test </span>--> <!--<img border="0" src="themes/[var.user_theme]/images/[blkfeatured.star1;block=div]" width="18" height="18" alt="1 Star" />--> <!--<img border="0" src="themes/[var.user_theme]/images/[blkfeatured.star2;block=div]" width="18" height="18" alt="1 Star" />--> <!--<img border="0" src="themes/[var.user_theme]/images/[blkfeatured.star3;block=div]" width="18" height="18" alt="1 Star" />--> <!--<img border="0" src="themes/[var.user_theme]/images/[blkfeatured.star4;block=div]" width="18" height="18" alt="1 Star" />--> <!--<img border="0" src="themes/[var.user_theme]/images/[blkfeatured.star5;block=div]" width="18" height="18" alt="1 Star" />--> <!--<span class="font4_12">[var.lang_views]: </span>--><!--(<!--[blkfeatured.number_of_views;block=div;comm]-->)--> <!--<span class="font4_12">[var.lang_duration]: </span>--><!--(<!--[blkfeatured.video_length;block=div;ope=max:45;comm]-->)--> <!--<span class="font4_12">[var.lang_uploaded]: </span>--> </li> <li><!--<span class="font4_12">[var.lang_tags]: </span>--></li> <li><!--<b>[var.lang_comments] - [var.lang_responses]: </b>--><!--(<!--[blkfeatured.comments;block=div;ope=max:80;comm]-->)--></li> </ul> [onload;block=div;when [var.type_videos]=1;] </div> <!--End Video Search--> <!-- Pagination start --> <div align="center"> <div id="pagination"> <li> </li> <ul>[var.show_pages;htmlconv=no]</ul> </div> </div> <!-- Pagination end --> </div><!--End Right Column--> </form>
  23. Can you give me an example, please, of what you mean? thanks
  24. I'm using a php script that has the ability to search by keyword. When I wanted the keyword to appear on a page called inner_results.htm I was told: "you'd have to look at search.php. and see if there is a line like: $_SESSION['keyword'] = $keywords; if there is something kinda like that then you're good. You would just add the sessions.php include to the results.php page, (include_once ('classes/sessions.php') then add something like: $keywords = $_SESSION['keyword']; then in the inner_results page, wherever you want the keywords to display, add something like: You searched: [var.keywords]" So, I followed this advice and on search.php I found this: $_SESSION['searched'] = $_GET['keyword']; And I see that on results.php it already has this: include_once ('classes/sessions.php'); And on the results.php page I added this: $keywords = $_SESSION['keyword']; And on the inner_results.htm page I added this: You searched: [var.keywords] But the inner_results.htm page only shows this: You searched: Can someone suggest what I should try to make this work? Thanks
×
×
  • 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.