Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.7
Author Message
spiros26
New Member
New Member



Joined: Jul 31, 2005
Posts: 2

PostPosted: Sat Aug 06, 2005 11:41 am Reply with quote

how In 7.7 can i reamove the tiny editor form the phpbb text areas (where the BBcode is).

I wnat to have only the phpbb editor there and not phpnuke becouse first of all bbcode is not working second i can not have Greek characters displayed propertly.

But i want the rest of nuke text areas have the editor.

Any idea?
 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Sat Aug 06, 2005 12:26 pm Reply with quote

i dont think you can but you might wanna disable it completely.
howto do that..
the tutorial...

Code:


Introduction

This Tutorial Shows how to Completely Disable the WYSIWYG editor in PHP-Nuke 7.7 & 7.8 and add a switch in the config.php file.
It will Contain four sections, the first is the Introduction.
Second is for the changes that are the same in both versions.
The third for PHP-Nuke 7.7 and the Last for 7.8. I will seperate these sections with Page Breaks.
Well to start off My Name is Max and I am the Redhat Resources Administrator.
I will try to make this tutorial as easy as possible.
I will not offer support for this modification I use it myself so I know it works correctly.
I STRONGLY RECOMMEND THAT YOU BACK UP YOUR FILES OR AT LEAST THE ONES WE ARE MODIFYING, We are going to modify your config.php and /includes/javascript.php. once you have backed up these files you are ready to begin.


LETS START :

Modifying config.php

Find the file config.php this should be located in your phpnuke root.
Often where the index.php and mainfile.php files reside in.

In config.php:

FIND:
Code:
Code:

$advanced_editor = 0;


AFTER ADD:
Code:
Code:

$AE_off = 1;


This is the variable that we are adding to your config file to Disable all WYSIWYG editor occurences on your PHP-Nuke site.
1 will turn ALL WYSIWYG editor occurrences off.
0 will leave it as the files were before this modification.

Once you finish this step go to Page 3 for the rest of the modifications for PHP-Nuke 7.7 or Page 4 for the rest of the modifications for PHP-Nuke 7.8.


NEXT :

Find the javascript.php file in your includes directory which is in your PHP-Nuke root.
This also has meta.php for your meta tags, bbcode.php for you phpbb forums bbcode and sessions.php.

In javascript.php:

FIND:
Code:
Code:

global $module, $name, $admin, $advanced_editor, $lang;


REPLACE WITH:
Code:
Code:

global $module, $name, $admin, $advanced_editor, $lang, $AE_off;


FIND:
Code:
Code:

if (is_admin($admin) AND defined('ADMIN_FILE') AND $advanced_editor == 1) {


REPLACE WITH:
Code:
Code:

if (is_admin($admin) AND defined('ADMIN_FILE') AND $advanced_editor == 1 AND $AE_off != 1) {


FIND:
Code:
Code:

} elseif (is_admin($admin) AND $advanced_editor != 1 AND $name != "Private_Messages") {


REPLACE WITH:
Code:
Code:

} elseif (is_admin($admin) AND $advanced_editor != 1 AND $name != "Private_Messages" AND $AE_off != 1) {


FIND:
Code:
Code:

} elseif ($name != "Private_Messages" AND $name != "Forums") {


REPLACE WITH:
Code:
Code:

} elseif ($name != "Private_Messages" AND $name != "Forums" AND $AE_off != 1) {



That's it now you can change everything back to how it was by changing [code:1:95ae1761fd]$AE_off = 1[/code:1:95ae1761fd] from 1 to 0 in the config.php file.


NEXT :

Find the javascript.php file in your includes directory which is in your PHP-Nuke root. this also has meta.php for your meta tags, bbcode.php for you phpbb forums bbcode and sessions.php.

In javascript.php:

FIND:
Code:
Code:

global $module, $name, $admin, $advanced_editor, $lang, $no_editor;


REPLACE WITH:
Code:
Code:

global $module, $name, $admin, $advanced_editor, $lang, $no_editor, $AE_off;


FIND:
Code:
Code:

if (is_admin($admin) AND defined('ADMIN_FILE') AND $advanced_editor == 1 AND !defined('NO_EDITOR')) {


REPLACE WITH:
Code:
Code:

if (is_admin($admin) AND defined('ADMIN_FILE') AND $advanced_editor == 1 AND !defined('NO_EDITOR') AND $AE_off != 1) {


FIND:
Code:
Code:

} elseif (is_admin($admin) AND $advanced_editor != 1 AND $name != "Private_Messages" AND $name != "Forums" AND !defined('NO_EDITOR')) {


REPLACE WITH:
Code:
Code:

} elseif (is_admin($admin) AND $advanced_editor != 1 AND $name != "Private_Messages" AND $name != "Forums" AND !defined('NO_EDITOR') AND $AE_off != 1) {


FIND:
Code:
Code:

} elseif ($name != "Private_Messages" AND $name != "Forums" AND !defined('NO_EDITOR')) {


REPLACE WITH:
Code:
Code:

} elseif ($name != "Private_Messages" AND $name != "Forums" AND !defined('NO_EDITOR') AND $AE_off != 1) {


That's it now you can change everything back to how it was by changing
Code:
$AE_off = 1
from 1 to 0 in the config.php file.

Thats it
 
View user's profile Send private message
TeKKiE
Hangin' Around



Joined: May 11, 2005
Posts: 48

PostPosted: Fri Aug 12, 2005 7:33 am Reply with quote

I had this problem in the past, and it had to do with certain themes that I would apply to the site. One thing I did while those certain buggy themes were there, was just disable HTML from the configuration page. Easy work around, really. Then I just looked for stable themes that wouldn't create any problems. I also noticed that it affected some user's screens, and not others.
 
View user's profile Send private message Send e-mail
suzy
New Member
New Member



Joined: Apr 10, 2005
Posts: 16

PostPosted: Sat Aug 13, 2005 8:34 pm Reply with quote

I tried to follow the top instructions and the site went completely blank, after replacing what I thought was orginal files back the site is still completely blank. any ideas?

here is the complete config file

This is what I think to be the original file/

[Admin: Deleted as you gave out your password and site key!!!]
 
View user's profile Send private message Visit poster's website
suzy







PostPosted: Sat Aug 13, 2005 8:56 pm Reply with quote

oops, sorry lmao
I fixed it too. Thanks!
 
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sat Aug 13, 2005 9:06 pm Reply with quote

Smack ROTFL
 
View user's profile Send private message
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.7

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©