Jump to content

sinisa

Members
  • Posts

    12
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

sinisa's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, Could someone help me please??? I am not shore if my post belongs here but I do not know where ells to look for help. I do not have much experience with this I am working in flash and I have action script problem with loading my slide show from my XML file. My XML file is named ticker.xml  and it is located in the root directory , And when I test movie I get this error: (If anyone is willing to help my i can email you my .fla file? Please ? ERROR [quote]**Error** Symbol=Symbol 38, layer=Layer 1, frame=1:Line 2: Statement must appear within on/onClipEvent handler     { Total ActionScript Errors: 1    Reported Errors: 1[/quote] My Script is [quote]//Component construct() {     c_xmlName = "ticker.xml";     c_fileType = "xml";     c_targetIsURL = false;     c_targetName = "ticker";     c_effect = "wipePushUp";     c_scrollSpeed = 1;     c_pauseTime = 2;     c_pauseOver = false;     c_handCursor = true;     c_random = false;     c_border = false;     c_borderColor = 0;     c_bufferL = 0;     c_bufferR = 0;     c_bufferT = 0;     c_visited = true;     c_visitedColor = 13421772;     c_embedFonts = true;     c_textWidth = 0;     c_textAlign = "left";     c_lineSpacing = 0;     c_imagePos = "left";     c_imageVertical = "bottom";     c_imageSpacer = 6;     c_fontDefault = "FFF Corporate";     c_fontDefaultSize = 8;     c_fontDefaultColor = 6710886;     c_background = false;     c_bgColor = 16777215;     c_fontRolloverChange = true;     c_fontRolloverColor = 0;     c_backgroundR = false;     c_bgColorR = 15658734; } [/quote]
  2. Hi, Could someone help me please??? I am not shore if my post belongs here but I do not know where ells to look for help. I do not have much experience with this I am working in flash and I have action script problem with loading my slide show from my XML file. My XML file is named ticker.xml  and it is located in the root directory , And when I test movie I get this error: (If anyone is willing to help my i can email you my .fla file? Please ? [quote]**Error** Symbol=Symbol 38, layer=Layer 1, frame=1:Line 2: Statement must appear within on/onClipEvent handler      { Total ActionScript Errors: 1 Reported Errors: 1[/quote] [font=Verdana]My action script is[/font] [quote]//Component construct() {     c_xmlName = "ticker.xml";     c_fileType = "xml";     c_targetIsURL = false;     c_targetName = "ticker";     c_effect = "wipePushUp";     c_scrollSpeed = 1;     c_pauseTime = 2;     c_pauseOver = false;     c_handCursor = true;     c_random = false;     c_border = false;     c_borderColor = 0;     c_bufferL = 0;     c_bufferR = 0;     c_bufferT = 0;     c_visited = true;     c_visitedColor = 13421772;     c_embedFonts = true;     c_textWidth = 0;     c_textAlign = "left";     c_lineSpacing = 0;     c_imagePos = "left";     c_imageVertical = "bottom";     c_imageSpacer = 6;     c_fontDefault = "FFF Corporate";     c_fontDefaultSize = 8;     c_fontDefaultColor = 6710886;     c_background = false;     c_bgColor = 16777215;     c_fontRolloverChange = true;     c_fontRolloverColor = 0;     c_backgroundR = false;     c_bgColorR = 15658734; } [/quote]
  3. Or do i need to send the script of some other page??? ???
  4. Hi I do not have much experience in php but I think this can be done? I would like to swap the dutch auction type for buy now option and when someone select buy now option I need that auction to be closed so no more bids can be possible on that auction Here is the bid.php  Can anyone help pleaseeeeeeee???? [code]<?php         include("./includes/config.inc.php");         include("./includes/messages.inc.php");         include("./includes/auction_types.inc.php");         include("./includes/autobid.inc.php");         /* first check if valid auction ID passed */         $result = mysql_query("SELECT * FROM PHPAUCTION_auctions WHERE id='$id'");                 // SQL error         if (!$result)         {                 include("header.php"); $TPL_errmsg = $ERR_001;               include("templates/template_bid_php.html");                 include("footer.php");                 exit;         }         $n = mysql_num_rows($result);                 // such auction does not exist         if ($n==0)         {                 include("header.php"); $TPL_errmsg = $ERR_606;               include("templates/template_bid_php.html");                 include("footer.php");                 exit;         } // extract info about this auction into an hash $Data = mysql_fetch_array($result); $auctiondate = $Data[starts]; $auctionends = $Data[ends]; $item_title = $Data["title"]; $increment= $Data[increment]; $item_description = $Data["description"]; $aquantity = $Data[quantity]; $minimum_bid=$Data[minimum_bid]; $current_bid=$Data[current_bid]; // check if auction isn't closed $AuctionIsClosed = false; $closed = intval($Data["closed"]); $c = $Data["ends"]; if ( mktime(substr($c,11,2), substr($c,14,2), substr($c,17,2), substr($c,5,2), substr($c,8,2), substr($c,0,4) ) <= time() ) $AuctionIsClosed = true; if ( ($closed==1) || ($AuctionIsClosed) ) { include("header.php"); $TPL_errmsg = $ERR_614; include("templates/template_bid_php.html"); include("footer.php"); exit; } // fetch info about seller $result = mysql_query("SELECT * FROM PHPAUCTION_users WHERE id='".$Data["user"]."'"); $n = 0; if ($result) $n = mysql_num_rows($result); if ($n>0) $Seller = mysql_fetch_array($result); else $Seller = array(); $atype = intval($Data[auction_type]); // calculate: increment and mimimum bid value // determine max bid for this auction $query = "SELECT MAX(bid) AS maxbid FROM PHPAUCTION_bids WHERE auction='$id' GROUP BY auction"; $result_bids = mysql_query ( $query) ; if ( !$result_bids ) { print $MSG_001;   exit; } if ( mysql_num_rows($result_bids ) > 0) {   $high_bid      = mysql_result ( $result_bids, 0, "maxbid" );   } /* Get bid increment for current bis and calculate minimum bid */ $customincrement=$Data[increment]; $minimum_bid=$Data[minimum_bid]; $query = "SELECT increment FROM PHPAUCTION_increments WHERE". "((low<=$high_bid AND high>=$high_bid) OR". "(low<$high_bid AND high<$high_bid)) ORDER BY increment DESC"; $result_incr = mysql_query  ( $query ); if($result_incr != 0) { $increment  = mysql_result ( $result_incr, 0, "increment" );     }         if($atype == 2) { $increment = 0; }     if($customincrement > 0)     {         $increment  = $customincrement;     } if ($high_bid == 0 || $atype ==2) { $next_bid = $minimum_bid; } else { $next_bid = $high_bid + $increment; }         /*      else: such auction does exist.                 if called from item.php - then transfer passed data                 if called - check data/username/password and then execute autobid         */         unset($display_bid_form);         if (empty($action) )         {                 // no "action" specified                 $display_bid_form = true;         }         else         { // an action specified: check for data and perform corresponding actions unset($ERR); $bid = input_money($bid); // check if bid value is OK if($bid < $next_bid) { $ERR = "607"; } // check if number of items is OK if ( ($atype==2) && (!isset($ERR)) ) { if ( (intval($qty)==0) || (intval($qty)>intval($Data["quantity"])) ) { $ERR = "608"; } } // check if nickname and password entered if ( !isset($ERR) ) { if ( strlen($nick)==0 || strlen($password)==0 ) $ERR = "610"; } // check if nick is valid if ( !isset($ERR) ) { $query = "SELECT * FROM PHPAUCTION_users WHERE nick='".addslashes($nick)."'"; $result = mysql_query($query); $n = 0; if ($result) $n = mysql_num_rows($result); else $ERR = "001"; if ( !isset($ERR) ) { if ($n==0) $ERR = "609"; } if($n > 0) $bidder_id = mysql_result($result,0,"id"); } // check if password is correct if ( !isset($ERR) ) { $pwd = mysql_result($result,0,"password"); if ($pwd != md5($MD5_PREFIX.$password)) { $ERR = "611"; } else { if(mysql_result($result,0,"suspended") > 0) { $ERR = "618"; } } } // Check if Auction is suspended if ( !isset($ERR) ) { $query2 = "SELECT suspended FROM PHPAUCTION_auctions WHERE id='$id'"; $result2 = mysql_query($query2); if (mysql_result($result2, 0, "suspended") > 0) { $ERR = "619"; } } #// ------------------------------------------------------------ #// ADDED BY GIANLUCA Jan. 9, 2002 #// ------------------------------------------------------------ #// If dutch auction, check if the bidding user already #// placed a bid and, if yes, the current bid cannot be minor #// than the previous placed bid. if($Data[auction_type] == 2) { #// $CURRENT = $bid * $qty; #// Search for bids of this user $query = "SELECT * from PHPAUCTION_bids WHERE bidder='$bidder_id' and auction='$id'"; $res_ = @mysql_query($query); if($res_ && mysql_num_rows($res_) > 0) { while($BID = mysql_fetch_array($res_)) { if($CURRENT < ($BID[quantity] * $BID[bid])) { $ERR = "059"; } } } } #// ------------------------------------------------------------ #// >>>>>>ENDS - ADDED BY GIANLUCA Jan. 9, 2002<<<<<<<< #// ------------------------------------------------------------ // check if bidder is not the seller if ( !isset($ERR) ) { $bidderID = mysql_result($result,0,"id"); if ( $bidderID == $Seller["id"] ) $ERR = "612"; } // check if this user isn't winning now if ( !isset($ERR) ) { $result = mysql_query("SELECT * FROM PHPAUCTION_bids WHERE auction='$id' ORDER BY bid DESC"); $auctionBIDS = $result; $n = 0; if ($result) { $n = mysql_num_rows($result); if ($n>0  && $atype!=2) { $bidder = mysql_result($result,0,"bidder"); if ($bidder == $bidderID) $ERR = "613"; }           } else $ERR = "001"; } // perform final actions if ( isset($ERR) ) { $display_bid_form = true; $TPL_errmsg = ${"ERR_".$ERR}; } else { unset($ERR); $send_email = 0; // Send e-mail to the old winner if necessary // Check if there's a previous winner and get his/her data $query = "select bidder,bid from PHPAUCTION_bids where auction=\"$id\" order by bid desc"; $result = mysql_query($query); if(!$query) { print $ERR_001."<BR>$query<BR>".mysql_error(); exit; } if(mysql_num_rows($result) > 0) { if($atype == 2){ $send_email= 0; } else $send_email = 1; $OldWinner_id = mysql_result($result,0,"bidder"); $OldWinner_bid = mysql_result($result,0,"bid"); $OldWinner_bid = print_money($OldWinner_bid); $query = "select * from PHPAUCTION_users where id=\"$OldWinner_id\""; $result_old_winner = mysql_query($query); if(!$result_old_winner){ print $ERR_001."<BR>$query<BR>".mysql_error(); exit; } $OldWinner_nick = mysql_result($result_old_winner,0,"nick"); $OldWinner_name = mysql_result($result_old_winner,0,"name"); $OldWinner_email = mysql_result($result_old_winner,0,"email"); } // Update auctions table with the new bid $bid = doubleval($bid); $query = "update PHPAUCTION_auctions set current_bid=$bid,starts='$auctiondate',ends='$auctionends' where id=\"$id\""; //$query = "update auctions set current_bid=$bid where id=\"$id\""; if(!mysql_query($query)){ print $ERR_001."<BR>$query<BR>".mysql_error(); exit; } // Update bids table with the new bid $query = "insert into PHPAUCTION_bids values(\"$id\",\"$bidder_id\",$bid,NULL,".intval($qty).")"; if(!mysql_query($query)){ print $ERR_001."<BR>$query<BR>".mysql_error(); exit; } if($send_email){         $year    = substr($auctionends,0,4);         $month  = substr($auctionends,5,2);         $day    = substr($auctionends,8,2);         $hours  = substr($auctionends,11,2);         $minutes = substr($auctionends,14,2);         $ends_string  = $month . " " . $day . " " . $year . "  " . $hours . ":" . $minutes; $new_bid = print_money($bid);         //-- Send e-mail message           include('./includes/no_longer_winner.inc.php'); } // 3) perform output if ( isset($ERR) ) { $ERR = ${"ERR_".$ERR}; include "header.php"; print "<CENTER> $std_font $ERR </CENTER>"; print mysql_error(); include "footer.php"; exit; } else { $TPL_id = $id; include "header.php"; include "templates/template_bid_result_php.html"; include "footer.php"; exit; } }         }         if($display_bid_form)         {                 // prepare some data for displaying in the form                 $nickH = htmlspecialchars($nick);                 $bidH = htmlspecialchars($bid);                 $qtyH = htmlspecialchars($qty);                 $TPL_title = htmlspecialchars($Data[title]);                 $TPL_next_bid = print_money($next_bid); $TPL_proposed_bid = print_money($bid);      $TPL_cancel_bid_link = "<A HREF=item.php?>$MSG_332</A>";                                  // output the form                 include("header.php");                 include("templates/template_bid_php.html");                 include("footer.php");                 exit;         } [/code]
  5. [quote author=sinisa link=topic=111481.msg452185#msg452185 date=1160937474] [quote author=dymon link=topic=111481.msg452163#msg452163 date=1160933916] Hi, you could use JavaScript for this: [code]<a href="#" onClick="location.href='http://www.ebajba.com/phonauct/item.php?id=dbc3cf805a08599972f031e6a7f21a95'">The item you need</a>[/code] try to use this and write the results. [/quote] Hi I can not insert this script anywhere as the title of the auction or (The item you need) and its hyperlink is created automatically when user creates new auction and this link appears on many pages when users browse the site, I need something like htaccess that will work for redirection of that link no meter from which page users click on this link Thank you [/quote] ANY IDEAS PLEASEEEEEE? :'(
  6. [quote author=dymon link=topic=111481.msg452163#msg452163 date=1160933916] Hi, you could use JavaScript for this: [code]<a href="#" onClick="location.href='http://www.ebajba.com/phonauct/item.php?id=dbc3cf805a08599972f031e6a7f21a95'">The item you need</a>[/code] try to use this and write the results. [/quote] Hi I can not insert this script anywhere as the title of the auction or (The item you need) and its hyperlink is created automatically when user creates new auction and this link appears on many pages when users browse the site, I need something like htaccess that will work for redirection of that link no meter from which page users click on this link Thank you
  7. [quote author=dymon link=topic=111481.msg452042#msg452042 date=1160894731] I am a bit confused on what you want to do. Try to explain with more details and some examples, because I don't understand where you want this redirection. Try the code I wrote you in a blank page and see how it works and if it can help you. Regards    Dymon [/quote] Hi, it is bit confusing but here I will try to explain I have auction web site www.ebajba.com  but also I have created new directory www.ebajba.com/phonauct  Now both of those sites have the same users, files, settings, itc… as the second site is just a copy of the first one and both sites are based on one DB directory. Now in second site I have created some modifications in the template_item_php.html file so when users try to bet on item they will have to pay for it as on the first one this function is for free. But none of these users do not know that second page exists. The thing that I want to do is that on some auctions on my first site I can set redirection so when user clicks on some item auction so that he can see its description I would like to redirect him to that the same item but on second page so if he wants to place bet on it he would first have to pay. So my problem is how to set up redirection of some item description page to its description on second site. I did try htacces file but it is not functioning for some reason My htaccess file is: RewriteEngine on Redirect item.php?id=dbc3cf805a08599972f031e6a7f21a95 http://www.ebajba.com/phonauct/item.php?id=dbc3cf805a08599972f031e6a7f21a95 Regards Sinisa
  8. [quote author=dymon link=topic=111481.msg451838#msg451838 date=1160830161] Did I understand ritght, you want this redirection from the PHP file or from somewhere else? If from the file than provide the code for the first url (http://ebajba.com/item.php?id=61d1e471ff8cf866a17a188ef5293a23), and indicate where the redirection should be. Or you want just a simple redirection, like if someone enters here url (http://ebajba.com/item.php?id=61d1e471ff8cf866a17a188ef5293a23), automaticaly to be redirected here  url(http://www.ebajba.com/phonauct/item.php?id=61d1e471ff8cf866a17a188ef5293a23)? If so just live the page item.php empty, just write in it: header ("LOCATION: NEWDIRECTORI/item.php?id={$_GET['id']}"); And this should work. [/quote] I need that simple redirection but I can not live it empty, as there is only one item.php file and the id?=12345 (I get once I create new auction) Please note that is one item that is listed in two different directories but it comes from one DB but difference between those directories is in (template_item_php.html file) as on firestone users can bet on item for free but on second one it is not for free
  9. [quote author=dymon link=topic=111481.msg451836#msg451836 date=1160829330] You should use this before any printing functions like: print, echo. Otherwise you willl get an error saying that the headers allready sent. You could provide a piece of code where you want this redirection [/quote] Hi thanks for the reply s The real url of the page is http://ebajba.com/item.php?id=61d1e471ff8cf866a17a188ef5293a23 but I need this page redirected to http://www.ebajba.com/phonauct/item.php?id=61d1e471ff8cf866a17a188ef5293a23 Which page would you like me to send the code from? Thanks
  10. [quote author=dymon link=topic=111481.msg451831#msg451831 date=1160828018] You can try to use a redirection like this: header ("LOCATION: NEWDIRECTORI/item.php?id=12345"); If I remember right you can not use a full URL(www.mydomain/NEWDIRECTORI/item.php?id=12345), in security reason. [/quote] Where do I insert this in what page? Thanks
  11. Hi I have auction script that I am working on, and I need some help with redirection. I would like to redirect page like www.mydomain.com/item.php?id=12345 to www.mydomain/NEWDIRECTORI/item.php?id=12345 (Note that item.php?id=12345 is a some item that has been listed on that auction) I did try to use .access file but I can not get it to work on individual item redirection it only works to redirect item.php and than redirects all items listed on auction to new directory not just one item that I want to redirect. Thanks sinisaarijana@blic.net
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.