[REVCMS HOMES] Badges and Friends won't shows up

Results 1 to 5 of 5
  1. #1
    Guinness Book of Records Goodbook is offline
    MemberRank
    Nov 2012 Join Date
    The NetherlandsLocation
    229Posts

    ! [REVCMS HOMES] Badges and Friends won't shows up

    I use the ''working homes'' tool for RevCMS but the badges and friendslist won't shows up.

    This is the code for badges, but I don't see any badge on my profile.
    The location is right.
    Spoiler:
    <?php
    $getuserid = mysql_query("SELECT id from users where username='{$username}'");
    while($rowing = mysql_fetch_assoc($getuserid)){
    $getmybadges = mysql_query("SELECT * FROM user_badges WHERE user_id = '{$rowing['id']}' ORDER BY RAND()");
    while($badges = mysql_fetch_assoc($getmybadges)) {
    echo "<img src='{url}/r63/c_images/album1584/{$badges['badge_id']}.gif' style='margin-right: 10px;' />";
    }
    }
    ?>


    And this is the code for the friendlist, but they not showing my friends.
    The location is right.
    Spoiler:
    <?php
    $query = mysql_query("SELECT * FROM messenger_friendships WHERE user_one_id = '$id'");
    $i = 1;
    while($friends = mysql_fetch_array($query))
    {
    $getfriend = mysql_query("SELECT * FROM users WHERE id ='".$friends['user_two_id']."' LIMIT 1");
    if(mysql_num_rows($getfriend) > 1)
    {
    $i++;
    if($i == 1)
    {


    echo '';
    }
    $friend = mysql_fetch_array($getfriend);
    $friendname = $friend['username'];
    echo "<a href='index.php?url=home&user=$friendname'>";
    echo htmlspecialchars($friend['username']).'</a>, ';
    }
    }
    if($i > 1)
    echo '</br>'?>


    Anyone knows how to fix this (bug)?
    notworking.png


  2. #2
    Guinness Book of Records Goodbook is offline
    MemberRank
    Nov 2012 Join Date
    The NetherlandsLocation
    229Posts

    Re: [REVCMS HOMES] Badges and Friends won't shows up

    Anyone?

  3. #3
    Account Upgraded | Title Enabled! FapInc is offline
    MemberRank
    Nov 2012 Join Date
    499Posts

    Re: [REVCMS HOMES] Badges and Friends won't shows up

    The commands {} you use in the script, may not been setup on the class.template i guess.

  4. #4
    Guinness Book of Records Goodbook is offline
    MemberRank
    Nov 2012 Join Date
    The NetherlandsLocation
    229Posts

    Re: [REVCMS HOMES] Badges and Friends won't shows up

    Spoiler:
    <?php

    namespace Revolution;
    if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
    class template implements iTemplate
    {

    public $tpl;

    private $params = array();

    final public function Initiate()
    {
    global $_CONFIG, $users, $engine, $core, $template;
    $this->setParams('hotelName', $_CONFIG['hotel']['name']);
    $this->setParams('hotelDesc', $_CONFIG['hotel']['desc']);
    $this->setParams('url', $_CONFIG['hotel']['url']);
    $this->setParams('online', $core->getOnline());
    $this->setParams('status', $core->getStatus());
    $this->setParams('web_build', $_CONFIG['hotel']['web_build']);
    $this->setParams('external_vars', $_CONFIG['hotel']['external_vars']);
    $this->setParams('external_texts', $_CONFIG['hotel']['external_texts']);
    $this->setParams('swf_folder', $_CONFIG['hotel']['swf_folder']);
    $this->setParams('furni_data', $_CONFIG['hotel']['furni_data']);
    $this->SetParams('product_data', $_CONFIG['hotel']['product_data']);
    $this->setParams('server_ip', $_CONFIG['hotel']['server_ip']);

    $this->setParams('mysql_host', $_CONFIG['mysql']['hostname']);
    $this->setParams('mysql_port', $_CONFIG['mysql']['port']);

    $this->setParams('skin', $_CONFIG['template']['style']);

    if($users->isLogged())
    {
    $this->setParams('username', $users->getInfo($_SESSION['user']['id'], 'username'));
    $this->setParams('rank', $users->getInfo($_SESSION['user']['id'], 'rank'));
    $this->setParams('motto', $users->getInfo($_SESSION['user']['id'], 'motto'));
    $this->setParams('email', $users->getInfo($_SESSION['user']['id'], 'mail'));
    $this->setParams('coins', $users->getInfo($_SESSION['user']['id'] ,'credits'));
    $this->setParams('activitypoints', $users->getInfo($_SESSION['user']['id'], 'activity_points'));
    $this->setParams('figure', $users->getInfo($_SESSION['user']['id'], 'look'));
    $this->setParams('ip_last', $users->getInfo($_SESSION['user']['id'], 'ip_last'));

    if($this->params['rank'] > 3)
    {
    $this->setParams('housekeeping', '<li><a href="ase/">Housekeeping</a></li>');
    }
    else
    {
    $this->setParams('housekeeping', '');
    }

    if($_GET['url'] == 'me' || $_GET['url'] == 'account' || $_GET['url'] == 'home' || $_GET['url'] == 'settings' || $_GET['url'] == 'community')
    {
    $template->form->getPageHome();
    }

    if($_GET['url'] == 'news' || $_GET['url'] == 'articles')
    {
    $template->form->getPageNews();
    }
    }

    }

    final public function setParams($key, $value)
    {
    $this->params[$key] .= $value;
    }

    final public function filterParams($str)
    {
    foreach($this->params as $key => $value)
    {
    $str = str_ireplace('{' . $key . '}', $value, $str);
    }

    return $str;
    }

    final public function write($str)
    {
    $this->tpl .= $str;
    }

    final public function outputTPL()
    {
    echo $this->filterParams($this->tpl);
    unset($this->tpl);
    }
    }
    ?>


    Can you find it?

  5. #5
    Account Upgraded | Title Enabled! FapInc is offline
    MemberRank
    Nov 2012 Join Date
    499Posts

    Re: [REVCMS HOMES] Badges and Friends won't shows up

    Its not in there, you need to make your owns, i cant do that for you. Why? Because im not good at that stuff, but i know thats the issue.



Advertisement