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 03-09-2009, 08:55 AM
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: 96,769
Tequila is on a distinguished road
Default Remove Adoptables from adopt.php?

Is there a way to remove the adoptable creatures from the adopt.php page without harming the script? I use a .HTML page for the adoptables so that it looks nicer, and users have been bypassing it (violating my site's ToS in process).
Reply With Quote
  #2  
Old 03-09-2009, 11:59 AM
Rsmiley Rsmiley is offline
Member
 
Join Date: May 2008
Posts: 90
Credits: 4,269
Rsmiley
Default RE: Remove Adoptables from adopt.php?

well it would be simple but difficult at the same time...

but it could be done...

If no one wants to step up i can do a quick simple kind of alteration for it
Reply With Quote
  #3  
Old 03-09-2009, 01:54 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: 96,769
Tequila is on a distinguished road
Default RE: Remove Adoptables from adopt.php?

Quote:
Originally Posted by Rsmiley
well it would be simple but difficult at the same time...

but it could be done...

If no one wants to step up i can do a quick simple kind of alteration for it
That would be nice. I just want it to redirect to my .HTML page instead of letting them adopt through the .PHP page.
Reply With Quote
  #4  
Old 03-10-2009, 12:06 AM
Quillink Quillink is offline
Member
 
Join Date: Dec 2008
Posts: 93
Credits: 11,253
Quillink
Default RE: Remove Adoptables from adopt.php?

I'd very much like this as well. Even though all my links point to the html page, I'm afraid users might somehow see the verticle-ness of the .php equivalent. D:
Reply With Quote
  #5  
Old 03-10-2009, 05:35 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,643
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
  #6  
Old 03-11-2009, 03:30 AM
Ashje Ashje is offline
Member
 
Join Date: Jan 2009
Posts: 179
Credits: 10,027
Ashje
Default RE: Remove Adoptables from adopt.php?

Or just find the out-put section and delete the out-put code and place a message saying "Go to the .html Page" or something. =)
Reply With Quote
  #7  
Old 03-11-2009, 08:35 AM
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: 96,769
Tequila is on a distinguished road
Default RE: Remove Adoptables from adopt.php?

Thanks for that Brandon. Works great.

I thought about doing what Ashje said, but wanted to make sure that I wouldn't screw the code up.
Reply With Quote
  #8  
Old 03-13-2009, 12:30 AM
Ashje Ashje is offline
Member
 
Join Date: Jan 2009
Posts: 179
Credits: 10,027
Ashje
Default RE: Remove Adoptables from adopt.php?

I did it so the names wouldn't come out. You can always make a back up and try anyway...

I lol'd at how easily Brandon solves our problems. That's what I love about Rusnak Scripts, the great support.
Reply With Quote
  #9  
Old 03-13-2009, 08:28 AM
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: 96,769
Tequila is on a distinguished road
Default RE: Remove Adoptables from adopt.php?

Your right Ashje. I've edited it so the name doesn't show, but they can find out from how I have my images hosted...
Reply With Quote
Reply

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 08:47 PM.

Currently Active Users: 541 (0 members and 541 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