Uber Groups

Page 1 of 2 12 LastLast
Results 1 to 25 of 50
  1. #1
    Member LIVE is offline
    MemberRank
    Nov 2010 Join Date
    in the middleLocation
    87Posts

    Uber Groups

    Im Doing uber Groups it's taking me too long I have been working on .tpl and the .php. This what I have so far im tired you can add this to your /htdocs and im almost done with .tpl

    Still Working On This Though!
    PHP Code:
    <?php
    /*===================================================+
    || # uberCMS - Website and Content Management System
    |+===================================================+
    || # Copyright © 2008 Meth0d. All rights reserved.
    || # http://www.meth0d.org
    |+===================================================+
    || # uberCMS is provided "as is" and comes without
    || # warrenty of any kind. uberCMS is free software!
    |+===================================================*/

    require_once "global.php";

    ?>

       <div id="groups-habblet-list-container" class="habblet-list-container groups-list">

    <?php
    $get_em 
    mysql_query("SELECT * FROM groups_details ORDER BY rand() LIMIT 12") or die(mysql_error());
    $groups mysql_num_rows($get_em);

    echo 
    "\n    <ul class=\"habblet-list two-cols clearfix\">";

    $num 0;

    while(
    $row mysql_fetch_assoc($get_em)){
    $num++;

    if(
    IsEven($num)){
        
    $pos "right";
        
    $rights++;
    } else {
        
    $pos "left";
        
    $lefts++;
    }

    if(
    IsEven($lefts)){
        
    $oddeven "odd";
    } else {
        
    $oddeven "even";
    }

    $group_id $row['id'];
    $groupdata $row;

    echo 
    "            <li class=\"".$oddeven." ".$pos."\" style=\"background-image: url(./habbo-imaging/badge.php?badge=".$groupdata['badge'].")\">\n        <a class=\"item\" href=\"group_profile.php?id=".$group_id."\">".UberText($groupdata['name'])."</a>\n            </li>\n\n";
    }

    $rights_should_be $lefts;
    if(
    $rights !== $rights_should_be){
        echo 
    "<li class=\"".$oddeven." right\"><div class=\"item\">&nbsp;</div></li>";
    }

    echo 
    "\n    </ul>";
    ?>

            <div class="habblet-button-row clearfix"><a class="new-button" id="purchase-group-button" href="#"><b>Create/buy a Group</b><i></i></a></div>
        </div>

        <div id="groups-habblet-group-purchase-button" class="habblet-list-container"></div>

    <script type="text/javascript">
        $("purchase-group-button").observe("click", function(e) { Event.stop(e); GroupPurchase.open(); });
    </script>





        </div>
    Ajax Files Are Being Coded To Tpl.

    Then after you upload that to your CMS
    add this to your db
    PHP Code:
    -- Estructura de tabla para la tabla `groups_details`
    --

    CREATE TABLE IF NOT EXISTS `groups_details` (
      `
    idint(10NOT NULL AUTO_INCREMENT,
      `
    namevarchar(45COLLATE latin1_general_ci NOT NULL,
      `
    descriptionvarchar(200COLLATE latin1_general_ci NOT NULL,
      `
    owneridint(10NOT NULL,
      `
    roomidint(10NOT NULL,
      `
    createdvarchar(50COLLATE latin1_general_ci NOT NULL,
      `
    badgetext COLLATE latin1_general_ci NOT NULL,
      `
    typeint(1NOT NULL DEFAULT '0',
      `
    recommendedint(1NOT NULL DEFAULT '0',
      `
    viewsint(15NOT NULL,
      `
    panesmallint(1NOT NULL DEFAULT '0',
      `
    topicssmallint(1NOT NULL DEFAULT '0',
      
    PRIMARY KEY (`id`,`name`)
    ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=;

    --
    -- 
    Volcar la base de datos para la tabla `groups_details`
    --


    -- --------------------------------------------------------

    --
    --
    Estructura de tabla para la tabla `groups_memberships`
    --

    CREATE TABLE IF NOT EXISTS `groups_memberships` (
      `
    useridint(10NOT NULL,
      `
    groupidint(10NOT NULL,
      `
    member_rankenum('3','2','1'COLLATE latin1_general_ci NOT NULL DEFAULT '3',
      `
    is_currentenum('0','1'COLLATE latin1_general_ci NOT NULL DEFAULT '0',
      `
    is_pendingenum('0','1'COLLATE latin1_general_ci NOT NULL DEFAULT '0'
    ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

    --
    -- 
    Volcar la base de datos para la tabla `groups_memberships`
    -- 
    Last edited by LIVE; 07-12-10 at 02:13 AM.


  2. #2
    Sorcerer Supreme sidle is offline
    Member +Rank
    Jun 2009 Join Date
    In the buttLocation
    301Posts

    Re: Uber Groups

    Quote Originally Posted by LIVE View Post
    Im Doing uber Groups it's taking me too long I have been working on .tpl and the .php. This what I have so far im tired you can add this to your /htdocs and im almost done with .tpl

    Still Working On This Though!
    PHP Code:
    <?php
    /*===================================================+
    || # SWECMS - Website and Content Management System
    |+===================================================+
    || # Copyright © 2008 Meth0d. All rights reserved.
    || # http://www.meth0d.org
    |+===================================================+
    || # SWECMS is provided "as is" and comes without
    || # warrenty of any kind. SWECMS is free software!
       # you can use for habbo retros if you know what it is (Uber)
    |+===================================================*/

    include('global.php');
    include(
    './inc/tpl.php');

    ?>

       <div id="groups-habblet-list-container" class="habblet-list-container groups-list">

    <?php
    $get_em 
    mysql_query("SELECT * FROM groups_details ORDER BY rand() LIMIT 12") or die(mysql_error());
    $groups mysql_num_rows($get_em);

    echo 
    "\n    <ul class=\"habblet-list two-cols clearfix\">";

    $num 0;

    while(
    $row mysql_fetch_assoc($get_em)){
    $num++;

    if(
    IsEven($num)){
        
    $pos "right";
        
    $rights++;
    } else {
        
    $pos "left";
        
    $lefts++;
    }

    if(
    IsEven($lefts)){
        
    $oddeven "odd";
    } else {
        
    $oddeven "even";
    }

    $group_id $row['id'];
    $groupdata $row;

    echo 
    "            <li class=\"".$oddeven." ".$pos."\" style=\"background-image: url(./habbo-imaging/badge.php?badge=".$groupdata['badge'].")\">\n        <a class=\"item\" href=\"group_profile.php?id=".$group_id."\">".UberText($groupdata['name'])."</a>\n            </li>\n\n";
    }

    $rights_should_be $lefts;
    if(
    $rights !== $rights_should_be){
        echo 
    "<li class=\"".$oddeven." right\"><div class=\"item\">&nbsp;</div></li>";
    }

    echo 
    "\n    </ul>";
    ?>

            <div class="habblet-button-row clearfix"><a class="new-button" id="purchase-group-button" href="#"><b>Create/buy a Group</b><i></i></a></div>
        </div>

        <div id="groups-habblet-group-purchase-button" class="habblet-list-container"></div>

    <script type="text/javascript">
        $("purchase-group-button").observe("click", function(e) { Event.stop(e); GroupPurchase.open(); });
    </script>





        </div>
    [COLOR="Silver"]
    Where to put this

  3. #3
    Member LIVE is offline
    MemberRank
    Nov 2010 Join Date
    in the middleLocation
    87Posts

    Re: Uber Groups

    place it in xampp/htdocs/...thwn where it has the global and .htacess etc place it there

  4. #4
    Sorcerer Supreme sidle is offline
    Member +Rank
    Jun 2009 Join Date
    In the buttLocation
    301Posts

    Re: Uber Groups

    Quote Originally Posted by LIVE View Post
    place it in xampp/htdocs/...thwn where it has the global and .htacess etc place it there
    Okay, wich .php file? and mysql?

    ---------- Post added at 01:56 PM ---------- Previous post was at 01:51 PM ----------

    Warning: include(./inc/tpl.php) [function.include]: failed to open stream: No such file or directory in C:\...\groups.php on line 14

    Warning: include() [function.include]: Failed opening './inc/tpl.php' for inclusion (include_path='.;C:\php5\pear') in C:\...\groups.php on line 14

    Notice: Undefined variable: lefts in C:\...\groups.php on line 51

    Notice: Undefined variable: rights in C:\inetpub\ubertest\groups.php on line 52
    Create/buy a Group

    i get this error
    Last edited by sidle; 04-12-10 at 09:01 PM.

  5. #5
    Sorcerer Supreme DarkBreakX is offline
    Member +Rank
    Apr 2009 Join Date
    GermanyLocation
    364Posts

    Re: Uber Groups

    Warning: include(./inc/tpl.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\groups.php on line 14

    Warning: include() [function.include]: Failed opening './inc/tpl.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\groups.php on line 14
    Table 'lulz.groups_details' doesn't exist


    :D xD

  6. #6
    Sorcerer Supreme sidle is offline
    Member +Rank
    Jun 2009 Join Date
    In the buttLocation
    301Posts

    Re: Uber Groups

    Quote Originally Posted by DarkBreakX View Post
    Warning: include(./inc/tpl.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\groups.php on line 14

    Warning: include() [function.include]: Failed opening './inc/tpl.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\groups.php on line 14
    Table 'lulz.groups_details' doesn't exist


    :D xD
    Same here, we need mysql and we need inc/tpl.php and something like PEAR or shit.

  7. #7
    ส็็็็็็็ Bloodraven is offline
    Grand MasterRank
    Sep 2009 Join Date
    AntarcticaLocation
    2,414Posts

    Re: Uber Groups

    lulz is the database name, groups_details is the table, This was done before though wasn't it, it wasn't released.

  8. #8
    Member LIVE is offline
    MemberRank
    Nov 2010 Join Date
    in the middleLocation
    87Posts

    Re: Uber Groups

    I have to release the ajax files yet im gonna to upload now

    ---------- Post added at 03:07 PM ---------- Previous post was at 02:47 PM ----------

    updated

  9. #9
    Member srdanilo2014 is offline
    MemberRank
    Jan 2010 Join Date
    25Posts

    Re: Uber Groups

    Database with error. Is mis-

    INSERT INTO Groups (`tid`, `group_name`, `group_description`, `group_cost`, `typeid`, `length`, `width`, `top`, `name_cct`, `color`, `group_id_page`, `door `,` tradeable `,` recycleable `,` `group_id_index'');

  10. #10
    Member LIVE is offline
    MemberRank
    Nov 2010 Join Date
    in the middleLocation
    87Posts

    Re: Uber Groups

    Quote Originally Posted by srdanilo2014 View Post
    Database with error. Is mis-

    INSERT INTO Groups (`tid`, `group_name`, `group_description`, `group_cost`, `typeid`, `length`, `width`, `top`, `name_cct`, `color`, `group_id_page`, `door `,` tradeable `,` recycleable `,` `group_id_index'');
    im currently editing this

  11. #11
    Sorcerer Supreme TheJacob is offline
    Member +Rank
    Jun 2010 Join Date
    Toronto, CanadaLocation
    322Posts

    Re: Uber Groups

    Good initiative. I was planning on working on something like this and releasing it as well; haven't had the time due to some other issues though. If you need some help and/or want to release it together; MSN me.

  12. #12
    Sorcerer Supreme keven007 is offline
    Member +Rank
    Jul 2008 Join Date
    The NetherlandsLocation
    275Posts

    Re: Uber Groups

    Nice release, I hope it works.

    The sql does'nt work.
    Table 'HMycZqKFVv_ym.groups_details' doesn't exist

    I get that error.
    Last edited by keven007; 05-12-10 at 12:50 AM.

  13. #13
    Grand Master wichard is offline
    Grand MasterRank
    Jul 2009 Join Date
    The NetherlandsLocation
    649Posts

    Re: Uber Groups

    screens ? Nice if it works

  14. #14
    Banned PEjump2 is offline
    BannedRank
    Jan 2010 Join Date
    The NetherlandsLocation
    2,838Posts

    Re: Uber Groups

    Why do you want groups on you'r hotel? It only slows down you'r MySQL server :o

  15. #15
    Sorcerer Supreme TheJacob is offline
    Member +Rank
    Jun 2010 Join Date
    Toronto, CanadaLocation
    322Posts

    Re: Uber Groups

    Quote Originally Posted by PEjump2 View Post
    Why do you want groups on you'r hotel? It only slows down you'r MySQL server :o
    The only thing that slows it down is your knowledge. You can have the a VPS with 2GB memory and make it run faster than a dedicated server with 24 GB's memory (if you know what you are doing, and the dedicated server user doesn't).

  16. #16
    Sorcerer Supreme sidle is offline
    Member +Rank
    Jun 2009 Join Date
    In the buttLocation
    301Posts

    Re: Uber Groups

    nvm., i got it.
    and btw, i'll test out if my mysql is made.
    ( Holo.BE )
    Last edited by sidle; 05-12-10 at 03:20 PM.

  17. #17
    Member LIVE is offline
    MemberRank
    Nov 2010 Join Date
    in the middleLocation
    87Posts

    Re: Uber Groups

    ok im working on the mysql now

  18. #18
    Member LIVE is offline
    MemberRank
    Nov 2010 Join Date
    in the middleLocation
    87Posts

    Re: Uber Groups

    ok i just added the mysql

  19. #19
    What about no. Davidaap is offline
    Grand MasterRank
    Nov 2009 Join Date
    773Posts

    Re: Uber Groups

    Quote Originally Posted by LIVE View Post
    Im Doing uber Groups it's taking me too long I have been working on .tpl and the .php. This what I have so far im tired you can add this to your /htdocs and im almost done with .tpl

    Still Working On This Though!
    PHP Code:
    <?php
    /*===================================================+
    || # RawCMS - Website and Content Management System
    |+===================================================+
    || # Copyright © 2008 Meth0d. All rights reserved.
    || # http://www.meth0d.org
    |+===================================================+
    || # RawCMS is provided "as is" and comes without
    || # warrenty of any kind. SWECMS is free software!
       # you can use for habbo retros if you know what it is (Uber)
    |+===================================================*/

    require_once "global.php";

    ?>

       <div id="groups-habblet-list-container" class="habblet-list-container groups-list">

    <?php
    $get_em 
    mysql_query("SELECT * FROM groups_details ORDER BY rand() LIMIT 12") or die(mysql_error());
    $groups mysql_num_rows($get_em);

    echo 
    "\n    <ul class=\"habblet-list two-cols clearfix\">";

    $num 0;

    while(
    $row mysql_fetch_assoc($get_em)){
    $num++;

    if(
    IsEven($num)){
        
    $pos "right";
        
    $rights++;
    } else {
        
    $pos "left";
        
    $lefts++;
    }

    if(
    IsEven($lefts)){
        
    $oddeven "odd";
    } else {
        
    $oddeven "even";
    }

    $group_id $row['id'];
    $groupdata $row;

    echo 
    "            <li class=\"".$oddeven." ".$pos."\" style=\"background-image: url(./habbo-imaging/badge.php?badge=".$groupdata['badge'].")\">\n        <a class=\"item\" href=\"group_profile.php?id=".$group_id."\">".UberText($groupdata['name'])."</a>\n            </li>\n\n";
    }

    $rights_should_be $lefts;
    if(
    $rights !== $rights_should_be){
        echo 
    "<li class=\"".$oddeven." right\"><div class=\"item\">&nbsp;</div></li>";
    }

    echo 
    "\n    </ul>";
    ?>

            <div class="habblet-button-row clearfix"><a class="new-button" id="purchase-group-button" href="#"><b>Create/buy a Group</b><i></i></a></div>
        </div>

        <div id="groups-habblet-group-purchase-button" class="habblet-list-container"></div>

    <script type="text/javascript">
        $("purchase-group-button").observe("click", function(e) { Event.stop(e); GroupPurchase.open(); });
    </script>





        </div>
    These are the ajax files.
    ajax_uber_groups.rar

    Then after you upload that to your CMS
    add this to your db
    PHP Code:
    CREATE TABLE IF NOT EXISTS `groups` (
      `
    variable_namevarchar(255NOT NULL,
      `
    valuevarchar(255NOT NULL
    ENGINE=MyISAM DEFAULT CHARSET=latin1;

    --
    -- 
    Dumping data for table `groups`
    --

    INSERT INTO `groups` (`variable_name`, `value`) VALUES
    ('groups(s)_name''1'),
    (
    'group_message'Welcome to UberGroups By LIVE Edit This!.'),
    ('
    group(s)_memebr(s)', '50'); 
    ajax files are copied from holocms -,-

  20. #20
    Member LIVE is offline
    MemberRank
    Nov 2010 Join Date
    in the middleLocation
    87Posts

    Re: Uber Groups

    there being edited to .tpl

  21. #21
    Sorcerer Supreme keven007 is offline
    Member +Rank
    Jul 2008 Join Date
    The NetherlandsLocation
    275Posts

    Re: Uber Groups

    #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '--Estructura de tabla para la tabla `groups_memberships`
    --

    CREATE TABLE I' at line 9

  22. #22
    Member LIVE is offline
    MemberRank
    Nov 2010 Join Date
    in the middleLocation
    87Posts

    Re: Uber Groups

    Quote Originally Posted by keven007 View Post
    #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '--Estructura de tabla para la tabla `groups_memberships`
    --

    CREATE TABLE I' at line 9
    Add that to your database

  23. #23
    Sorcerer Supreme keven007 is offline
    Member +Rank
    Jul 2008 Join Date
    The NetherlandsLocation
    275Posts

    Re: Uber Groups

    Quote Originally Posted by LIVE View Post
    Add that to your database
    I'll get that error when i put the sql in my database

  24. #24
    Member LIVE is offline
    MemberRank
    Nov 2010 Join Date
    in the middleLocation
    87Posts

    Re: Uber Groups

    Quote Originally Posted by keven007 View Post
    I'll get that error when i put the sql in my database
    Your db file scroll to bottom add that to it

  25. #25
    Sorcerer Supreme keven007 is offline
    Member +Rank
    Jul 2008 Join Date
    The NetherlandsLocation
    275Posts

    Re: Uber Groups

    I have the sql in it, now i'll get this error on the page


    Notice: Undefined variable: lefts in C:\xampp\htdocs\groepen.php on line 50

    Notice: Undefined variable: rights in C:\xampp\htdocs\groepen.php on line 51



Page 1 of 2 12 LastLast

Advertisement