Jump to content

crazy.works

Members
  • Posts

    12
  • Joined

  • Last visited

    Never

Everything posted by crazy.works

  1. hello , i wanna make a small video sharing script , i need to show the videos in my script from youtube and google with the all data (thumbnail, the title and description), so i wrote a code to put the video link in the $url then i limit the video type if its youtube or google to show the video in the script and i succeed on that but i cant output the video thumbnail, the title and description and i dont know how can i do it so if that is my code ---------------------------------------------------------------------------------------------------------------------- <?php $site_type = "1"; /* site_type=1 --> youtube ...... site_type=2 --> google*/ $url = " /*put here the video link*/ $parts = explode("=", $url); $video_id = $parts[1]; if ($site_type == '1') { ?> <object type="application/x-shockwave-flash" width="444" height="333" data="http://www.youtube.com/watch?v=<?php echo $video_id; ?>"><param name="movie"/></object> <?php } elseif ($site_type == '2') { ?> <object type="application/x-shockwave-flash" width="444" height="333" data="http://video.google.com/googleplayer.swf?docId=<?php echo $video_id; ? >&hl=en&stop=true&playerMode=simple"><param name="movie"/></object> <?php } ?> --------------------------------------------------------------------------------------------------------------------------------- if u opened it on your browser it will show the video only without the other needed data, just some body help me to add function or code in it to show the thumbnail, the title and description under the video , resend me the code back after the editing on it and i will be thankful for that thanks
  2. i mean the code that i will put in the php file to load the editor with multi languages support so now here is my code , beside it isnot work , the textarea and the editor didnt appear too and i dont know why ------------------------------------------------------ <?php include_once("fckeditor/fckeditor.php") ; ?> <html > <head> <title>New Page 1</title> </head> <body> <form method="POST" action="submit.php"> <p> </p> <p> </p> <p><textarea rows="15" name="world" cols="56"></textarea></p> <p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p> <?php $oFCKeditor = new FCKeditor ("world") ; $oFCKeditor->BasePath = 'fckeditor/' ; $oFCKeditor->Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ; $oFCKeditor->Create() ; ?> </form> </body> </html> ---------------------------------------------------------- so just can u send to me the correct code that i have to put in the php file to load the editor with multi languages support like the sample on that link http://www.fckeditor.net/demo/language please ????
  3. hello, i wanna use fckeditor in my php script so i want the source for the code to load the fckeditor with multi languages support like the sample on the like http://www.fckeditor.net/demo/language please . thanks
  4. iam saying this because when i made the form as i show u and i made the submit.php file to receive the data and to show it the submit.php file in it that code <? $cool = $_POST['world']; echo $cool; ?> simple and easy , just receive the data from the textarea and showing it but i got problem it show the text that i write with the preference ,font size , color , every thing is ok , but when i add pic with the the form in the textarea it didnt appear on the submit.php file if the image link was on the textarea like http://localhost/1.jpg it appear on the submit.php fie like that http://localhost/2/tinymce/1.jpg%5C%22 so please can u tell me why it being like that ?
  5. so when i will save it in field world in the database the all form (words and picz ) will be saved ?
  6. oh ok thanks so i have other thing to ask about , i got other editor and it called TinyMCE , u can download it from here http://tinymce.moxiecode.com/download.php so it works very well and i didnt got problem with it like the fckeditor . about my question , if my code will be like that ------------- <html > <head> <title>New Page 1</title> <script type="text/javascript" src="tiny_mce/tiny_mce_gzip.js"></script> <script type="text/javascript"> tinyMCE_GZ.init({ plugins : 'style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,'+ 'searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras', themes : 'simple,advanced', languages : 'en', disk_cache : true, debug : false }); </script> <!-- Needs to be seperate script tags! --> <script type="text/javascript"> tinyMCE.init({ mode : "textareas", theme : "advanced" }); </script> </head> <body> <form method="POST" action="submit.php"> <p> </p> <p> </p> <p><textarea rows="15" name="world" cols="56"></textarea></p> <p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p> </form> </body> </html> --------------------------- and it works good and the editor appear so how will i save the form data on the database and what code will i use to show the data with other php file ?
  7. oh ok i think i made all of that , so please i have some thing to ask about just can u upload for me compress file that include the fckeditor with php file in it the normal textarea code that u tested on your localhost , just to try it and to know the error and the problem in my files please ??
  8. no i mean folder called editor in it the fckeditor folder and the php file . so the path is correct
  9. hello , well , it is my first time to use fckeditor in my scripts because i still try to make my way on the php programming so about the fckeditor , i downloaded the files from http://sourceforge.net/project/downloading.php?group_id=75348&filename=FCKeditor_2.6.2.zip then i put the fckeditor folder with php file in folder called editor in the php file just a normal simple textarea with the fckeditor codes that i saw on the documentation so here is my code , please help me to find why the editor and the texarea didnt appear in my browser ------------------------------------- <?php include_once("fckeditor/fckeditor.php") ; ?> <html > <head> <title>New Page 1</title> </head> <body> <form method="POST" action="submit.php"> <p> </p> <p> </p> <p><textarea rows="15" name="world" cols="56"></textarea></p> <p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p> <?php $oFCKeditor = new FCKeditor ("world") ; $oFCKeditor->BasePath = 'fckeditor/' ; $oFCKeditor->Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ; $oFCKeditor->Create() ; ?> </form> </body> </html> ------------------------------------------ and here is othere code that i got by friend on mine and it didnt work too ------------------------- <script type="text/javascript" src="fckeditor/fckeditor.js"></script> <script type="text/javascript" src="fckeditor/fckconfig.js"></script> <html > <head> <title>New Page 1</title> </head> <body> <form method="POST" action="submit.php"> <p> </p> <p> </p> <p><textarea rows="15" name="world" cols="56"></textarea></p> <p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p> </form> <script type="text/javascript"> var oFCKeditoren = new FCKeditor ( "world"); oFCKeditoren.BasePath = "fckeditor/"; oFCKeditoren.Height = 300 ; oFCKeditoren.ReplaceTextarea(); </script> </body> </html> -------------------------------- please help me to find the error thanks
  10. I'm not sure if I'm understanding what you are trying to do but here is what I gathered. You want users to create forum like posts where they are able to have both text and images. You can do this a couple of different ways. You can allow HTML and they can use the <img/> tag OR You can implement a simple BBcode system that uses or [image] or however you choose to implement that. -------------------------------- first i want to say thanks for every one who replied and what u said maexus is exactly what i mean and what i want to do so please can u tell me how can i do BBcode system that uses or [image] as u suggested on the reply ??
  11. hello, i have a small hard question , i really wish to find the answer soon here because iam look for that answer for 3 days and i got no success , well , iam not a professional in the php programming but iam trying to be good as i can on it so about the question , just iam trying to complete my second script programming , i want to make adding topics system , i want to let the visitor be able to add any mount of pictures inside his topic between any words line he want like the topics result on the vBulletin adding topics system just like that form :- words , words , words , words , words words , words , words , words , words picture words , words , words , words , words picture words , words , words , words , words words , words , words , words , words picture words , words , words , words , words but i want to let the visitor be able to put any mount of words and pictures inside his topic , i think u got what i mean now i wish to got the explain to make it from the professional programmers or just if any one have small topics system working like iam asking for it will be great if he can share it for teach us and to let us know the way to make it and to being better . thanks every body
×
×
  • 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.