View Single Post
  #6  
Old 03-24-2009, 08:35 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,736
BMR777 is on a distinguished road
Default RE: QUESTIONS (need answer ASAP)

Quote:
Originally Posted by zhiichiro
yeah :(

can i just change it??

how can i change it.. and how can i remove the www. on the bbcodes?
because of that, it doesnt open.

please tell me how. ty.
To remove the bbcodes, open up manage.php and find:

PHP Code:
else if($action == "bbcode"){
//Adoptable ID is not empty, continue...
    //Check that the adoptable does in fact exist...
    
$query "SELECT * FROM owned_adoptables WHERE uid = '$id'";
    
$result = @mysql_query($query);
    
$num = @mysql_numrows($result);

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

    
$name=@mysql_result($result,$i,"name");
    
$imageurl=@mysql_result($result,$i,"imageurl");
    
$currentlevel=@mysql_result($result,$i,"currentlevel");
    
$totalclicks=@mysql_result($result,$i,"totalclicks");
    
$owner=@mysql_result($result,$i,"owner");

    
$i++;
    }
    if(
$name != ""){
    
    
$cid $id;

    
$article_title "Codes for ".$name."";
    
$article_date date('Y-m-d');
    
$article_content "You can use the codes below to show off your adoptable and get others to level them up.  If you have a website, use the HTML code to put your creature on your website.  If you want to link to your creature in forums, use the BBCODE.<br><br>";
    
$article_content $article_content."<b>HTML:</b><br><textarea name=\"textarea\" cols=\"50\" rows=\"4\"><img src=\"http://www.".$dname."".$spath."/get.php?id=".$cid."\"><br>Creature Name: ".$name."<br>
    <a href=\"http://www."
.$dname."".$spath."/levelup.php?id=".$cid."\">Level this creature up!  Click Here!</a><br></textarea>";

    
$article_content $article_content."<b><br><br>BBCODE:</b><br><textarea name=\"textarea\" cols=\"50\" rows=\"4\">[img]http://www.".$dname."".$spath."/get.php?id=".$cid."[/img]
    Creature Name: "
.$name."
    [url=http://www."
.$dname."".$spath."/levelup.php?id=".$cid."]Level this creature up!  Click Here![/url]</textarea><br>";

    }
    else{
    
$article_title "Invalid Adoptable ID";
    
$article_date date('Y-m-d');
    
$article_content "The adoptable ID specified does not exist in our system.  If you would like your own adoptable you can
    <a href='adopt.php'>get one free here</a>."
;

    }



Then delete that code.

You can also edit that code if you want to change the BBCodes.

To remove the bbcodes in adopt.php find and remove:

PHP Code:
$article_content $article_content."<b>HTML:</b><br><textarea name=\"textarea\" cols=\"50\" rows=\"4\"><img src=\"http://www.".$dname."".$spath."/get.php?id=".$cid."\"><br>Creature Name: ".$name."<br>
    <a href=\"http://www."
.$dname."".$spath."/levelup.php?id=".$cid."\">Level this creature up!  Click Here!</a><br></textarea>";

    
$article_content $article_content."<b><br><br>BBCODE:</b><br><textarea name=\"textarea\" cols=\"50\" rows=\"4\">[img]http://www.".$dname."".$spath."/get.php?id=".$cid."[/img]
    Creature Name: "
.$name."
    [url=http://www."
.$dname."".$spath."/levelup.php?id=".$cid."]Level this creature up!  Click Here![/url]</textarea><br><br>You can now manage ".$name." on the <a href='myadoptables.php'>My Adoptables Page</a>."
That will disable all BBCodes. :)
Reply With Quote