Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - abdoh2010

Pages: [1] 2
Arabic / قسم الدعم الفني / الإنتقال الى UTF-8
« on: December 22, 2007, 02:05:47 PM »
شباب انا حولت قاعدة بياناتي الى UTF-8 لكن عند العرض يطلع عندي علامات استفهام
فما ادري هل توصل احد فيكم الى حل الى المشكله هذي

اكون مشكور لو تشاركوني بخبرتكم

the 4images 1.7.4 was released at 2006-10
that is a year a go
so, when we will get the next one ?

Discussion & Troubleshooting / whats wrong with this code?
« on: March 30, 2007, 04:14:33 PM »
i'm trying to make new code for avi.html and all the video files templates and this is what i got

Code: [Select]
<script language="javascript" type="text/javascript">

var WMP7;

    WMP7 = new ActiveXObject("WMPlayer.OCX.7");
else if (window.GeckoActiveXObject)
     WMP7 = new GeckoActiveXObject("WMPlayer.OCX.7");

// Windows Media Player 7 Code
if ( WMP7 )
     document.write ('<OBJECT ID=MediaPlayer ');
     document.write (' CLASSID=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6');
     document.write (' standby="Loading Microsoft Windows Media Player components..."');
     document.write (' TYPE="application/x-oleobject" width="320" height="240">');
     document.write ('<PARAM NAME="url" VALUE="{media_src}">');
     document.write ('<PARAM NAME="AutoStart" VALUE="true">');
     document.write ('<PARAM NAME="ShowControls" VALUE="1">');
     document.write ('<PARAM NAME="uiMode" VALUE="mini">');
     document.write ('</OBJECT>');

// Windows Media Player 6.4 Code
     //IE Code
     document.write ('<OBJECT ID=MediaPlayer ');
     document.write ('CLASSID=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 ');
     document.write ('CODEBASE=,4,5,715 ');
     document.write ('standby="Loading Microsoft Windows Media Player components..." ');
     document.write ('TYPE="application/x-oleobject" width="320" height="240">');
     document.write ('<PARAM NAME="FileName" VALUE="{media_src}">');
     document.write ('<PARAM NAME="AutoStart" VALUE="true">');
     document.write ('<PARAM NAME="ShowControls" VALUE="1">');

     //Netscape code
     document.write ('    <Embed type="application/x-mplayer2"');
     document.write ('        pluginspage=""');
     document.write ('        filename="{image_name}"');
     document.write ('        src="{media_src}"');
     document.write ('        Name=MediaPlayer');
     document.write ('        ShowControls=1');
     document.write ('        ShowDisplay=1');
     document.write ('        ShowStatusBar=1');
     document.write ('        width=240');
     document.write ('        height=320>');
     document.write ('    </embed>');

     document.write ('</OBJECT>');


it's look fine for me but it dose not compile well

any idea ?

Installation, Update & Configuration / 4images 1.7.5 ?
« on: March 29, 2007, 06:06:29 AM »
i'm thinking about upgreading my 4images 1.7.1 to 1.7.4
but there is a lot of modification i must do if i will do that
so before i start do that i was wandering if 4images 1.7.5 will show up in next few days or months ?

is it ?

Installation, Update & Configuration / watch video from the 4images ?!
« on: March 29, 2007, 06:04:24 AM »
it will be cool if visitors can watch videos at 4images like youtube thing  :mrgreen:

i'm trying to do that but i find out that it's a big thing
it didnt hold me down but it will need a lot of work

Discussion & Troubleshooting / uploading to up to 500Mb ?
« on: March 29, 2007, 05:41:08 AM »
now i know that some of you will say: do it by ftp.
but that is not the answer that i'm seeking for

my question is:
how and where can i modify the original 4images php code so it could upload files up to 500Mb in the 4images control panel ?

Installation, Update & Configuration / upgrading from 1.7.1 to 1.7.4
« on: March 07, 2007, 08:10:07 AM »
i have a question

i have a 1.7.1 custom version from 4images with custom database
i would like to upgrade to 1.7.4 so is it just change the files ? or there is upgrade in the database also ?
if there could anyone tell me what is the upgrade queries ?

