sweetfreedom Posted August 6, 2005 Share Posted August 6, 2005 I am trying to put a tagboard in an info box and I cannot seem to get it right... I need to insert this code: include("http://giftsofenchantment.com/giftstore/tagboard/htmlcode.dat"); I have it in column_right.php now but there is no box around it. When I try to incorporate it in a new box script using information.php I either get errors or the tagboard is outside the box. Can someone please tell me how to script this so the tagboard is inside the box? You can see it here: Gifts Of Enchantment Thank You P.S. I have searched the forums for an answer for the last few hours and I cannot find one. Link to comment Share on other sites More sharing options...
sweetfreedom Posted August 7, 2005 Author Share Posted August 7, 2005 Here is the code I have now for the tagboard.php file: <?php ?> <!-- information //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => 'Suggestion and Comment Box' ); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => '<? include("http://giftsofenchantment.com/testcart/tagboard/htmlcode.dat"); ?>' ); new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //--> It is this part I am having a problem with: 'text' => '<? include("http://giftsofenchantment.com/testcart/tagboard/htmlcode.dat"); ?>' ); I figured out how to get the script inside the box with the ' ' but the tagboard will not show up now. I sure would be grateful for any help... :) Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted August 7, 2005 Share Posted August 7, 2005 I have no clue about a dat content, but the syntax is incorrect right now ... you have a php tag in a php tag. Maybe trying to do this instead will help... 'text' => include("http://giftsofenchantment.com/testcart/tagboard/htmlcode.dat") ); :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ... Link to comment Share on other sites More sharing options...
sweetfreedom Posted August 7, 2005 Author Share Posted August 7, 2005 Thank you so much for your help Monika! This is what happens when I do that... Testcart The info box heading is in the right place, but the info box is below the tagboard and what is the "1"??? This is what I have in the column_right.php file: require(DIR_WS_BOXES . 'tagboard.php'); I have tried so many different ways... I am going NUTZ!!! :'( Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted August 8, 2005 Share Posted August 8, 2005 Thank you so much for your help Monika! This is what happens when I do that... Testcart The info box heading is in the right place, but the info box is below the tagboard and what is the "1"??? This is what I have in the column_right.php file: require(DIR_WS_BOXES . 'tagboard.php'); I have tried so many different ways... I am going NUTZ!!! :'( <{POST_SNAPBACK}> I need to see your whole box file and the file you are including ... maybe I can come up with something then :-) :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ... Link to comment Share on other sites More sharing options...
sweetfreedom Posted August 8, 2005 Author Share Posted August 8, 2005 <?php ?> <!-- information //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => 'Suggestion and Comment Box' ); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => include("http://giftsofenchantment.com/testcart/tagboard/htmlcode.dat") ); new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //--> Thank you so much!!! :) The include("http://giftsofenchantment.com/testcart/tagboard/htmlcode.dat") is the file I am including... Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted August 8, 2005 Share Posted August 8, 2005 this may be a crazy approach but I'd like to see if it works ... so make a backup of the included file and your box file, and then follow me: take out all javascript from the included file, and paste it into the box file, right at the top before the php begins copy the rest of the code into a new file to edit remove all comments remove all empty lines remove all new line breaks making it one loooong line add a beginning and closing single quote to it, like this: 'longongline' remember, it has no more spaces, new lines etc copy this newly created long line to where you have the include statement right now deep breath, upload and hope for the best ... :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ... Link to comment Share on other sites More sharing options...
sweetfreedom Posted August 8, 2005 Author Share Posted August 8, 2005 Monika, Thank you so much for helping me... I am really confused about what you want me to do... I have tried different ways trying to follow your instructions and then trying some ideas of my own also and either I get errors or I get the tagboard with the box below or sometimes even down in the left hand corner or the tagboard with no box at all or a box without anything in it !!! I think I need to know what the correct way is to call up a url in php for the html.dat file. This part here: 'text' => tep_display_banner('static', $banner) (This is from the Linda McGrath's add column banner script) The tep_display_banner is what I need to change I believe to whatever it is to call up a url file instead of a banner or image file and then paste the include file or part of it there. I should add also that the instructions for inserting the tagboard into a php script includes <? and ?> : <? include("tagboard/htmlcode.dat"); ?> Also I can paste the entire html.dat file into a html page and the tagboard will work. I had it working with a box around it using the above add column banner script and inserting the html.dat file into the banner manager. It worked fine until I tried to edit the html code, now I cannot get it to work that way so I am trying to do it the "right" way by inserting the php code into a box file. I hope this made sense... :'( Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted August 8, 2005 Share Posted August 8, 2005 post the included file here and I'll combine them in what I would like you to try, ok? :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ... Link to comment Share on other sites More sharing options...
sweetfreedom Posted August 8, 2005 Author Share Posted August 8, 2005 O.K. These are the files I am working with: htmlcode.dat file: (I have this file uploaded in my public html/testcart/tagboard directory.) <!-- Dont edit this javascript bit... --> <script language = "JavaScript"> <!-- Begin function textCounter(field, countfield, maxlimit) { if(field.value.length > maxlimit){ field.value = field.value.substring(0, maxlimit); } else{ countfield.value = maxlimit - field.value.length; } } function cleartagboard() { document.tagboard.cjmsg.value=""; } function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=no,location=0,statusbar=0,menubar=0,resizable=0,width=3 00,height=250,left = 262,top = 184');"); } var isNav, isIE if (parseInt(navigator.appVersion) >= 4) { if (navigator.appName == "Netscape") isNav = true else isIE = true } function showKeyValue(evt) { var keyValue if (isNav) keyValue = evt.which else keyValue = window.event.keyCode if (keyValue == 13) { java script:document.tagboard.submit(); } return false } // End --> </script> <!-- Change the location of the stylesheet if needs be --> <link rel="stylesheet" href="tagboard/stylesheet.php" type="text/css"> <!-- Change the table "width=100" to change the width of your tag board --> <!-- Change the table "height=200" to change the height of your tag board --> <!-- Change the border colour or size by editing "border:1 solid #HEXCOLOR" --> <!-- For No Border, Delete >>> style="border: 1 solid #000000" --> <table width=140 border:1 solid "#492E05" bgcolor="#492E05"> <tr><td><iframe name="tag" border="0" frameborder="0" width="100%" height="125" align="center" src="tagboard/display.php" target="_blank"></iframe></td></tr> <tr><td> <form method="POST" action="tagboard/tag.php" target="tag" name="tagboard"> <table width="100%" border="0" cellspacing="0"> <tr> <td> <table border="0" cellspacing="0" width="100%" cellpadding="0"> <tr> <td width="1%"><font class="cjfont"><small>Name:</small></FONT></td> </center> <td width="99%"> <p align="right"><font class="cjfont"><small>[</small><A class="cjfont" HREF="java script:cleartagboard()"><small>Reset Tag</small></A><small>]</small></FONT></td> </tr> </table> <!-- Change the input size to change the length of the name field --> <!-- Change the input length by changing maxlength="30" to your desired size --> <input size="17" class="cjmsg" maxlength="30" type="text" name="name"> </td> </tr> <tr> <td> <!-- Change the input size to change the length of the tag field --> <!-- Change the input length by changing all the "200(s)" to your desired size --> <font class="cjfont"><small>Message:</small></FONT><br> <textarea class="cjmsg" rows="3" onKeyDown="textCounter(this.form.cjmsg,this.form.rem,200);" onKeyUp="textCounter(this.form.cjmsg,this.form.rem,200);" onKeyPress="showKeyValue(event)" cols="16" type="text" name="cjmsg"></textarea> </td> </tr> <tr> <td> <div align="center"> <center> <table border="0" cellspacing="0" width="100%"> <tr> <td width="1%"> <!-- Delete this input thing if you dont want to show the remaining characters --> <!-- Change the input initial length by changing the 200 to your desired size --> <input readonly class="cjmsg" type=text name=rem size=3 maxlength=3 value="200"></td> <td width="1%"><input type="submit" class="cjmsg" value="Tag"> </td> <td width="49%"><input type="button" class="xtra" value="Xtras" OnClick="popUp('tagboard/insert.php')"> </td> </tr> </table> </center> </div> </td> </tr> </table> </td></tr> </table> </form> This is what I am supposed to be able to insert into a php script: <? include("tagboard/htmlcode.dat"); ?> This is what I have in column_right.php: require(DIR_WS_BOXES . 'tagboard.php'); Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted August 8, 2005 Share Posted August 8, 2005 is the box code still current from one of your last posts? :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ... Link to comment Share on other sites More sharing options...
sweetfreedom Posted August 8, 2005 Author Share Posted August 8, 2005 I am not sure what you are asking... If you are looking at the testcart - I have been playing around with the script on it. If you are asking why the box code script is different in my last post than in some of my other posts - it is just the whole url is in some of them instead of just the tagboard/htmlcode.dat If I have completely misunderstood - try me again... lol Link to comment Share on other sites More sharing options...
sweetfreedom Posted August 8, 2005 Author Share Posted August 8, 2005 I'm SORRY!!! I forgot the tagboard.php file we are working with! duh... <?php ?> <!-- information //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => 'Suggestion and Comment Box' ); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => include("http://giftsofenchantment.com/testcart/tagboard/htmlcode.dat") ); new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //--> This is Linda's add column banner script: Just thought I would throw this in, in case it might help... This works great for banners! <?php /* // WebMakers.com Added - Column Banner // Created by: Linda McGrath [email protected] // Test at: http://www.thewebmakerscorner.com */ ?> <!-- information //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => BOX_HEADING_COLUMN_BANNER ); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => tep_display_banner('static', $banner) ); new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //--> Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted August 9, 2005 Share Posted August 9, 2005 I'm only experimenting, but this is def what I would try for the infobox code. Back up yours and replace it by this ... <?php ?> <!-- information //--> <!-- Dont edit this javascript bit... --> <script language = "JavaScript"> <!-- Begin function textCounter(field, countfield, maxlimit) { if(field.value.length > maxlimit){ field.value = field.value.substring(0, maxlimit); } else{ countfield.value = maxlimit - field.value.length; } } function cleartagboard() { document.tagboard.cjmsg.value=""; } function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', & #39;toolbar=0,scrollbars=no,location=0,statusbar=0,menubar=0,resizable=0,width=3 00,height=250,left = 262,top = 184');"); } var isNav, isIE if (parseInt(navigator.appVersion) >= 4) { if (navigator.appName == "Netscape") isNav = true else isIE = true } function showKeyValue(evt) { var keyValue if (isNav) keyValue = evt.which else keyValue = window.event.keyCode if (keyValue == 13) { javascript:document.tagboard.submit(); } return false } // End --> </script> <!-- Change the location of the stylesheet if needs be --> <link rel="stylesheet" href="tagboard/stylesheet.php" type="text/css"> <!-- Change the table "width=100" to change the width of your tag board --> <!-- Change the table "height=200" to change the height of your tag board --> <!-- Change the border colour or size by editing "border:1 solid #HEXCOLOR" --> <!-- For No Border, Delete >>> style="border: 1 solid #000000" --> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => 'Suggestion and Comment Box' ); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => '<table width=140 border:1 solid "#492E05" bgcolor="#492E05"><tr><td><iframe name="tag" border="0" frameborder="0" width="100%" height="125" align="center" src="tagboard/display.php" target="_blank"></iframe></td></tr><tr><td><form method="POST" action="tagboard/tag.php" target="tag" name="tagboard"><table width="100%" border="0" cellspacing="0"><tr><td><table border="0" cellspacing="0" width="100%" cellpadding="0"><tr><td width="1%"><font class="cjfont"><small>Name:</small></FONT></td></center><td width="99%"><p align="right"><font class="cjfont"><small>[</small><A class="cjfont" HREF="javascript:cleartagboard()"><small>Reset Tag</small></A><small>]</small></FONT></td></tr></table><input size="17" class="cjmsg" maxlength="30" type="text" name="name"></td></tr><tr><td><font class="cjfont"><small>Message:</small></FONT><br><textarea class="cjmsg" rows="3" onKeyDown="textCounter(this.form.cjmsg,this.form.rem,200);" onKeyUp="textCounter(this.form.cjmsg,this.form.rem,200);" onKeyPress="showKeyValue(event)" cols="16" type="text" name="cjmsg"></textarea></td></tr><tr><td><div align="center"><center><table border="0" cellspacing="0" width="100%"><tr><td width="1%"><input readonly class="cjmsg" type=text name=rem size=3 maxlength=3 value="200"></td><td width="1%"><input type="submit" class="cjmsg" value="Tag"></td><td width="49%"><input type="button" class="xtra" value="Xtras" OnClick=popUp("tagboard/insert.php")><td></tr></table></center></div></td></tr></table></td></tr></table></form>'); new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //--> :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ... Link to comment Share on other sites More sharing options...
sweetfreedom Posted August 9, 2005 Author Share Posted August 9, 2005 THAT WORKED!!! THANK YOU SO MUCH!!! :) Now I can resume my LIFE!!! lol I see how you did it... I tried putting the whole htmlcode.dat script in where it wanted 'text' => but I wasn't smart enough to separate the Java script from it! I am just beginning to learn how to edit php so I REALLY appreciate your help. I have tried the php tutorials and actually spent some time there for this delima, but they are really quite confusing to me at this time... maybe I will catch the drift soon... :) Would you happen to know of an easy to understand tutorial site for beginners??? Thank you so much!!! I have another question for you - One of my dropshippers was visiting my site yesterday and she has a really slow dial up connection and she is saying that the update box is kind of hit and miss as far as loading properly. She says the script inside the box loads overlapping the rest of the page sometimes. Could this be because I have line breaks in it? (not <br> but hitting the enter button to make it easier to read in the html editor) I am getting people that only go to the front page and leave and I am wondering if that might be part of the problem. Thank you again for your help! :) Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted August 9, 2005 Share Posted August 9, 2005 so glad it worked. I did not pay attention beforehand, but right now you have a javascript error, marked in browser bottom left. Comment out the whole new box in column_right to see if it goes away, then you know where to look ... it says something about an unclosed string. Maybe a good javascript validator would find it ... but I do not have one, nor a php tutorial. I used to be an asp crack and learned php just by studying the osC code :-). As for your updates box, it looked fine to me whenever I was on but yes, go ahead and remove all extra spaces (you have a few) and all line breaks, sometimes that works wonders. You may want to check the code of the beginning/ending divs too, as Firefox does not like them, no background, strange dots and not centered. I'm not a firefox expert and had some help myself when making my sites crossbrowser, but someone in the store help forum will know what to do. :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ... Link to comment Share on other sites More sharing options...
Guest Posted August 9, 2005 Share Posted August 9, 2005 Hey sweet freedom, I noticed you changed it on your site, so how do I make it so my image can be as large as it wants, what file is the image size properties located in? See mine is stuck at 40x40 next to "WELCOME TO BLACK SHEEP PERFOROMANCE" :(I Link to comment Share on other sites More sharing options...
Guest Posted August 9, 2005 Share Posted August 9, 2005 nvm. Link to comment Share on other sites More sharing options...
sweetfreedom Posted August 11, 2005 Author Share Posted August 11, 2005 Monika, I don't see a script error... Is it still there??? Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted August 11, 2005 Share Posted August 11, 2005 Monika,I don't see a script error... Is it still there??? <{POST_SNAPBACK}> you may not have the javascript script error turned on in your IE settings ... http://painted4kids.com/moni/error.gif :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ... Link to comment Share on other sites More sharing options...
sweetfreedom Posted August 13, 2005 Author Share Posted August 13, 2005 Thank You Monika! I figured that out this morning... lol It is the tagboard... :( I have no idea what to fix. Is Painted 4 Kids your shop or are you doing the webdesign for someone else? I would LOVE to offer things like that in my store! Thank you for all your help - if you come up with a solution, let me know! Thank You! :) Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted August 13, 2005 Share Posted August 13, 2005 Thank You Monika! I figured that out this morning... lol It is the tagboard... :( I have no idea what to fix. Is Painted 4 Kids your shop or are you doing the webdesign for someone else? I would LOVE to offer things like that in my store! Thank you for all your help - if you come up with a solution, let me know! Thank You! :) <{POST_SNAPBACK}> Hi, painted 4 kids was done for a customer ... I'm sure she'd love to work with you, so why not send her an email to [email protected] ... as for that javascript issue, PM me your ftp info and I'll paly with it a bit on Monday ... I'm sure it's just some quote issue, but not sure where lol :-) :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ... Link to comment Share on other sites More sharing options...
sweetfreedom Posted August 15, 2005 Author Share Posted August 15, 2005 I FIXED IT!!! :D All I did was move a line up a couple lines that was broken for some reason and it is fixed! YYYEEEEAAAA :) Thank you so much for all your help and for Kristens email address! I will be sure to email her! Thank You! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.