Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Free Torrent Source > Mods & Themes
Reply
  #1  
Old 9th January 2010, 00:07
elvira's Avatar
elvira elvira is offline
Senior Member
 
Join Date: Jan 2008
Slovenia
Posts: 172
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 (9th January 2010)
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 2nd June 2010 01:29
Enable HTML denys97 Torrent Strike 6 8th May 2010 21:04
How to enable ADS in FTS 1.1 yoligim Free Torrent Source 2 31st January 2010 22:27
Make leftmenu work right benjaminbih Mods & Themes 0 25th December 2009 02:00
Enable/Disable mods [ need help] D3SI TBDev 0 10th October 2008 19:03



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