https://www.icyphoenix.com/viewtopic.php?f=28&t=6653 ----------------------------------- Yros Wed 04 Nov, 2009 19:33 [MOD IPv1.3.0.*] Sliding Options When Posting ----------------------------------- Hello, *Tip(s) : you can choose to show the content of the menus UNDER the tabs. Everything is explain in the installation. ( @ MG : Maybe another thing to add to the default IP package hm ? ^^ ) [list][*][b]Name of the Mod[/b] : Sliding Options when Posting [*][b]Description [/b]: Replace the long part of options when starting a thread ( posting.php / posting_body.tpl ) by a reducted and animated menu with tabs ( and permissions ), reducting the whole page a lot and making it easier. [*][b]Version [/b]: 1.1.0 [*][b]Démo [/b]: n/a [*][b]Screenshots [/b]: ( under Mozilla/Firefox with BlackPearl skin )( It is in English in the package ) [img]http://d18.e-loader.net/EyO82ltcZF.png[/img] [img]http://d4.e-loader.net/5UjFNk8CBs.png[/img] [/list] Credits : @ Informpro for making the code I gave him working with multi-tabs. @ KasLimon for giving the solution for perms on tabs and idea of lang_var. ~ This mod perfectly work with IP styles ( tested on Pearl and Frozen Phoenix ) but have a little unwanted issue on prosilver_ip : a space between content & tabs. ~ I support every troubles with the code until they are fixed but not the design : You're free to edit yourself the .css and the pictures ^^ ----------------------------------- DWho Wed 04 Nov, 2009 20:53 Re: [Beta] Sliding Options When Posting [For IPv1.3.0.*] ----------------------------------- Great looking mod... I will be tesing and adding to my sites Thanks :mrgreen: :mrgreen: ----------------------------------- Costa Thu 05 Nov, 2009 00:02 Re: [Beta] Sliding Options When Posting [For IPv1.3.0.*] ----------------------------------- Great looking mod :mryellow: ----------------------------------- Yros Thu 05 Nov, 2009 00:41 Re: [Beta] Sliding Options When Posting [For IPv1.3.0.*] ----------------------------------- I'm yours ^.^ If anyone have an idea on how to set up the permissions on tabs ... ( as I said, if a user isn't allowed to use this feature, make the tabs hide too ). If you find any bug or if you have any suggest on the code, don't be shy and tell it for let me update the mod with your ideas / corrections ^^. ----------------------------------- pax Thu 05 Nov, 2009 01:25 Re: [Beta] Sliding Options When Posting [For IPv1.3.0.*] ----------------------------------- don't go... copy all file in ../template/... but don't go... :? ----------------------------------- Yros Thu 05 Nov, 2009 03:01 Re: [Beta] Sliding Options When Posting [For IPv1.3.0.*] ----------------------------------- Have you a link of your forum ? Wich theme are you using ? Did you try another theme ? Edit : in Local I tested for Black Pearl and Frozen Phoenix : both worked perfectly. Check in the template folder you are using if there isn't a file " posting_body.tpl ". If yes it would explain many things. ----------------------------------- pax Thu 05 Nov, 2009 10:52 Re: [Beta] Sliding Options When Posting [For IPv1.3.0.*] ----------------------------------- In local. Theme: ProSilver IP posting_body.tpl [spoiler] {CPL_MENU_OUTPUT}
{INBOX_IMG}
{INBOX}		 {SENTBOX_IMG}
{SENTBOX}		 {OUTBOX_IMG}
{OUTBOX}		 {SAVEBOX_IMG}
{SAVEBOX}
{switch_prv_msg_review.PRIVATE_MSG_TITLE}
{switch_prv_msg_review.PRIVATE_MSG_REVIEW}
{IMG_THL}{IMG_THC}{L_DRAFTS}{IMG_THR}
{L_DRAFT_CONFIRM}

{IMG_TFL}{IMG_TFC}{IMG_TFR}
{POST_PREVIEW_BOX} {ERROR_BOX}
{L_FORUM_RULES}
{FORUM_RULES}

