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 - nameless

Pages: 1 [2] 3 4
16
Discussion & Troubleshooting / how can i change auth_download
« on: September 01, 2011, 06:57:32 AM »
hi every one
I have about 3790 cat I want to change the categories Permissions Download from register user to all

thanks for all ur help

17
Dear sir
I tring to make a computer wallpaper site
so i want to upload many size for the same image

like this scribt
http://wallpaperscript.com/demo/
enter to the admin panel add try to upload image

please let me know it this possibly done
 

18
hi every one

If I Need A compare Mod between 2 images

how much it cost

19
Feedback & Suggestions / I have a problem when i add or edit image
« on: June 11, 2011, 03:05:55 AM »
Dear
I have a problem I think after i upgrade to 1.7.10
when i add or edit an image after maybe 1 min when i click save i have this massage " CSRF check failed. " so i have to sign in again and try
so i hope some one have any idea 

thanks for all your help

20
Discussion & Troubleshooting / multi keyword search in 1.7.10
« on: May 03, 2011, 11:32:39 AM »
Hello,

i just noticed a problem with the keywords search :

- Search with a single word works fine
- Search with 2 words or more (space separated) = Your search resulted in no matching records

waiting for your replay

Thank you

21
Programming / where to put the server name
« on: September 14, 2010, 05:30:24 PM »
hi evry one i do't know any thing about PHP
and i'm using this for emails (contact us) and it work very good until i change the host and it stop working
i send to know the reson he told me you must put the server name in your code and i do't know where to but it
so i hope some one help me

the code
Code: [Select]
<?
/*****************************************************************************/
$send_to = "SmartFormBuilder User <somehope2010@hotmail.com>";
$send_from = "www.xxxxx.com <somehope2010@hotmail.com>";

$subject = "اتصل بنا";
$autoresponder_from = $send_to;
$thanks_msg = "شكراً لك لمراسلتنا
سيتم الرد عليك باسرع وقت ممكن انشاء الله";
$autoresponder_subject = "Re: اتصل بنا";
$autoresponder_message = "شكراً لك لمراسلتنا

سيتم الرد عليك باسرع وقت ممكن انشاء الله";
/***************************************************************************/

do_formmail();

function do_formmail(){
    $form = get_form_data();
    send_mail($form);
    if ($autoresponder_enabled) auto_respond($form);
    done();
}

function get_form_data(){
    $vars = ($_SERVER['REQUEST_METHOD'] == 'GET') ? $_GET : $_POST;
    //strip spaces from all fields
    foreach ($vars as $k=>$v) $vars[$k] = trim($v);
    return $vars;
}

function _build_fields($vars){
    $skip_fields = array(
        'name_from',
        'email_from',
        'email_to',
        'name_to',
        'subject');

    foreach ($vars as $k=>$v)
        if (in_array($k, $skip_fields)) unset($vars[$k]);

    $max_length = 10; // max length of key field
    foreach ($vars as $k=>$v) {
        $klen = strlen($k);
        if (($klen > $max_length) && ($klen < 40))
            $max_length = $klen;
    }

    // make output text
    $out = "";
    foreach ($vars as $k=>$v){
        $k = str_replace('_', ' ', $k);
        $k = ucfirst($k);
        $len_diff = $max_length - strlen($k);
        if ($len_diff > 0)
            $fill = str_repeat('.', $len_diff);
        else
            $fill = '';
        $out .= $k."$fill...: $v\n";
    }
    return $out;
   
}

