Bravo List
Register
Go Back   > Bravo List > Sourcecode > Free Torrent Source > Mods & Themes
Reply
  #1  
Old 09-01-10, 00:07
elvira's Avatar
elvira elvira is offline
Veteran
 
Join Date: Jan 2008
Slovenia
Posts: 65
Default [FTS 1.0] Enable disable Leftmenu for UserCP
What does this mod do?
With this mod user could set enable or disable leftmenu via User CP. (This mod only effect If lefmenu activated by administrator via settings panel).

SQL
Code:
ALTER TABLE `users` ADD `leftmenu` ENUM( 'yes', 'no' ) NOT NULL DEFAULT 'yes';
open include/functions.php
find
Code:
if ($leftmenu == "yes") {
replace with this
Code:
if ($leftmenu == "yes" AND $CURUSER["leftmenu"] == "yes") {
now for usercp.php:
find
Code:
tr("Torrents per page", "<input type=text name=torrentsperpage value=$CURUSER[torrentsperpage]> (0=use default setting)",1);
add below
Code:
tr("Show Left Menu", "<input type=checkbox name=leftmenu ".($CURUSER[leftmenu] == "yes" ? "checked " : "")."> Show left menu if enabled by administrator.",1);
find:
Code:
$emailnotif = $_POST["emailnotif"];
add below:
Code:
$leftmenu = ($_POST["leftmenu"] != "" ? "yes" : "no");
find:
Code:
$updateset[] = "notifs = " . sqlesc($notifs);
add below:
Code:
$updateset[] = "leftmenu = " . sqlesc($leftmenu);
Reply With Quote
The Following User Says Thank You to elvira For This Useful Post:
Phogo (09-01-10)
Reply

Tags
10 , disable , enable , fts , leftmenu , usercp

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Commenting Rights Enable/Disable blargh Mods & Themes 0 02-06-10 01:29
Enable HTML denys97 Torrent Strike 6 08-05-10 21:04
How to enable ADS in FTS 1.1 yoligim Free Torrent Source 2 31-01-10 22:27
Make leftmenu work right benjaminbih Mods & Themes 0 25-12-09 02:00
Enable/Disable mods [ need help] D3SI TBDev 0 10-10-08 19:03



All times are GMT +2. The time now is 13:22. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2017, vBulletin Solutions Inc.