Commit e28e37cd authored by lrargerich's avatar lrargerich

Tiki 1.4 changes and additions

parent 743e3027
......@@ -70,6 +70,8 @@ tiki/article_image.php -text
tiki/backups/license.txt -text
tiki/banner_click.php -text
tiki/banner_image.php -text
tiki/categorize.php -text
tiki/categorize_list.php -text
tiki/changelog.txt -text
tiki/comments.php -text
tiki/commxmlrpc.php -text
......@@ -80,6 +82,7 @@ tiki/db/tiki_0.9to0.95.sql -text
tiki/db/tiki_1.0to1.1.sql -text
tiki/db/tiki_1.1to1.2.sql -text
tiki/db/tiki_1.2to1.3.sql -text
tiki/db/tiki_1.3to1.4.sql -text
tiki/display_banner.php -text
tiki/doc/tiki.doc -text
tiki/doc/tiki.pdf -text
......@@ -199,6 +202,7 @@ tiki/modules/mod-forums_most_visited_forums.php -text
tiki/modules/mod-last_blog_posts.php -text
tiki/modules/mod-last_created_blogs.php -text
tiki/modules/mod-last_created_faqs.php -text
tiki/modules/mod-last_created_quizzes.php -text
tiki/modules/mod-last_file_galleries.php -text
tiki/modules/mod-last_files.php -text
tiki/modules/mod-last_image_galleries.php -text
......@@ -209,14 +213,17 @@ tiki/modules/mod-logged_users.php -text
tiki/modules/mod-num_submissions.php -text
tiki/modules/mod-old_articles.php -text
tiki/modules/mod-random_pages.php -text
tiki/modules/mod-shoutbox.php -text
tiki/modules/mod-top_active_blogs.php -text
tiki/modules/mod-top_articles.php -text
tiki/modules/mod-top_file_galleries.php -text
tiki/modules/mod-top_files.php -text
tiki/modules/mod-top_games.php -text
tiki/modules/mod-top_image_galleries.php -text
tiki/modules/mod-top_images.php -text
tiki/modules/mod-top_images_th.php -text
tiki/modules/mod-top_pages.php -text
tiki/modules/mod-top_quizzes.php -text
tiki/modules/mod-top_visited_blogs.php -text
tiki/modules/mod-top_visited_faqs.php -text
tiki/modules/mod-user_blogs.php -text
......@@ -233,10 +240,18 @@ tiki/styles/dblue/dbluebot.jpg -text
tiki/styles/dblue/dbluetop.jpg -text
tiki/styles/default.css -text
tiki/styles/default2.css -text
tiki/styles/jalist/bg.png -text
tiki/styles/jalist/fcap.png -text
tiki/styles/jalist/grad.gif -text
tiki/styles/jalist/grad.jpg -text
tiki/styles/jalist/grad.png -text
tiki/styles/jalist/maincap.png -text
tiki/styles/jalist/menucap.png -text
tiki/styles/subsilver.css -text
tiki/styles/subsilver/cellpic1.gif -text
tiki/styles/subsilver/cellpic2.jpg -text
tiki/styles/subsilver/cellpic3.gif -text
tiki/templates/categorize.tpl -text
tiki/templates/comments.tpl -text
tiki/templates/error.tpl -text
tiki/templates/footer.tpl -text
......@@ -257,6 +272,7 @@ tiki/templates/modules/mod-forums_most_visited_forums.tpl -text
tiki/templates/modules/mod-last_blog_posts.tpl -text
tiki/templates/modules/mod-last_created_blogs.tpl -text
tiki/templates/modules/mod-last_created_faqs.tpl -text
tiki/templates/modules/mod-last_created_quizzes.tpl -text
tiki/templates/modules/mod-last_file_galleries.tpl -text
tiki/templates/modules/mod-last_files.tpl -text
tiki/templates/modules/mod-last_image_galleries.tpl -text
......@@ -272,14 +288,17 @@ tiki/templates/modules/mod-old_articles.tpl -text
tiki/templates/modules/mod-quick_edit.tpl -text
tiki/templates/modules/mod-random_pages.tpl -text
tiki/templates/modules/mod-search_box.tpl -text
tiki/templates/modules/mod-shoutbox.tpl -text
tiki/templates/modules/mod-top_active_blogs.tpl -text
tiki/templates/modules/mod-top_articles.tpl -text
tiki/templates/modules/mod-top_file_galleries.tpl -text
tiki/templates/modules/mod-top_files.tpl -text
tiki/templates/modules/mod-top_games.tpl -text
tiki/templates/modules/mod-top_image_galleries.tpl -text
tiki/templates/modules/mod-top_images.tpl -text
tiki/templates/modules/mod-top_images_th.tpl -text
tiki/templates/modules/mod-top_pages.tpl -text
tiki/templates/modules/mod-top_quizzes.tpl -text
tiki/templates/modules/mod-top_visited_blogs.tpl -text
tiki/templates/modules/mod-top_visited_faqs.tpl -text
tiki/templates/modules/mod-user_blogs.tpl -text
......@@ -296,6 +315,8 @@ tiki/templates/tik-remind_password.tpl -text
tiki/templates/tiki-admin.tpl -text
tiki/templates/tiki-admin_categories.tpl -text
tiki/templates/tiki-admin_chat.tpl -text
tiki/templates/tiki-admin_content_templates.tpl -text
tiki/templates/tiki-admin_content_templatess.tpl -text
tiki/templates/tiki-admin_cookies.tpl -text
tiki/templates/tiki-admin_forums.tpl -text
tiki/templates/tiki-admin_hotwords.tpl -text
......@@ -303,6 +324,7 @@ tiki/templates/tiki-admin_links.tpl -text
tiki/templates/tiki-admin_menu_options.tpl -text
tiki/templates/tiki-admin_menus.tpl -text
tiki/templates/tiki-admin_modules.tpl -text
tiki/templates/tiki-admin_notifications.tpl -text
tiki/templates/tiki-admin_poll_options.tpl -text
tiki/templates/tiki-admin_polls.tpl -text
tiki/templates/tiki-admin_rssmodules.tpl -text
......@@ -322,11 +344,16 @@ tiki/templates/tiki-chat.tpl -text
tiki/templates/tiki-chat_box.tpl -text
tiki/templates/tiki-chatroom.tpl -text
tiki/templates/tiki-custom_home.tpl -text
tiki/templates/tiki-custom_home_2.tpl -text
tiki/templates/tiki-edit_article.tpl -text
tiki/templates/tiki-edit_banner.tpl -text
tiki/templates/tiki-edit_blog.tpl -text
tiki/templates/tiki-edit_help_tool.tpl -text
tiki/templates/tiki-edit_programmed_content.tpl -text
tiki/templates/tiki-edit_question_options.tpl -text
tiki/templates/tiki-edit_quiz.tpl -text
tiki/templates/tiki-edit_quiz_questions.tpl -text
tiki/templates/tiki-edit_quiz_results.tpl -text
tiki/templates/tiki-edit_submission.tpl -text
tiki/templates/tiki-edit_templates.tpl -text
tiki/templates/tiki-editpage.tpl -text
......@@ -347,6 +374,7 @@ tiki/templates/tiki-list_file_gallery.tpl -text
tiki/templates/tiki-list_gallery.tpl -text
tiki/templates/tiki-list_games.tpl -text
tiki/templates/tiki-list_posts.tpl -text
tiki/templates/tiki-list_quizzes.tpl -text
tiki/templates/tiki-list_submissions.tpl -text
tiki/templates/tiki-listpages.tpl -text
tiki/templates/tiki-objectpermissions.tpl -text
......@@ -365,6 +393,9 @@ tiki/templates/tiki-print.tpl -text
tiki/templates/tiki-print_article.tpl -text
tiki/templates/tiki-print_multi_pages.tpl -text
tiki/templates/tiki-print_pages.tpl -text
tiki/templates/tiki-quiz_result_stats.tpl -text
tiki/templates/tiki-quiz_stats.tpl -text
tiki/templates/tiki-quiz_stats_quiz.tpl -text
tiki/templates/tiki-ranking.tpl -text
tiki/templates/tiki-read_article.tpl -text
tiki/templates/tiki-received_articles.tpl -text
......@@ -375,10 +406,12 @@ tiki/templates/tiki-removepage.tpl -text
tiki/templates/tiki-rollback.tpl -text
tiki/templates/tiki-searchresults.tpl -text
tiki/templates/tiki-send_objects.tpl -text
tiki/templates/tiki-shoutbox.tpl -text
tiki/templates/tiki-show_page.tpl -text
tiki/templates/tiki-special_chars.html -text
tiki/templates/tiki-special_chars.php -text
tiki/templates/tiki-stats.tpl -text
tiki/templates/tiki-take_quiz.tpl -text
tiki/templates/tiki-top_bar.tpl -text
tiki/templates/tiki-upload_file.tpl -text
tiki/templates/tiki-upload_image.tpl -text
......@@ -400,6 +433,7 @@ tiki/tiki-admin.php -text
tiki/tiki-admin_banners.php -text
tiki/tiki-admin_categories.php -text
tiki/tiki-admin_chat.php -text
tiki/tiki-admin_content_templates.php -text
tiki/tiki-admin_cookies.php -text
tiki/tiki-admin_forums.php -text
tiki/tiki-admin_hotwords.php -text
......@@ -407,6 +441,7 @@ tiki/tiki-admin_links.php -text
tiki/tiki-admin_menu_options.php -text
tiki/tiki-admin_menus.php -text
tiki/tiki-admin_modules.php -text
tiki/tiki-admin_notifications.php -text
tiki/tiki-admin_poll_options.php -text
tiki/tiki-admin_polls.php -text
tiki/tiki-admin_rssmodules.php -text
......@@ -439,6 +474,10 @@ tiki/tiki-edit_article.php -text
tiki/tiki-edit_banner.php -text
tiki/tiki-edit_blog.php -text
tiki/tiki-edit_programmed_content.php -text
tiki/tiki-edit_question_options.php -text
tiki/tiki-edit_quiz.php -text
tiki/tiki-edit_quiz_questions.php -text
tiki/tiki-edit_quiz_results.php -text
tiki/tiki-edit_submission.php -text
tiki/tiki-edit_templates.php -text
tiki/tiki-editpage.php -text
......@@ -469,6 +508,7 @@ tiki/tiki-list_file_gallery.php -text
tiki/tiki-list_gallery.php -text
tiki/tiki-list_games.php -text
tiki/tiki-list_posts.php -text
tiki/tiki-list_quizzes.php -text
tiki/tiki-list_submissions.php -text
tiki/tiki-listpages.php -text
tiki/tiki-login.php -text
......@@ -489,6 +529,9 @@ tiki/tiki-print_article.php -text
tiki/tiki-print_multi_pages.php -text
tiki/tiki-print_pages.php -text
tiki/tiki-pv_chart.php -text
tiki/tiki-quiz_result_stats.php -text
tiki/tiki-quiz_stats.php -text
tiki/tiki-quiz_stats_quiz.php -text
tiki/tiki-ranking.php -text
tiki/tiki-read_article.php -text
tiki/tiki-received_articles.php -text
......@@ -500,7 +543,9 @@ tiki/tiki-rollback.php -text
tiki/tiki-searchresults.php -text
tiki/tiki-send_objects.php -text
tiki/tiki-setup.php -text
tiki/tiki-shoutbox.php -text
tiki/tiki-stats.php -text
tiki/tiki-take_quiz.php -text
tiki/tiki-upload_file.php -text
tiki/tiki-upload_image.php -text
tiki/tiki-user_assigned_modules.php -text
......@@ -515,6 +560,7 @@ tiki/tiki-view_cache.php -text
tiki/tiki-view_faq.php -text
tiki/tiki-view_forum.php -text
tiki/tiki-view_forum_thread.php -text
tiki/tiki-wiki_link_structure.php -text
tiki/tiki-wiki_rankings.php -text
tiki/tiki-wiki_rss.php -text
tiki/topic_image.php -text
......
<?php
if($feature_categories == 'y') {
$smarty->assign('cat_categorize','n');
if(isset($_REQUEST["cat_categorize"])&&$_REQUEST["cat_categorize"]=='on') {
$smarty->assign('cat_categorize','y');
}
if(isset($_REQUEST["cat_categories"])) {
if(isset($_REQUEST["cat_categorize"])&&$_REQUEST["cat_categorize"]=='on') {
$tikilib->uncategorize_object($cat_type,$cat_objid);
foreach($_REQUEST["cat_categories"] as $cat_acat) {
if($cat_acat) {
$catObjectId=$tikilib->is_categorized($cat_type,$cat_objid);
if(!$catObjectId) {
// The object is not cateorized
$catObjectId = $tikilib->add_categorized_object($cat_type,$cat_objid,$cat_desc,$cat_name,$cat_href);
}
$tikilib->categorize($catObjectId,$cat_acat);
}
}
}
}
$categories = $tikilib->list_all_categories(0,-1,'name_asc','',$cat_type,$cat_objid);
$smarty->assign_by_ref('categories',$categories["data"]);
}
?>
\ No newline at end of file
<?
if($feature_categories == 'y') {
$smarty->assign('cat_categorize','n');
if(isset($_REQUEST["cat_categorize"])&&$_REQUEST["cat_categorize"]=='on') {
$smarty->assign('cat_categorize','y');
}
$categories = $tikilib->list_all_categories(0,-1,'name_asc','',$cat_type,$cat_objid);
if(isset($_REQUEST["cat_categories"])&&isset($_REQUEST["cat_categorize"])&&$_REQUEST["cat_categorize"]=='on') {
for($i=0;$i<count($categories["data"]);$i++) {
if(in_array($categories["data"][$i]["categId"],$_REQUEST["cat_categories"])) {
$categories["data"][$i]["incat"]='y';
} else {
$categories["data"][$i]["incat"]='n';
}
}
}
$smarty->assign_by_ref('categories',$categories["data"]);
}
?>
......@@ -10,6 +10,7 @@ CREATE TABLE tiki_featured_links (
description text,
hits integer(8),
position integer(6),
type char(1),
primary key(url)
);
......@@ -523,6 +524,7 @@ CREATE TABLE tiki_files (
downloads integer(14),
votes integer(8),
points decimal(8,2),
path varchar(255),
primary key(fileId)
);
# END FILE GALLERIES AND FILES
......@@ -895,6 +897,7 @@ create table tiki_faqs(
created integer(14),
questions integer(5),
hits integer(8),
canSuggest char(1),
primary key(faqId)
);
......
alter table tiki_files add path varchar(255);
update tiki_files set path='';
### Groups including groups ###
DROP TABLE IF EXISTS tiki_group_inclusion;
create table tiki_group_inclusion(
groupName varchar(30) not null,
includeGroup varchar(30) not null,
primary key(groupName,includeGroup)
);
###
### ShoutBox ####
insert into users_permissions(permName,type,permDesc) values('tiki_p_view_shoutbox','shoutbox','Can view shoutbox');
insert into users_permissions(permName,type,permDesc) values('tiki_p_admin_shoutbox','shoutbox','Can admin shoutbox (Edit/remove msgs)');
insert into users_permissions(permName,type,permDesc) values('tiki_p_post_shoutbox','shoutbox','Can pot messages in shoutbox');
DROP TABLE IF EXISTS tiki_shoutbox;
create table tiki_shoutbox(
msgId integer(10) not null auto_increment,
message varchar(255),
timestamp integer(14),
user varchar(200),
hash char(32),
primary key(msgId)
);
### ShoutBox ###
alter table tiki_featured_links add type char(1);
update tiki_featured_links set type='f';
insert into users_permissions(permName,type,permDesc) values('tiki_p_suggest_faq','faqs','Can suggest faq questions');
alter table tiki_faqs add canSuggest char(1);
update tiki_faqs set canSuggest='n';
DROP TABLE IF EXISTS tiki_suggested_faq_questions;
create table tiki_suggested_faq_questions (
sfqId integer(10) not null auto_increment,
faqId integer(10) not null,
question text,
answer text,
created integer(14),
user varchar(200),
primary key(sfqId)
);
####
INSERT INTO users_permissions(permName,type,permDesc) VALUES ('tiki_p_edit_content_templates','content templates','Can edit content templates');
INSERT INTO users_permissions(permName,type,permDesc) VALUES ('tiki_p_use_content_templates','content templates','Can use content templates');
DROP TABLE IF EXISTS tiki_content_templates;
create table tiki_content_templates (
templateId integer(10) not null auto_increment,
content longblob,
name varchar(200),
created integer(14),
primary key(templateId)
);
DROP TABLE IF EXISTS tiki_content_templates_sections;
create table tiki_content_templates_sections(
templateId integer(10) not null,
section varchar(250) not null,
primary key(templateId,section)
);
### SQL PART
INSERT INTO users_permissions(permName,type,permDesc) VALUES ('tiki_p_admin_quizzes','quizzes','Can admin quizzes');
INSERT INTO users_permissions(permName,type,permDesc) VALUES ('tiki_p_take_quiz','quizzes','Can take quizzes');
INSERT INTO users_permissions(permName,type,permDesc) VALUES ('tiki_p_view_quiz_stats','quizzes','Can view quiz stats');
INSERT INTO users_permissions(permName,type,permDesc) VALUES ('tiki_p_view_user_results','quizzes','Can view user quiz results');
DROP TABLE IF EXISTS tiki_quiz_stats_sum;
create table tiki_quiz_stats_sum (
quizId integer(10) not null,
quizName varchar(255),
timesTaken integer(10),
avgpoints decimal(5,2),
avgavg decimal(5,2),
avgtime decimal(5,2),
primary key(quizId)
);
### Quizzes
## This table is used to prevent a registered user from
## taking the same quiz twice
drop table if exists tiki_user_taken_quizzes;
create table tiki_user_taken_quizzes(
user varchar(200) not null,
quizId varchar(255) not null,
primary key(user,quizId)
);
DROP TABLE IF EXISTS tiki_quizzes;
create table tiki_quizzes(
quizId integer(10) not null auto_increment,
name varchar(255),
description text,
canRepeat char(1),
storeResults char(1),
questionsPerPage integer(4),
timeLimited char(1),
timeLimit integer(14),
created integer(14),
taken integer(10),
primary key(quizId)
);
### Quiz questions
DROP TABLE IF EXISTS tiki_quiz_questions;
create table tiki_quiz_questions(
questionId integer(10) not null auto_increment,
quizId integer(10),
question text,
position integer(4),
type char(1),
maxPoints integer(4),
primary key(questionId)
);
### Question options
DROP TABLE IF EXISTS tiki_quiz_question_options;
create table tiki_quiz_question_options(
optionId integer(10) not null auto_increment,
questionId integer(10),
optionText text,
points integer(4),
primary key(optionId)
);
### Automatic quiz results shown to the user
DROP TABLE IF EXISTS tiki_quiz_results;
create table tiki_quiz_results (
resultId integer(10) not null auto_increment,
quizId integer(10),
fromPoints integer(4),
toPoints integer(4),
answer text,
primary key(resultId)
);
### Statistics about quizzes
DROP TABLE IF EXISTS tiki_quiz_stats;
create table tiki_quiz_stats (
quizId integer(10) not null,
questionId integer(10) not null,
optionId integer(10) not null,
votes integer(10),
primary key(quizId,questionId,optionId)
);
### Results of quizzes taken by users
DROP TABLE IF EXISTS tiki_user_quizzes;
create table tiki_user_quizzes (
user varchar(100),
quizId integer(10),
timestamp integer(14),
timeTaken integer(14),
points integer(12),
maxPoints integer(12),
resultId integer(10),
userResultId integer(10) not null auto_increment,
primary key(userResultId)
);
### What the user answered in the quiz
DROP TABLE IF EXISTS tiki_user_answers;
create table tiki_user_answers (
userResultId integer(10) not null,
quizId integer(10) not null,
questionId integer(10) not null,
optionId integer(10) not null,
primary key(userResultId,quizId,questionId,optionId)
);
\ No newline at end of file
......@@ -52,8 +52,9 @@ class Comments {
threadOrdering = '$threadOrdering',
pruneMaxAge = $pruneMaxAge
where forumId = $forumId";
$result = $this->db->query($query);
if(DB::isError($result)) $this->sql_error($query, $result);
} else{
$now = date("U");
$query = "insert into tiki_forums(name, description, created, lastPost, threads,
comments, controlFlood,floodInterval, moderator, hits, mail, useMail, usePruneUnreplied,
......@@ -63,10 +64,11 @@ class Comments {
$pruneUnrepliedAge, '$usePruneOld',
$pruneMaxAge, $topicsPerPage,
'$topicOrdering','$threadOrdering') ";
$result = $this->db->query($query);
if(DB::isError($result)) $this->sql_error($query, $result);
$forumId=$this->db->getOne("select max(forumId) from tiki_forums where name='$name' and created=$now");
}
$result = $this->db->query($query);
if(DB::isError($result)) $this->sql_error($query, $result);
return true;
return $forumId;
}
function get_forum($forumId)
......@@ -301,7 +303,10 @@ class Comments {
function parse_smileys($data)
{
global $feature_smileys;
if($feature_smileys == 'y') {
$data = preg_replace("/\(:([^:]+):\)/","<img alt=\"$1\" src=\"img/smiles/icon_$1.gif\" />",$data);
}
return $data;
}
......
This diff is collapsed.
......@@ -147,6 +147,27 @@ class UsersLib {
return $retval;
}
function group_inclusion($group,$include)
{
$query = "replace into tiki_group_inclusion(groupName,includeGroup) values('$group','$include')";
$result = $this->db->query($query);
if(DB::isError($result)) $this->sql_error($query, $result);
}
function get_included_groups($group)
{
$query = "select includeGroup from tiki_group_inclusion where groupName='$group'";
$result = $this->db->query($query);
if(DB::isError($result)) $this->sql_error($query, $result);
$ret=Array();
while($res = $result->fetchRow(DB_FETCHMODE_ASSOC)) {
$ret[]=$res["includeGroup"];
$ret2 = $this->get_included_groups($res["includeGroup"]);
$ret = array_merge($ret,$ret2);
}
return array_unique($ret);
}
function remove_user_from_group($user,$group)
{
$userid = $this->get_user_id($user);
......@@ -176,6 +197,8 @@ class UsersLib {
$aux["groupDesc"] = $res["groupDesc"];
$perms = $this->get_group_permissions($aux["groupName"]);
$aux["perms"] = $perms;
$groups = $this->get_included_groups($aux["groupName"]);
$aux["included"]=$groups;
$ret[] = $aux;
}
$retval = Array();
......@@ -216,8 +239,11 @@ class UsersLib {
$ret = Array();
while($res = $result->fetchRow(DB_FETCHMODE_ASSOC)) {
$ret[] = $res["groupName"];
$included = $this->get_included_groups($res["groupName"]);
$ret = array_merge($ret,$included);
}
$ret[] = "Anonymous";
$ret=array_unique($ret);
return $ret;
}
......
<?php
$ranking = $tikilib->list_quizzes(0,$module_rows,'created_desc','');
$smarty->assign('modLastCreatedQuizzes',$ranking["data"]);
?>
\ No newline at end of file
<?php
if($feature_shoutbox=='y' && $tiki_p_view_shoutbox == 'y') {
$setup_parsed_uri = parse_url($_SERVER["REQUEST_URI"]);
if(isset($setup_parsed_uri["query"]) ) {
parse_str($setup_parsed_uri["query"],$sht_query);
} else {
$sht_query=Array();
}
$shout_father='http://'.$_SERVER["SERVER_NAME"].$setup_parsed_uri["path"];
if(isset($sht_query) && count($sht_query)>0) {
$sht_first=1;
foreach($sht_query as $sht_name => $sht_val) {
if($sht_first) {
$sht_first=false;
$shout_father.='?'.$sht_name.'='.$sht_val;
} else {
$shout_father.='&amp;'.$sht_name.'='.$sht_val;
}
}
$shout_father.='&amp;';
} else {
$shout_father.='?';
}
$smarty->assign('shout_ownurl',$shout_father);
if($tiki_p_admin_shoutbox == 'y') {
if(isset($_REQUEST["shout_remove"])) {
$tikilib->remove_shoutbox($_REQUEST["shout_remove"]);
}
}
if($tiki_p_post_shoutbox == 'y') {
if(isset($_REQUEST["shout_send"])) {
$tikilib->replace_shoutbox(0, $user,$_REQUEST["shout_msg"]);
}
}
$shout_msgs = $tikilib->list_shoutbox(0,$module_rows,'timestamp_desc','');
$smarty->assign('shout_msgs',$shout_msgs["data"]);
}
?>
\ No newline at end of file
<?php
$ranking = $tikilib->list_games(0, $module_rows, 'hits_desc','');
$smarty->assign('modTopGames',$ranking["data"]);
?>
\ No newline at end of file
<?php
$ranking = $tikilib->list_quizzes(0,$module_rows,'created_desc','');
$ranking = $tikilib->list_quiz_sum_stats(0,$module_rows,'timesTaken_desc','');
$smarty->assign('modTopQuizzes',$ranking["data"]);
?>
\ No newline at end of file
......@@ -872,4 +872,73 @@ div.faqanswer {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
width: 97%;
}
\ No newline at end of file
}
/***************************************************** QUIZZES **************************************************************/
#quizmenu { display: none;}
div.questionblock {
border: 1px solid black;
background: white;
margin-bottom: 10px;
}
div.quizquestion {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
margin-bottom: 5px;
}
div.quizoptions {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
}
div.quizdescription {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
border: 1px solid black;
background: white;
margin-bottom: 10px;
}
div.quizanswer {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
border: 1px solid black;
background: white;
margin-bottom: 10px;
}
/***************************************************** SHOUTBOX **************************************************************/
div.shoutboxmsg {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
border: 1px solid black;
background: white;
margin-bottom: 0px;
padding-left: 2px;
padding-top: 1px;
padding-bottom: 1px;
}
div.shoutboxmodmsg {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 10px;
margin-bottom: 4px;
padding-left: 2px;
padding-top: 1px;
padding-bottom: 1px;
}
textarea.tshoutbox{
background-color: white;
border-bottom: #5e5d63 1px solid;
border-left: #5e5d63 1px solid;
border-right: #5e5d63 1px solid;
border-top: #5e5d63 1px solid;
color: #000000;
font-family: verdana, tahoma, arial, helvetica, sans-serif;
font-size: 10px;
}
/* Default2 style for Tiki 1.2 this is a short-version CSS template if you want to FULLY customize
/* Default style for Tiki 1.2 this is a short-version CSS template if you want to FULLY customize
every aspect of Tiki adpat the subsilver CSS file, but normally this is the file you want to
adapt to produce a new theme
adapt to produce a new theme. Good luck!
*/
body {
......@@ -24,10 +24,10 @@ body {
/********************************************* GENERAL LAYOUT *********************************************************/
/* This div encloses the whole Tiki application */
DIV#tiki-main { background: #EFEFE7; height: 100%; width: 100%; margin-top: 0px; margin-bottom: 0px; margin-right: 0px; margin-left: 0px; }
DIV#tiki-main { background: #EFEFE7; height: 100%; margin-top: 0