Mysidia Adoptables Support Forum  

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

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 03-10-2009, 05:35 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 18,274
BMR777 is on a distinguished road
Default RE: Remove Adoptables from adopt.php?

Ok.

In adopt.php find:

PHP Code:
// Get our content for the adoptables page
if($isloggedin == "yes" and $aID == ""){

$article_title "Available Adoptables";
$article_date date('Y-m-d');
$article_content "Below are all the available adoptables.  To adopt a creature simply click on the creature's name.<center>";

$query "SELECT * FROM adoptables";
$result mysql_query($query);
$num mysql_numrows($result);



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

$aID=@mysql_result($result,$i,"uid");
$name=@mysql_result($result,$i,"name");
$imageurl=@mysql_result($result,$i,"imageurl");
$memberlevel=@mysql_result($result,$i,"memberlevel");
$description=@mysql_result($result,$i,"description");

//Begin our content output...
$article_content=$article_content."<p align='center'><b><a href='adopt.php?aID=".$aID."'>".$name.":</a></b></p>
<p align='center'><a href='adopt.php?aID="
.$aID."'><img src='".$imageurl."' border='0'></a> </p>
<p align='center'><a href='adopt.php?aID="
.$aID."'>Adopt ".$name."</a></p>";


$i++;
}

$article_content $article_content."</center><br>";


$article_title stripslashes($article_title);
$article_content stripslashes($article_content);



}
else if (
$isloggedin == "no" and $aID == ""){
// Guest is viewing the available adoptables

$article_title "Available Adoptables (Viewing as Guest)";
$article_date date('Y-m-d');
$article_content "Below are all the available adoptables.  To adopt a creature you must be a member of this site.  Please <a href='login.php'>login</a> or <a href='register.php'>register</a> to get your very own free adoptable.  
You can also browse the available adoptables as a guest.<center>"
;

$query "SELECT * FROM adoptables";
$result mysql_query($query);
$num mysql_numrows($result);



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

$aID=@mysql_result($result,$i,"uid");
$name=@mysql_result($result,$i,"name");
$imageurl=@mysql_result($result,$i,"imageurl");
$memberlevel=@mysql_result($result,$i,"memberlevel");
$description=@mysql_result($result,$i,"description");

//Begin our content output...
$article_content=$article_content."<p align='center'><b><u>".$name.":</u></b></p>
<p align='center'><img src='"
.$imageurl."' border='0'></p>
<p align='center'><a href='login.php'>Please Login to Adopt "
.$name."</a></p>";


$i++;
}

$article_content $article_content."</center><br>";


$article_title stripslashes($article_title);
$article_content stripslashes($article_content);


Replace with:

PHP Code:
if($aID == ""){
header("Location: http://www.yoursite.com/adopt.htm");

Modify the URL in the above code to point to your HTML page on your server where you want users to be redirected. :)
Reply With Quote
 

Thread Tools
Display Modes

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
Adopt many adoptables at once. Aasixx Questions and Supports 9 09-17-2012 11:16 AM
Adoptables not in Adopt Center? AlexC Questions and Supports 6 04-09-2012 10:05 AM
Would you adopt these adoptables? elfhome Other Chat 2 02-15-2011 03:54 PM
Remove Adoptables? Blues Questions and Supports 3 07-28-2009 03:08 PM
Organize adoptables on adopt.php kisazeky Questions and Supports 4 03-22-2009 07:14 PM


All times are GMT -5. The time now is 09:11 AM.

Currently Active Users: 2792 (0 members and 2792 guests)
Threads: 4,081, Posts: 32,032, 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 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636