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!
Ajax Files Are Being Coded To Tpl.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\"> </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>
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` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`name` varchar(45) COLLATE latin1_general_ci NOT NULL,
`description` varchar(200) COLLATE latin1_general_ci NOT NULL,
`ownerid` int(10) NOT NULL,
`roomid` int(10) NOT NULL,
`created` varchar(50) COLLATE latin1_general_ci NOT NULL,
`badge` text COLLATE latin1_general_ci NOT NULL,
`type` int(1) NOT NULL DEFAULT '0',
`recommended` int(1) NOT NULL DEFAULT '0',
`views` int(15) NOT NULL,
`pane` smallint(1) NOT NULL DEFAULT '0',
`topics` smallint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`,`name`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;
--
-- 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` (
`userid` int(10) NOT NULL,
`groupid` int(10) NOT NULL,
`member_rank` enum('3','2','1') COLLATE latin1_general_ci NOT NULL DEFAULT '3',
`is_current` enum('0','1') COLLATE latin1_general_ci NOT NULL DEFAULT '0',
`is_pending` enum('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`
--





