| RevCMS Homes | Simple |

Status
Not open for further replies.
Newbie Spellweaver
Joined
Dec 30, 2013
Messages
21
Reaction score
11
This is a simple, quick release of gathering users information for homes.

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);        }    }?>
(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]
{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}
 
Last edited:
New RevCMS Homes [Simple]

There was issues with my last release asking for screen shots. It wasn't the style it was just the back end code so could be used on any cms. I'm just going to re-release it. However it will include some style sheets and screen shots of what it looks like.

Screenshot link:


Session - | RevCMS Homes | Simple | - RaGEZONE Forums



Okay so first you will need to create a home.css. And inside the home.css file put this:


Now create a profile page and put this:


Images you may need:
Background:
Session - | RevCMS Homes | Simple | - RaGEZONE Forums

Info Box:
Session - | RevCMS Homes | Simple | - RaGEZONE Forums

Box content:
Session - | RevCMS Homes | Simple | - RaGEZONE Forums

Flags:

Add 'flag' to users table as varcher(20) and set the default to unknown to use flags.

RewriteRule ^home/(.*)/?$ index.php?url=PROFILEPAGENAME&username=$1 [L,QSA]
Add that rule to .httaccess to make accessing the profile more user friendly
 
Last edited:
Re: New RevCMS Homes [Simple]

There was issues with my last release asking for screen shots. It wasn't the style it was just the back end code so could be used on any cms. I'm just going to re-release it. However it will include some style sheets and screen shots of what it looks like.

Screenshot link:


Session - | RevCMS Homes | Simple | - RaGEZONE Forums



Okay so first you will need to create a home.css. And inside the home.css file put this:


Now create a profile page and put this:


Images you may need:
Background:
Session - | RevCMS Homes | Simple | - RaGEZONE Forums

Info Box:
Session - | RevCMS Homes | Simple | - RaGEZONE Forums

Box content:
Session - | RevCMS Homes | Simple | - RaGEZONE Forums

Flags:

Add 'flag' to users table as varcher(20) and set the default to unknown to use flags.

RewriteRule ^home/(.*)/?$ index.php?url=PROFILEPAGENAME&username=$1 [L,QSA]
Add that rule to .httaccess to make accessing the profile more user friendly

What should we do if we use web.config?
 
Re: New RevCMS Homes [Simple]

What should we do if we use web.config?
<rule name="Imported Rule 14">
<match url="^home/([^/]+)/id(|/)$" ignoreCase="false" />
<action type="Rewrite" url="/index.php?url=PAGELINKhome.php&username=={R:1}" appendQueryString="false" />
</rule>

Nice but why that flag?
I made a flag changer in account settings and was testing it out with random flags:)

More things can be added into it.
It's '[Simple]'.
 
Status
Not open for further replies.
Back