Jump to content

awpti

Members
  • Posts

    459
  • Joined

  • Last visited

    Never

Posts posted by awpti

  1. That's the Smarty Template file and does no work on any files. You will need to modify the code behind the file-handler to resize files.

     

    It's perfectly possible to do, but not if you don't know PHP fairly well. You could always ask the original developers where file uploads are handled and make your modifications there.

  2. RewriteRule /member/(.*)$ member-profile.php?member=$1

     

    Roughly.. my syntax is probably off.

     

    Only use (.*) if you have no character limitations. If all users are purely alphanumeric and you want to (and should) enforce that.. use this:

     

    RewriteRule /member/([a-zA-Z0-9])$ member-profile.php?member=$1

  3. Here's a start for you, so you understand indenting (assuming you don't, for obvious reasons):

     

    <?php
    
    $crew_check =mysql_query("SELECT * FROM crews");
    while($k = mysql_fetch_object($crew_check)){
    $user=mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$k->owner'"));
    $underboss=mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$k->underboss'"));
    $rhm=mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$k->rhm'"));
    $lhm=mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$k->lhm'"));
    	if ($user->status == "Dead" || $user->status == "Banned"){
    		if ($k->underboss != "0" && $underboss->status == "Alive"){
    			mysql_query("UPDATE crews SET owner='$k->underboss', underboss='0' WHERE name='$k->name'"); 
    			if ($underboss->status == "Dead" || $underboss->status == "Banned"){
    				if ($k->rhm != "0" && $rhm->status == "Alive"){
    					mysql_query("UPDATE crews SET underboss='$k->rhm', rhm='0' WHERE name='$k->name'"); 
    					if ($rhm->status == "Dead" || $rhm->status == "Banned"){
    						if ($k->lhm != "0" && $lhm->status == "Alive"){
    							mysql_query("UPDATE crews SET rhm='$k->lhm', lhm='0' WHERE name='$k->name'"); 
    
    						}
    						elseif ($k->lhm == "0" || $lhm->status == "Dead" || $lhm->status == "Banned"){
    							mysql_query("UPDATE `users` SET `crew`='0' WHERE `crew`='$k->name'");
    							mysql_query("DELETE FROM crews WHERE name='$k->name'");
    						}
    					}
    				}
    ?>
    

     

    I think we can begin to see what a horrendous mess this application is. This beast needs some SERIOUS refactoring. Yikes.

     

    I'm not going to tab anything else out for you. Good luck.

  4. Custom CSS files (username+random chars? or name it the same as the subdomain).

     

    The less you have in your database, the more performance you'll be able to squeeze out of it. The file system is always faster than a database (for, hopefully, obvious reasons) for storing relatively flat content.

     

    Your idea will work fine - it's how WordPressMU works (though less than elegantly).

     

    I've never seen online articles discussing this specifically, but look into a framework like CodeIgniter, Kohana or Cake to reduce development time and give you more time to sit back and consider viable options.

  5. Yup, again.. Go to their forums and ask how to integrate.

     

    They probably have documentation on custom integration. If not, their users can help you. This really isn't the right place for it (even though PHPFreaks has a Third-Party software forum)

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