
bnovak
Members-
Posts
22 -
Joined
-
Last visited
Never
Contact Methods
-
Website URL
http://www.enrollerconnect.com
Profile Information
-
Gender
Not Telling
bnovak's Achievements

Member (2/5)
0
Reputation
-
Loading only sections of a page? (not sure how to explain...)
bnovak replied to bnovak's topic in PHP Coding Help
hmm.... none of those sound very exciting. The actionscript sounds the least complicated though so looks like I'm off down that rabbit hole! (since I'm already using AS for the page loads etc.) -
This should be an easy one but I'm looking for a bit of help. I'm using a php framework and using includes to bring different pieces of a website togethor onto the page. The top of the page uses a flash banner, then there are some simple text sections below. The banner is in it's own php file as well. Wondering if it's possible to have the banner NOT replay after each page load? I'm not sure if this is something I need to setup in the flash file, or if there is a way to do it in the php files? Basically, the banner is the same for all of the pages, and I want it (once loaded) to stay on the page while the details on the bottom change, WITHOUT going through the entire animation again. Make sense? here's the page as it stands now so you can get a better idea what I'm trying to do. http://www.getmoreimpact.com/index.php again not sure if this needs to be done in the flash side, or the php? Any ideas are better than what I've got! Thanks in advance
-
I could really use a hand with this from someone smarter than I am. I have two tables (same db) Profile and Subscriptions that look like this Profile ID(pk) | login | chooseAccount | account -> account is set to "empty" automatically. Subscriptions ID(pk) | login | type -> the ID's DO NOT line up between the two tables but the login does and login is a unique value I need to do this query mysql_query("UPDATE profile SET account='Enrollment Manager - Standard' WHERE subscriptions.type LIKE '%manager%' and account= 'empty'"); mysql_query("UPDATE profile SET account='Enroller - Standard' WHERE account= 'empty' "); (Sorry, I know it's in PHP context) What I am lost in trying to figure out is how to do it row by row -> matched by login? Basically - if profile.account="empty" query subscriptions.type and insert into profile.account"Enrollment Manager - Standard" if subscriptions.type contains "manager" else insert into profile.account "Enroller - Standard" make sense?
-
I think this should be an easy one for someone smarter than me to figure out. I'm trying to do this in phpmyadmin for now, but will convert it to a php function once I get it testing and working. can't do show create table as it's being auto-generated from a user system. basically two tables: profile id(PK), stateLicenses,additionalLicenses (there's more but for this instance I'm not worried about the other fields) and state_licenses id(pk), selectStates,selectSecondary basically want to make a backup of the id,stateLicenses and additionalLicense fields from the profile table to the state_licenses table. If I start with an EMPTY state_licenses table, I can insert all of the details I need into this table with the INSERT INTO state_licenses (id,selectStates,selectSecondary) SELECT id,stateLicenses,additionalLicenses FROM profile I know there needs to be an UPDATE state_licenses SET id,selectStates,selectSecondary='profile.id,profile.stateLicenses,profile.additionalLicenses' where ??? It's that update line that I can't figure out and the tutorials I've found are all for updating inside a table, not updating from another table. what I would like to do is update selectState and selectSecondary in the state_licenses table if there is already an id in the table, and if not, insert a new record with the id, stateLicenses, additionalLicenses from the profile field (to cover increasing profile id's) basically - if state_license(id) is not null update record, else insert the new record. for the life of me I can't figure out how to update the pre-existing records based on the info from the profile table and I'm (obviously) green with coding this stuff. does this make any sense? Unfortunately, I can't come up with any good work around. Basically the member system I'm using is resetting my column properties to VARCHAR(150) when I need TEXT so I need a way to make a backup of user generated info. Any help is greatly appreciated. Thank -BN
-
copy table columns from one db to another? (2 parts)
bnovak replied to bnovak's topic in PHP Coding Help
Perfect - thanks ignace. I have thought about creating a shared DB and will most likely go that route in the future for sanity's sake. This one is more of the "learning experience" though, and I haven't learned enough about joining two different software packages to one db. Thanks again for the help. -
Ok, lemme see if I can explain this so it makes some sense. It should be pretty simple - I can copy the tables INSIDE the db, but I have two db's that I need to copy a series of table columns between. Basically, I have two different frameworks on my site, one is a member application, and the second is a link directory. I want to copy the username and password from the member system to the linkdirectory system when a new user registers for a membership, but NOT vice-versa. Public can still register for the link directory though......(this way members only have one unified login and password across the site, make sense?) These are on the same server I'm basically trying to do a $query = "INSERT INTO table2 (colA,colB,) SELECT colA,ColB FROM table1 "; which works if they are in the same db, but I don't know the trick is to go to another db. Since this table is auto-increment, I'm also assuming that I can ignore the PK field and it will set one automatically? Also, what would be the trick so that when this runs (I'll just put it in with some other php code I have on user update to the profile) it checks to make sure that it's not duplicating entries?
-
I have a profile system, that when a member makes any changes to their information, this code runs. mysql_select_db("myDB", $con); mysql_query("UPDATE profile SET account='Enrollment Manager - Standard' WHERE accountName LIKE '%manager%' and account= 'empty'"); mysql_query("UPDATE profile SET account='Enroller - Standard' WHERE account= 'empty' "); but...I'm pretty sure this is running through every single row in the db. is there something simple I can put in there so it only does the row with the associated profile that just got changed and not everyone in the db? Or, does it not really matter? (I'll never have more than 10,000 rows so it isn't a huge DB anyway ) [/code]
-
With a little bit of all 4, depending on what you want to do? Have you got something in mind that you want to use as a framework? Without knowing a little bit of what you want your site to look like, it's tough to point you in the right direction.
-
Does anyone have any experience with Easysearch directory that can lend a hand? I'm lost in this smarty tags world of html templates & php. I got most of the site working correctly, but would like to add the google translate bar. Problem is - if I add it to the html template where I want it, the page goes to white. I think it has to do with the <div> tags? I've tried to work it backwards, create a .js just for the google code, and call it with the {$javascript_translate} (I called the file translate.js) - nothing seems to work. (but again I don't exactly know what I'm doing here..... ) i'm trying to get this code <div id="google_translate_element"></div><script> function googleTranslateElementInit() { new google.translate.TranslateElement({ pageLanguage: 'en', includedLanguages: 'es' }, 'google_translate_element'); } </script><script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> to work inside this code (this is the html template file) - look for the string of XXXXXXXX's - that's where I'd like this thing to end up. <head><link rel="shortcut icon" type="image/x-icon" href="http://www.portlandquinceanera.com/images/favicon.ico"></head> <tr> <td> </td> <td colspan="5"> <table width="100%" cellpadding="0" cellspacing="0" border="0" align="center"> <tr> <td colspan="3" bgcolor="#E92727" height="6"><img src="images/spacer.gif" border="0" width="1" height="1"></td> </tr> <tr> <td colspan="3" background="images/bg_topblue.gif" height="54"> <table cellpadding="0" cellspacing="0" border="0" class="normal_12_black"> <tr> <td width="80%"> {if $clogin_member != ""} <table width="80%" cellpadding="0" cellspacing="0" border="0" class="normal_12_black"> <tr> <td> <table cellpadding="2" cellspacing="0" border="0" class="normal_12_black"> <tr> <td valign="middle"><strong>MY ACCOUNT : </strong></td> <td valign="middle"><a href="member_profile.php" class="normal_12_red">My Profile</a></td> <td valign="middle"> | </td> <td valign="middle"><a href="member_listing.php" class="normal_12_red">My Business Listings</a></td> <td valign="middle"> | </td> <td valign="middle"><a href="member_favourite.php" class="normal_12_red">My Favorite Listings</a></td> <td valign="middle"> | </td> <td valign="middle"><a href="system_member_logout.php" class="normal_12_red">Logout</a></td> </tr> </table> </td> <td align="right" class="normal_12_blue_verdana"><strong>Welcome, <u>{$clogin_member_firstname} {$clogin_member_lastname}</u>!</strong></td> </tr> </table> {else} <img src="images/spacer.gif" border="0" width="100%" height="1"> {/if} </td> <td width="20%"> <form action="site_search.php" method="get" style="margin:0px"> <table cellpadding="2" cellspacing="0" border="0" class="normal_12_black"> <tr> <td valign="middle"><strong>FIND BUSINESS</strong></td> <td valign="middle"><input type="text" name="search_keyword" value="" style="width:120px" class="textbox"></td> <td valign="middle"><input type="image" src="images/icon_search.gif" vspace="2"></td> </tr> </table> </form> </td> <td width="230" align="right"> <br> </td> <td width="20"><img src="images/spacer.gif" border="0" width="1" height="1"></td> </tr> </table> </td> </tr> <tr> <td colspan="3" bgcolor="#FFFFFF" height="3"><img src="images/spacer.gif" border="0" width="1" height="1"></td> </tr> <tr> <td colspan="3" > <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td><img src="http://www.portlandquinceanera.com/images/large_banner.jpg" border="0"></td> <td><a href="member_register.php"><img src="images/picture_right.gif" width="201" height="240" border="0"></a></td> </tr> </table> </td> </tr> <tr> <td colspan="5" bgcolor="#FFFFFF" height="3"><img src="images/spacer.gif" border="0" width="1" height="1"></td> </tr> <tr> <td colspan="3"> <table width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="1%" align="left" style="height: 37px"><img src="images/nav_left.gif" width="20" height="37"></td> <td background="images/nav_bg_blue.gif" style="width: 100%; height: 37px;"> <table cellspacing="0" cellpadding="0" class="normal_12_white_verdana" align="center"> <tr> <td><img src="images/nav_divider.gif" width="2" height="37"></td> <td width="100" align="center" class="{$nav_class_home}" onclick="location.href='index.php'"> <a href="index.php" class="normal_12_blue_verdana"><strong>Home</strong></a> </td> <td><img src="images/nav_divider.gif" width="2" height="37"></td> <td width="100" align="center" class="{$nav_class_about}" onclick="location.href='site_about.php'"> <a href="site_about.php" class="normal_12_blue_verdana"><strong>The Party</strong></a> </td> <td><img src="images/nav_divider.gif" width="2" height="37"></td> <td width="150" align="center" class="{$nav_class_calendar}" onclick="location.href='site_calendar.php'"> <a href="site_calendar.php" class="normal_12_blue_verdana"><strong>Events Calendar</strong></a> </td> <td><img src="images/nav_divider.gif" width="2" height="37"></td> <td width="150" align="center" class="{$nav_class_account}" onclick="location.href='member_login.php'"> <a href="member_login.php" class="normal_12_blue_verdana"><strong>My Account</strong></a> </td> <td><img src="images/nav_divider.gif" width="2" height="37"></td> <td width="100" align="center" class="{$nav_class_contact}" onclick="location.href='site_contact.php'"> <a href="site_contact.php" class="normal_12_blue_verdana"><strong>Contact Us</strong></a> </td> <td><img src="images/nav_divider.gif" width="2" height="37"></td> <td width="150" align="center" class="{$nav_class_terms}" onclick="location.href='site_terms.php'"> <a href="site_terms.php" class="normal_12_blue_verdana"><strong>Terms of Use</strong></a> </td> <td><img src="images/nav_divider.gif" width="2" height="37"></td> <td> XXXXXXXXXXXXXXXXXXXXXXX Google Translater Here XXXXXXXXXXXXXXXX </td> </tr> </table> </td> <td width="1%" align="right" style="height: 37px"><img src="images/nav_right.gif" width="20" height="37"></td> </tr> </table> </td> </tr> <tr> <td colspan="2" bgcolor="#FFFFFF" height="3"><img src="images/spacer.gif" border="0" width="1" height="1"></td> </tr> </table> </td> <td> </td> </tr> and, here's the php file that is associated with the html template.... <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>{$meta_title}</title> <meta http-equiv="Content-Type" content="text/html; charset={$meta_encoding}"> <meta name="keywords" content="{$meta_keyword}"> <meta name="description" content="{$meta_description}"> {$javascript_rightclick} <script language="javascript" type="text/javascript" src="javascript.js"></script> <link href="class.css" type="text/css" rel="stylesheet"> </head> <body> <table cellpadding="0" cellspacing="0" border="0" align="center"> <!-- global_top.html --> {include file="global_top.html"} <!-- global_top.html --> <tr> <td width="10"><img src="images/spacer.gif" border="0" width="10" height="1"></td> <td valign="top"> <!-- global_left.html --> {include file="global_left.html"} <!-- global_left.html --> </td> <td width="5"><img src="images/spacer.gif" border="0" width="5" height="1"></td> <td valign="top"> <!-- center for content --> <table cellpadding="0" cellspacing="0" border="0" align="center"> <tr> <td><img src="images/center_left_top.gif" width="10" height="6"></td> <td background="images/center_hor_top.gif"><img src="images/spacer.gif" width="1" height="1"></td> <td><img src="images/center_right_top.gif" width="10" height="6"></td> </tr> <tr> <td width="10" background="images/center_ver_left.gif"><img src="images/spacer.gif" width="1" height="1"></td> <td width="560" height="650" valign="top" style="padding-left:5px; padding-right:5px; padding-top:20px; padding-bottom:20px"> <table width="560" cellpadding="0" cellspacing="0" class="normal_12_black" border="0"> <tr> <td><font class="title_large">Welcome to The Quinceanera Directory!</font></td> </tr> <tr> <td height="20"><img src="images/spacer.gif" width="1" height="1"></td> </tr> <tr> <td> .<strong>....where you can find listings for all things Quince! We have bakeries for quinceanera cakes, where to find the perfect quinceanera dress, event spaces and rentals, even where to get your hair and makeup done</strong>! </td> </tr> <!-- the tab --> <tr> <td height="30"><img src="images/spacer.gif" width="1" height="1"></td> </tr> <tr> <td height="28" background="images/bg_tab.gif" style="background-repeat:no-repeat; padding-left:28px; padding-top:5px" class="normal_12_blue_verdana" valign="top"> <strong>Find a business in our directory</strong> </td> </tr> <!-- the tab --> <tr> <td> <table cellpadding="5" cellspacing="0" border="0" class="normal_12_black"> <tr> <td colspan="2" height="5"><img src="images/spacer.gif" width="1" height="1"></td> </tr> <tr> <td colspan="2" valign="top" style="padding-left:28px"> <form action="site_search.php" method="get" style="margin:0px"> <table cellpadding="2" cellspacing="0" class="normal_12_black"> <tr> <td colspan="7"> You can easily search our directory here. If you want to do search by radius, please enter the zipcode and choose the distance ... </td> </tr> <tr> <td height="5" colspan="6"><img src="images/spacer.gif" width="28" height="1"></td> </tr> <tr> <td><strong>Category</strong> </td> <td><strong>:</strong></td> <td> <select name="search_cat" style="width:265px" class="textbox_home"> <option value="0">Any Categories</option> {section name=var loop=$search_cat_id} <option value="{$search_cat_id[var]}" {if $search_cat == $search_cat_id[var]} selected {/if}>{$search_cat_name[var]}</option> {/section} </select> </td> <td width="10"> </td> <td><strong>ZIP Code</strong></td> <td><strong>:</strong></td> <td><input type="text" name="search_zip" value="{$search_zip}" style="width:95px" class="textbox_home"></td> </tr> <tr> <td><strong>Keyword</strong></td> <td><strong>:</strong></td> <td><input type="text" name="search_keyword" value="{$search_keyword}" style="width:260px" class="textbox_home"></td> <td width="10"> </td> <td><strong>Radius / Range</strong> </td> <td><strong>:</strong></td> <td> <select name="search_distance" style="width:100px;" class="textbox_home"> {section name=var loop=$search_distance_value} <option value="{$search_distance_value[var]}" {if $search_distance == $search_distance_value[var]} selected {/if} >{$search_distance_name[var]}</option> {/section} </select> </td> </tr> <tr> <td></td> <td></td> <td><input type="submit" value="Search" style="width:96px"></td> </tr> </table> </form> </td> </tr> </table> </td> </tr> <!-- some highlights here --> <tr> <td height="30"><img src="images/spacer.gif" width="1" height="1"></td> </tr> <tr> <td height="28" background="images/bg_tab.gif" style="background-repeat:no-repeat; padding-left:28px; padding-top:5px" class="normal_12_blue_verdana" valign="top"> <strong>New Businesses in Our Directory</strong> </td> </tr> <!-- some highlights here --> <tr> <td height="15"><img src="images/spacer.gif" width="1" height="1"></td> </tr> <tr> <td> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="normal_12_black"> {section name=var loop=$listing_id} <tr> <td height="10" colspan="3"><img src="images/spacer.gif" width="1" height="1"></td> </tr> <tr> <td width="28"><img src="images/spacer.gif" width="28" height="1"></td> <td width="470" valign="bottom" style="padding-right:20px"> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="normal_11_black"> <tr> <td colspan="4"> <a href="{$listing_url[var]}" class="normal_12_blue_verdana"><strong>{$listing_title[var]}</strong></a> </td> </tr> <tr> <td colspan="4" class="normal_12_black"> {$listing_brief_desc[var]} </td> </tr> <tr> <td height="10" colspan="4"><img src="images/spacer.gif" width="1" height="1"></td> </tr> <tr> <td><a href="{$listing_url_contact[var]}" class="normal_11_red"><img src="images/mail.png" hspace="5" vspace="0" border="0" align="left"><strong>Email</strong></a></td> <td><a href="{$listing_url[var]}" class="normal_11_red"><img src="images/zoom-in.png" hspace="5" vspace="0" border="0" align="left"><strong>Details</strong></a></td> {if $show_distance == "yes"} <td><strong>Distance :</strong> <font class="normal_11_red">15 miles</font></td> {/if} <td align="right"> {if $listing_rating[var]} <img src="images/pic_star{$listing_rating[var]}.gif" width="83" height="13"> {else} <img src="images/spacer.gif" width="83" height="1"> {/if} </td> </tr> </table> </td> <td width="120"> <table bgcolor="#FFFFFF" border="0" cellpadding="2" cellspacing="0" style="border:0px solid #bf0000" class="list_picture_status"> <tr> <td width="{$photo_width_thumb}" height="{$photo_height_thumb}" align="center" valign="middle"><a href="{$listing_url[var]}"><img src="photo_view_logo.php?listing={$listing_id[var]}" border="0"></a></td> </tr> </table> </td> </tr> <tr> <td height="15" colspan="4"><img src="images/spacer.gif" width="1" height="1"></td> </tr> {if $listing_rank[var] < $front_home_rows} <tr> <td bgcolor="#A3CAF1" height="1" colspan="4"><img src="images/spacer.gif" width="1" height="1"></td> </tr> {/if} {/section} <tr> <td height="20" colspan="4"><img src="images/spacer.gif" width="1" height="1"></td> </tr> </table> <script type="text/javascript"><!-- google_ad_client = "pub-0764369212254213"; /* shopping directory banner ad */ google_ad_slot = "2896103409"; google_ad_width = 468; google_ad_height = 60; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script><div> </div> </td> </tr> </table> </td> <td width="10" background="images/center_ver_right.gif"><img src="images/spacer.gif" width="1" height="1"></td> </tr> <tr> <td><img src="images/center_left_bottom.gif" width="10" height="6"></td> <td background="images/center_hor_bottom.gif"><img src="images/spacer.gif" width="1" height="1"></td> <td><img src="images/center_right_bottom.gif" width="10" height="6"></td> </tr> </table> <!-- center for content --> </td> <td width="5"><img src="images/spacer.gif" border="0" width="5" height="1"></td> <td valign="top"> <!-- global_right.html --> {include file="global_right.html"} <!-- global_right.html --> </td> <td width="10"><img src="images/spacer.gif" border="0" width="10" height="1"></td> </tr> <!-- global_bottom.html --> {include file="global_bottom.html"} <!-- global_bottom.html --> </table> </body> </html> any ideas?
-
(sorry mods, the conversation looks like it needed to be moved out of javascript land ) This is probably going to be laugably easy for someone, but I'm totally green with PHP code and could really use a hand with this. I've got a forum on my site that members to the site can post to (as well as visitors, as a "guest post") but I would like to X out or hide email addresses and phone numbers that may get posted in the forum body to non-registered guests. I don't mind if regstered (paying) users can see them but I definently need the non-paying public to have them hidden somehow. The pages are all PHP based on an HTML template system - I was originally thinking java as I could run the code based on an IFEQ tag, but someone pointed out that there's not much security there, and recommended regex php. I've looked through the word filters, which are close, but I need it to be somewhat dynamic for the email addresses. Does this make sense to anyone, and any ideas how to get it working? code from the page { content_buffer_start(); } action_listener("call_header", "forum/postlisting.php"); global $values; } ?> <style type="text/css"> .forumtable { border-collapse: collapse; font-size: 11px; width: 100%; } .forumtable th { border-bottom: 1px solid #ccc; background: #f5f5f5; text-align:left; } .forumtable td { border-bottom: 1px solid #ccc; } .forum-header{ font-weight:bold; font-size:16px; } </style> <? $temp_from = $_GET['from']; $_GET['from'] = 0; ?> <? # Normal Loop start $tmplistings = $listings; $tempc = $c; $tmploopttype = $looptype; array_push($GLOBALS['values_stack'], $values); $c = -1; $looptype = 'normal'; $listings = get_listing_results("forum_post", false, true); foreach($listings as $values){ $c++; ?> <div class="forum-header"><table width="100%"> <tbody><tr><td><a href="http://www.enrollerconnect.com/forum">Enroller Connect Forums</a> > <a href="<?=$GLOBALS[HTTP_DOMAIN]?>/forum/topicdisplay.php?if_topicid=<?=get_tag($values, 'topicid' )?>&empty_parentid=1&topic=<?=urlencode($_GET["topic"])?>"><?=$_GET["topic"]?></a> > <?=get_tag($values, 'title' )?></td><td align="right" width="200" class="forum-header-link"><img align="absmiddle" src="<?=$GLOBALS[HTTP_DOMAIN]?>/images/add.png" alt="" /> <a href="<?=$GLOBALS[HTTP_DOMAIN]?>/forum/forum_post.php?parentid=<?=get_tag($values, 'id' )?>&topicid=<?=get_tag($values, 'topicid' )?>&title=RE:+<?=urlencode(get_tag($values, 'title' )) ?>">Reply this post</a></td></tr> </tbody></table></div> <br /> <?} # Loop End $listings = $tmplistings; $values = array_pop($GLOBALS['values_stack']); $c = $tempc; if($itemline && $looptype == 'table'){ echo "</td></tr></table>"; $itemline=$tmpitemline; }else{ echo ""; } $looptype = $tmploopttype; ?> <? $_GET['from'] = $temp_from; ?> <? # Normal Loop start $tmplistings = $listings; $tempc = $c; $tmploopttype = $looptype; array_push($GLOBALS['values_stack'], $values); $c = -1; $looptype = 'normal'; $listings = get_listing_results("forum_post", false, false); foreach($listings as $values){ $c++; ?> <table cellspacing="0" cellpadding="3" width="100%" id="post-<?=get_tag($values, 'id' )?>"> <tbody><tr> <td width="90" valign="top"><? if(get_tag($values, "login", false, true) === ""){?> <img width="80" src="<?=$GLOBALS[HTTP_DOMAIN]?>/images/no_picture.png" alt="" /> <br /> Posted By:<br /> <strong><?=get_tag($values, 'name' )?> </strong><? }else{ ?> <a href="<?=$GLOBALS[HTTP_DOMAIN]?>/profile/details.php?if_login=<?=get_tag($values, 'login' )?>"> <div style="overflow:hidden; width:80px; height:80px; "><img align="absmiddle" border="0" src="<?=get_tag($values, 'profilePicture' )?>" width="80" /></div> </a> <br /> <b>User: </b><a href="<?=$GLOBALS[HTTP_DOMAIN]?>/profile/details.php?if_login=<?=get_tag($values, 'login' )?>"><?=get_tag($values, 'username' )?></a><br /> <b>Posts: </b><?=count_user_posts($values[login_relation])?><br /> <? if(check_owner($values)){ ?> <img align="absmiddle" src="<?=$GLOBALS[HTTP_DOMAIN]?>/images/pencil.png" alt="" /> <a href="<?=$GLOBALS[HTTP_DOMAIN]?>/forum/forum_post_update.php?if_id=<?=get_tag($values, 'id' )?>">Edit post</a><br /><? } ?> <? } ?><br /> Posted On<br /><?=format_date(get_tag($values, 'added' ), "F d, Y") ?></td> <td valign="top"><table cellspacing="0" cellpadding="4" class="forumtable"> <tbody><tr> <th><? if(get_tag($values, "title", false, true) === ""){?> RE: <?=$values["parentid_relation"]["title"] ?> <? }else{ ?> <?=get_tag($values, 'title' )?> <? } ?></th> </tr> <tr> <td style="border-bottom: medium none;"><?=get_tag($values, 'post' )?></td> </tr> </tbody></table></td> </tr> </tbody></table> <hr style="border-width: 1px medium medium; border-style: solid none none; border-color: rgb(204, 204, 204) -moz-use-text-color -moz-use-text-color;" /> <?} # Loop End $listings = $tmplistings; $values = array_pop($GLOBALS['values_stack']); $c = $tempc; if($itemline && $looptype == 'table'){ echo "</td></tr></table>"; $itemline=$tmpitemline; }else{ echo ""; } $looptype = $tmploopttype; ?> <?=print_paging(false, false)?><div style="text-align: center;"><br /><br /><? include_template(LIVE_PATH.'advertisements/google_leaderboard.php', true) ?></div><br /> <?php if(!$GLOBALS[plain_content]){ action_listener("call_footer", "forum/postlisting.php"); if(!$noheader){ content_buffer_end(); } } ?>
-
<?php Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location:http://www.domain.com/business/banks/index.php" ); ?> one thing I figured out after a lot of swearing is that (at least on my server) you need to close the http string - IE it needs to end with the actual page, and not a folder.
-
hey you do realize that your SELECT statement is pulling only one ID, right? get rid of the WHERE part, and move the mysql_close() to the bottom. then do while($row = mysql_fetch_array($num)) { your email code } mysql_close($con) that should loop through everything and send the emails one by one. You might have to futz with it a bit but that's pretty close.
-
Looking for script that hides email and or phone numbers in forum posts
bnovak replied to bnovak's topic in Javascript Help
I agree - but my end users are not exactly a "web savvy" bunch of code junkies so I'm not overly concerned about it. You understand what i'm trying to do though - got any other opinions for an option? The pages are PHP, so If there is some PHP code I could put in that would work also.... -
Pretty much the subject says it all. I'd like something that will either black out, XXX out, hide entirely or whatever else you can think of to cover up when a user puts an email address and/or phone number in a forum post. I can setup the function to call a JS based on the user being logged in or not, I just need the script to actually do it. Any ideas? (i've seen it done on a couple sites but have no idea how it works.)
-
Hey whaddya know - that solved the issue! Yeah that makes sense the way you guys explained it. Thanks for the help - it would be nice if some of the documentation was as simple as this to read.