Jump to content

floridaflatlander

Members
  • Posts

    671
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by floridaflatlander

  1. I mean like test

     

    ...
    while($row = mysql_fetch_array($result)){
    if($row['user_group_id'] <= 2){
    $multiplier = 1;
    }
    if($row['user_group_id'] == 6){
    $multiplier = 2;
    }
    if($row['user_group_id'] == 7){
    $multiplier = 3;
    }
    if($row['user_group_id'] == {
    $multiplier = 4;
    }
    $totalshares = ((($row['activity_blog']*$multiplier)/2)+(($row['activity_comment']*$multiplier)/10));
    
    $set_shares=mysql_query("UPDATE phpfox_user SET bod_shares=$totalshares WHERE profile_page_id=0");
    
    
    echo " User id: ".$row['user_id']." multiplier:".$multiplier." User group:".$row['user_group_id']." 
    - blog:".$row['activity_blog']." - comment:".$row['activity_comment']." totalshares= ".$totalshares."";
    echo "<br />";
    
    
    }
    // echo for test
    echo "Totalshares: $totalshares";
    ?>

    I allways put echo "Whatever: $whatever"; so at least something prints and lets me know the echo is working.

  2. If I had only one pic per category I'd use something like

     

    id | cat_name | image_path | url | summary or what ever  |

     

    echo  '<a href="'.$row['url'].'"><img class="image1" src="'.$row['image_path'].'" alt="'.$row['cat_name/summary or any column you want'].'></a><br />';

     

    or

     

    echo  '<a href="'.$row['url'].'"><img class="image1" src="'.$row['image_path'].'" alt="'.$row['cat_name'].' - '.$row['summary or any column you want'].'></a><br />';

  3. Could I put property id? because each property has its own unique id?

     

    It lookes like you have two unique ids. You probably only need one.  Is id an auto_increment? Anyway as long as they're unique you can use them.

     

    Okay we have

     

    id | property_id | image_path

    id | cat_name

     

    so you could do

     

    echo  '<a href="xxxx.com/category.php?cat='.$row['id or property_id'].'"><img class="image1" src="'.$row['image_path'].'" alt='.$row['cat_name or any column you want'].'></a><br />';

  4. What would I put in "xxxx.com" because the links are going to all be different depending on which image is displayed.

     

    I was assuming you have a table like

     

    cat_id | cat_name | summary | image_name |

    1 | dogs | dogs are great |dogpic.jpg

    2 | cat | cats are better | catpic.jpg

     

    so xxxx.com/category.php?cat='.$row['cat_id']. would become  xxxx.com/category.php?cat=1 and it would be a picture of a dog and a link to the dog category.

     

     

    It would look more like this if I did it

     

    echo  '<a href="xxxx.com/category.php?cat='.$row['cat_id'].'"><img class="image1" src="/image-folder-path/'.$row['image_name'].'" alt='.$row['summary'].'></a><br />';

     

    and your source would end up like this

     

    <a href="xxxx.com/category.php?cat=1"><img class="image1" src="/image-folder-path/'docpic.jpg"' alt="dogs are great"></a><br />

  5. Say you have a category table that has all your cats info including a column for the image location, we'll call it image_path.

     

    run a sql statement to display the categories image_path and cat_id

     

    while (this stuff) {

    echo  '<a href="xxxx.com/category.php?cat='.$row['cat_id'].'"><img class="image1" src="'.$row['image_path'].' alt='.$row['summary'].'></a><br />';

    }

  6. ...if they get your config file, the order you hash the pw & salt and your tables(salt & hashed passwordsdb) you have ... problems.

     

     

    5. ......, instead use sha1(md5($password).$password). It's hard to explain why without getting deep into how hash algos work. There's plenty of info out there if you want to dive deeper.

     

    Whats the difference?

  7. Here is a very useful link http://onlinebusiness.about.com/od/searchengineoptimization/a/search-ranking.htm but when all is said and done it all boils down to content. To me all 10 of these factors hinges on content one way or another.

     

    You don't need different names web site names, just the content that people are looking for, also as a note people say key words but many times they're talking about key phrases. Have them on your page, the higher up the better, Like tab title and an h1 title on the page that says Dallas Air Conditioning Service.

     

    When someone clicks on my domain, which would come up on the search, instead of seeing the generic text,

     

     

    When someone searches for Dallas Air Conditioning Service, they'll see your page title like the one on the tab at the top here and they'll click it and it will go to your site.

     

    Also get people that you do business with to link to your site using "Dallas Air Conditioning Service" not your company name.

  8. I think wordpress allows you to add a general salt (the same one for everybody) on their config page. if you did this you could hash it and the password anyway you want, md5 then sha1 etc.

     

    And yes if they get your config file, the order you hash the pw & salt and your db tables you have a sh*t pot full of problems.

  9. I'd go to the phpbb forums, this should be a standard problem for people moving a forum and you should have people there that could point you in the right direction.

    For example, smf has a file repair_settings that walks you through many of the things you're talking about.

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