{IMG_THL}{IMG_THC}{L_POST_A}{IMG_THR} {ATTACHBOX} {POLLBOX} {REGBOX}
{L_USERNAME}
{L_USERNAME}   
{L_SUBJECT}
{L_TOPIC_DESCRIPTION}
{L_TYPE_TOGGLE_TITLE} {S_TYPE_TOGGLE}
{switch_news_cat.L_NEWS_CATEGORY}
{L_MESSAGE_BODY}

{BBCB_SMILEYS_MG}
{BBCB_MG}
{L_EDIT_NOTES}
     
{L_OPTIONS}
{HTML_STATUS}
{BBCODE_STATUS}
{SMILIES_STATUS}












{L_CALENDAR_TITLE}
{L_CALENDAR_TITLE}
{L_CALENDAR_TITLE}:  {S_CALENDAR_DAY}{S_CALENDAR_MONTH}{S_CALENDAR_YEAR}  {L_TODAY}
{L_TIME}:   {L_HOURS}    {L_MINUTES}
{L_CALENDAR_DURATION}:   {L_DAYS}    {L_HOURS}    {L_MINUTES}


{CONFIRM_IMAGE}

{L_CT_CONFIRM}
{L_CT_CONFIRM_E}

{S_HIDDEN_FIELDS}
{S_HIDDEN_FORM_FIELDS}  
{IMG_TFL}{IMG_TFC}{IMG_TFR}
{JUMPBOX}
{TOPIC_REVIEW_BOX}[/spoiler] ----------------------------------- Informpro Thu 05 Nov, 2009 12:32 Re: [Beta] Sliding Options When Posting [For IPv1.3.0.*] ----------------------------------- Thanks Yros. You could use SWITCH / Block for perm's (because the number of tabs are automatically calculated with the number of li (CSS3: li > a.open) If anyone have issues with this, tell me ;) ----------------------------------- Yros Thu 05 Nov, 2009 14:32 Re: [Beta] Sliding Options When Posting [For IPv1.3.0.*] ----------------------------------- Pax, the main problem with Prosilver IP is that it's an adaptation from Subsilver of phpBB 2.x.x and isn't totally adapted to IP >.> I can't provide support for every theme ( as I can't do buttons for every themes ). This mod is just a little useful code for help in a way. That's what anyone would have reply but I'm too stupid *sigh* I just updated the new package with some changes : - Sliding Option.txt greatly modified for add all the changes made in posting_body.tpl - a Contrib folder added with /default/posting_body.tpl already modified and same for /subsilver IP/posting_body.tpl Pax, just download the new package and upload /subsilver IP/posting_body.tpl in your template directory. It should be fixed now. ----------------------------------- pax Thu 05 Nov, 2009 16:36 Re: [Beta] Sliding Options When Posting [For IPv1.3.0.*] ----------------------------------- don't go... [img]http://www.icyphoenix.com/files/images/6916/1.png[/img] [img]http://www.icyphoenix.com/files/images/6916/2.png[/img] ----------------------------------- Yros Thu 05 Nov, 2009 17:13 Re: [Beta] Sliding Options When Posting [For IPv1.3.0.*] ----------------------------------- Of course . . . If I forget the main script in the file it won't start >.>""" Sorry for that. I updated ( again ) the package. Now it's ok ( I tested on local with prosilver_ip black & blue ). The only thing with prosilver_IP is that I can't explain a little space between content and tabs *hm* Screen under Mozilla and prosilver_ip Black : [img]http://d18.e-loader.net/mQcNAwg6ZN.png[/img] Ps : I of course updated the whole installation with these modifications. I also added some notices and I cut the code in 4 parts : I hope it will help you. The script can be used in many other way. Feel free to take advantage of that. EDIT : I removed [beta] from the title because it now looks like a true mod / plug in for IP. I will try to fix the unwanted space with prosilver's styles and to find a way to add perms on the tabs. ----------------------------------- pax Thu 05 Nov, 2009 18:10 Re: [MOD IPv1.3.0.*] Sliding Options When Posting ----------------------------------- in the package there are two folder pro silver IP... ----------------------------------- Yros Thu 05 Nov, 2009 18:16 Re: [MOD IPv1.3.0.*] Sliding Options When Posting ----------------------------------- Ah yeah ... Package updated ( the right folder is subsilver_ip ). Little mistake with WinRar >.>" ----------------------------------- pax Thu 05 Nov, 2009 18:30 Re: [MOD IPv1.3.0.*] Sliding Options When Posting ----------------------------------- [img]http://www.icyphoenix.com/files/images/6916/3.png[/img] ----------------------------------- Yros Thu 05 Nov, 2009 18:49 Re: [MOD IPv1.3.0.*] Sliding Options When Posting ----------------------------------- You know, if you follow the installation part you haven't to add the file in the contrib directory ... In local it work perfectly for me so if it doesn't for you it's not because of the mod but because of one of your modification. Just download the package again, include again the root/ folder into your root and then add contrib/subsilver_ip/posting_body.tpl into {your_board}/templates/subsilver_ip. There's no reason it won't work. ----------------------------------- pax Thu 05 Nov, 2009 21:02 Re: [MOD IPv1.3.0.*] Sliding Options When Posting ----------------------------------- fresh istallation: [img]http://www.icyphoenix.com/files/images/6916/4.png[/img] and tabs disappear immediately... ----------------------------------- Mighty Gorgon Thu 05 Nov, 2009 21:42 Re: [MOD IPv1.3.0.*] Sliding Options When Posting ----------------------------------- Thanks for sharing. I like this MOD, I thought some weeks ago to code something similar, but I didn't found the time for doing it properly yet. Maybe I will have a look later on. Thanks. ----------------------------------- Yros Thu 05 Nov, 2009 21:53 Re: [MOD IPv1.3.0.*] Sliding Options When Posting ----------------------------------- @ MG : I'm glad to be able to help you in your work on IP ^^ @ Pax : you can't open a tab when you don't have enough rights. About your fresh install, is it a fresh install of the mod or of the board ? Are you sure you are using IPv1.3.0* ? ( RC2 mb ... As if I don't really think the difference between first release and RC2 is big enough to cause this disturb ). Tonight I'm a bit boring/tired so I will check further more only tomorrow but, you know, if you can use another style than prosilver_ip, it would be better for your forum ;). That's just my point of view. ----------------------------------- pax Thu 05 Nov, 2009 23:47 Re: [MOD IPv1.3.0.*] Sliding Options When Posting ----------------------------------- Fresh install, fresh board! My Ip versione is 1.3.0* I like prosilver IP Theme... :wink: ----------------------------------- Yros Fri 06 Nov, 2009 01:01 Re: [MOD IPv1.3.0.*] Sliding Options When Posting ----------------------------------- I am . . . STUPID >.< ! Seriously sometimes I really think that my brain fly away >.>" I updated the package ... If this time it doesn't work, I go check step by step what I forgot between my local board and the package mode because actually all errors are due to my mistakes >.>" ----------------------------------- pax Fri 06 Nov, 2009 09:44 Re: [MOD IPv1.3.0.*] Sliding Options When Posting ----------------------------------- the bar now is aligned perfectly: [img]http://www.icyphoenix.com/files/images/6916/6.png[/img] and work perfectly! Thanks! ----------------------------------- KasLimon Fri 06 Nov, 2009 13:26 Re: [Beta] Sliding Options When Posting [For IPv1.3.0.*] ----------------------------------- Nice mod![quote user="Yros" post="45673"]I'm yours ^.^ If anyone have an idea on how to set up the permissions on tabs ... ( as I said, if a user isn't allowed to use this feature, make the tabs hide too ). If you find any bug or if you have any suggest on the code, don't be shy and tell it for let me update the mod with your ideas / corrections ^^.[/quote]So let me show you the solution to this problem you have: [spoiler][b]Open [/b][i]includes/attach_mod/positng_attachments.php[/i] [b]Find[/b][code linenumbers=false] $template->assign_var_from_handle('ATTACHBOX', 'attachbody');[/code][b]After, add[/b][code linenumbers=false] $template->assign_block_vars('switch_attach', array());[/code] [b]Open[/b] [i]posting.php[/i] [b]Find[/b][code linenumbers=false] $template->assign_var_from_handle('POLLBOX', 'pollbody');[/code][b]After, add[/b][code linenumbers=false] $template->assign_block_vars('switch_pollbox', array());[/code][b]Find[/b][code linenumbers=false] $template->assign_var_from_handle('REGBOX', 'regbody');[/code][b]After, add[/b][code linenumbers=false] $template->assign_block_vars('switch_regbox', array());[/code] [b]Open[/b] [i]templates/default/posting_body.tpl[/i] [b]Find[/b][code linenumbers=false] [/code][b]After, add[/b][code linenumbers=false] [/code] [b]Find[/b][code linenumbers=false] [/code][b]After, add[/b][code linenumbers=false] [/code][b]Find[/b][code linenumbers=false] [/code][b]After, add[/b][code linenumbers=false] [/code][b]Find[/b][code linenumbers=false] [/code][b]After, add[/b][code linenumbers=false] [/code][/spoiler]I tested it and it works ;) PS: Just a suggestion, to make it multilanguage: [spoiler][b]In[/b] [i]posting_body.tpl[/i] [b]Find[/b][code linenumbers=false]Afficher les Options[/code][b]Replace with[/b][code linenumbers=false]{L_OPTIONS}[/code][b]Find[/b][code linenumbers=false]Options du Message[/code][b]Replace with[/b][code linenumbers=false]{L_OPTIONS}[/code][b]Find[/b][code linenumbers=false]Joindre un Fichier[/code][b]Replace with[/b][code linenumbers=false]{L_ATTACH_POSTING_CP}[/code][b]Find[/b][code linenumbers=false]Votes[/code][b]Replace with[/b][code linenumbers=false]{L_ADD_A_POLL}[/code][b]Find[/b][code linenumbers=false]Evènement[/code][b]Replace with[/b][code linenumbers=false]{L_ADD_REGISTRATION}[/code][b]Find[/b][code linenumbers=false]Calendrier[/code][b]Replace with[/b][code linenumbers=false]{L_CALENDAR_TITLE}[/code][/spoiler] Greets! ----------------------------------- Yros Fri 06 Nov, 2009 14:58 Re: [MOD IPv1.3.0.*] Sliding Options When Posting ----------------------------------- As I said, it is in English in the package and add 2 time {L_OPTIONS} for two different things is a bit ... well ^^' I think I just will add some lang var, that's all ** And for your help about perms on tabs, THAAAAAAAAAAAAAAAAAAAAAAAANKS ! ^^ Yeah it perfectly works but you forgot for calendar ^^ . Thanks anyway *o* I will add it to the next package ( I'm busy now ) ----------------------------------- KasLimon Fri 06 Nov, 2009 15:23 Re: [MOD IPv1.3.0.*] Sliding Options When Posting ----------------------------------- [quote user="Yros" post="45748"]As I said, it is in English in the package and add 2 time {L_OPTIONS} for two different things is a bit ... well ^^' I think I just will add some lang var, that's all **[/quote]LOL I noticed when I was posting :P Yes, the only solution I saw was to add a lang var. Ok, I didn't noticed you've added it also in English, sorry ;) [quote user="Yros" post="45748"]And for your help about perms on tabs, THAAAAAAAAAAAAAAAAAAAAAAAANKS ! ^^ Yeah it perfectly works but you forgot for calendar ^^ . Thanks anyway *o* I will add it to the next package ( I'm busy now )[/quote]You're welcome! I didn't add switch_type_cal because I saw it was already donein the files I downloaded today ;) Greets! ----------------------------------- Yros Fri 06 Nov, 2009 16:10 Re: [MOD IPv1.3.0.*] Sliding Options When Posting ----------------------------------- Nop, I did not upgraded yet the pack with your modifications ^^ I still doubt between making a new file ( like " lang_extend_sliding_options " ) or just add 5 lines to lang_main >.>" ( Because, as if there isn't a lot of lines, IMHO a mod always should have a new lang file for don't have to edit every time when updating etc ... ). I still have some things to do but I'll upgrade it tonight, promise ^^' EDIT Sat.07 at 5h30 : I'm sorry to be in late but I really had many things to do yesterday ... BUT the package is finally updated with latest KasLimon's ideas added. I checked every files this time ( I edited both files in contrib and the instructions to install it ). If you have any problem, reply there. ( Screenshots help ^^ ). I also updated my first post for show the updates. @ KasLimon : Nah it wasn't done for calendar but I just took this switch some lines ago in the code, in the content part ( I think it's there you saw it, not for the tabs until now ^^ ). Anyway, really thanks for your help ;) It's really better to do not have unusable tabs displayed ^.^ @ Pax : I didn't see your latest reply the first time, no problem ^^ It's my job to support mods I release. ----------------------------------- Yros Sun 08 Nov, 2009 23:18 Re: [MOD IPv1.3.0.*] Sliding Options When Posting ----------------------------------- I'm sorry for double-post but I have to announce it : I just fixed a major bug with this mod so if you could download it for enjoy it ... I forgot to replace {S_HIDDEN_FORMS} and that created a major bug, making impossible previewing neither submitting posts. Now fixed in installation and contrib files. ----------------------------------- ankur0412 Tue 05 Jan, 2010 13:41 Re: [MOD IPv1.3.0.*] Sliding Options When Posting ----------------------------------- Does it work on prosilver? ----------------------------------- KasLimon Wed 06 Jan, 2010 20:26 Re: [MOD IPv1.3.0.*] Sliding Options When Posting ----------------------------------- give it a try, and then you'll see if it works... I think it does :mricy: ----------------------------------- Jopie89 Wed 09 Feb, 2011 14:53 Re: [MOD IPv1.3.0.*] Sliding Options When Posting ----------------------------------- [strike]Hi installed the mod on IcyPhoenix 1.3.0.53a. With black pearl. When posting a new message you get offcoure the textbox but standard is open: calenderevent. (see screenshot): [IMAGE REMOVED] Clicking Message Options and attachement will result in the following: [IMAGE REMOVED] Poll, Event and Calender don't work at all... What can be wrong? (Sorry for my bad english.. I hope you understand.. ;) )[/strike] Just copied the postinb_body.tpl from /contrib/default :D Now it's ok ;) My bad.. :P ----------------------------------- Yros Tue 15 Feb, 2011 03:35 Re: [MOD IPv1.3.0.*] Sliding Options When Posting ----------------------------------- You might have missed something during the install, it happens :p Btw, I up this topic for MG : I'd like to know if it was possible to implement this mod in the default package and to extend it to the other similar tabs ? The code works on the latest revisions of the SVN without any trouble to report. Of course, the style might be changed to fit with the .CSS, I could update it in this way if you want to or you can do it while implementing it as a default function into IP. =P ----------------------------------- Mighty Gorgon Sun 20 Feb, 2011 10:37 Re: [MOD IPv1.3.0.*] Sliding Options When Posting ----------------------------------- Before adding it to the default package I need to check it and trying to understand how it is impacting the code (php, html, css, etc.). I'll do it when I have some free time and let you know. ----------------------------------- KugeLSichA Wed 02 Mar, 2011 17:56 Re: [MOD IPv1.3.0.*] Sliding Options When Posting ----------------------------------- [quote user="Jopie89" post="51440"][strike]Hi installed the mod on IcyPhoenix 1.3.0.53a. With black pearl. When posting a new message you get offcoure the textbox but standard is open: calenderevent. (see screenshot): [IMAGE REMOVED] Clicking Message Options and attachement will result in the following: [IMAGE REMOVED] Poll, Event and Calender don't work at all... What can be wrong? (Sorry for my bad english.. I hope you understand.. ;) )[/strike] Just copied the postinb_body.tpl from /contrib/default :D Now it's ok ;) My bad.. :P[/quote] Same problem here... the install instructions are not correct... but if you diff the posting_body.tpl with your current... all is working as it should... Thanks for this great MOD! :mrorange: