View Single Post
  #2  
Old 05-22-2010, 09:27 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: 122,838
Tequila is on a distinguished road
Default RE: images not showing

Quote:
Originally Posted by dragonqueen
I installed the new script. Everything installed without problems. However, the images are still not showing up and the link to level them up isn't working either. Could it be a permissions thing?

New site: http://pattyjean78.plesk.freepgs.com/adoptables/index.php

BBcode for a pet:
Code:
Edit: I figured out why the link wasn't working but not the image. In the bbcode, it adds www to the link. If you remove the www it works. I will need to figure how to change that so it doesn't add it in each time. Still can't figure the image issue out. :(
It should be changeable on your myadopts.php page. Look for the following and modify to suit your site.

PHP Code:
else if($act == "bbcode"){

if(
is_numeric($id)){

// Now we see if the adoptable actually exists...

$query "SELECT * FROM ".$prefix."owned_adoptables WHERE owner='$loggedinname' and 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");

$i++;
}

if(
$aid == $id){

$altbb grabanysetting("usealtbbcode");

// Adoptable exists, so show the BBCode:

$article_title "Codes for ".$name;
$article_content $lang_bbcode_explain."<br>
<p><u>Forum Codes / BBCode: </u></p>
<p>
  <textarea name='textarea' cols='50' rows='4'>[url="
.$domain."".$scriptpath."/levelup.php?id=".$aid."][img]".$domain."".$scriptpath."/siggy.php?id=".$aid."[/img][/url]
</textarea>
</p>"
;

if(
$altbb == "yes"){

// Use the seo friendly alternate bbcodes...

$article_content $article_content."<p><u>Alternate BBCodes (Use if the above do not work on a forum): </u></p>
<p>
  <textarea name='textarea' cols='50' rows='4'>[url="
.$domain."".$scriptpath."/levelup.php?id=".$aid."][img]".$domain."".$scriptpath."/pet/".$aid.".gif[/img][/url]
</textarea>
</p>"
;

}



$article_content $article_content."<p><u>HTML Code</u>:</p>
<p>
<textarea name='textarea' cols='50' rows='4'><a href=\""
.$domain."".$scriptpath."/levelup.php?id=".$aid."\" target=\"_blank\">
<img src=\""
.$domain."".$scriptpath."/siggy.php?id=".$aid."\" border=0></a>
  </textarea>
   
</p>"
;


Reply With Quote