Log in

View Full Version : images not showing


dragonqueen
05-21-2010, 01:57 PM
When I post the BBcode in my forum, the image doesn't show, just the word "image". I noticed the same thing was happening to Arvyre pets for awhile but those are showing now, so I'm sure it's nothing to do with my host or forum settings. I read previous topics and I don't have a htaccess file anywhere in my adoptables files. Could that be the problem or maybe because I uploaded my images to photobucket to save upload time? Do they need to be on my server?
Thanks for any help!
http://pattyjean78.plesk.freepgs.com/adoptables/index.php <--adoptables site

http://pattyjean78.plesk.freepgs.com/phpBB3/viewtopic.php?f=48&t=829 <---pets

Tequila
05-21-2010, 09:10 PM
Looks like you're still on the old script, a lot has been fixed since and there is very little support for the old version at the moment.

I'd recommend upgrading, it's easy and you'll keep everything you already have (minus mods).

dragonqueen
05-21-2010, 11:35 PM
k, thought I had downloaded the latest but I see the new one now. Thanks, I will try it out tomorrow. ;)

Tequila
05-22-2010, 09:03 AM
No problem. :)

dragonqueen
05-22-2010, 07:11 PM
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:
http://www.pattyjean78.plesk.freepgs.com/adoptables/get/1.gif (http://www.pattyjean78.plesk.freepgs.com/adoptables/levelup.php?id=1)

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. :(

Tequila
05-22-2010, 09:27 PM
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:
http://www.pattyjean78.plesk.freepgs.com/adoptables/get/1.gif (http://www.pattyjean78.plesk.freepgs.com/adoptables/levelup.php?id=1)

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.

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'>".$domain."".$scriptpath."/siggy.php?id=".$aid." (.$domain."".$scriptpath."/levelup.php?id=".$aid.)
</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'>".$domain."".$scriptpath."/pet/".$aid.".gif (.$domain."".$scriptpath."/levelup.php?id=".$aid.)
</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>";

}

dragonqueen
05-22-2010, 09:53 PM
Not sure what to edit but thanks for trying to help.

Tequila
05-22-2010, 10:11 PM
It's all right, mine has been edited to work better with my site, you can see basics of how to change the original script.