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
Moving buttons around integrated toolbar
Avatar
js
Member
Free Members
sp_UserOfflineSmall Offline
Feb 2, 2013 - 8:07 pm

I am trying to figure out how to move the 'submit topic' button to the right of 'cancel' in the integrated toolbar, which is pretty sweet btw, have had no luck finding where to... any guidance will be much appreciated :)

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 2, 2013 - 8:15 pm

might need Andy to weigh in here since he wrote the integrated toolbar stuff... but not sure there is an easy way to do that...

think you will need to hook into the filter 'sph_post_editor_controls' and manually rearrange them...  by that I mean do some string replacements to get the order you want...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 2, 2013 - 8:15 pm

should have added you can look at the filter arguments and details in simple-press/forum/content/forms/sp-form-components.php

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 3, 2013 - 6:11 am

mmmm. Need to give some serious thought to this one. This is one of the very small areas of SP not served by simple templates but we have managed to work around most issues to allow for customisation... but not this one.

let me think on it and come up with a plan for the next release if possible.

andy-signature.png
YELLOW
SWORDFISH
Avatar
js
Member
Free Members
sp_UserOfflineSmall Offline
Feb 3, 2013 - 12:53 pm

simple-press/forum/content/forms/sp-form-components.php

Following that path and manually arranging them worked for me, thanks, in the Topic Form Submit section, Post Form Submit section, and Post Edit Form Submit section I switched these two lines to

$out.= "<input type='button' tabindex='107' class='$controlSubmit vtip' title='$tipCancelButton' id='sfcancel' name='cancel' value='$labelPostCancel' onclick='spjEdCancelEditor();' />\n";
 $out.= "<input type='submit' $enabled tabindex='106' class='$controlSubmit vtip' title='$tipSubmitButton' name='newpost' id='sfsave' value='$buttontext' />\n";
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 3, 2013 - 1:37 pm

so you edited the core code instead of using the filter?? you will lose your changes on an upgrade if you modified core...

a ticket is open to allow more direct control in theme than a filter...

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: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625