- Joined
- Dec 30, 2013
- Messages
- 21
- Reaction score
- 11
This is a simple, quick release of gathering users information for homes.
Put that at the top of the profile page you wish to use. Then you can use 'revcms tags' to gather the information. E.g. Credits would be {HomeCredits}.
{Optional} Add this code to .htaccess to make it so you can use {url}/home/{username} for homes instead of {url}/index.php?url=PAGEYOUCREATED&username={username}. {Optional}
PHP:
<?php $q = mysql_query("SELECT * FROM users WHERE username = '" . filter($_GET['username']) . "' LIMIT 1"); if(mysql_num_rows($q) == 0) { header("location: {$_SESSION['hotel']['url']}/404"); exit; }else{ global $template; foreach(mysql_fetch_assoc($q) as $key => $value) { $template->setParams("{Home" . $key . "}", $value); } }?>
To view the content, you need to sign in or register
(since posted all weird.)Put that at the top of the profile page you wish to use. Then you can use 'revcms tags' to gather the information. E.g. Credits would be {HomeCredits}.
PHP:
RewriteRule ^home/(.*)/?$ index.php?url=PAGEYOUCREATED&username=$1 [L,QSA]
Last edited:

