Bravo List
Register
Go Back   > Bravo List > Torrents Trackers > Free Torrent Source > Mods & Themes
Reply
  #1  
Old 14-12-09, 04:29
benjaminbih's Avatar
benjaminbih benjaminbih is offline
Hobby Coder
 
Join Date: Jul 2008
Bosnia-Herzegovina
Posts: 70
Smile [FTS 1.1] Add Left, Center, Right to WYSIWYG Editor with buttons
Thru this modification you are able about adding 3 additional buttons the WYSIWYG editor. They enable to align the text to left, right side and center

open /include/globalfunctions.php
and find:
PHP Code:
    $s preg_replace"/\[marquee\]((\s|.)+?)\[\/marquee\]/""<marquee>\\1</marquee>",
        
$s ) ; 
and add under it
PHP Code:
    $s preg_replace"/\[left\]((\s|.)+?)\[\/left\]/""<div style='text-align: left;'>\\1</div>",
        
$s ) ;

    
$s preg_replace"/\[center\]((\s|.)+?)\[\/center\]/""<div style='text-align: center;'>\\1</div>",
        
$s ) ;

    
$s preg_replace"/\[right\]((\s|.)+?)\[\/right\]/""<div style='text-align: right;'>\\1</div>",
        
$s ) ; 
open /fts_contents/wsiwyg/sets/default/style.css
and find:
PHP Code:
.markItUp .quotes a    {
    
background-image:url(images/quotes.png);

above it add:
PHP Code:
.markItUp .left a    {
    
background-image:url(images/left.png);
}

.
markItUp .center a    {
    
background-image:url(images/center.png);
}

.
markItUp .right a    {
    
background-image:url(images/right.png);

open /fts_contents/wsiwyg/sets/default/set.js
and find:
PHP Code:
        {separator:'---------------' },
        {
name:'Quotes'openWith:'<<<@!1!@>>>'className:'quotes'},
        {
name:'Code'openWith:'[code]'closeWith:'[/code]'className:'code'}, 
Above add:
PHP Code:
        {separator:'---------------' },
        {
name:'Left'openWith:'[left]'closeWith:'[/left]'className:'Left'},
        {
name:'Center'openWith:'[center]'closeWith:'[/center]'className:'center'},
        {
name:'Right'openWith:'[right]'closeWith:'[/right]'className:'Right'}, 
open /include/libs/format/format-functions.php
and searhc for:
PHP Code:
<script language=javascript>
var 
b_open 0;
var 
i_open 0;
var 
u_open 0;
var 
color_open 0;
var 
list_open 0;
var 
quote_open 0;
var 
html_open 0
add to this list:
PHP Code:
var left_open 0;
var 
center_open 0;
var 
right_open 0
Upload the attached 3 pics to:
PHP Code:
./fts-contents/wysiwyg/sets/default/images 
Attached Files
File Type: rar pics.rar (379 Bytes, 37 views)

Last edited by benjaminbih; 16-12-09 at 23:24.
Reply With Quote
The Following 2 Users Say Thank You to benjaminbih For This Useful Post:
Fynnon (14-12-09), Phogo (11-01-10)
  #2  
Old 14-12-09, 18:51
yoligim's Avatar
yoligim yoligim is offline
Senior Member
 
Join Date: Nov 2009
Spain
Posts: 43
Default a noob question
could you tell me how can I open the WYSIWYG editor?
I mean through what link or page inside the FTS I can open it?
thanks in advance
Reply With Quote
  #3  
Old 14-12-09, 19:09
benjaminbih's Avatar
benjaminbih benjaminbih is offline
Hobby Coder
 
Join Date: Jul 2008
Bosnia-Herzegovina
Posts: 70
Default
the editor is included when you call in youre browser upload.php

Last edited by benjaminbih; 14-12-09 at 20:00.
Reply With Quote
  #4  
Old 16-12-09, 19:51
Edgein's Avatar
Edgein Edgein is offline
Staff
 
Join Date: Sep 2008
Netherlands
Posts: 154
Default
nice mod

but the file /include/format-functions.php is not in my fts1.1

but without the file /include/format-functions.php it works perfect

thx for the nice mod
Reply With Quote
  #5  
Old 16-12-09, 23:25
benjaminbih's Avatar
benjaminbih benjaminbih is offline
Hobby Coder
 
Join Date: Jul 2008
Bosnia-Herzegovina
Posts: 70
Default
Quote:
Originally Posted by Edgein View Post
nice mod

but the file /include/format-functions.php is not in my fts1.1

but without the file /include/format-functions.php it works perfect

thx for the nice mod
Strange i
Reply With Quote
  #6  
Old 17-12-09, 00:04
yoligim's Avatar
yoligim yoligim is offline
Senior Member
 
Join Date: Nov 2009
Spain
Posts: 43
Default
in set.js I have this
PHP Code:
{separator:'---------------' },
        {
name:'Quotes'openWith:'<<<@!1!@>>>'className:'quotes'},
        {
name:'Code'openWith:'[code]'closeWith:'[/code]'className:'code'}, 
not

PHP Code:
{separator:'---------------' },
        {
name:'Quotes'openWith:'<<<@!2!@>>>'className:'quotes'},
        {
name:'Code'openWith:'[code]'[/code][code], closeWith:'[/code]'className:'code'}, 
Is this a problem?

because of I can,t see the 3 extra buttons

Last edited by yoligim; 17-12-09 at 00:07. Reason: error
Reply With Quote
  #7  
Old 17-12-09, 00:33
benjaminbih's Avatar
benjaminbih benjaminbih is offline
Hobby Coder
 
Join Date: Jul 2008
Bosnia-Herzegovina
Posts: 70
Default
@yoligim,

have you added this above the code you past here form/in set.js ??
PHP Code:
        {separator:'---------------' },
        {
name:'Left'openWith:'[left]'closeWith:'[/left]'className:'Left'},
        {
name:'Center'openWith:'[center]'closeWith:'[/center]'className:'center'},
        {
name:'Right'openWith:'[right]'closeWith:'[/right]'className:'Right'}, 
Reply With Quote
  #8  
Old 17-12-09, 01:57
yoligim's Avatar
yoligim yoligim is offline
Senior Member
 
Join Date: Nov 2009
Spain
Posts: 43
Default
Yes, Benjaminbih, so...what's wrong?
any ideas?
thanks in advance:-)
Reply With Quote
  #9  
Old 17-12-09, 02:16
benjaminbih's Avatar
benjaminbih benjaminbih is offline
Hobby Coder
 
Join Date: Jul 2008
Bosnia-Herzegovina
Posts: 70
Default
its a forum problem here, i can
Attached Files
File Type: txt set.txt (7.7 KB, 9 views)
Reply With Quote
Reply

Tags
11 , add , buttos , center , editor , fts , left , wysiwyg

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
Dark Torrents Center v1.0 sharpe Downloads 6 01-05-10 18:59
[FTS 1.1] Center bb code Edgein Mods & Themes 0 12-09-09 08:59
Wysiwyg in upload.php dapache Template Shares 0 01-08-09 22:38
WYSIWYG and shoutbox marirds YSE 2 23-02-09 01:58



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