Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 08-31-2010, 11:13 AM
vexel vexel is offline
Member
 
Join Date: Aug 2010
Posts: 23
Credits: 2,582
vexel
Arrow images aren't showing

Please help me...

my .htaccess file:
Code:
RewriteEngine On


RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^get/([0-9]+).gif$ /siggy.php?id=$1 [L]
my siggy.php file:
Code:
<?php

// **********************************************************************
// Rusnak PHP Adoptables Script
// Copyright 2009 Brandon Rusnak
// For help and support: http://www.rusnakweb.com/forum/
//
// Redistribution prohibited without written permission
//
// File ID: siggy.php
// Purpose: Show signature images for adoptables
// **********************************************************************

// Wake the sleeping giant

// **********************************************************************
// Basic Configuration Info
// **********************************************************************

include("inc/functions.php");
include("inc/config.php");
include("lang/lang.php");

$themeurl = grabanysetting("themeurl");

// **********************************************************************
// Define our top links by calling getlinks()
// **********************************************************************

$links = getlinks();

// **********************************************************************
// Define our ads by calling getads()
// **********************************************************************

$ads = getads("any");

// **********************************************************************
// Grab any dynamic article content from the content table
// **********************************************************************

$pagecontent = getsitecontent("index");
$article_title = $pagecontent[title];
$article_content = $pagecontent[content];
$article_content = nl2br($article_content);

// **********************************************************************
// Grab any settings that we will need for the current page from the DB
// **********************************************************************

$browsertitle = grabanysetting("browsertitle");
$sitename = grabanysetting("sitename");
$slogan = grabanysetting("slogan");

// **********************************************************************
// Check and see if the user is logged in to the site
// **********************************************************************

$loginstatus = logincheck();
$isloggedin = $loginstatus[loginstatus];
$loggedinname = $loginstatus[username];

// **********************************************************************
// End Prepwork - Output the page to the user
// **********************************************************************

// We need to grab an adoptable ID

$id = $_GET["id"];
$id = preg_replace("/[^a-zA-Z0-9s]/", "", $id);
$id = secure($id);

// Check that ID exists and is valid

