Jump to content

Jamesking56

Members
  • Content Count

    150
  • Joined

  • Last visited

Posts posted by Jamesking56

  1. Thanks for you help but I have tried what you said and STILL it doesn't work!For some reason it tries to see if profile "user_group.php" exists so it shows a profile doesn't exist error.My PHP file is there!For some reason, it seems to work on my XAMPP Server but not on a web-host.... Do you think its becuase of Safe Mode or a PHP.ini setting?

  2. Hi Guys,I have a site that uses a .htaccess file not made by me.It basically makes:http://bubblechat.uk.to/profile.php?=USERtohttp://bubblechat.uk.to/USERHow do I make it exclude my file user_group.php? it seems to be messing it up... I think...Here is my htaccess file:

    RewriteEngine OnRewriteCond %{HTTP_HOST} ^www\.bubblechat\.uk.to$ [NC]RewriteRule ^.*$ http://bubblechat.uk.to%{REQUEST_URI} [R=301,L]RewriteBase /RewriteCond %{REQUEST_FILENAME} -dRewriteRule ^.* - [L,QSA]RewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^.*/images/(.*)$ /images/$1 [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^.*/uploads_user/(.*)$ /uploads_user/$1 [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^([^/]+)/?$ /profile.php?user=$1 [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^([^/]+)/([^/]+)?$ /profile.php?user=$1$2 [L]

  3. What is wrong with my .htaccess file below? it produces an error 500?

    Options +FollowSymlinksRewriteEngine onRewriteCond %{http_host} ^pasteme\.uk.to [NC]RewriteRule ^(.*)$ [url="http://www.pasteme.uk.to/$1"]http://www.pasteme.uk.to/$1[/url] [R=301,NC]RewriteRule ^([a-zA-Z0-9_-]+)$ show.php?id=$1RewriteRule ^([a-zA-Z0-9_-]+)/$ show.php?id=$1RewriteRule ^action/([a-zA-Z0-9_-]+)$ action.php?do=$1RewriteRule ^action/([a-zA-Z0-9_-]+)/$ action.php?do=$1

  4. Hi,I have css files that are the same EXCEPT for colour differences. I want to make an AJAX color changer on my site.So, How can I make AJAX change the <link rel=""> so it changes the page's Color?

  5. When there is 1 table row its supposed to not use an while loop but it meant to display only that 1 rowWhen there are 2 or more, it uses the while loop to display them allWhen there is 0 rows, its meant to print "No Projects Yet..."Understand?

  6. Hi!I got a big Problem with a Function I am coding.Here is my function:FUNCTION:

    	function projects ( $location )	{		// Get Projects		$query = mysql_query("SELECT * FROM projects WHERE active = 1") or error('FATAL','Could not get projects!');		$count = mysql_num_rows($query);				if ( $count == 0 )		{			$project = 0;		}		else if ( $count == 1 )		{			$noarray = true;		}				// Check Location		if ( $location == '' || !$location )		{			return false;		}		else if ( $location == 'sidebar' )		{			// Sidebar Project Links						if(!$noarray)			{				while( $project = mysql_fetch_assoc($query) )				{					echo "<li><a href=\"" . $project['site'] . "\" title=\"Go To " . $project['name'] . "\" target=\"_blank\">" . $project['name'] . "</a></li>";				}			}			else if ( $project == 0 )			{				// No Projects				echo "<li>No Projects Yet!</li>";			}			else			{				echo "<li><a href=\"" . $query['site'] . "\" title=\"Go To " . $query['name'] . "\" target=\"_blank\">" . $query['name'] . "</a></li>";			}		}		else if ( $location == 'projects' )		{			// Projects Page		}		else		{			// Location Not Found			return false;		}	}

    Now, When I use projects('sidebar'); on a page, it doesn't do it right!In my table, I have 1 Row, It outputs: "No Projects Yet!"In my table, I have 0 Rows, It outputs: "" (nothing)In my table, I have 2 Rows, It outputs: "Link1" and then "link2" (as it should)How can I fix it?

  7. I want to make a Country Redirector using PHPHow can I do this?I want to get the User's IP Address and redirect them to certain pages based on their countryIf the country cannot be found I want to display a page with Flags on it so they can click their country's flag.How can I do this?

  8. Hey,Can someone make a Twitter feed grabber for me in PHP?Make it so there is a Variable for the Feed URL and the dates look like "24 mins ago"All I need is Title and dateYou can do it for the Structure of:

    <ul class="tweet_list"><li class="tweet_even">TITLE <br /><a class="time" href="URL TO ITEM">TIME</a></li><li class="tweet_odd">TITLE <br /><a class="time" href="URL TO ITEM">TIME</a></li></ul>

    Thank you.

  9. Hi there!Is there something out there that is a robot that can post in forums, So that you can setup what it posts and replies to and stuff?Preferably free please!Or,How can I make one using PHP?

×
×
  • Create New...