Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Move "Submit" button
Avatar
gringojason
Member
Free Members
sp_UserOfflineSmall Offline
Jul 10, 2012 - 8:46 pm

Hello...

When creating a new topic or replaying to an existing topic, I would like to move the line of buttons ("Submit Topic/Reply", "Cancel", "Preview") from below the Smileys and Options menus to either...

1) Ideally, on the same line as the "Upload Attachments" buttons, justified right.

Or...

2) Between the bottom of the reply box and the top of the "Upload Attachments" buttons.

I assume that the 2nd option is easier, probably just moving a lin of PHP around, whereas the first option may require more coding. 

Can you please point me in the right direction? Thanks...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 10, 2012 - 8:59 pm

it seems a bit odd to have the form submit buttons above elements of the form itself...  seems like a confusing UIX... does the stuff below the buttons go with the buttons? (rhetorical question of course)...

you are going to have to create some custom filters to do that...  most of the sections of the submit form have filters on them... you will need to remove the buttons from the location you do not want and then copy the code from our form to your custom function in order to add them back in...

actually quickly looking at the submit section, its not that easy - doesnt look like its uniquely filterable...

so you would need to filter on 'sph_post_editor_controls' and replace the current spEditorSubmitButton div section with an empty string...

then you could filter on 'sph_post_editor_footer_top' and add the code you removed back in...  it would actually be duplicating it since the latter actually occurs first...

so definitely possible and doable, but a bit of a mess if you are not familiar with hooks and filters...  we might need to look into filtering each of the sections separately so they could be removed or added to much easier...

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jul 11, 2012 - 3:01 am

I see that Steve (Mr Papa) has opened a ticket on this - which makes sense - and that means we will get some extra filtering in place to help make what you want to do a simpler task. We will aim to get that into 5.1.2 so I would advise waiting for that if you can. Wont be long in coming.

andy-signature.png
YELLOW
SWORDFISH
Avatar
gringojason
Member
Free Members
sp_UserOfflineSmall Offline
Jul 11, 2012 - 7:05 pm

I can definitely wait. Thanks for the effort and the update. In the meantime, I would like to remove the button "View Existing Media Uploads" and just have the 3 buttons that you guys have here ("Upload Attachments", "View Existing Image Uploads" and "View Existing File Uploads"). How do I make that button disappear? I disabled media uploads in the settings, but that did not remove the button. Thanks...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 11, 2012 - 9:28 pm

working the code changes tonight... will need testing but looks good for 5.1.2...

the view existing media uploads button will disappear if you dont have permission to do so...  BUT keep in mind, as admin, you have permission to do everything... so was this viewed as admin? or regular user where you still see the button?

Avatar
gringojason
Member
Free Members
sp_UserOfflineSmall Offline
Jul 12, 2012 - 12:32 pm

Great point...I was viewing as admin. So I logged in as a user and this is what it looks like. Why are the buttons stacking? Do they do that by default? Is there a way to make them uniform and next to each other, like on the forum here? Thanks...

attachements-shot.jpgImage Enlarger

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jul 12, 2012 - 12:39 pm

Most commonly if they are stacked like that it is an artifact - or leakage - from your Wp theme CSS. if you know how to use a tool like Firebug you can inspect the CSS on the page to see what might be the cause... We can do it but we would need a user account so we could actually see the buttons...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Brandon
U.S.
SP Wrangler
Free Members
sp_UserOfflineSmall Offline
Jul 12, 2012 - 9:26 pm

That looks like the issue on ticket #3124 in the Simple:Press development and bug tracker.
http://mantis.simple-press.com.....hp?id=3124

It should be fixed in the next update.

Avatar
gringojason
Member
Free Members
sp_UserOfflineSmall Offline
Jul 12, 2012 - 9:37 pm

Awesome. Looking forward to the update. Thanks!!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 12, 2012 - 9:38 pm

all well, should be in next week or two...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626