if(is_numeric($id)){

// The ID appears to be valid, so double check...

$query = "SELECT * FROM ".$prefix."owned_adoptables WHERE aid='$id'";
$result = mysql_query($query);
$num = mysql_numrows($result);

//Loop out code
$i=0;
while ($i < 1) {

$aid=@mysql_result($result,$i,"aid"); //The adoptable's ID
$currentlevel=@mysql_result($result,$i,"currentlevel");
$type=@mysql_result($result,$i,"type");
$name=@mysql_result($result,$i,"name");
$totalclicks=@mysql_result($result,$i,"totalclicks");
$isfrozen=@mysql_result($result,$i,"isfrozen");
$owner=@mysql_result($result,$i,"owner");

$i++;
}

if($aid == $id){

// The adoptable exists, so let's try and show the image

$usingimage = "no";

$image = getcurrentimage($id);

	// Let's see if the server has support for GD or not
	// Also to use fancy images the image must be a gif and fancy images must be enabled...

	$usegd = grabanysetting("gdimages");
	$imageinfo = @getimagesize($image);
	$imagemime = $imageinfo["mime"]; // Mime type of the image file, should be a .gif file...

	if(function_exists('imagegif') and $usegd == "yes" and $imagemime == "image/gif")
	{

	$usingimage = "yes"; //Turn the template system off

	// BEGIN NEW CODE

	list($width, $height, $type, $attr) = getimagesize($image); // The size of the original adoptable image

	// Begin the fancy outputs...

	// Lets create the new target image, with a size big enough for the text for the adoptable

	$newheight = $height + 72;

	if($newwidth < 250){
	$newwidth = 250;
	}
	else{
	$newwidth = $width;
	}

      $img_temp = imagecreatetruecolor($newwidth, $newheight); 


      $alphablending = true;  


    	// Lets create the image and save its transparency  
      $img_old = @imagecreatefromgif($image);  
      imagealphablending($img_old, true);  
      imagesavealpha($img_old, true);
   
     // Lets copy the old image into the new image with  
     // the given size  
     ImageCopyResampled(  
         $img_temp,  
         $img_old,  
         0, 0, 0, 0,  
         $width,  
         $height,  
         $width,  
         $height  
     );  
   
	
	$textheight = $width + 2;

	$image = $img_temp;

	$bgi = imagecreatetruecolor($newwidth, $newheight);

	$color = imagecolorallocate($bgi, 51, 51, 51);


	$str1 = "Name: ".$name;
	$str2 = "Owner: ".$owner;
	$str3 = "Click Here to Feed Me!";
	$str4 = "More Adopts at:";
	$str5 = "www.".$domain;


	imagestring ($image, 12, 0, $textheight,  $str1, $color);
	imagestring ($image, 12, 0, $textheight + 13,  $str2, $color);
	imagestring ($image, 12, 0, $textheight + 26,  $str3, $color);
	imagestring ($image, 12, 0, $textheight + 42,  $str4, $color);
	imagestring ($image, 12, 0, $textheight + 55,  $str5, $color);

	$background = imagecolorallocate($image, 0, 0, 0);  
      ImageColorTransparent($image, $background);  
 
	header("Content-Type: image/GIF");
	ImageGif ($image);
	imagedestroy($image);
	imagedestroy($img_temp);
	imagedestroy($img_old);
	imagedestroy($bgi);

	}
	else{
	
	// We are going to try and get this image the old fashioned way...
	// Define a list of allowed file extentions...

	$extList = array();
	$extList['gif'] = 'image/gif';
	$extList['jpg'] = 'image/jpe';
	$extList['jpeg'] = 'image/jpeg';
	$extList['png'] = 'image/png';

	//Define the output file type
	$contentType = 'Content-type: '.$extList[ $imageinfo['extension'] ];

	if($imageinfo['extension'] =! "image/gif" and $imageinfo['extension'] =! "image/jpeg" and $imageinfo['extension'] =! "image/png"){

	// The file type is NOT ALLOWED
	die("Hacking Attempt!");

	}
	else{

	// File type is allowed, so proceed
	// Try and read the file in

	$status = "";

	header ($contentType);
	$status = readfile($image);

	if($status == "" or $status == "false" or $status == "FALSE"){

	// Reading the file failed, so show an error...	
	header ("text/plain");
	die("Readfile appears to be disabled on your host.");

	}
	


	} 

	}


}
else{

// Bogus ID

$article_title = $err_idnoexist;
$article_content = $err_idnoexist_text;


}
}
else{

// Bogus ID

$article_title = $err_idnoexist;
$article_content = $err_idnoexist_text;

}


// **********************************************************************
// Begin Template Definition
// **********************************************************************

//Define our current theme
$file = $themeurl;

// Do the template changes and echo the ready template
$template = file_get_contents($file);

$template = replace(':ARTICLETITLE:',$article_title,$template);
$template = replace(':ARTICLECONTENT:',$article_content,$template);
$template = replace(':ARTICLEDATE:',$article_date,$template);

$template = replace(':BROWSERTITLE:',$browsertitle,$template);
$template = replace(':SITENAME:',$sitename,$template);

//Define our links
$template = replace(':LINKSBAR:',$links,$template);

//Get the content for the side bar...

$sidebar = getsidebar();
$template = replace(':SIDEFEED:',$sidebar,$template);

//Get the ad content...
$template = replace(':ADS:',$ads,$template);

//Get the slogan info
$template = replace(':SLOGAN:',$slogan,$template);


if($usingimage != "yes"){
echo $template; // Only echo the template if we are not showing an image... 
}

// **********************************************************************
// End Template Definition
// **********************************************************************



?>
and my config.php and inc/config.php files:
Code:
<?php
//Rusnak PHP Adoptables Site Configuration File

$dbhost = 'mysql15.000webhost.com';      		//DB Hostname
$dbuser = 'a8400506_dogz';			//DB User
$dbpass = '*********';			//DB Password
$dbname = 'a8400506_dogz';    			//Your database name
$domain = 'dogz.freeiz.com';    			//Your domain name (No http, www or . )
$scriptpath = '';		//The folder you installed this script in
$prefix = 'adopts_';    			

