chey
Members-
Posts
10 -
Joined
-
Last visited
Never
Profile Information
-
Gender
Not Telling
chey's Achievements
Newbie (1/5)
0
Reputation
-
[CODE] if($sbIcons['reply']) { echo $msg_reply; echo " ".$msg_quote; if ($msg_delete) echo " ".$msg_delete; if ($msg_move) echo " ".$msg_move; if ($msg_edit) echo " ".$msg_edit; if ($msg_closed) echo " ".$msg_closed; if ($msg_sticky) echo " ".$msg_sticky; if ($msg_lock) echo " ".$msg_lock; } else { echo $msg_reply;?> | <?php echo $msg_quote; if ($msg_delete) echo " | $msg_delete"; if ($msg_move) echo " | $msg_move"; if ($msg_edit) echo " | $msg_edit"; if ($msg_closed) echo " | $msg_closed"; if ($msg_sticky) echo " | $msg_sticky"; if ($msg_lock) echo " | $msg_lock"; }[/CODE] hi, this is my code. right now, i need to change '$msg_reply to be an image that has the same link. what this link does right now is display the word 'reply' and goes to the reply page in a forum. i need it to display an image, but the page it goes to remains the same. help?
-
hmmm, currently i know where to solve the sub category descriptions, but i'm not good with php, so i need help. $child_list actually displays the categories. BUT, it displays it at the side as well. in shop.browse.php + ps_product_category.php, $child_list is used to generate the display. in order for it to display the descriptions under the one in the sub category page, i'll have to change the child_list function right? is there anyway way to modify the code for it? in shop.browse.php: [code]$child_list = $ps_product_category->get_child_list($category_id); $desc = $ps_product_category->get_description($category_id); if (!empty( $child_list )) { echo $child_list; } echo '</div>'; if (!empty( $child_list )) { echo '<br style="clear:both;" /><br />'; }[/code] this would display it on the main page.(shown below in blue) in ps_product_category.php [code]function print_child_list($category_id) { echo $this->get_child_list($category_id); }[/code] prints it on the module side. so... how can i enable both functions to print differently?
-
right now my sub categories display the following, which is the name of the category(in blue). this is the code [code]/** * CATEGORY DESCRIPTION */ $desc = $ps_product_category->get_description($category_id); /* Prepend Product Short Description Meta Tag "description" when applicable */ if( @$_REQUEST['output'] != "pdf") { $mainframe->prependMetaTag( "description", substr(strip_tags($desc ), 0, 255) ); } if( trim(str_replace( "<br />", "" , $desc)) != "" ) { echo $desc; echo '<br /><br />'; } if (!empty($category_id) ) { /** * PATHWAY - Navigation List */ echo '<div style="text-align:left;">'; $nav_list = $ps_product_category->get_navigation_list($category_id); if( @$_REQUEST['output'] != "pdf") { $mainframe->appendPathWay( $nav_list ); } else { echo "<strong>".$nav_list ."</strong><br />"; } $child_list = $ps_product_category->get_child_list($category_id); if (!empty( $child_list )) { echo $child_list; echo 'hello'; } echo '</div>'; if (!empty( $child_list )) { echo '<br style="clear:both;" /><br />'; } }[/code] so now, i want to add the category descriptions underneath it. i believe the variable name for it is 'category_descriptions' [attachment deleted by admin]
-
i have this form here. i would like a verification code at the end. how do i implement it? [attachment deleted by admin]
-
this is my code [code] /* UPDATE CART / DELETE FROM CART */ $action_url = $_SERVER['SERVER_PORT']=="443" ? SECUREURL : URL . "index.php"; $product_rows[$i]['update_form'] = "<input type=\"hidden\" name=\"page\" value=\"". $_REQUEST['page'] ."\" /> <input type=\"hidden\" name=\"func\" value=\"cartUpdate\" /> <input type=\"hidden\" name=\"product_id\" value=\"". $_SESSION['cart'][$i]["product_id"] ."\" /> <input type=\"hidden\" name=\"Itemid\" value=\"". @$_REQUEST['Itemid'] ."\" /> <input type=\"hidden\" name=\"description\" value=\"". $cart[$i]["description"]."\" /> <input type=\"image\" name=\"update\" title=\"". $VM_LANG->_PHPSHOP_CART_UPDATE ."\" src=\"". IMAGEURL ."ps_image/edit_f2.gif\" border=\"0\" value=\"". $VM_LANG->_PHPSHOP_UPDATE ."\" /> </form>"; $product_rows[$i]['delete_form'] = "<form action=\"$action_url\" method=\"post\" name=\"delete\" /> <input type=\"hidden\" name=\"option\" value=\"com_virtuemart\" /> <input type=\"hidden\" name=\"page\" value=\"". $_REQUEST['page'] ."\" /> <input type=\"hidden\" name=\"Itemid\" value=\"". @$_REQUEST['Itemid'] ."\" /> <input type=\"hidden\" name=\"func\" value=\"cartDelete\" /> <input type=\"hidden\" name=\"product_id\" value=\"". $_SESSION['cart'][$i]["product_id"] ."\" /> <input type=\"hidden\" name=\"description\" value=\"". $cart[$i]["description"]."\" /> <input type=\"image\" name=\"delete\" title=\"". $VM_LANG->_PHPSHOP_CART_DELETE ."\" src=\"". IMAGEURL ."ps_image/delete_f2.gif\" border=\"0\" value=\"". $VM_LANG->_PHPSHOP_CART_DELETE ."\" /> [/code] i want to specify the height & width of the image to the normal size which is '19'. how do i do that wiht php code?
-
thanks a lot for you help! every thing goes thru, except the name now. *headdesks* i really appreciate the help... though my php knowledge still sucks. thanks once again ken :)
-
i managed to get the email to be generated. but now i need help with changing the name of the person sending the email. it gives me a funny address. how do i do so??? also, the 'message here', i want the message in my email to look something like this: You have a new subscriber: Name: (name entered) Email: (email entered) i am not good with this php stuff, but so far, the code was: [code] if ($result) { echo '<p>' . _UNREGISTEREDADDED . '</p>'; [/code] and i added [code] mail ('myemail','New Subscriber For Newsletter','You Have a New Unregistered Subscriber:<br /> Name:'name'<br /> Email:'email'<br />'); [/code] now, my problem is the last '', where that is what would appear in the email. so i need help with that only. the email is sent fine.
-
ok, i can understand that... but the problem is, currently the form is linked to a js, that is, when submit is clicked, the data inserted will go to a database through the js function which looks like this. [code] function submitcombutton() { var form = document.mosForm; // do field validation if (form.name.value == "") { alert( "<?php echo _REGWARN_NAME;?>" ); } else if (form.email.value == "") { alert( "<?php echo _REGWARN_MAIL;?>" ); } else { form.submit(); } } [/code] then, this is the front end side [code] <form method="post" action="<?php echo sefRelToAbs('index.php?option=com_anjel&Itemid=' . $Itemid . '&action=unregistered&task=addUnregistered'); ?>" name="mosForm" > <table align="center" border="0" cellpadding="0" cellspacing="3"> <tr> <td align="center"><?php echo _INPUT_NAME; ?></td> <td><input type="text" name="name" value="" class="inputbox" /></td> </tr> <tr> <td align="center"><?php echo _INPUT_EMAIL; ?></td> <td><input type="text" name="email" value="" class="inputbox" /></td> </tr> <?php foreach ($letters as $letter) { ?> <tr> <td align="right"><input type="checkbox" name="<?php echo $letter->id; ?>" value="1" class="inputbox" /></td> <td><span class="anjel_letter_names"><?php echo mosToolTip(addslashes(htmlentities($letter->list_desc)), addslashes(htmlentities($letter->list_name)), '', '', addslashes(htmlentities($letter->list_name)), '#', 1); ?></span></td> <td> </td> </tr> <?php } // end foreach ?> <tr> <td align="right"><input type="checkbox" name="receivehtml" value="1" class="inputbox" /></td> <td><?php echo _RECEIVE_HTML; ?></td> </tr> <tr> <td> </td> <td><input type="button" value="<?php echo _SUBSCRIBE; ?>" class="button" onclick="submitcombutton()" /> </td> </tr> </table> </form> [/code] so how am i supposed to implement these 2 codings together?
-
ok, right now i have this form here below... [URL=http://img136.imageshack.us/my.php?image=anjel30ok.jpg][IMG]http://img136.imageshack.us/img136/9052/anjel30ok.th.jpg[/img][/URL] and i just need to make sure when i click the 'subscribe' button, there would be an email sent to me.
-
hello, i need some help with PHP. in fact, i know NUTS about PHP, and my asp knowledge has been returned to my teacher 2 years ago. anyway, i need some basics first. my aim is to configure a command in a form, and when the form is validated, to actually send my email add the contents of the form. sounds a bit too much for a beginner, but can anyone help?