Jump to content

fullyloaded

Members
  • Posts

    133
  • Joined

  • Last visited

    Never

Posts posted by fullyloaded

  1. hi

    i hope this is the right place to post this if not sorry i have a reseller hosting package and just move my site to it after creating a account after uploading my site and installing the database etc.. i went to my site and only part of the site is showing up i checked the system requirements and my hosting has  all the requirements for my site i know my site is working the way it should be because i installed a fresh copy on a friends server and its working fine any one have any idea what could be wrong on the server side to make this happen? here is my site my site is php and html templates thanks...

    hxxp://www.singlespleasures.com

    SCRIPT REQUIREMENTS

    PHP 4.3.0 or greater

    MySQL 4.0.0 or greater

    ionCube support

    Server: Unix/Linux - Powered by Apache

     

    my hosting has

    PHP 5.2.8

    MySQL 5.0.77-community

    ionCube support

    Server: Linux - Powered by Apache

  2. ok im having a problem i have this code witch will put the bar at the bottom but if you view it in 800 x 600 you can only see half of it but if you view it in 1024 x 786 you can see all of t is there anyway to fix this problem? thanks...

     

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Bar</title>
    <style type="text/css">
    body {
    margin: 0px;
    padding: 0px;
    overflow: hidden;
    }
    #page {
    margin: 10px;
    overflow: auto;
    height: 93%;
    }
    #bottom {
    width: 100%;
    background: #18f8f8;
    text-align: center;
    }
    </style>
    </head>
    <body>
    <div id="page">
    Other stuff on page
    </div>
    <div id="bottom">Bottom stuff goes here</div>
    </body>
    </html>

  3. hi

    anyone know of any tuts or how i can make a simple tool bar like the one on facebook? well i have my own tool bar i have made but my problem is getting it to stay at the bottom like the one on facebook so when i scroll down on my website page the tool bar will be visable at all times thanks...

  4. yes that worked great thanks a lot im having one more problem when some of my members upload a photo it will save the image name in the database like this image.JPG and not like this image.jpg is there away to add the .JPG in caps to this code aswell? i tried  adding this line of code  if (!preg_match("/^.*\.JPG/",$file)) { but its conflicting

     if (!preg_match("/^.*\.gif/",$file)) {
      if (!preg_match("/^.*\.jpg/",$file)) {
       if (!preg_match("/^.*\.png/",$file)) {

  5. hey

    is there anyway to change this code<?php

    $file =  $poster['avatar']; to this? <?php

    $file = (hxxp://www.mysitehere.com/uploads/) $poster['avatar']; where it will use the path i put in and the    $poster['avatar'];

     

    <?php
    $file =  $poster['avatar'];
    if (!preg_match("/^.*\.gif/",$file)) {
      if (!preg_match("/^.*\.jpg/",$file)) {
       if (!preg_match("/^.*\.png/",$file)) {
        $poster['avatar'] = "templates/{$pageInfo['theme']}/images/noavatar.gif";
       }
      }
    }
    ?>
    

  6. hi

    is there anyway to change the alert popup box in my code to a simple custom one? i try to add one but had no luck i think it has to do with the if (confirm( but i could be wrong thanks...

     

    <?php
    
    
    $dbu=new mysql_db;
    
    //*************************************************************************
        $sql = "SELECT * FROM chat_conver WHERE mem2_id='".$_SESSION[u_ID]."' AND active='1' AND invite_alert='1'  ";
        $dbu->query($sql);
    
        if($dbu->move_next())
    {
    	$cid=$dbu->f('chat_conver_id');
    	$dbu->query("update chat_conver set
                                 invite_alert='0'
                                 where
                                 chat_conver_id='".$cid."'"
                                );
    ?>
    	<script language="javascript">
    		if (confirm("A Member Has Invited You To Chat. Click Ok To View. ('Clicking Ok Will Not Accept The Chat Invite It Will Show You Who Has Invited You To Chat')")) window.open("http://www.mysite.com/", "NewWin","menubar=0,resizable=1,width=550,height=550,scrollbars=1");
    </script>
    

  7. hi i was wondering if anyone can tell me what im doing wrong what im trying to do is get the login string from my code but im doing somthing wrong here is the code from my login page and the string i been trying and having no luck thanks...

     

    Login Page:

    <?php
    $redir = @$_GET['redir'];
    if (!$redir) $redir = "index.php";
    
    if (!$userInfo['loggedin']) {
    $do = @$_GET['do'];
    if ($do == "") {
      fetchTemplate("header");
      fetchTemplate("login");
      fetchTemplate("footer");
    }
    else if ($do == "login") {
      $error = "";
      $user = addslashes(htmlentities(@$_POST['user']));
      $pass = md5(addslashes(htmlentities(@$_POST['pass'])));
      $query = mysql_query("SELECT * FROM `member` WHERE username='$user' AND password='$pass'");
      $q = mysql_fetch_row($query);
      if (!$q[0]) {
       $error .= "Username and password do not match.<br />\n";
      }
      else {
       $_SESSION['loggedin'] = 1;
       $_SESSION['user'] = $user;
       header("Location: ".$redir);
      }
      if ($error) {
       fetchTemplate("header");
       echo "<br><p align=center><font color=red>".$error."</font></p>";
       echo "\n<p align=center><a href=\"login.php\">[ Back ]</a></p>\n";
       fetchTemplate("footer");
      }
    }
    }
    else {
    header("Location: index.php");
    }
    ?>

    Login String:

    hxxp://www.MySiteHere.com/forum/login.php?do=login&action=login&username=MyUserNameHere&password=MyPassWordHere&redir=index.php

  8. hi

    im having a little problem after logging out of my site logging out is not a problem it will logout but after logging out the users online will still show im online even after 20 minutes so i checked my database to see whats going on under the online table in my database it is saying 1 (1=online) and (0=offline) is there anyway to set it back to 0 after logging out? here is a bit of code

    function logout()
    {
    
    unset($_SESSION['user']);
    unset($_SESSION['pass']);
    @session_unregister('user');
    @session_unregister('pass');
    setcookie("user", $_SESSION['user'], time()+1);
    setcookie("pass", $_SESSION['pass'], time()+1);
    
    session_destroy();
    }

  9. hi

    i was wondering if this is possible if some one where to click on this link hxxp://www.mysite.com/index.php it will take them to my home page what im trying to do is when they click on hxxp://www.mysite.com/index.php it will also log them out of my forum witch would be this link hxxp://www.mysite.com/forum/index.php?logout=yes and continue to hxxp://www.mysite.com/index.php without showing hxxp://www.mysite.com/forum/index.php?logout=yes hope you know what im talking about lol thanks...

  10. hi

    im having a little problem with my code i have all this code into one php file ths code will work if i take out member-statusmessage or member-reminder code but if i keep both in my php file only the member-reminder will work any idea why? or how to fix it where both will work? thanks...

    $next_function='member-statusmessage';
        $dbu->query("select * from member where member_id='".$glob['member_id']."'");
        $dbu->move_next();
    
        $ft->assign(array(
                                              
                                              "STATUSMESSAGE"    =>		   $dbu->gf('statusmessage'),
                                              'MIN_STATUSMESSAGE'     =>        MIN_STATUSMESSAGE,
                                              'MAX_STATUSMESSAGE'     =>        MAX_STATUSMESSAGE,
                                              
                         )
                    );
      
          $next_function='member-reminder';
        $dbu->query("select * from member where member_id='".$glob['member_id']."'");
        $dbu->move_next();
    
        $ft->assign(array(
                                              
                                              "REMINDER"    =>		   $dbu->gf('reminder'),
                                              'MIN_REMINDER'     =>        MIN_REMINDER,
                                              'MAX_REMINDER'     =>        MAX_REMINDER,
                                              
                         )
                    );
    

  11. hi can anyone help me add code from one page to another what im trying to do is add this code witch is in page1 below to page2 i know i have to add more then this line of code but have no clue what or how just all the code that has to do with statusmessage to get it to work on page2 thanks...

    "STATUSMESSAGE"         =>		   $dbu->gf('statusmessage'),

     

    page1:

    <?php
    
    $dbu=new mysql_db;
    $glob['member_id']='';
    $glob['member_id']=$_SESSION[u_ID];
    
    $ft=new ft(ADMIN_PATH.MODULE."templates/");
    $ft->define(array('main' => "statusmessage.html"));
    $ft->define_dynamic('relationship_row','main');
    $ft->define_dynamic('interests','main');
    $ft->define_dynamic('interest_row','interests');
    $ft->define_dynamic('blank_row','interests');
    
    if($glob['member_id'])
    {
    $allow_kiss='';
    $password_protect='';
    $news_subscribe='';
    $matches_subscribe='';
    
        $next_function='member-update2';
        $dbu->query("select * from member where member_id='".$glob['member_id']."'");
        $dbu->move_next();
    if($dbu->gf('allow_kiss'))
    {
    	$allow_kiss='checked';
    }
    if($dbu->gf('password_protect'))
    {
    	$password_protect='checked';
    }
    if($dbu->gf('news_subscribe'))
    {
    	$news_subscribe='checked';
    }
    if($dbu->gf('matches_subscribe'))
    {
    	$matches_subscribe='checked';
    }
        list($b_year,$b_month,$b_day )=split("-",$dbu->f('birthdate'));
    if ( !$dbu->f('picture') )
    {
    	$ft->assign( "PICTURE", "Picture is not avaible" );
    	$ft->assign( "ERASEP", "");
    }
    else
    {
    	$ft->assign( "PICTURE", "<img src=\"".$script_path.UPLOAD_PATH.$dbu->f('picture')."\" width=".PICTURE_WIDTH."><br><br>");
    	$ft->assign( "ERASEP", "<a href=\"index.php?pag=update2&act=member-erasepicture&member_id=".$dbu->f('member_id')."\" class=verdanaSlimLinkRed>Erase picture</a>");
    }
        $ft->assign(array(
                                              "STATUS"           =>        build_status_list($dbu->gf('status')),
                                              "HAVE_CHILDREN"    =>        build_have_children_list($dbu->gf('have_children')),
                                              "CHILDREN_NO"      =>        $dbu->gf('children_no'),
                                              "WANT_CHILDREN"    =>        build_want_children_list($dbu->gf('want_children')),
                                              "PETS"             =>        build_pets_list($dbu->gf('pets')),
                                              "HEIGHT"           =>        build_height_list($dbu->gf('height')),
                                              "BODY_TYPE"        =>        build_body_type_list($dbu->gf('body_type')),
                                              "HAIR_COLOR"       =>        build_hair_color_list($dbu->gf('hair_color')),
                                              "EYE_COLOR"        =>        build_eye_color_list($dbu->gf('eye_color')),
                                              "SMOKE"            =>        build_smoke_list($dbu->gf('smoke')), 
                                              "DRINK"            =>        build_drink_list($dbu->gf('drink')),
                                              "FOOD"             =>        build_food_list($dbu->gf('food')),
                                              "ETNICITY"         =>        build_etnicity_list($dbu->gf('etnicity')),
                                              "RELIGION"         =>        build_religion_list($dbu->gf('religion')),
                                              "POLITIC"          =>        build_politic_list($dbu->gf('politic')),
                                              "PERSONALITY"      =>        build_personality_list($dbu->gf('personality')),
                                              "STARSIGN"         =>        build_starsign_list($dbu->gf('starsign')),
                                              "EDUCATION_LEVEL"  =>        build_educationlevel_list($dbu->gf('education_level')),
                                              "JOB_INDUSTRY"     =>        build_job_industry_list($dbu->gf('job_industry')),
                                              "JOB_TYPE"         =>		   build_job_type_list($dbu->gf('job_type')),
                                              "INCOME"           =>		   build_income_list($dbu->gf('income')),
                                              "HEADLINE"         =>		   $dbu->gf('headline'),
                                              "STATUSMESSAGE"         =>		   $dbu->gf('statusmessage'),
                                              "DESCRIPTION"      =>        $dbu->gf('description'),
                                              'MIN_MEMBER_DESCR' =>        MIN_MEMBER_DESCR,
                                              'MAX_MEMBER_DESCR' =>        MAX_MEMBER_DESCR,
                                              'MIN_HEADLINE'     =>        MIN_HEADLINE,
                                              'MAX_HEADLINE'     =>        MAX_HEADLINE,
                                              'MIN_STATUSMESSAGE'     =>        MIN_STATUSMESSAGE,
                                              'MAX_STATUSMESSAGE'     =>        MAX_STATUSMESSAGE,
                                              "ALLOW_KISS"       =>        $allow_kiss, 
                                              "KISS_NO"          =>        $dbu->gf('kiss_no'),
                                              "PASSWORD_PROTECT" =>        $password_protect, 
                                              "NEWS_SUBSCRIBE"   =>        $news_subscribe, 
                                              "MATCHES_SUBSCRIBE"=>        $matches_subscribe
                         )
                    );
    
                    
       $dbu->query("select * from relationship");
       $dbu2=new mysql_db;
    
    while($dbu->move_next())
    {
       	$i++;
       	
       	$ft->assign('RELATIONSHIP_NAME', $dbu->f('name'));
       	$ft->assign('RELATIONSHIP_ID', $dbu->f('relationship_id'));
       	if(!$glob['Submit'])
       	{
    	   	$dbu2->query("select * from member_relationship where relationship_id='".$dbu->f('relationship_id')."' and member_id='".$glob['member_id']."'");
    	    if($dbu2->move_next())
    	    {
    	        $ft->assign("CHECKED", 'checked');
    	    }
    	   	else 
    	    {
            	$ft->assign("CHECKED", '');
    	    }
       	}
       	else 
       	{
    	    if($glob['relationship_id'][$dbu->f('relationship_id')])
    	    {
    	    		$ft->assign("CHECKED", 'checked');
    	    }
    	    else 
    	    {
    	       	$ft->assign("CHECKED", '');
    	    }
    	   	$dbu2->query("select * from member_relationship where relationship_id='".$dbu->f('relationship_id')."' and member_id='".$glob['member_id']."'");
       		$dbu2->move_next();
       	}
       	    
        $ft->assign("RELATIONSHIP_GENDER", build_gender_list2($dbu2->f('gender')));
        $ft->assign("RELATIONSHIP_S_YEAR", build_numbers_list(LOWEST_AGE, HIGHEST_AGE,$dbu2->f('start_year')));
        $ft->assign("RELATIONSHIP_E_YEAR", build_numbers_list(LOWEST_AGE,HIGHEST_AGE,$dbu2->f('end_year')));
       	
    	$ft->parse('REL_OUT','.relationship_row');
    }
                    
                    
       $dbu->query("select name, interest_id from interest");
    
    $i=0;
    while($dbu->move_next())
    {
       	$i++;
       	
       	$ft->assign('INTEREST_NAME', $dbu->f('name'));
       	$ft->assign('INTEREST_ID', $dbu->f('interest_id'));
       	if(!$glob['Submit'])
       	{
    	   	$dbu2->query("select * from member_interest where interest_id='".$dbu->f('interest_id')."' and member_id='".$glob['member_id']."'");
    	    if($dbu2->move_next())
    	    {
    	        $ft->assign("CHECKED", 'checked');
    	    }
    	   	else 
    	    {
    	        $ft->assign("CHECKED", '');
    	    }
       	}
       	else 
       	{
    	    if($glob['interest'][$dbu->f('interest_id')])
    	    {
    	    	$ft->assign("CHECKED", 'checked');
    	    }
    	    else 
    	    {
    	       	$ft->assign("CHECKED", '');
    	    }
       	}
    	$ft->parse('INT_OUT','.interest_row');
    	if($i==4)
    	{
    		$ft->parse('INTS_OUT','.interests');
    		$ft->clear("INT_OUT");
    		$ft->clear_dynamic('INTS_OUT','blank_row');
    		$i=0;
    	}
    }
    if($i!=4 && $i>0)
    {
    	$ft->assign('WIDTH', (4-$i)*123 );
    	$ft->parse('BLANK_OUT','.blank_row');
    }
       
    $ft->parse('INTS_OUT','.interests');
    $ft->clear_dynamic('INTS_OUT','interest_row');
    $ft->clear_dynamic('INTS_OUT','blank_row');
       
          
    }
    else
    {
    return false;
    }
    $ft->assign('NEXT_FUNCTION',$next_function);
    $ft->assign('MEMBER_ID',$glob['member_id']);
    $ft->assign('MESSAGE',$glob['error']);
    $glob['error']='';
    
    $ft->parse('CONTENT','main');
    $ft->clear_dynamic('CONTENT','relationship_row');
    $ft->clear_dynamic('CONTENT','interests');
    //$ft->fastprint('CONTENT');
    return $ft->fetch('CONTENT');
    
    ?>

     

    page2:

    <?php
    /************************************************************************
    *************************************************************************
    *@Title                                                                 *
    *************************************************************************/
    
    
    $dbu=new mysql_db;
    
    $ft=new ft(ADMIN_PATH.MODULE."templates/");
    $ft->define(array('main' => "home.html"));
    $ft->define_dynamic('member_row','main');
    $l_r=ROW_PER_PAGE;
    
    $time_stamp = mktime ( date("H"), date("i")-ONLINE_TIMEOUT, date("s"), date("m"), date("d"), date("Y") );
    $time_stamp2 = mktime ( date("H"), date("i")-$timeout, date("s"), date("m"), date("d"), date("Y") );
    
    if(($glob['ofs']) || (is_numeric($glob['ofs'])))
    {
    $glob['offset']=$glob['ofs'];
    }
    if((!$glob['offset']) || (!is_numeric($glob['offset'])))
    {
            $offset=0;
    }
    else
    {
            $offset=$glob['offset'];
    }
    $arguments="";
    $filter='';
    
    $filter.=" and action >= '".$time_stamp."'";
    
    
    
    $dbu=new mysql_db;
    $dbu2=new mysql_db;
    
    $dbu->query("SELECT distinct action, username, gender, thumb, member_id, city, country, headline, birthdate, publish_photo, password_protect FROM member WHERE active1='1' AND active2='1' ".$filter." ORDER BY username");
    
    $max_rows=$dbu->records_count();
    $ft->assign("ROWS", $max_rows - 1);
    $dbu->move_to($offset);
    $i=0; 
    $parse=0;
            while($dbu->move_next()&&$i<$l_r)
    
    
    $vars['member_id']=$_SESSION[u_ID];
    
    
    if(!$vars['member_id'])
    {
    }
    else
    {
    $dbu->query("SELECT first_name, last_name FROM member WHERE member_id='".$vars['member_id']."'");
        $dbu->move_next();
      	$ft->assign("NAME", $dbu->f('first_name')." ".$dbu->f('last_name') );
      	
        $dbu->query('SELECT COUNT(*) AS rowcount FROM member'); 
        $dbu->move_next(); 
        $ft->assign('MEMBER', $dbu->f('rowcount')); 
    
      $dbu->query('SELECT COUNT(*) AS rowcount FROM flashchat_connections'); 
        $dbu->move_next(); 
        $ft->assign('INCHAT', $dbu->f('rowcount')); 
    
    $dbu->query('SELECT COUNT(*) AS Man FROM member WHERE gender=\'Man\''); 
        $dbu->move_next(); 
        $ft->assign('MAN', $dbu->f('Man')); 
    
    $dbu->query('SELECT COUNT(*) AS Woman FROM member WHERE gender=\'Woman\''); 
        $dbu->move_next(); 
        $ft->assign('WOMAN', $dbu->f('Woman')); 
    
      	$dbu->query("SELECT COUNT(*) AS maxrows FROM p_message WHERE member_id='".$vars['member_id']."' AND `read`='0'");
        $dbu->move_next();
      	$ft->assign("PM_NO", $dbu->f('maxrows') );
       
        $dbu->query("SELECT distinct visitor_id FROM visit WHERE member_id='".$vars['member_id']."'");
        $i=0;
        while($dbu->move_next())
        {
        	$i++;
        }
    $ft->assign("V_NO", $i);
    
        $time_stamp = mktime ( date("H"), date("i")-ONLINE_TIMEOUT, date("s"), date("m"), date("d"), date("Y") );
        
    $dbu->query("SELECT COUNT(*) AS maxrows FROM member WHERE action >= '".$time_stamp."'");
    $dbu->move_next();
    $ft->assign("ONLINE_NO", $dbu->f('maxrows') );
    
    //*********get most viewed man*****************
    $dbu->query("select username, member_id, birthdate, picture, password_protect, publish_photo, thumb, headline, country, viewed from member where gender = 'Man' order by viewed DESC limit 0,2");
    $dbu->move_next();
    list($b_year,$b_month,$b_day )=split("-",$dbu->f('birthdate'));
    $ft->assign(array(
                      "MP_MAN_NAME"    		 =>        $dbu->f('username'),
                      "MP_MAN_LOCATION"    =>        $dbu->f('country'),
                      "MP_MAN_AGE"     		 =>        get_age($b_month,$b_day,$b_year),
                      "MP_MAN_DESCRIPTION"    =>        $dbu->f('headline'),
                      "MP_MAN_VIEWED"    		 =>        $dbu->f('viewed')+1,
                      "MP_MAN_VIEW"     	 =>        'index.php?pag=member_profile&member_id='.$dbu->f('member_id'),
                     )
               );
    if($dbu->f('thumb'))
    {
    	//********begin get thumbnail code****
    	$picture = get_thumbnail($dbu->f('thumb'),$dbu->f('password_protect'), $dbu->f('publish_photo'), $dbu->f('member_id'), $_SESSION[u_ID], $me );
    	$ft->assign('MP_MAN_IMAGE', $script_path.UPLOAD_PATH.$picture);
    	//********end get thumbnail code****	                        
    
    	/*
    
    	if($dbu->f('password_protect')==1)
    		$ft->assign('MP_MAN_IMAGE', $script_path.UPLOAD_PATH.'password.jpg');
    	else
    		$ft->assign('MP_MAN_IMAGE', $script_path.UPLOAD_PATH.$dbu->f('thumb'));
    	*/	
    	}
    else 
    {
    $ft->assign('MP_MAN_IMAGE', $script_path.'img/na_small.gif');
    }
    
    //*********get most viewed woman*****************
    $dbu->query("select username, member_id, birthdate, picture, password_protect, publish_photo, thumb, headline, country, viewed from member where gender = 'Woman' order by viewed DESC limit 0,2");
    $dbu->move_next();
    list($b_year,$b_month,$b_day )=split("-",$dbu->f('birthdate'));
    $ft->assign(array(
                      "MP_WOMAN_NAME"    		 =>        $dbu->f('username'),
                      "MP_WOMAN_LOCATION"    =>        $dbu->f('country'),
                      "MP_WOMAN_AGE"     		 =>        get_age($b_month,$b_day,$b_year),
                      "MP_WOMAN_DESCRIPTION"    =>        $dbu->f('headline'),
                      "MP_WOMAN_VIEWED"    		 =>        $dbu->f('viewed')+1,
                      "MP_WOMAN_VIEW"     	 =>        'index.php?pag=member_profile&member_id='.$dbu->f('member_id'),
                     )
               );
    if($dbu->f('thumb'))
    {
    	//********begin get thumbnail code****
    	$picture = get_thumbnail($dbu->f('thumb'),$dbu->f('password_protect'), $dbu->f('publish_photo'), $dbu->f('member_id'), $_SESSION[u_ID], $me );
    	$ft->assign('MP_WOMAN_IMAGE', $script_path.UPLOAD_PATH.$picture);
    	//********end get thumbnail code****	                        
    
    	/*
    
    	if($dbu->f('password_protect')==1)
    		$ft->assign('MP_WOMAN_IMAGE', $script_path.UPLOAD_PATH.'password.jpg');
    	else
    		$ft->assign('MP_WOMAN_IMAGE', $script_path.UPLOAD_PATH.$dbu->f('thumb'));
    	*/	
    	}
    else 
    {
    $ft->assign('MP_WOMAN_IMAGE', $script_path.'img/na_small.gif');
    }
    
    //*******get newest members*********************************
    $dbu->query("SELECT member_id, username, birthdate, picture, thumb, password_protect, publish_photo, gender, headline, viewed FROM member WHERE active1='1' AND active2='1' AND visible='2' ORDER BY member_id DESC LIMIT 4");
    while($dbu->move_next())
    {
    	list($b_year,$b_month,$b_day )=split("-",$dbu->f('birthdate'));
    	$ft->assign(array(
    	                  "NM_NAME"    		 =>        $dbu->f('username'),
    	                  "NM_GENDER"    	 =>        $dbu->f('gender'),
    	                  "NM_HEADLINE"    		 =>        $dbu->f('headline'),
    	                  "NM_VIEWED"    		 =>        $dbu->f('viewed'),
    	                  "NM_AGE"     		 =>        get_age($b_month,$b_day,$b_year),
    	                  "NM_VIEW"     	 =>        'index.php?pag=member_profile&member_id='.$dbu->f('member_id'),
    	                 )
    	           );
    	if($dbu->f('thumb'))
    	{
    	//********begin get thumbnail code****
    	$picture = get_thumbnail($dbu->f('thumb'),$dbu->f('password_protect'), $dbu->f('publish_photo'), $dbu->f('member_id'), $_SESSION[u_ID], $me );
    	$ft->assign('NM_IMAGE', $script_path.UPLOAD_PATH.$picture);
    	//********end get thumbnail code****	                        
    
    	/*
    
    	if($dbu->f('password_protect')==1)
    		$ft->assign('NM_IMAGE', $script_path.UPLOAD_PATH.'password.jpg');
    	else
    		$ft->assign('NM_IMAGE', $script_path.UPLOAD_PATH.$dbu->f('thumb'));
    	*/	
    	}
    	else 
    	{
    		$ft->assign('NM_IMAGE', $script_path.'img/na_small.gif');
    	}
    	           
    	$ft->parse('member_ROW_OUT','.member_row');         
    }	
    }
    $ft->assign('MESSAGE',$vars['error']);
    $_db_flogin=new mysql_db;    
    
    
    
    $ft->parse('CONTENT','main');
    //$ft->fastprint('CONTENT');
    return $ft->fetch('CONTENT');
    
    ?>

  12. hi everyone

    i was wondering if anyone can help me i have a website and each member has there own profile what i want to do is add a text box and button where people can type there own status message in and it will show on there profile when people view it anyone have any idea how this can be done?thanks...

  13. hi

    i was wondering if anyone knew how i can make a combo box popup of a dir on my site if the number 100 or 200 etc.. is on the same page and then be able to download a script from the combo box dir hope you know what im talking about i have a Affiliate/Referral script that counts hits and when that person get too 100 Affiliate/Referrals i want them to be able to pick a script to download and after they download the script they pick 100 points will be taken away from them

  14. hi

    does anyone know where i can get a digital download Affiliate script so if a Affiliate member get 100 people to my site they will get a free download of any product on my site? i will pay for this if anyone can find one or make one thanks...

  15. hi ok thanks what i dont understand is i installed the script yesterday and it worked great so i deleted the script and reuploaded it and now im getting that error i even upload a new copy i will try that and let you know if it worked thanks...

  16. hi here is the tplparser.php thanks for your time

    <?php
    /**
    * // Load template file //
    *
    * $tpl = new tplparser;
    * $tpl->setDir( 'tpl/' );
    * $tpl->dHtml( 'file_name.tpl' ); 
    * $content = $tpl->tHtml( 'file_name.tpl' );
    *
    * * // Load template block //
    * $tpl->dbHtml( 'file_name.tpl', 'HEAD' );
    * $content = $tpl->tbHtml( 'file_name.tpl', 'HEAD' ); 
    * <!-- BEGIN HEAD -->
    * <!-- END HEAD -->
    *
    */
    
    class TplParser
    {
    var $content;
    var $TplFile;
    var $block;
    var $startBlock;
    var $endBlock;
    var $endBlockLine;
    var $fileContent;	
    var $blockContent;
    var $cache;
    var $iso;
    var $directory;
      
      function TplParser( ){
    $this->content 		= '';
    $this->TplFile 		= '';
    $this->block	    = '';
    $this->startBlock   = '<!-- BEGIN_';
    $this->endBlock 	= '<!-- END_';
        $this->endBlockLine = ' -->';
        $this->cache        = true;
        $this->iso          = true;
    } // end function TplParser
    
    function dHtml( $sFile, $bCache = true, $bIso = true ){
    	$this->setFile( $this->directory.$sFile );
        $this->cache =    $bCache;
        $this->iso =      $bIso;
    
    	$this->display( );
        echo $this->content;
        unset( $this->content );
    	flush( );
    } // end function dHtml
    
    function tHtml( $sFile, $bCache = true, $bIso = true ){
    	$this->setFile( $this->directory.$sFile );
        $this->cache =    $bCache;
        $this->iso =      $bIso;
    
    	$this->display( );
    	return $this->content;
    } // end function tHtml
    
    function dbHtml( $sFile, $sBlock, $bCache = true, $bIso = true ){
    	$this->setFile( $this->directory.$sFile );
    	$this->setBlock( $sBlock );
    
        $this->cache =    $bCache;
        $this->iso =      $bIso;
    
    	$this->display( true );
        echo $this->content;
        unset( $this->content );
    	flush( );
    } // end function dbHtml
    
    function tbHtml( $sFile, $sBlock, $bCache = true, $bIso = true ){
    	$this->setFile( $this->directory.$sFile );
    	$this->setBlock( $sBlock );
    
        $this->cache =    $bCache;
        $this->iso =      $bIso;
    
    	$this->display( true );
    	return $this->content;
    } // end function tbHtml
    
    function display( $bBlock = null ){
    	if( $this->checkFile( ) ){
    		if( isset( $bBlock ) )
    			$this->blockParse( );
    		else
    			$this->allParse( );
    	}
    } // end function display
    
    function checkFile( ){
    	if( is_file( $this->TplFile ) ){
      	return true;
      }
    	else {
          $this->content = null;
    		//echo 'No template file: <i>'.$this->TplFile.'</i><br />';
    		return false;
    	}
    } // end function checkFile
    
    function parse( ){
    
    	if( !isset( $poz ) )
          $poz[1][1] = 0;
        
    	while( strpos( $this->content, '$', $poz[1][1] ) )  {
    		$poz[1][1] = strpos( $this->content, '$', $poz[1][1] ) + 1;
    
    		preg_match( '/\$[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\[\]x7f-\xff]*/', $this->content, $wyniki );
    
    		if( ereg( '\]', $wyniki[0] ) ){
            if( ereg( '\[', $wyniki[0] ) ){
      				$poz[1][2] = $poz[1][1] + strpos( $wyniki[0], ']' );
              $bArray = true;
            }
            else{
              $poz[1][2] = $poz[1][1] + strpos( $wyniki[0], ']' ) - 1;
              $bArray = null;
            }
          }
    		else{
    			$poz[1][2] = $poz[1][1] + strlen( $wyniki[0] ) - 1;
            $bArray = null;
          }
    
    		$TplVar = substr( $this->content, $poz[1][1], $poz[1][2] - $poz[1][1] );
    
    		if( isset( $bArray ) ){
    			list($var,) = explode( '[', $TplVar );
            if( isset( $GLOBALS[$var] ) ){
      				global $$var;
              $poz[2][1]= strpos( $TplVar, '[' )+1;
              $poz[2][2]= strpos( $TplVar, ']' );
              $key = substr( $TplVar, $poz[2][1], $poz[2][2]-$poz[2][1] );
              
              if( isset( ${$var}[$key] ) )
                $tekst = ${$var}[$key];
              else
                $tekst = null;
            }
            else{
              $tekst = null;
            }
    		} 
    		else {
    			global $$TplVar;
      		  $tekst = $$TplVar;
    		}
    		$this->content = substr( $this->content, 0, $poz[1][1] - 1 ) . $tekst .  substr( $this->content, $poz[1][2] );
    	} // end while
    
    	$this->content = substr( $this->content, 0 );
    	return true;
    
    } // end function parse
    
    function allParse( ){
        if( isset( $this->fileContent[$this->TplFile] ) ){
          $this->content = $this->fileContent[$this->TplFile];
        }
        else{
          $this->content = $this->getContent( );
        }
    	$this->parse( );
    } // end function allParse
    
    function blockParse( ){
       
        if( isset( $this->blockContent[$this->TplFile][$this->block] ) ){
          $this->content = $this->blockContent[$this->TplFile][$this->block];
        }
        else{
          $this->content = $this->getFileBlock( );
          if( isset( $this->content ) ){
            if( $this->cache == true ){
              $this->blockContent[$this->TplFile][$this->block] = $this->content;
            }
          }
        }
        $this->parse( );
    } // end function blockParse
    
      function getContent( $bBlock = null ){
        if( isset( $this->fileContent[$this->TplFile] ) ){
          $mReturn = $this->fileContent[$this->TplFile];
        }
        else{
          if( isset( $bBlock ) ){
            $mReturn = $this->getFile( $this->TplFile );
          }
          else{
            $mReturn = $this->getFile( $this->TplFile );
          }
    
          if( $this->cache == true )
            $this->fileContent[$this->TplFile] = $mReturn;
        }
        return $mReturn;
      } // end function getContent
    
      function getFile( $sFile ){
        $rFile =  fopen( $sFile, 'r' );
        $iSize =  filesize( $sFile );
        if( $iSize > 0 )
          $sContent = fread( $rFile, $iSize );
        else
          $sContent = null;
        fclose( $rFile );
        return ' '.$sContent;
      } // end function getFile
    
      function getFileBlock( $sFile = null, $sBlock = null ){
        if( isset( $sFile ) && isset( $sBlock ) ){
          $this->setFile( $sFile );
          $this->setBlock( $sBlock );
        }
    
        $sFile =          $this->getContent( true );
    
        $iStart = strpos( $sFile, $this->startBlock.$this->block.$this->endBlockLine );
        $iEnd =   strpos( $sFile, $this->endBlock.$this->block.$this->endBlockLine );
    
        if( is_int( $iStart ) && is_int( $iEnd ) ){
          $iStart += strlen( $this->startBlock.$this->block.$this->endBlockLine );
          return ' '.substr( $sFile, $iStart, $iEnd - $iStart );
        }
        else {
          echo 'No block: <i>'.$this->block.'</i> in file: '.$this->TplFile.' <br />';
          return null;
        }
      } // end function getFileBlock
    
      function getFileArray( $sFile ){
        return file( $sFile );
      } // end function getFileArray
    
      function getDir( ){
        return $this->directory;
      } // end function getDir
    
      function setDir( $sDir ){
        $this->directory = $sDir;
      } // end function setDir
    
      function setFile( $sFile ){
        $this->TplFile = $sFile;
      } // end function setFile
    
      function setBlock( $sBlock ){
        $this->block = $sBlock;
      } // end function setBlock
    
    
    }; // end class TplParser
    ?>
    

  17. here is the script its saying the error is thanks...

    <?
    //^^^^^^^^^^^^^^^^^	MySQL database connection ! ^^^^^^^^^^^^^^^^\\
    
    $db_host = "localhost";	# Enter your MySQL database hostname, often it is not necessary to edit this line
    
    $db_username = "ttttt";	# Enter your MySQL database username
    
    $db_password = "tttt";	# Enter your MySQL database password
    
    $db_name = "tttt";	# Enter the MySQL database name
    
    
    
    //\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\
    //^^^^^^^^^^^^^^^^^^^^^^^ DO NOT EDIT BELOW THIS LINE ! ^^^^^^^^^^^^^^^^^^^^^^\\
    //\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\
    
    require_once('tplparser.php');
    
    $conn = mysql_connect($db_host, $db_username, $db_password) or die(mysql_error());
    $db = mysql_select_db($db_name, $conn) or 
    $err = 'Unknown database '.$db_name.', you must create it before continuing!';
    
    session_start();
    $t = time();
    $PHPSESSID = session_id();
    
    if(!ereg("/install.php", @$_SERVER['REQUEST_URI']))
    {
    //get the main site settings
    $qset = "SELECT * FROM pc_settings";
    $rset = mysql_query($qset) or die(mysql_error());
    $aset = mysql_fetch_array($rset);
    $style = $aset['Style'];
        $currsymbol = $aset['CurrSymbol'];
        $currcode   = $aset['CurrCode'];
        $sec_dir = $aset['SecDir'];
    
        $tpl = new TplParser;
        $tpl->setDir('templates/'.$style.'/');
    
    //get the Topbanner (full)
    $qfull = "SELECT * FROM pc_banners WHERE BannerType = 'Full' ";
    $rfull = mysql_query($qfull) or die(mysql_error());
    
    if(mysql_num_rows($rfull) > '1')
    {
    while($afull = mysql_fetch_array($rfull)){
    $fullBannerID[] = $afull['BannerID'];
    }
    srand((float)microtime() * 10000000);
    
    $fullID = array_rand($fullBannerID);
    $FullBID = $fullBannerID[$fullID];
    
    //get the selected banner
    $qfull1 = "SELECT * FROM pc_banners WHERE BannerID = '$FullBID' ";
    $rfull1 = mysql_query($qfull1) or die(mysql_error());
    $afull1 = mysql_fetch_array($rfull1);
    
    $TopBanner = "<a href=\"$afull1[bannerURL]\" target=_blank><img src=\"banners/$afull1[bannerFile]\" border=0 title=\"$afull1[AltText]\"></a>";
    }
    elseif(mysql_num_rows($rfull) == '1')
    {
    $afull = mysql_fetch_array($rfull);
    $TopBanner = "<a href=\"$afull[bannerURL]\" target=_blank><img src=\"banners/$afull[bannerFile]\" border=0 title=\"$afull[AltText]\"></a>";
    }
    
    //get the SideBanner (menu)
    $qbb = "SELECT * FROM pc_banners WHERE BannerType = 'Menu' ";
    $rbb = mysql_query($qbb) or die(mysql_error());
    
    if(mysql_num_rows($rbb) > '1')
    {
    while($abb = mysql_fetch_array($rbb)){
    $bBannerID[] = $abb['BannerID'];
    }
    srand((float)microtime() * 10000000);
    
    $bID = array_rand($bBannerID);
    $ButtonID = $bBannerID[$bID];
    
    //get the selected banner
    $qbb1 = "SELECT * FROM pc_banners WHERE BannerID = '$ButtonID' ";
    $rbb1 = mysql_query($qbb1) or die(mysql_error());
    $abb1 = mysql_fetch_array($rbb1);
    
    $SideBanner = "<a href=\"$abb1[bannerURL]\" target=_blank><img src=\"banners/$abb1[bannerFile]\" border=0 title=\"$abb1[AltText]\"></a>";
    }
    elseif(mysql_num_rows($rbb) == '1')
    {
    $abb = mysql_fetch_array($rbb);
    $SideBanner = "<a href=\"$abb[bannerURL]\" target=_blank><img src=\"banners/$abb[bannerFile]\" border=0 title=\"$abb[AltText]\"></a>";
    }
    
    //show cart status
    $q1 = "select * from pc_orders_content where OrderID = '$PHPSESSID' ";
    $r1 = mysql_query($q1) or die(mysql_error());
    $rows = mysql_num_rows($r1);
    
    if($rows == '0'){ $cart_total = '0.00';$num_items = '0';
    }
    else
    {
    while($a1 = mysql_fetch_array($r1))
    {
    $num_items = $rows;
    if ($currsymbol != '&#8364;'){ 
    @$cart_total = number_format($cart_total + $a1['ItemPrice'], 2, ".", "");
    }
    else { 
    $cprice = $a1['ItemPrice'];
    @$ctotal = number_format($ctotal + $cprice, 2, ".", "");
    $cart_total = str_replace('.', ',', $ctotal);
    }}
    }
    
    if($aset['LogMode'] == '1'){
    if(!empty($_SESSION['cmr_name']) && !empty($_SESSION['cmr_pass'])){
    $user_name = $_SESSION['cmr_name'];
    @$user_pass = $_SESSION['cmr_pass'];
    $status = $tpl->tbHtml('session_tpl.php', 'MY_CART_1');
    }else{
    @$user_name = $_SESSION['cmr_name'];
    $status = $tpl->tbHtml('session_tpl.php', 'LOGIN_FORM');
    }
    }
    else{
    $_SESSION['cmr_name'] = 'customer';
    $user_name = $_SESSION['cmr_name'];
    $status = $tpl->tbHtml('session_tpl.php', 'MY_CART_2');
    }
    }
    
    ?>

  18. hi

    can anyone help me? im getting this error on my site thanks...

     

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/scriptsr/public_html/conn.php:1) in /home/scriptsr/public_html/conn.php on line 26[code]

    [/code]

×
×
  • 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.