?>

http://www.dogz.freeiz.com/siggy.php?id=3
http://www.dogz.freeiz.com/get/3.gif

What's wrong?
Reply With Quote
  #2  
Old 09-22-2010, 02:25 AM
jillyronald jillyronald is offline
Banned
 
Join Date: Sep 2010
Posts: 3
Credits: 150
jillyronald
Default RE: images aren't showing

I tested your coding of program and I got a two errors. Write in third line
include("lang.php"); instant of include("lang/lang.php");
and other error is the value of REQUEST_FILENAME is null. Delete it or make it comment.
Reply With Quote
  #3  
Old 09-22-2010, 09:47 AM
vexel vexel is offline
Member
 
Join Date: Aug 2010
Posts: 23
Credits: 2,582
vexel
Default RE: images aren't showing

Ok, but now i have only http://www.dogz.freeiz.com/siggy.php?id=1

And my siggy is oryginal Brandon Code:| .htaccess is also oryginal, but i deleted adoptables200/
Reply With Quote
  #4  
Old 09-30-2010, 01:39 AM
petarsen petarsen is offline
Member
 
Join Date: Sep 2010
Posts: 2
Credits: 136
petarsen
Default RE: images aren't showing

hiiiiiiiiiiiiiiiiiiiii


---------------------------------
Reply With Quote
  #5  
Old 09-30-2010, 05:30 AM
olivia olivia is offline
Member
 
Join Date: Sep 2010
Posts: 1
Credits: 128
olivia
Default RE: images aren't showing

helloooooooooooooooooo





--------------------------------------
Reply With Quote
  #6  
Old 10-01-2010, 02:07 AM
streak streak is offline
Member
 
Join Date: Oct 2010
Posts: 1
Credits: 128
streak
Default RE: images aren't showing

hi olivia,...welcome in this site.,,can you help images are not showing,..
Reply With Quote
  #7  
Old 10-01-2010, 10:22 PM
Tequila's Avatar
Tequila Tequila is offline
The Grim One
 
Join Date: Jan 2009
Location: Souther Tier, New York State
Posts: 1,356
Gender: Female
Credits: 97,339
Tequila is on a distinguished road
Default RE: images aren't showing

Have you tried to delete your .htaccess file? Sometimes it messes stuff up. :)
Reply With Quote
  #8  
Old 10-02-2010, 02:24 AM
Teshia's Avatar
Teshia Teshia is offline
Art Director &amp; Developer
 
Join Date: Sep 2010
Location: On the Road
Posts: 99
Gender: Female
Credits: 5,915
Teshia
Default RE: images aren't showing

D: I thought .htaccess was kinda important.
____________________________________
Reply With Quote
  #9  
Old 10-02-2010, 05:27 AM
vexel vexel is offline
Member
 
Join Date: Aug 2010
Posts: 23
Credits: 2,582
vexel
Default RE: images aren't showing

Ok, it's working, i tried to delete polish language and it wokrs
Reply With Quote
  #10  
Old 10-03-2010, 02:50 PM
Tequila's Avatar
Tequila Tequila is offline
The Grim One
 
Join Date: Jan 2009
Location: Souther Tier, New York State
Posts: 1,356
Gender: Female
Credits: 97,339
Tequila is on a distinguished road
Default RE: images aren't showing

Quote:
Originally Posted by Teshia
D: I thought .htaccess was kinda important.
Not really... XD
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Images not showing? katsRme Feedback and Suggestions 15 08-19-2012 06:08 PM
Signature images not showing Killgore Questions and Supports 23 09-10-2010 03:52 PM
images not showing dragonqueen Questions and Supports 7 05-22-2010 10:11 PM
Images not showing RipJawWolfFang Questions and Supports 32 05-11-2009 10:22 AM
Images not showing Tequila Questions and Supports 22 03-07-2009 07:15 AM


All times are GMT -5. The time now is 01:19 PM.

Currently Active Users: 9708 (0 members and 9708 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636