Jump to content

vood0o

Members
  • Posts

    11
  • Joined

  • Last visited

vood0o's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. I have this code line : <iframe scrolling="no" style="border:0;width:300px;height:250px;" src="http://www.asdacz.com/banner.php"></iframe> Can I add in iframe after src, onClick=”_gaq.push(['_trackEvent', 'External Link', 'Twitter Link', 'Follow Us - Words']);”?? Or I have to use this code line:<a href=”http://twitter.com/impactmedialtd” onClick=”_gaq.push(['_trackEvent', 'External Link', 'Twitter Link', 'Follow Us - Words']);”>Follow Us</a> in this last line i can not see where i can put the src , as this is php file is a banner and i want to use it on an external website.
  2. Ok, thanks for your help, i've done it. it works just fine.
  3. such as AND ( e.office_id = 1) AND (e.onsite=1) AND (e.promote = 'Yes') AND (e.estate_type = 'flat') AND (e.zone = 'New York') ".$qplus."?
  4. $q = "SELECT e.*, u.name as agent_name, u.direct_phone as agent_phone,u.email as agent_email, u.id as agent_id FROM estates e LEFT JOIN users u on u.id = e.agent WHERE e.deleted=0 AND e.office_id = 1 AND e.onsite=1 AND e.promote = 'Yes' AND e.estate_type = 'flat' AND e.zone = 'New York' ".$qplus." OR e.zone = 'New Jersey' $orderby LIMIT ".$l[1].", ".$l[0]; Is this query ok, to get as results from the database, estates that are in one of the 2 zones and have the word yes in promote field?
  5. i got this code line, it is ok, but i have a problem, i would like to make the top of the list the list_id wsm-61853 and than for the rest of the ids i would like to be ordered random. also how can i make an order by two categories from a table in database. I want the query to show my results by two entries from the zone category(ex. England and Germany) if(empty($orderby)){ $orderby = "ORDER BY e.list_id DESC"; }$q = "SELECT e.*, u.name as agent_name, u.direct_phone as agent_phone,u.email as agent_email, u.id as agent_id FROM estates e LEFT JOIN users u on u.id = e.agent WHERE e.deleted=0 AND e.office_id = 1 AND e.onsite=1 AND e.list_id = 'WSM-61853 ' ".$qplus." $orderby LIMIT ".$l[1].", ".$l[0]; my php file uses a tpl file to get the middle section for the primary page, in that tpl file i can not create another section, to use the first one to show up just the list_id that i want and the other one the rest of estates.
  6. I have this code line:function update($data) { $q = "SELECT id FROM estates WHERE list_id = '".mysql_real_escape_string(trim($data['list_id']))."'"; $r = $this -> db -> query($q); if ($rw = $r -> fetchRow()) { $eid = $rw['id']; } $q = "UPDATE estates SET title = '".mysql_real_escape_string($data['title'])."', country = '".mysql_real_escape_string($data['country'])."', region = '".mysql_real_escape_string($data['region'])."', zone = '".mysql_real_escape_string($data['zone'])."', city = '".mysql_real_escape_string($data['city'])."', price = '".mysql_real_escape_string($data['price'])."', currency = '".mysql_real_escape_string($data['currency'])."', unit = '".mysql_real_escape_string($data['unit'])."', exclusivity = '".mysql_real_escape_string($data['exclusivity'])."', ad_type = '".mysql_real_escape_string($data['ad_type'])."', estate_type = '".mysql_real_escape_string($data['estate_type'])."', description = '".mysql_real_escape_string($data['description'])."', date_in = '".mysql_real_escape_string($data['date_in'])."', date_out = '".mysql_real_escape_string($data['date_out'])."', rooms = '".mysql_real_escape_string($data['rooms'])."', dorms = '".mysql_real_escape_string($data['dorms'])."', total_mp = '".mysql_real_escape_string($data['total_mp'])."', util_mp = '".mysql_real_escape_string($data['util_mp'])."', marime_lot = '".mysql_real_escape_string($data['marime_lot'])."', agent = '".mysql_real_escape_string($data['agent'])."', office_id = '".mysql_real_escape_string($data['office'])."' WHERE list_id = '".$data['list_id']."'"; //echo "\n\n$q\n\n"; if ($res = $this -> db -> query($q)) { return $eid; } else { return false; } } how can i transform it into php to select from the database all the data from the zone section. In my php file I have this code line : $r = $estate->db->query($q);if ($rw = $r -> fetchRow()) { $tot = $rw['tot'];}$smarty->assign("total_estates",$tot); Please help
  7. I have a problem with the comment area on my blog there is not date and time shown for the comment.It looks like this:Razvan %A, %e %B %Y at %H:%M Reply Can you advice?Where I have to look for this info: in the comment.php or other place?
  8. Ok,I'm using Wordpress, and I can't say that I'm such an expert. I really do not know where to search for it.Also I would like to add title and alternative text for share socials in the panel. I have found this codeline:__('FACEBOOK', 'gdl_back_office')=>array('type'=>'radioenabled','name'=>THEME_SHORT_NAME.'_facebook_share', 'description'=>'Toggle to enable/disable the facebook shares in blog and portfolio page.'),It's ok to add 'alt'=>'text', 'title'=>'text'? or I have to search another file?
  9. Hy, I got the next codeline __('EMAIL', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_email', 'description'=>'Place the link you want and email icon will appear. To remove it, just leave it blank.'), I checked in all php files and I could not find any other info regarding email
  10. I have some trouble with my email icon on the header, when I click it doesn't redirect to send an email, it just opens a new tab with the website.I found in the header the next codeline:'email' => array('name'=>THEME_SHORT_NAME.'_email', 'url'=> GOODLAYERS_PATH.'/images/icon/' . $gdl_icon_type . '/social/email.png'),What I have to change?Thank you
  11. I have some trouble with my email icon on the header, when I click it doesn't redirect to send an email, it just opens a new tab with the website.I found in the header the next codeline:'email' => array('name'=>THEME_SHORT_NAME.'_email', 'url'=> GOODLAYERS_PATH.'/images/icon/' . $gdl_icon_type . '/social/email.png'),What I have to change?Thank you
×
×
  • Create New...