function send_mail($vars){
    global $send_to, $send_from;
    global $subject;
    global $REMOTE_ADDR;

    global $_FILES;
    $files = array(); //files (field names) to attach in mail
    if (count($_FILES)){
        $files = array_keys($_FILES);
    }

    // build mail
    $date_time = date('Y-m-d H:i:s');
    $mime_delimiter = md5(time());
    $fields = _build_fields($vars);
    $mail = <<<EOF
This is a MIME-encapsulated message

--$mime_delimiter
Content-type: text/plain
Content-Transfer-Encoding: 8bit

وصلك النموذج البريدي التالي:
$fields
--------------------
REMOTE IP : $REMOTE_ADDR
DATE/TIME : $date_time
EOF;

    if (count($files)){
        foreach ($files as $file){
            $file_name     = $_FILES[$file]['name'];
            $file_type     = $_FILES[$file]['type'];
            $file_tmp_name = $_FILES[$file]['tmp_name'];
            $file_cnt = "";
            $f=@fopen($file_tmp_name, "rb");
            if (!$f)
                continue;
            while($f && !feof($f))
                $file_cnt .= fread($f, 4096);
            fclose($f);
            if (!strlen($file_type)) $file_type="applicaton/octet-stream";
            if ($file_type == 'application/x-msdownload')
                $file_type = "applicaton/octet-stream";

            $mail .= "\n--$mime_delimiter\n";
            $mail .= "Content-type: $file_type\n";
            $mail .= "Content-Disposition: attachment; filename=\"$file_name\"\n";
            $mail .= "Content-Transfer-Encoding: base64\n\n";
            $mail .= chunk_split(base64_encode($file_cnt));
        }
    }
    $mail .= "\n--$mime_delimiter--";

    mail($send_to, $subject, $mail,"Mime-Version: 1.0\r\nFrom: $send_from\r\nContent-Type: multipart/mixed;\n boundary=\"$mime_delimiter\"\r\nContent-Disposition: inline");

}

function done(){
 echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"0;URL=http://www.XXXXXX.com/index.php?template=thanks\">";   
}

function auto_respond($vars){
    global $autoresponder_from, $autoresponder_message, $autoresponder_subject;
    $_send_to = "$vars[name_from] <".$vars[email_from].">";
    $_send_from = $autoresponder_from;
    mail($_send_to, $subj, $msg, "From: $_send_from");
}
?>


22
Discussion & Troubleshooting / problem in the search 1.7.8
« on: September 12, 2010, 11:42:38 PM »
hi evry one
now i have a problem and i do't know what happen

will in the i make search from all fields
the problem in the field description
this field contane 3 word in arabic and 3 word in english
when i search for any word in english doen't work (i't was work in 1.7.6)
but when i delete the arabic word and try againe it work

thanks for your help

23
thanks for all your help

how can i add real player in the details.html

i want to play file type *.rm

thanks againe

24
hi evry one

will when a user want to change his image this page open member_editimage.html
but all he can change is the image name and the description and keywords

so if he want to change the main image and thumbnail ???

and i add field image_price i want the user can change it also

and thanks for all ur help

25
Discussion & Troubleshooting / share in facebook
« on: August 01, 2010, 12:03:19 PM »
hi evry one

If you have a problem when you try to share a link in facebook and he gave you all the pic in the page except the main image

i try this and it work with me
in the details.html
add this between <HEAD> and </HEAD>

<link rel="image_src" href="{uploaded_image_path}">

i hope this will help
and i want to thanks evry one help me in this Wonderful script
Especially V@no - mawenzi - alekinna

26
Discussion & Troubleshooting / how to Add new fields for comments
« on: July 21, 2010, 12:14:19 AM »
Hi evry one
how to Add new fields for comments

thanks for all your help

27
Discussion & Troubleshooting / category and subcategory
« on: July 13, 2010, 01:38:19 AM »
hi evry one
can i make Number of table cells for the category Different from Number of table cells for the subcategory

for example when i make Number of table cells for the category 3 the Number of table cells for the subcategory will be 3 i want to make it 5

thanks for all ypur help

28
hi evry one
i'm useing 4image 1.76 and mod Add a keyword list to the search form v.2
and the keywors in arabic lang so it's work correct in advanced search
but in details page it gave me wrong Results
some example for my keywords

4)_من_2.0_الى_2.49_بوصه
4)_من_2.5_الى_2.99_بوصه
4)_من_3.0_الى_3.49_بوصه
4)_من_3.5_الى_3.99_بوصه

thanks for all your help

29
i need a butoon for any one to report for broken image

i have a lot of links to sites/pages (external). Sometimes these links expire or whatever and i want users to report them...

All i need is a script that allows the users to click a button which pops up a window with captcha. They fill in the words and then hit report. Then an email get's sent to me with just the page URL from which the report button was clicked.

30
Some help

I need a new Button in Details page
when any one press this button a new windows apears for him to let him write his name and Email and notes
like this

and when he press send this page came to my email like this


the Url of the page will Show automatic

i hope it be easy becouse i want to use it many time in the same page and evry button have a work

for example
1-  a button for dead links
if there is a a flash game or a image doesn't work so any one can Reported

2- a button for informaiton
i have a mobile site and i need if any one know the price of the mobile use it to sed me the price

thanks and waiting for the help

Pages: 1 [2] 3 4