-
Posts
3,145 -
Joined
-
Last visited
-
Days Won
37
Everything posted by cyberRobot
-
I don't see the issue in IE10 either. As kicken suggested, you should add a background color similar to the image. That way the transition from plain background to a background image (and vice versa) isn't so jarring. You could try something like this: body { color: #FFFFFF; font-family: Verdana, Helvetica, FreeSans, Sans-serif; font-size: 100%; padding: 0; margin: 0; background-color: #363636; background-image: url(images/dark-texture.jpg); } Note that I've also changed the font color, so that text being displayed over the dark background will still be visible. Of course, you may need to adjust your other styles so the font color appears as you expect.
- 6 replies
-
- internet explorer
- background image
-
(and 2 more)
Tagged with:
-
So, has your question been answered?
-
Select checkbox value does not work in search sql statement
cyberRobot replied to HalRau's topic in PHP Coding Help
Try adding parenthesis around the conditions using "OR": "SELECT * FROM members WHERE LiveOnWeb = 1 AND (BusinessName LIKE '%{$searchTermDB}%' OR BusinessDescription LIKE '%{$searchTermDB}%' OR SearchKeyWords LIKE '%{$searchTermDB}%') ORDER BY BusinessName"; -
Yep, that should work. Well, I can't promise the email will be sent, but you have the idea.
-
Sorry for the confusion...the "if" test I was referring to can be found in Response #7. I'm not sure why the manual doesn't include an example which tests for the mail() function being successful. Another thing to consider is maybe the mail server is busy. I've had messages that took up to an hour to make their way through the system.
-
Did you add the if test to make sure it's working? The mail() function returns false if it isn't accepted for delivery: http://php.net/manual/en/function.mail.php
-
Just to clarify, is the email not being sent...or is the redirect not working? Or both? Also note that you should test if the mail() function was successful before redirecting the page. <? if(mail ( "info@peoplespropertyshop.co.uk" , "New Enquiry" , "$email_message")) { header("Location: email_success.php"); } else { //mail failed, log error; display message; or whatever here } ?>
-
Help need for coding complicated php script
cyberRobot replied to Ramamoorthy's topic in PHP Coding Help
Sorry, I'm not seeing the issue. When using the isset feature, the variable will display when it's set. It won't display (and won't give an error) when the variable isn't set. Perhaps I'm missing something. You might need to provide more information about the script and what you're trying to do. Do the pages work fine without the newly added feature? If so, then you can use the stopgap measure. If not, you should set up a development site; change everything (100 or 200 pages); then go live with the updated website. While making the changes, you should consider if there is a better way to build the website. Are many of the pages coded similarly? If so, perhaps you could build a common script that's populated with information from a database. -
Help need for coding complicated php script
cyberRobot replied to Ramamoorthy's topic in PHP Coding Help
The isset() function is just there as a stopgap. Once all of your pages have the variable defined before calling include.php, the isset() can be removed. Is there other issues with the website if $softwaresize isn't set? -
Help need for coding complicated php script
cyberRobot replied to Ramamoorthy's topic in PHP Coding Help
So basically, $softwaresize will be defined in some page, but not others? And you're looking to echo the value only when it's set? If so, you could try something like: if(isset($softwaresize)) { echo $softwaresize; } -
Help need for coding complicated php script
cyberRobot replied to Ramamoorthy's topic in PHP Coding Help
Sorry, I'm not sure what you're asking. Could you restate the question? Also, could you re-post the code and surround each code block with the tags. This should hopefully make the post easier to follow. -
Please post the updated code.
- 17 replies
-
- mysql
- javavscript
-
(and 1 more)
Tagged with:
-
Also note that "body" appears twice. The first reference "body=hai every body" won't be used.
-
It's a MySQL function, so it goes in the query where you get the date fields from the database. More information can be found here: http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_date-format
-
Need to display form field output in table format
cyberRobot replied to judah's topic in PHP Coding Help
I have marked the topic as solved. If you need further assistance, you can mark it as unsolved or start a new topic. -
Need to display form field output in table format
cyberRobot replied to judah's topic in PHP Coding Help
Which line is 639? -
Need to display form field output in table format
cyberRobot replied to judah's topic in PHP Coding Help
Just in case the solutions got buried, did you see Reply 7 Reply 10 Those should hopefully take care of the issues. Sorry for the overabundance of posts. -
Need to display form field output in table format
cyberRobot replied to judah's topic in PHP Coding Help
Actually, the error looks to be caused by starting a comment in the middle of the code. get('tmpl_params.item_grouping_type', 0)) { //tab case Since it's one giant line of code, everything after the comment is ignored. -
Need to display form field output in table format
cyberRobot replied to judah's topic in PHP Coding Help
Also, there appears to be an error here: <?php echo $this->loadTemplate('tags');?> <?php if($category || $author || $details || $params->get('tmpl_core.item_rating')): ?> <div class="well article-info"> <div class="row-fluid"> <?php if($params->get('tmpl_core.item_rating')):?> <div class="span2"> <?php echo $item->rating;?> </div> <?php endif;?> <div class="span<?php echo ($params->get('tmpl_core.item_rating') ? 8 : 10);?>"> <small> <dl class="dl-horizontal user-info"> <?php if($category):?> <?php echo implode(' ', $category);?> <?php endif;?> <?php if($author):?> <dt><?php echo JText::_('Posted');?></dt> <dd> <?php echo implode(', ', $author);?> </dd> <?php endif;?> <?php if($details):?> <dt>Info</dt> <dd class="hits"> <?php echo implode(', ', $details);?> </dd> <?php endif;?> </dl> </small> </div> <?php if($params->get('tmpl_core.item_author_avatar')):?> <div class="span2 avatar"> <img src="<?php echo CCommunityHelper::getAvatar($item->user_id, $params->get('tmpl_core.item_author_avatar_width', 40), $params->get('tmpl_core.item_author_avatar_height', 40));?>" /> </div> <?php endif;?> </div> </div> <?php endif;?></article><?php if($started):?> <script type="text/javascript"> <?php if(in_array($params->get('tmpl_params.item_grouping_type', 0), array(1))):?> jQuery('#tabs-list a:first').tab('show'); <?php elseif(in_array($params->get('tmpl_params.item_grouping_type', 0), array(2))):?> jQuery('#tab-main').collapse('show'); <?php endif;?> </script><?php endif;?><?phpfunction group_start($data, $label, $name){ static $start = false; switch ($data->tmpl_params['record']->get('tmpl_params.item_grouping_type', 0)) { //tab case 1: if(!$start) { echo '<div class="tab-content" id="tabs-box">'; $start = TRUE; } echo '<div class="tab-pane" id="'.$name.'">'; break; //slider case 2: if(!$start) { echo '<div class="accordion" id="accordion2">'; $start = TRUE; } echo '<div class="accordion-group"> <div class="accordion-heading"> <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#'.$name.'"> '.$label.' </a> </div> <div id="'.$name.'" class="accordion-body collapse"> <div class="accordion-inner">'; break; // fieldset case 3: echo "<legend>{$label}</legend>"; break; }}function group_end($data){ switch ($data->tmpl_params['record']->get('tmpl_params.item_grouping_type', 0)) { case 1: echo '</div>'; break; case 2: echo '</div></div></div>'; break; }}function total_end($data){ switch ($data->tmpl_params['record']->get('tmpl_params.item_grouping_type', 0)) { //tab case 1: echo '</div>'; break; case 2: echo '</div>'; break; }} However, I don't plan to wade through the code since it's on one giant line. -
Need to display form field output in table format
cyberRobot replied to judah's topic in PHP Coding Help
You didn't close PHP here: case 2: echo '</div>'; break; } } <?php echo <table id='display' width=548 border=0 summary="">?> Try: case 2: echo '</div>'; break; } } ?> <table id='display' width=548 border=0 summary=""> -
Need to display form field output in table format
cyberRobot replied to judah's topic in PHP Coding Help
Instead of attaching a file, could you paste more of the script (if not all of it) in the message window. When you do, please surround the code with the tags. It makes the post and code easier to read. -
If the date comes from your database and the field type in the database is one of the date types, you could use SQL's DATE_FORMAT() function: http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_date-format
-
To get a message to appear inside a JavaScript alert box, you could do something like this: <?php echo "<script type='text/javascript'>alert('message for the alert box goes here');</script>"; ?> Of course, the code needs to be customized to fit your code.
- 17 replies
-
- mysql
- javavscript
-
(and 1 more)
Tagged with:
-
Thanks gizmola and snoopytamp!