alexviii
Members-
Content Count
71 -
Joined
-
Last visited
Everything posted by alexviii
-
Hi, I'm a Web designer since few years, I have experience as freelance working with photoshop, Flash, html-php-asp-asp.net-css. I have now decide to open a new section in my web site. I invite you all to enter and start posting in the new WEB DESIGN FORUM at Flash Design Factory! You are all invited!! 10x
-
hi everyone, I'm creating a logo, I have a world in the back and something else on the top. In the middle I have to create an line of flags that move (or also statics) around the world, under the rest of the logo. My problem is: 1. how do I give the 3D effect, like the line is a circle around the world? 2. How do I move them so that it looks like they move around the world. Any suggestion are apreciated. 10x bye
-
Aquinas was not talking about a being that was the first, or the begeinning. He use that expretion: first efficient cause. so we are not talking about material or something. we talk about a cause, not same object (concrete or abstract) and the "cause" is not even in the time (as absolutly first - if future have no end that past had no end, so there should not be a begeinnig. so when we say first is not in the sens of time-). so actualy the word "cause" is refering to "some" (not something) that is the first "cause": and here the "cause" have the menning of reason: the first reason. that some that caused life to be. in any case you are right: the theory that God "is", is just plausible. Try to ask to any beliving people, where he saw God. A real one whould answer "in my life". don't think about God as a superior being that live some where in the univers and just created us. Think about that "some" that is causing you to be. PS: always conider that it is not material (ex: money is not God)
-
Absolutly no way! The best e-mail service is for sure Gmail. Mainly for few reason: 1. It is faster. the page it self is a script that refresh and not differnts pages. for some reason this is making everything faster and clear. 2. no folder. for some one maybe it is better to have them but I think that is just an issue of getting used to. How many time I spent to think in wich folder to put a specific message, and how long time to find it after... with gmail no need I'm archiving all e-mail toogether, and to find it I simply use the search.. 3. the search. I think is the first one that have a serch engine for the e-mails. this is a very good way to find out an e-mail, specialy when I don't remember from whom or when the email have been sent but simply the main topic or even a part of it. for example I know that a frind of mine, sent me long time ago an emil, and into this was explainig me how to cook chiken. perfect it is sufficient to search for chiken.... and I find it! 4. Attachment, that are "attached" very fast and don't cause the gmail to spent few hours to send the email. Even more, if it s a big attachment, and the e-mail will take ex 7 min to be sent, then I don't have to wait it, I can continue to navigate into the inbox and other folders and gmail will send the e-mail anyway... FInaly I found that these are the main reasons, but there are a lot of... like the chat, the notifier and much more. 10x bye
-
hi eveyons, I need to include in my site a list of like 5 or 6 top new from goggle or from yahoo or what ever... How do I do that I saw from other site that they use rss. For me is the first time: never used rss. What do I have to insert in my page? From what I understud it's like a scriptor samethink like that that create these links. but really I don't find, I'm jusk confused a lot. I some one can help me I will really apreciate it. 10x bye
-
Hi everyones, I going to bang my head because I have been trying to show SqlServer 2000 data in (Flash Mx Professional 2004) DataGrid I am working with ASP.NET but I am still unable to show data in datagrid can anyone help me.. here is my files ----------------------------------------------------------------------------------------------------- product.aspx ----------------------------------------------------------------------------------------------------- <%@ Page Language="vb" AutoEventWireup="false" Codebehind="product.aspx.vb" Inherits="flashremoting.product"%> <%@ Register TagPrefix="Macromedia" Namespace="FlashGateway" Assembly="flashgateway" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <title>product</title> <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"> <meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE"> <meta content="JavaScript" name="vs_defaultClientScript"> <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema"> </HEAD> <body MS_POSITIONING="GridLayout"> <form id="Form1" method="post" runat="server"> <Macromedia:Flash ID="flash" runat="server"></Macromedia:Flash> </form> </body> </HTML>----------------------------------------------------------------------------------------------------- product.aspx page END ----------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------- product.aspx.vb ----------------------------------------------------------------------------------------------------- Public Class product Inherits System.Web.UI.Page Dim Proobj As New result_product Dim dsobj As DataSet Protected WithEvents filUpload As System.Web.UI.HtmlControls.HtmlInputFile Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load flash.DataSource = Proobj.proResult flash.DataBind() End Sub End Class----------------------------------------------------------------------------------------------------- product.aspx.vb page END ----------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------- reuslt_product.vb ----------------------------------------------------------------------------------------------------- Imports System.Data.SqlClient Public Class result_product Dim con As SqlConnection Dim adpt As SqlDataAdapter Dim ds As DataSet Dim dt As DataTable Function proResult() As DataSet con = New SqlClient.SqlConnection con.ConnectionString = "data source=WIN-SHAHZEB;initial catalog=Remoting; User id=sa;Password=sa" adpt = New SqlClient.SqlDataAdapter("Select * from Product", con) ds = New DataSet adpt.Fill(ds, "Product") Return ds End Function End Class----------------------------------------------------------------------------------------------------- reuslt_product.vb END ----------------------------------------------------------------------------------------------------- FLASH FILE import mx.remoting.Connection; import mx.remoting.NetServices; import mx.remoting.debug.NetDebug; import mx.remoting.DataGlue; if (inited == null) { inited = true; NetServices.setDefaultGatewayUrl("http://localhost/Integrate_Flash_with_DOTNET/Practice/flashremoting/gateway.aspx"); gatewayconnection = NetServices.createGatewayConnection(); folName = "Integrate_Flash_with_DOTNET.Practice.flashremoting.myfile"; flashService = gatewayconnection.getService(folName, this); } var col = new FGridColumn( "delete" ); col.setEditable( false ); col.setHeader( "" ); col.setCellSymbol( "DeleteRecord" ); grid.addColumn( col ); col = new FGridColumn( "contact_id" ); col.setEditable( false ); col.setHeader( "User ID" ); col.setSortFunction ( function (a,b){return a.contact_id-b.contact_id;} ); grid.addColumn(col); col = new FGridColumn("first_name" ); col.setHeader( "First Name" ); grid.addColumn( col ); col = new FGridColumn( "last_name" ); col.setHeader( "Last Name" ); grid.addColumn( col ); col = new FGridColumn( "middle_name" ); col.setHeader( "Middle Name" ); grid.addColumn( col ); col = new FGridColumn( "email" ); col.setHeader( "Email" ); grid.addColumn( col ); col = new FGridColumn( "phone" ); col.setHeader( "Phone" ); grid.addColumn( col ); grid.spaceColumnsEqually(); grid.getColumnAt( 0 ).setWidth( 20 ); grid.setEditable( true ); grid.showGridLines( true ); grid.showBorder( true ); grid.alternateRowColors( 0xFFFFFF, 0xEEEEEE ); grid.setSortableColumns( true ); function blankRecord() { return { contact_id:"[Add Record]", first_name:"", last_name:"", middle_name:"", email:"", phone:"" }; } MAX_ROWS = 15; function constrainGridSize () { _root.grid.setRowCount( _root.grid.getLength() < _root.MAX_ROWS ? _root.grid.getLength() : _root.MAX_ROWS ); } product(); function product() { flashService.product(); } function product_Result (result_rs) { grid.dataProvider(result_rs); // DataGlue.bindFormatStrings(result_grd,result_rs,"asdgds","asd"); } function product_Status (error) { resulttxt.text = "you got an error" + error.description; } stop(); Anyone have courage to solve this dilemma. 10x bye
-
I'm having trouble with an assignment for my data structures class. I have to simulate a card player getting a a pile of 52 cards (a full deck). I need to print the cards so that they are printed on 4 lines (1 line for each suit) 13 cards to a line. (I.E. AC (Ace of clubs) KC QC etc.) The first two files where provided in class: Code: /** @file Card.h * */class Card{ private: char rank; char suit; public: void printMe(); void setRank(char); void setSuit(char); char getRank(); char getSuit(); int getBridgeValue();}; Code: /** @file Card.cpp * */#include "Card.h"#include <iostream>using namespace std;void Card::printMe(){ cout << getRank() << getSuit();}void Card::setRank(char whatrank){ rank = whatrank; }void Card::setSuit(char whatsuit){ suit = whatsuit;}char Card::getRank(){ return rank;}char Card::getSuit(){ return suit;} We must code ourselves at least a Pile.h, Pile.cpp Hand.h, Hand.cpp, pr1.cpp, and build.sh I have attempted to code the some of the Pile.h and Pile.cpp ising the required Array-Based Implentation of the ADT List. Here is my Pile.h file Code: /** @ Pile.h * *///#include "Card.h"const int MAX_LIST = 52;typedef Card ListItemtype; // List item data type//ListItemType items[MAX_LIST]; //Array of list items */Card items[MAX_LIST]; //array of cards int size; // LOGICAL length of the listclass Pile{ private: Card items[MAX_LIST]; public: Pile(); // void createDeck();/* void orderCards(); void dealCard(); void randomize(); void printMe();*/}; I keep getting syntax errors on the typedef statement and the "Card items[MAX_LIST]; " Please help? P.S. If I seem inept I haven't coded in C++ in a year so while I know all the very basic things I've forgotten a lot too.
-
I kindly suggest to create a new forum called "ActionScript" under the category Home->Computers->computers languages->ActionScript.And then maybe also "ActionScript 2.0" and "ActionScript 3.0" as subforum.
-
hi everyone, I'm creating a flash movie with the objective of arrange fotos. Almost as a slider show. This .exe file will be inserted in a CD with all the photos. Now every photo in a specified album, have o figure in the bottom and only the one selected in he center, bigger. In order to do that I tried to create, with an XML file (where photos are listed) and a for statment, a mc that contain: a Loader an a transparent button. The button is needed to make the photo selectable. and in the loader the photo it self. I have so the following Actionscript: function assignsmall(){function loadXML(loaded) {if (loaded) {var xnRootNode:XMLNode = this;nTotalButtons = xnRootNode.firstChild.childNodes.length; for (var i = 0; i<nTotalButtons; i++) { var path= xnRootNode.firstChild.childNodes[i].attributes.jpegURL; var numero= xnRootNode.firstChild.childNodes[i].attributes.num; var imgname= xnRootNode.firstChild.childNodes[i].attributes.imgname; var position= 120*i +240; loader= "load"+i; button= "btn"+i; trace (i+". "+path+" - "+numero+" - "+imgname+" - "+position+" - "+loader); loader.contentPath= path; } }}var xmlData:XML = new XML();xmlData.ignoreWhite = true;xmlData.load("slides.xml");xmlData.onLoad = loadXML;} I have here a problem: When I says loader.contentPath= path; the Actionscript will look for an mc called "button". But what I need is that it refere to the string: loader= "load"+i; because there will be more mc called btn1, btn2, btn3, etc.. How do I do? I tried also with setPropriety() but also with this the sintax is nameofmc.setPropriety(). If someone knows how to do that please contact is urgent.. PS: if I wrote the topic in the wrong forum, I m sorry: I didn't find any forum about flash.. 10x, bye.
-
Actuy guy, I pewrsonaly think that as we hve no right to give to our self and to other "more life", we also have no right to give to or self or to other "less life". I mean to give n take life. Secondly, even if every man if free to do what ever he want, at list this sould not be legal. When I'm in my car, the law says that I have to put the belt and this is in order to protect me. So the law, and the state, have to protect every man from dying, and this shoul include suicide by logic. In the same time, If I kll and so I act gainst the law, I need to be punished. In case o suicide, I can't be punished. In this case, the law it is a way to set me a sin with no waqy to redict my self. 10x bye
-
hi everyone! I'm looking a way to have some kind of tabs in my home page. I kook around in the web and what I fount out is not exactly what I need. My page is in php but the script for tabs I want it in JavaScript (no way to do it in php). Here is the code I found out: http://forums.xisto.com/no_longer_exists/ ( this is in italian...) so this is the page: <div class="tabber"><div class="tabbertab"><h2>Tab 1</h2><p>Lorem ipsum dolor sit amet...</p></div><div class="tabbertab"><h2>Tab 2</h2><p>Duis justo lectus...</p></div><div class="tabbertab"><h2>Tab 3</h2><p>Aliquam porta. Cras dui est...</p></div></div> and this is the code (in an external js): function tabberObj(argsObj){ var arg; /* name of an argument to override */ /* Element for the main tabber div. If you supply this in argsObj, then the init() method will be called. */ this.div = null; /* Class of the main tabber div */ this.classMain = "tabber"; /* Rename classMain to classMainLive after tabifying (so a different style can be applied) */ this.classMainLive = "tabberlive"; /* Class of each DIV that contains a tab */ this.classTab = "tabbertab"; /* Class to indicate which tab should be active on startup */ this.classTabDefault = "tabbertabdefault"; /* Class for the navigation UL */ this.classNav = "tabbernav"; /* When a tab is to be hidden, instead of setting display='none', we set the class of the div to classTabHide. In your screen stylesheet you should set classTabHide to display:none. In your print stylesheet you should set display:block to ensure that all the information is printed. */ this.classTabHide = "tabbertabhide"; /* Class to set the navigation LI when the tab is active, so you can use a different style on the active tab. */ this.classNavActive = "tabberactive"; /* Elements that might contain the title for the tab, only used if a title is not specified in the TITLE attribute of DIV classTab. */ this.titleElements = ['h2','h3','h4','h5','h6']; /* Should we strip out the HTML from the innerHTML of the title elements? This should usually be true. */ this.titleElementsStripHTML = true; /* If the user specified the tab names using a TITLE attribute on the DIV, then the browser will display a tooltip whenever the mouse is over the DIV. To prevent this tooltip, we can remove the TITLE attribute after getting the tab name. */ this.removeTitle = true; /* If you want to add an id to each link set this to true */ this.addLinkId = false; /* If addIds==true, then you can set a format for the ids. <tabberid> will be replaced with the id of the main tabber div. <tabnumberzero> will be replaced with the tab number (tab numbers starting at zero) <tabnumberone> will be replaced with the tab number (tab numbers starting at one) <tabtitle> will be replaced by the tab title (with all non-alphanumeric characters removed) */ this.linkIdFormat = '<tabberid>nav<tabnumberone>'; /* You can override the defaults listed above by passing in an object: var mytab = new tabber({property:value,property:value}); */ for (arg in argsObj) { this[arg] = argsObj[arg]; } /* Create regular expressions for the class names; Note: if you change the class names after a new object is created you must also change these regular expressions. */ this.REclassMain = new RegExp('\\b' + this.classMain + '\\b', 'gi'); this.REclassMainLive = new RegExp('\\b' + this.classMainLive + '\\b', 'gi'); this.REclassTab = new RegExp('\\b' + this.classTab + '\\b', 'gi'); this.REclassTabDefault = new RegExp('\\b' + this.classTabDefault + '\\b', 'gi'); this.REclassTabHide = new RegExp('\\b' + this.classTabHide + '\\b', 'gi'); /* Array of objects holding info about each tab */ this.tabs = new Array(); /* If the main tabber div was specified, call init() now */ if (this.div) { this.init(this.div); /* We don't need the main div anymore, and to prevent a memory leak in IE, we must remove the circular reference between the div and the tabber object. */ this.div = null; }}/*-------------------------------------------------- Methods for tabberObj --------------------------------------------------*/tabberObj.prototype.init = function(e){ /* Set up the tabber interface. e = element (the main containing div) Example: init(document.getElementById('mytabberdiv')) */ var childNodes, /* child nodes of the tabber div */ i, i2, /* loop indices */ t, /* object to store info about a single tab */ defaultTab=0, /* which tab to select by default */ DOM_ul, /* tabbernav list */ DOM_li, /* tabbernav list item */ DOM_a, /* tabbernav link */ aId, /* A unique id for DOM_a */ headingElement; /* searching for text to use in the tab */ /* Verify that the browser supports DOM scripting */ if (!document.getElementsByTagName) { return false; } /* If the main DIV has an ID then save it. */ if (e.id) { this.id = e.id; } /* Clear the tabs array (but it should normally be empty) */ this.tabs.length = 0; /* Loop through an array of all the child nodes within our tabber element. */ childNodes = e.childNodes; for(i=0; i < childNodes.length; i++) { /* Find the nodes where class="tabbertab" */ if(childNodes[i].className && childNodes[i].className.match(this.REclassTab)) { /* Create a new object to save info about this tab */ t = new Object(); /* Save a pointer to the div for this tab */ t.div = childNodes[i]; /* Add the new object to the array of tabs */ this.tabs[this.tabs.length] = t; /* If the class name contains classTabDefault, then select this tab by default. */ if (childNodes[i].className.match(this.REclassTabDefault)) { defaultTab = this.tabs.length-1; } } } /* Create a new UL list to hold the tab headings */ DOM_ul = document.createElement("ul"); DOM_ul.className = this.classNav; /* Loop through each tab we found */ for (i=0; i < this.tabs.length; i++) { t = this.tabs[i]; /* Get the label to use for this tab: From the title attribute on the DIV, Or from one of the this.titleElements[] elements, Or use an automatically generated number. */ t.headingText = t.div.title; /* Remove the title attribute to prevent a tooltip from appearing */ if (this.removeTitle) { t.div.title = ''; } if (!t.headingText) { /* Title was not defined in the title of the DIV, So try to get the title from an element within the DIV. Go through the list of elements in this.titleElements (typically heading elements ['h2','h3','h4']) */ for (i2=0; i2<this.titleElements.length; i2++) { headingElement = t.div.getElementsByTagName(this.titleElements[i2])[0]; if (headingElement) { t.headingText = headingElement.innerHTML; if (this.titleElementsStripHTML) { t.headingText.replace(/<br>/gi," "); t.headingText = t.headingText.replace(/<[^>]+>/g,""); } break; } } } if (!t.headingText) { /* Title was not found (or is blank) so automatically generate a number for the tab. */ t.headingText = i + 1; } /* Create a list element for the tab */ DOM_li = document.createElement("li"); /* Save a reference to this list item so we can later change it to the "active" class */ t.li = DOM_li; /* Create a link to activate the tab */ DOM_a = document.createElement("a"); DOM_a.appendChild(document.createTextNode(t.headingText)); DOM_a.href = "java script:void(null);"; DOM_a.title = t.headingText; DOM_a.onclick = this.navClick; /* Add some properties to the link so we can identify which tab was clicked. Later the navClick method will need this. */ DOM_a.tabber = this; DOM_a.tabberIndex = i; /* Do we need to add an id to DOM_a? */ if (this.addLinkId && this.linkIdFormat) { /* Determine the id name */ aId = this.linkIdFormat; aId = aId.replace(/<tabberid>/gi, this.id); aId = aId.replace(/<tabnumberzero>/gi, i); aId = aId.replace(/<tabnumberone>/gi, i+1); aId = aId.replace(/<tabtitle>/gi, t.headingText.replace(/[^a-zA-Z0-9\-]/gi, '')); DOM_a.id = aId; } /* Add the link to the list element */ DOM_li.appendChild(DOM_a); /* Add the list element to the list */ DOM_ul.appendChild(DOM_li); } /* Add the UL list to the beginning of the tabber div */ e.insertBefore(DOM_ul, e.firstChild); /* Make the tabber div "live" so different CSS can be applied */ e.className = e.className.replace(this.REclassMain, this.classMainLive); /* Activate the default tab, and do not call the onclick handler */ this.tabShow(defaultTab); /* If the user specified an onLoad function, call it now. */ if (typeof this.onLoad == 'function') { this.onLoad({tabber:this}); } return this;};tabberObj.prototype.navClick = function(event){ /* This method should only be called by the onClick event of an <A> element, in which case we will determine which tab was clicked by examining a property that we previously attached to the <A> element. Since this was triggered from an onClick event, the variable "this" refers to the <A> element that triggered the onClick event (and not to the tabberObj). When tabberObj was initialized, we added some extra properties to the <A> element, for the purpose of retrieving them now. Get the tabberObj object, plus the tab number that was clicked. */ var rVal, /* Return value from the user onclick function */ a, /* element that triggered the onclick event */ self, /* the tabber object */ tabberIndex, /* index of the tab that triggered the event */ onClickArgs; /* args to send the onclick function */ a = this; if (!a.tabber) { return false; } self = a.tabber; tabberIndex = a.tabberIndex; /* Remove focus from the link because it looks ugly. I don't know if this is a good idea... */ a.blur(); /* If the user specified an onClick function, call it now. If the function returns false then do not continue. */ if (typeof self.onClick == 'function') { onClickArgs = {'tabber':self, 'index':tabberIndex, 'event':event}; /* IE uses a different way to access the event object */ if (!event) { onClickArgs.event = window.event; } rVal = self.onClick(onClickArgs); if (rVal === false) { return false; } } self.tabShow(tabberIndex); return false;};tabberObj.prototype.tabHideAll = function(){ var i; /* counter */ /* Hide all tabs and make all navigation links inactive */ for (i = 0; i < this.tabs.length; i++) { this.tabHide(i); }};tabberObj.prototype.tabHide = function(tabberIndex){ var div; if (!this.tabs[tabberIndex]) { return false; } /* Hide a single tab and make its navigation link inactive */ div = this.tabs[tabberIndex].div; /* Hide the tab contents by adding classTabHide to the div */ if (!div.className.match(this.REclassTabHide)) { div.className += ' ' + this.classTabHide; } this.navClearActive(tabberIndex); return this;};tabberObj.prototype.tabShow = function(tabberIndex){ /* Show the tabberIndex tab and hide all the other tabs */ var div; if (!this.tabs[tabberIndex]) { return false; } /* Hide all the tabs first */ this.tabHideAll(); /* Get the div that holds this tab */ div = this.tabs[tabberIndex].div; /* Remove classTabHide from the div */ div.className = div.className.replace(this.REclassTabHide, ''); /* Mark this tab navigation link as "active" */ this.navSetActive(tabberIndex); /* If the user specified an onTabDisplay function, call it now. */ if (typeof this.onTabDisplay == 'function') { this.onTabDisplay({'tabber':this, 'index':tabberIndex}); } return this;};tabberObj.prototype.navSetActive = function(tabberIndex){ /* Note: this method does *not* enforce the rule that only one nav item can be active at a time. */ /* Set classNavActive for the navigation list item */ this.tabs[tabberIndex].li.className = this.classNavActive; return this;};tabberObj.prototype.navClearActive = function(tabberIndex){ /* Note: this method does *not* enforce the rule that one nav should always be active. */ /* Remove classNavActive from the navigation list item */ this.tabs[tabberIndex].li.className = ''; return this;};/*==================================================*/function tabberAutomatic(tabberArgs){ /* This function finds all DIV elements in the document where class=tabber.classMain, then converts them to use the tabber interface. tabberArgs = an object to send to "new tabber()" */ var tempObj, /* Temporary tabber object */ divs, /* Array of all divs on the page */ i; /* Loop index */ if (!tabberArgs) { tabberArgs = {}; } /* Create a tabber object so we can get the value of classMain */ tempObj = new tabberObj(tabberArgs); /* Find all DIV elements in the document that have class=tabber */ /* First get an array of all DIV elements and loop through them */ divs = document.getElementsByTagName("div"); for (i=0; i < divs.length; i++) { /* Is this DIV the correct class? */ if (divs[i].className && divs[i].className.match(tempObj.REclassMain)) { /* Now tabify the DIV */ tabberArgs.div = divs[i]; divs[i].tabber = new tabberObj(tabberArgs); } } return this;}/*==================================================*/function tabberAutomaticOnLoad(tabberArgs){ /* This function adds tabberAutomatic to the window.onload event, so it will run after the document has finished loading. */ var oldOnLoad; if (!tabberArgs) { tabberArgs = {}; } /* Taken from: http://simon.incutio.com/archive/2004/05/26/addLoadEvent */ oldOnLoad = window.onload; if (typeof window.onload != 'function') { window.onload = function() { tabberAutomatic(tabberArgs); }; } else { window.onload = function() { oldOnLoad(); tabberAutomatic(tabberArgs); }; }}/*==================================================*//* Run tabberAutomaticOnload() unless the "manualStartup" option was specified */if (typeof tabberOptions == 'undefined') { tabberAutomaticOnLoad();} else { if (!tabberOptions['manualStartup']) { tabberAutomaticOnLoad(tabberOptions); }} And this is the result: http://www.html.it/articoli/1697/esempio_step3.html I have now a problem: first my php page give the visitor to see only 2 "tabs" (actualy tables) and 3 or 4 according to the prmitions if they login.. (to arrange this is not a big problem) the real problem is the layout: I have a table that have an image in each corner and an image as backgroun it each <td> (stored in a css). this is the site: http://forums.xisto.com/no_longer_exists/ How do I re-crerate this table? as I have it in the site? 10x bye.
-
Hi everyone,I just saw the topic "Should suicide Be Legal?" and I imediatly associated Suicide to euthanasia. Basicaly is the same: "a person that want to die".There is 1 main difference. If I sucide, I do it alone, so that I take the resoponsibility of my actions. And in the euthanasia I ask some one else to do it for me. I want to give another example: Imagine a person is suffering a lot... then this person have an accident. Now the doctors do as much as they can to save his life, and the succedes. 2 days after this person sucide. the doctors, did they something wrong? Waht I want to say is: Have a person the right to Die? If yes, is it only if he do it by him self? I personaly think that we don't have posibility to give our self the life, because we have no right to do that. And If we don't have the right to give life we don't have the right to take the life. I consider that suicide is the same as to kill, so it should be illegal. For the same reason the euthanasia have to be illegal, but for 2 reasons more: euthanasia is not simply to kill him self is to do so but also asking someone to kill. This is much worse then sucide. 10x bye
-
Why The Pope Shouldn't Visit Turkey? To all turkishs
alexviii replied to alexviii's topic in General Discussion
Hi everyones Sorry?!?!?!?!?!?? what you says??????? "unbelievable"?????????????????? The Pope says (in the context of God conception and Rational way to thinks in the history), that the "Idea" of God cannot agree with "Violence". I remember you that the Pope is the Cristian Leader, and when he talk about God, in a congress in a christian University, He is talking about Christian Idea of God!!! So he was talking about someting very very "believable" for Christians!! Ho care about what muslemin believes??? His were talking about his own idea. And I think he is free to tell his idea even if it is against muslemin idea. 10x -
hi everyones I'm trying to have a photo gallery. I want to have the possibility to upload a photo. Looking on the web I tryed out to do so with php. But it is not working. I get this error... Warning: move_uploaded_file(): open_basedir restriction in effect. File (/images/gallery/cba1545a7fb7fe212106c9d945d261df.jpg) is not within the allowed path(s): (/usr/local/psa/home/vhosts/saytee.biz/httpdoc/ http://forums.xisto.com/no_longer_exists/)in /usr/local/psa/home/vhosts/saytee.biz/httpdocs/dev/blake/image-gallery/library/functions.php on line 21 Error uploading file Now, I have looked at line 21 ($result = move_uploaded_file($image['tmp_name'], $uploadDir . $imagePath) of the functions.php code and can not find anything wrong. The whole code is listed below... Basially, I lost. Does anyone know what the problem is? Is it to do with permissions on the folder? Code of the functions.php page... <?php /* Upload an image and create the thumbnail. The thumbnail is stored under the thumbnail sub-directory of $uploadDir. Return the uploaded image name and the thumbnail also. */ function uploadImage($inputName, $uploadDir) { $image = $_FILES[$inputName]; $imagePath = 'images/gallery/'; $thumbnailPath = 'thumbnail/'; // if a file is given if (trim($image['tmp_name']) != '') { $ext = substr(strrchr($image['name'], "."), 1); // generate a random new file name to avoid name conflict // then save the image under the new file name $imagePath = md5(rand() * time()) . ".$ext"; $result = move_uploaded_file($image['tmp_name'], $uploadDir . $imagePath); if ($result) { // create thumbnail $thumbnailPath = md5(rand() * time()) . ".$ext"; $result = createThumbnail($uploadDir . $imagePath, $uploadDir . 'thumbnail/' . $thumbnailPath, THUMBNAIL_WIDTH); // create thumbnail failed, delete the image if (!$result) { unlink($uploadDir . $imagePath); $imagePath = $thumbnailPath = ''; } else { $thumbnailPath = $result; } } else { // the image cannot be uploaded $imagePath = $thumbnailPath = ''; } } return array('image' => $imagePath, 'thumbnail' => $thumbnailPath); } /* Create a thumbnail of $srcFile and save it to $destFile. The thumbnail will be $width pixels. */ function createThumbnail($srcFile, $destFile, $width, $quality = 75) { $thumbnail = ''; if (file_exists($srcFile) && isset($destFile)) { $size = getimagesize($srcFile); $w = number_format($width, 0, ',', ''); $h = number_format(($size[1] / $size[0]) * $width, 0, ',', ''); $thumbnail = copyImage($srcFile, $destFile, $w, $h, $quality); } // return the thumbnail file name on sucess or blank on fail return basename($thumbnail); } /* Copy an image to a destination file. The destination image size will be $w X $h pixels */ function copyImage($srcFile, $destFile, $w, $h, $quality = 75) { $tmpSrc = pathinfo(strtolower($srcFile)); $tmpDest = pathinfo(strtolower($destFile)); $size = getimagesize($srcFile); if ($tmpDest['extension'] == "gif" || $tmpDest['extension'] == "jpg") { $destFile = substr_replace($destFile, 'jpg', -3); $dest = imagecreatetruecolor($w, $h); //imageantialias($dest, TRUE); } elseif ($tmpDest['extension'] == "png") { $dest = imagecreatetruecolor($w, $h); //imageantialias($dest, TRUE); } else { return false; } switch($size[2]) { case 1: //GIF $src = imagecreatefromgif($srcFile); break; case 2: //JPEG $src = imagecreatefromjpeg($srcFile); break; case 3: //PNG $src = imagecreatefrompng($srcFile); break; default: return false; break; } imagecopyresampled($dest, $src, 0, 0, 0, 0, $w, $h, $size[0], $size[1]); switch($size[2]) { case 1: case 2: imagejpeg($dest,$destFile, $quality); break; case 3: imagepng($dest,$destFile); } return $destFile; } /* Check if the user is logged in or not */ function checkLogin() { if (!isset($_SESSION['isLogin']) || $_SESSION['isLogin'] == false) { header('Location: login.php'); exit; } } /* Create the link for moving from one page to another */ function getPagingLink($totalResults, $pageNumber, $itemPerPage = 10, $strGet = '') { $pagingLink = ''; $totalPages = ceil($totalResults / $itemPerPage); // how many link pages to show $numLinks = 10; // create the paging links only if we have more than one page of results if ($totalPages > 1) { $self = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; // print 'previous' link only if we're not // on page one if ($pageNumber > 1) { $page = $pageNumber - 1; if ($page > 1) { $prev = " <a href=\"$self?pageNum=$page&$strGet\">[Prev]</a> "; } else { $prev = " <a href=\"$self?$strGet\">[Prev]</a> "; } $first = " <a href=\"$self?$strGet\">[First]</a> "; } else { $prev = ''; // we're on page one, don't show 'previous' link $first = ''; // nor 'first page' link } // print 'next' link only if we're not // on the last page if ($pageNumber < $totalPages) { $page = $pageNumber + 1; $next = " <a href=\"$self?pageNum=$page&$strGet\">[Next]</a> "; $last = " <a href=\"$self?pageNum=$totalPages&$strGet\">[Last]</a> "; } else { $next = ''; // we're on the last page, don't show 'next' link $last = ''; // nor 'last page' link } $start = $pageNumber - ($pageNumber % $numLinks) + 1; $end = $start + $numLinks - 1; $end = min($totalPages, $end); $pagingLink = array(); for($page = $start; $page <= $end; $page++) { if ($page == $pageNumber) { $pagingLink[] = " $page "; // no need to create a link to current page } else { if ($page == 1) { $pagingLink[] = " <a href=\"$self?$strGet\">$page</a> "; } else { $pagingLink[] = " <a href=\"$self?pageNum=$page&$strGet\">$page</a> "; } } } $pagingLink = implode(' | ', $pagingLink); // return the page navigation link $pagingLink = $first . $prev . $pagingLink . $next . $last; } return $pagingLink; } /* Display the breadcrumb navigation on top of the gallery page */ function showBreadcrumb() { if (isset($_GET['album'])) { $album = $_GET['album']; $sql = "SELECT al_name FROM tbl_album WHERE al_id = $album"; $result = mysql_query($sql) or die('Error, get album name failed. ' . mysql_error()); $row = mysql_fetch_assoc($result); echo ' > <a href="index.php?page=list-image&album=' . $album . '">' . $row['al_name'] . '</a>'; if (isset($_GET['image'])) { $image = $_GET['image']; $sql = "SELECT im_title FROM tbl_image WHERE im_id = $image"; $result = mysql_query($sql) or die('Error, get image name failed. ' . mysql_error()); $row = mysql_fetch_assoc($result); echo ' > <a href="index.php?page=image-detail&album=' . $album . 'â„‘=' . $image . '">' . $row['im_title'] . '</a>'; } } } ?> Can anyone help? 10x
-
hi everyones, I have a simple question.. This morning I have listened in the news that a lot of people ("a lot" according to the journalist) have manifested 'cause they don't want the Pope to be in Turkey. My question is why?? I don't like Putin, but if he waht to came here officialy, I whould be happy because it is a wahy to confront... So why they don't whant the Pope in Turkey? Are the afraid as muslemins of the effect of the Holy Spirit??? They don't beleve in that fo for sure not... so why? Is it an issue of racism? I don't think so.. 10x to all bye
-
hi everyones, I've seen many posts on problems with passwordrecovery and I've tried to do everything that is suggested, but still it doesn't work. I've also seen several posts where the communication stoppes at the following problem: everything seems fine but the e-mail is not sent or at least not recieved. In my web.config file I have this: <system.net><mailSettings><smtp from="-the e-mail from address-"><network host="neptun" password="" userName="" /></smtp></mailSettings></system.net> In IIS I've configured SMTP with relay restrictions to 127.0.0.1 and the local IP. Port 25 is tested and it is open and the firewall is open. I get no error message when I try to use the PasswordRecovery site and I get the message that the e-mail is sent. The SMTP log shows the following (which I don't understand - to me it seems ok): ..., 14:29:10, SMTPSVC1, NEPTUN, 192.168.1.224, 16, 11, 164, 250, 0, EHLO, -, +neptun, ..., 14:29:10, SMTPSVC1, NEPTUN, 192.168.1.224, 16, 31, 44, 250, 0, MAIL, -, +FROM:<-the specified from address->, ..., 14:29:10, SMTPSVC1, NEPTUN, 192.168.1.224, 16, 25, 28, 250, 0, RCPT, -, +TO:<-the correct to address ->, ..., 14:29:10, SMTPSVC1, NEPTUN, 192.168.1.224, 218, 366, 119, 250, 0, DATA, -, <NEPTUNtKTEGWS4BLOZd0000000a@neptun>, ..., 14:30:49, SMTPSVC1, NEPTUN, 192.168.1.224, 98921, 366, 119, 0, 99000, QUIT, -, neptun, Both g-mail address and yahoo e-mail address have been tried. Any ideas what more to do to make this work? 10x bye
-
Hi everyones, Finaly I got it! Bad think this stupid system of genuine windows.. However finaly I installed IE7. It is a very important idea to have tabs: Now I open only once internet explorer (so my CPU have less of use) but inside I open more pages in differents tabs (like in Excels with sheets). This is one of the new thinks in IE7. Other think is the grafic: it have been changed to the Vista style and it looks very likefull... However I suggest to download as long as it is free.. and the point is that it is much FASTER. this is true: it's faster. And I didn't checked all the features, but I think it's also more secure... I any case have fun! bye PS: here are some screenshots: bye
-
Ok so I have an array that I would like to group by date. When I use the group by in a mysql query it only shows one record with that value. However I want to show all the records grouped by date. This is what I have so far. $completedprojectsresults=mysql_query("SELECT request_tbl.*, DATE_FORMAT(SubmittalDate, '%b %d, %Y') cdate , s.* FROM request_tbl , site_tbl AS s WHERE request_tbl.Site_ID = s.Site_ID AND request_tbl.Date_Completed >= STR_TO_DATE('$from', '%m-%d-%Y') AND request_tbl.Date_Completed <= STR_TO_DATE('$to', '%m-%d-%Y') Group BY request_tbl.Request_ID ORDER BY cdate, s.FullSiteName"); while($cprow=mysql_fetch_assoc($completedprojectsresults)){ echo "<dl>"; echo "Completed on "; echo $cprow['cdate']; echo "<li>"; echo $cprow['SiteLookup']; echo "</li></dl>"; } 10x
-
hi everyone, I have been trying to get a script to come up with the total number of comments a news item has under it news ------- id author posted title text news_comments ---------- id nid poster posted comment And I am using this query: SELECT n.id as id, n.author as author, n.posted as date, n.title as title, n.text as text, COUNT(c.id) as num_comments FROM news as n, news_comments as c WHERE n.id = c.nid GROUP BY n.id LIMIT 10 Of course that doesnt work because it only shows news entries that have comments, Ive been playing with using 2 queries but I havent found an efficiant way of doing it. 10x
-
I just saw the verdict Video. I, as cristian, I'm against death penalty in any case, as we have no right to take life of eny one: in any case. so that death penalty is a crime under the law of God. In any case, as man, I think that there are other penaltys even worse. So, because I'm not iranian and I'm not arab, I like to kinow what all the world (sepecialy arabs) thinks about that... 10x
-
hi everyone, I have just installed Microsoft Windows Server 2003 R2 in my pc. Now, how can I use it online as server??I mean how can my computer host a domain in http? I'm just new in thoese thinks, please explain simply. 10x
-
That's it. -> The UN: will not disarm them (according to the resolution the Lebanon army should). -> The Lebanon army: can't because the whould be against the population. ANd oficialy they told they will not. -> Israel: They don't have the rigth to do so (or it is too late).-> Hizbullah: They have announced that they will never depose arms and there is no country or army that can oblige them to do it. Finaly nobody will. This is a problem I think. We are going to leave the to create again a state in the state. And history will repete it self: In 5 or 10 years, we will have a new (or the same) war. With the same death!!
-
I belwive this is true. We convince our self that the "evil" doesn't exist. Who told that masturbation, sex before marriage, to judje others, betrayal, etc. are bad thinks? I beleive they are, and I beleive that because thoese thinks gave me only deception. So, do you think that most of he people are wrong when they think that what give us a pleasure is something good? or what give us pleasure may be bad?
-
To be religius is to have a specials reletionship with God. This, not be cause he/she is better then others, but cause he or she have been loved by God. God loved everyones as they are. This mean also if they are bads. and one need god more if he is bad. That is why religius people are never the best ones But religius know that this word need a light, but also need thoese who will use this light, and even thoese who will refuse this light. The religius persons are the light that shows by their acts (not convincing) that God love everyone. all the rest don't have to be light, just "illuminated". A small part will not accept the light, but God love them too and they are necesary to rember to illuminated and Lights that the death exist. If you are religius, you will understand, if not you will think I'm crazy, and that I do what in Italy we call "Mental Masturbation"
-
You are all totaly right!! My think wasn't that all muslemin are torrorist or that islam is a religion of terror. As I never thinked that cristian individue is better then muslemin individue. I personaly know many muslemim that are better the many christians that I know. I'm sorry for my bat english and I will now write Cur'an. Ok, I'm not generalising as you think. I'm not telling every muslemin is violente. because every human being is a potential violent. But there are socials backgrounds that helps them more then other. (without considering exeptions) We can say that Political oppression helps less then a free country. A city full of "mafia" or gangs will help less then any other. A poor place will help less then a rich one. Now, I think, A religion can help less or more then others.Budhism will help more then Christianity and Islam will help less them both. It's not simply islam is violent. It's more like, a child who born in a muslemin family in Iraq (arabs) as more chance to make violence then a child born in a christian family in Iraq (arabs) even if they have the same inclination to violence at the begein. I'm telling this by expirience. And I started questioning my self, why? And as I can see from reading Cur'an and Bible, Islam theology is not afraid to leave people to kill, even if the reason is very good one. In the bible I only founded a comandment that says: Don't kill.( and Jesus says even that who tell 'Stupid' to his brother has already killed him in his heart). You understand the difference? Now as you all know, there are in the history a lot of cases where perversed people did Thinks even if not alowed.Like crusade and Terrorism. Now, exept of this, I personal think that the terror cailm to be a religius war. This make me personaly afraid. because as crusade have been for 200 years, also terror can be!