Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Hacks and Modifications

Post Reply
 
Thread Tools
  #1  
Old 11-18-2005, 11:26 AM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
WYSIWYG editor for Pixelpost (Done!)

I made a WYSIWYG editor for PP out of tiny mce.
To use it
  1. Download the zip file. It includes a folder named "tiny_mce". Copy it to includes directory of your pohotoblog.
    Then you will have a directory like this
    myphotoblog_path/includes/tiny_mce
  2. Open the admin/index.php file in an editor and append the line 188
    HTML Code:
    <script language="javascript" type="text/javascript" src="../includes/tiny_mce/tiny_mce.js"></script>
    <script language="javascript" type="text/javascript">
    tinyMCE.init({
    	mode : "textareas",
    	theme : "advanced",
    	theme_advanced_buttons1 : "bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright, justifyfull,bullist,numlist,undo,redo,link,unlink",
    	theme_advanced_buttons2 : "",
    	theme_advanced_buttons3 : "",
    	theme_advanced_toolbar_location : "top",
    	theme_advanced_toolbar_align : "left",
    	theme_advanced_path_location : "bottom",
    	extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]"
    });
    </script>
    after </script> and before </head>.

you may customize the appreance of the editor as you like afterwards...

Dowload Link:
http://www.raminia.com/temp/tiny_mce.zip
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7

Last edited by raminia; 11-18-2005 at 11:57 AM.
Reply With Quote
  #2  
Old 11-18-2005, 11:36 AM
blinking8s's Avatar
blinking8s+ Offline
über loafer
 
Join Date: Oct 2004
Location: Bowling Green, Ky
Posts: 3,428
Send a message via ICQ to blinking8s Send a message via AIM to blinking8s Send a message via MSN to blinking8s Send a message via Skype™ to blinking8s
sweetness...im sure some users will love this
__________________
i should say more clever stuff
Reply With Quote
  #3  
Old 11-18-2005, 11:56 AM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
in PP 1.5 I'll make an admin-addon for it. no hack.
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #4  
Old 11-18-2005, 04:04 PM
Joe[y]'s Avatar
Joe[y]+ Offline
Team Pixelpost
 
Join Date: Mar 2005
Location: UK
Posts: 3,101
Send a message via MSN to Joe[y]
i'll wait for the addon i think! great idea!!
Reply With Quote
  #5  
Old 12-04-2005, 02:03 AM
brian connolly Offline
pp veteran
 
Join Date: Aug 2005
Posts: 59
TinyMCE 2.0 Final released

http://sourceforge.net/forum/forum.php?forum_id=516501
Reply With Quote
  #6  
Old 12-04-2005, 06:32 AM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
Quote:
Originally Posted by brian connolly
cool I'll consider this in the addon release.
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #7  
Old 12-04-2005, 09:58 AM
Sergio de la Torre Offline
pp veteran
 
Join Date: Oct 2005
Posts: 58
I dont know why but nothing happens

Sergio
__________________
Reply With Quote
  #8  
Old 12-04-2005, 10:00 AM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
Quote:
Originally Posted by Sergio de la Torre
I dont know why but nothing happens

Sergio
when where? how? who?

did you add the header? (modifying the admin/index.php)
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #9  
Old 12-15-2005, 10:17 PM
hicks0r Offline
pp regular
 
Join Date: May 2005
Posts: 38
and If I want to add some html code to the post ? tiny_mce doesn't have the button tu swich to code or nocoded

Any solution ?
Reply With Quote
  #10  
Old 12-15-2005, 10:51 PM
hicks0r Offline
pp regular
 
Join Date: May 2005
Posts: 38
I think I got the answer -> https://addons.mozilla.org/extension...fo.php?id=1449

I uninstalled tiny_mce and start using "Xinha! here" .... it's great . Try it !
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 01:03 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs