Thanks to visit codestin.com
Credit goes to github.com

Skip to content

autisticjane/mytcg_hide-tpost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mytcg_hide-tpost

Allow members to hide the trade post form from their TCG profile.

This is in development.

Requirements

  • MyTCG

Notes

Make sure you back up your files/database before proceeding. I am not responsible for a broken database or malfunctioning files. However, if you have issues, I will try to help you as best I can.

Install

Upload mytcg/create_tpost.php.

Automatic

Upload the files outside the mytcg directory to your TCG directory.

Manual

forms_edit.php

profile.php

Add the following in place of the current location of your tradepost:

<?php if($row[tpost]=="no") {
			echo ""; }
		else {
	?>
	<h2>Trade</h2>
	<form method="post" action="email.php?id=<?php echo "$id"; ?>">
	<input type="hidden" name="id" value="<?php echo "$row[id]"; ?>" />
	<table width="100%" align="center">
	<tr><td>Name:</td><td><input type="text" name="name" value="" /></td></tr>
	<tr><td>Email:</td><td><input type="text" name="email" value="" /></td></tr>
	<tr><td>Trade Post:</td><td><input type="text" name="url" value="http://" /></td></tr>
	<tr><td>You Give:</td><td><input type="text" name="giving" value="" /></td></tr>
	<tr><td>You Want:</td><td><input type="text" name="for" value="" /></td></tr>
	<tr><td>Member Cards:</td><td><input type="radio" name="member" value="yes" /> Yes <input type="radio" name="member" value="no"> No</td></tr>
	<tr><td>&nbsp;</td><td><input type="submit" name="submit" value=" Trade! " /></td></tr>
	</table>
	</form>
<?php } ?>

About

Allow members to hide the trade post form from their TCG profile.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages