Where are the {formatting_buttons} comming from?
Posted: 02 July 2009 05:26 PM   [ Ignore ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1206
Joined  04-14-2007

I recently made some customizations to html_buttons.php. This was being done to affect the {exp:comment_buttons}.

I’m now needing to use the {formatting_buttons} for an SAEF but it looks as if these are called for another file because the generated mark-up produced is rendering the buttons in the table which I eliminated from html_buttons.php.

Are these coming from cp_publish.php?

If so, I guess it would need to be a feature request to have the mark-up simplified by removing the table?

Thanks.

 Signature 

Michael Rubens | hothousegraphix
Making the simple complicated is commonplace; making the complicated simple, awesomely simple, that’s creativity. - Charles Mingus

Profile
 
 
Posted: 02 July 2009 11:33 PM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRank
Total Posts:  5108
Joined  03-22-2004

hothousegraphix,

Are you aware you can edit those buttons from inside your control panel?

EE Docs : Default HTML Buttons

 Signature 
Profile
 
 
Posted: 03 July 2009 01:06 PM   [ Ignore ]   [ # 2 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1206
Joined  04-14-2007

Hey John, yup I am.

So I’d guess by you’re question these are in fact generated from cp_publish.php? I just want to take a look under the hood so to speak.

I’m looking at needing to probably create an extension/plugin to take over this functionality because I need to add some additional features; (an extra button to allow users the ability to embed a video object). Not uploading but linking to externally hosted. The idea being that this when the user selects the “video” formatting button, a JS alert is fired requesting the video link - and on confirm, the proper code is added to their textarea.

I’ve done this for the comment formatting buttons but would need this feature to also be applied to an SAEF.

So here’s a few questions about the button behavior. Each user has the ability to conceivably edit these from within their control panel if they had access (which they don’t). Is there a way to have one users button setup apply to all “members”?

Also, is there any reason the mark-up for these buttons is so complicated; i.e. a single row table with multiple cells? When I edited the html_buttons.php output I eliminated all of that an am simply writing a series of links. This cuts down on the html that’s output and the necessary css.

I’m sure at this point you’re going to move this thread - could you move to the HOW-TO rather than the extensions or plugins forums? I never have any success getting anyone to respond to my posts in those forums - they’re like black holes!

Thanks

 Signature 

Michael Rubens | hothousegraphix
Making the simple complicated is commonplace; making the complicated simple, awesomely simple, that’s creativity. - Charles Mingus

Profile
 
 
Posted: 05 July 2009 02:38 PM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRank
Total Posts:  5108
Joined  03-22-2004

Michael,

yeah I though it was gonna be more complicated than that.

While I am gonna move this one to the How to forum may I suggest Ryan’s MD Markitup Extension which is great for creating your own customised buttons.

I use it for commenting and the backend without a need for hacking the core code.

 Signature 
Profile
 
 
Posted: 05 July 2009 02:52 PM   [ Ignore ]   [ # 4 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1206
Joined  04-14-2007

Ha, I’m actually already using Markitup. The needs for these buttons are specific with respect to functionality and style.

I wonder if, with one install of his extension it’s possible to run two different sets of buttons. One with the default styling provided and one jazzed up for the client side.

I’ll have to look at this further.

Thanks

 Signature 

Michael Rubens | hothousegraphix
Making the simple complicated is commonplace; making the complicated simple, awesomely simple, that’s creativity. - Charles Mingus

Profile
 
 
Posted: 14 September 2009 05:11 AM   [ Ignore ]   [ # 5 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  108
Joined  03-09-2009

So here’s a few questions about the button behavior. Each user has the ability to conceivably edit these from within their control panel if they had access (which they don’t). Is there a way to have one users button setup apply to all “members”?

- hothousegraphix, did you ever find the answer to this? i’d love to know how to do this..

Thanks
James

Profile
 
 
Posted: 14 September 2009 05:12 AM   [ Ignore ]   [ # 6 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  108
Joined  03-09-2009

Apologies..

just found it:

CP Home ›  Admin ›  Weblog Administration ›  Default HTML Buttons

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1743, on December 02, 2009 03:47 PM
Total Registered Members: 119761 Total Logged-in Users: 68
Total Topics: 125937 Total Anonymous Users: 34
Total Replies: 662563 Total Guests: 392
Total Posts: 788500    
Members ( View Memberlist )
Newest Members:  adamsmithdj1White HattkatimariedelcaljeffewensJuan AlumadontheobaldBCFEA2FBSalicepie