Discussion & Troubleshooting / download files more than 200 M ?
« on: December 12, 2005, 06:00:33 PM »
after researching i find out that the problem is start with this code inside download.php witch download by buffering witch will not serve me with files more that 200 M,
Code: [Select]
function get_file_data($file_path) {
  global $script_url;
  $file_data = ob_get_contents();
  if (!empty($file_data)) {
    return $file_data;
  elseif (is_remote_file($file_path)) {
    $file_data = get_remote_file($file_path);
  else {
    if (!file_exists($file_path)) {
      $file_path = preg_replace("/\/{2,}/", "/", get_document_root()."/".$file_path);
    if (file_exists($file_path)) {
      $file_size = @filesize($file_path);
      $fp = @fopen($file_path, "rb");
      if ($fp) {
        $file_data = @fread($fp, $file_size);
  if (empty($file_data)) {
    if (ereg("^\/", $file_path)) {
      preg_match("/^(http:\/\/[^\/]+)/i", $script_url, $regs);
      $script_url = $regs[1];
    $file_data = get_remote_file($script_url."/".$file_path);
  return (!empty($file_data)) ? $file_data : 0;
so i start a thread on webhostingtalk asking for new code witch may serve me and we finally agrae that the best way is by this code
Code: [Select]
$handle = fopen("", "rb");
$contents = '';
while (!feof($handle)) {
    $contents .= fread($handle, 8192);
    // do something else

i tried to use it on the funcation but i didnt get it right

so can any one help me with it please ?

Discussion & Troubleshooting / problem with downloading zip files
« on: November 17, 2005, 07:57:39 PM »

After I rebuild my website script again, some problems came out

One of the problems is this one

Code: [Select]
Press this button under zip photo and see what happen,

Some visitor say it will gave them the file as, and this is very critical for the server
Some other say it will view the zip file on the browse!!

Please advice me for this issue

Best regards,

Discussion & Troubleshooting / [Q] move to unicode utf-8 ?
« on: June 20, 2005, 02:24:42 AM »
Hello every one

I tried before to move my website to Unicode but unfortunately I didn’t make it right

So I winder, what is the correct way to move to Unicode utf-8
I have the root on my server, so if it help? Tell me about it

Discussion & Troubleshooting / [Q] replace in the output templates ?
« on: June 17, 2005, 04:20:51 PM »
hello every one

i have a quastion about the output templates in the 4images
i would like to add a php replace line to replace what ever in the output templates with what i want


preg_replace(''/\>\s+\</', '> <', $output_template);

i think it's myebe in the sessions.php file in the includes folder but i am not shore about the code line it self and witch line it should be

any body help please ?

Installation, Update & Configuration / changing ROOT_PATH ?
« on: April 05, 2005, 01:58:10 PM »
this is realy bother me
when ever i open the source for any page in the 4images i see this

Code: [Select]
<form method="post" action="./search.html">
Code: [Select]
<a href="./index.html">and
Code: [Select]
<a href="./top.html">
and and and ....

i want to see it like this
Code: [Select]
<a href="">

so i made my move and i found about ROOT_PATH="./" in the head of every php file like index.php  so i tryed to change it from there but it give me error messge

so what is the corruct way to do this ?

Mods & Plugins (Requests & Discussions) / [MySQL] what if ?
« on: April 04, 2005, 03:20:04 PM »
Hello guys

I have a problem and I need your help

I have a script witch I am trying to integrate it with 4images
The template part is solve ok but the query part is the problem that I am talking about

If I have a query and I want to insert it in a file call it test.php and give this query a variable to call it from test.html template

How can I do it? That's the question

Chit Chat / admin please
« on: April 04, 2005, 11:42:23 AM »
colud you please open this folder for viewing

Installation, Update & Configuration / PHP files in 4images templates
« on: March 31, 2005, 09:25:47 PM »
hello every one

i have a problem here and i asking you for help

i have a php file i would like to insert it in 4images templates as {php_file_name}

i tryed my best i couldnt do it

so any one can help me ?

Pages: [1] 2