WebFlake is currently in the process of upgrading fully to IPS 4.2.
We are aware that various functions may not be working correctly, or missing entirely.
Please use our Bug Tracker and Suggestions Tracker to help us with this transition.

You can dismiss this message at your discretion. Thanks!

Jump to content

Music Case

Advanced Members
  • Content count

  • Joined

  • Last visited

  • Days Won


Music Case last won the day on January 30

Music Case had the most liked content!

Community Reputation

10 Fair

About Music Case

  • Rank
    Upstanding Flake

Profile Information

  • Gender
  • Software
  • Version

Contact Methods

Recent Profile Visitors

714 profile views
  1. Change file paths for attatchments

    Hello, So iv'e set up my IPS4 to upload files to an external "image" server to save space on my hosting and i was curious if it's possible to change the file path ? By default it uploads images to: (../public_html/uploads/monthly_xx/) now it uploads to: (https://images.domain.com/monthly_xx) is there any way possible to remove the monthly_xx part of the uploads and just have everything upload to https://images.domain.com/ Thanks!
  2. Create You're Own Widget Locations

    this is an exact copy of the code i use just edited for your purpose: {{if (isset( \IPS\Output::i()->sidebar['enabled'] ) and \IPS\Output::i()->sidebar['enabled'] ) && ( ( isset( \IPS\Output::i()->sidebar['contextual'] ) && trim( \IPS\Output::i()->sidebar['contextual'] ) !== '' ) || ( isset( \IPS\Output::i()->sidebar['widgets']['sidebar_two'] ) && count( \IPS\Output::i()->sidebar['widgets']['sidebar_two'] ) ) || ( \IPS\Dispatcher::i()->application instanceof \IPS\Application AND \IPS\Dispatcher::i()->application->canManageWidgets() ) )}} <div id='ipsLayout_sidebar_two' class='ipsSidebar_two ipsLayout_sidebar_two{$position} {{if !( isset( \IPS\Output::i()->sidebar['contextual'] ) && trim( \IPS\Output::i()->sidebar['contextual'] ) !== '' ) && ( !isset( \IPS\Output::i()->sidebar['widgets']['sidebar_two'] ) || !count( \IPS\Output::i()->sidebar['widgets']['sidebar_two'] ) ) && \IPS\Dispatcher::i()->application->canManageWidgets()}}ipsLayout_sidebarUnused{{endif}}' data-controller='core.front.widgets.sidebar_two'> {{if isset( \IPS\Output::i()->sidebar['contextual'] ) && trim( \IPS\Output::i()->sidebar['contextual'] ) !== ''}} <aside id="elContextualTools" class='ipsClearfix' {{if isset( \IPS\Output::i()->sidebar['sticky'] )}}data-ipsSticky{{endif}}> {expression="\IPS\Output::i()->sidebar['contextual']" raw="true"} </aside> {{endif}} {{if isset(\IPS\Output::i()->sidebar['widgets']['sidebar_two']) and count( \IPS\Output::i()->sidebar['widgets']['sidebar_two'] ) and ( \IPS\core\Advertisement::loadByLocation( 'ad_sidebar' ) ) }} {advertisement="ad_sidebar"} <br><br> {{endif}} {template="widgetContainer" group="global" app="core" params="'sidebar_two', 'vertical'"} </div> {{endif}} if you're needing any help just lemme know you're more than welcome to pop up in PM!
  3. Create You're Own Widget Locations

    Sorry bro been away from internet for a week or so I'll be home tomorrow evening and I'll be happy to help.
  4. Add more tabs to create a topic

    Hello, I was wondering if it's possible to add more tabs on create a topic ? I've spent hours on end trying various code to try and replicate the tabs but i can't find some things i'm looking for so i wondered if anyone knew how to do it ? Any help would be great thanks!
  5. Create You're Own Widget Locations

    you dont have to remove anything in these lines, you just gotta add your new widget location's name.... for example on line 33: if ( ! \IPS\Member::loggedIn()->modPermission('can_manage_sidebar', 'can_manage_WIDGET NAME') in bold is the part you need to add, same for the other lines, obviously you need to change WIDGET NAME to whatever you called it in previous steps. PM me a if you want me to have a lil look at your site.
  6. In the midst of adding images for the code as well as a demo board for people to add widgets to multiple new block locations! Hello, So I have spent a long time tinkering with IPS4 in order to have more than the default 3 widget locations. I've always urged for a portal more like the one from IPS3.X so iv'e found a way to add your own widget locations. This tutorial involved editing some important files and creating your own in the theme editor screen so it's a reasonably complex tutorial so i'd advise greatly to back your site up! So before you spend ages reading here's what this tutorial will show you how to do: Demo Prerequisites: Back up your website theme Back up your websites files and database Make a snapshot if possible (cPannel) Firstly: You need to go into your theme editor and edit some lines of your globalTemplate, I would advise copying the original code into a notepad just in case it goes wrong, but you should already of backed up your theme anyways. Around mid way down, depending on theme you'll find these the lines (they might be together or separated across a few lines): {template="widgetContainer" group="global" app="core" params="'header', 'horizontal'"} {template="widgetContainer" group="global" app="core" params="'footer', 'horizontal'"} {template="sidebar" if="theme.sidebar_position == 'right'" app="core" group="global" params="'right'"} Now you want to copy one or multiple of these lines depending on what you're trying to accomplish. For tutorial reason i'm going to add 2 sidebars, so copy: {template="sidebar" if="theme.sidebar_position == 'right'" app="core" group="global" params="'right'"} {template="sidebar_two" if="theme.sidebar_position == 'right'" app="core" group="global" params="'right'"} and paste it underneath the original and change the {template="sidebar"..... to {template="sidebar_two".... and now save your globalTemplate. Secondly: Now stay in the theme editor and add a new HTML template, name it sidebar_two or corresponding to what you named the new widget. Make sure the drop down menus are as follows: Location: Front Existing Group: Global Applications: System and now insert the "sidebar" template code into there and change are the sidebar tags as your widget name, in this case sidebar_two {{if (isset( \IPS\Output::i()->sidebar['enabled'] ) and \IPS\Output::i()->sidebar['enabled'] ) && ( ( isset( \IPS\Output::i()->sidebar['contextual'] ) && trim( \IPS\Output::i()->sidebar['contextual'] ) !== '' ) || ( isset( \IPS\Output::i()->sidebar['widgets']['sidebar'] ) && count( \IPS\Output::i()->sidebar['widgets']['sidebar'] ) ) || ( \IPS\Dispatcher::i()->application instanceof \IPS\Application AND \IPS\Dispatcher::i()->application->canManageWidgets() ) )}} <div id='ipsLayout_sidebar' class='ipsLayout_sidebar{$position} {{if !( isset( \IPS\Output::i()->sidebar['contextual'] ) && trim( \IPS\Output::i()->sidebar['contextual'] ) !== '' ) && ( !isset( \IPS\Output::i()->sidebar['widgets']['sidebar'] ) || !count( \IPS\Output::i()->sidebar['widgets']['sidebar'] ) ) && \IPS\Dispatcher::i()->application->canManageWidgets()}}ipsLayout_sidebarUnused{{endif}}' data-controller='core.front.widgets.sidebar'> {{if isset( \IPS\Output::i()->sidebar['contextual'] ) && trim( \IPS\Output::i()->sidebar['contextual'] ) !== ''}} <aside id="elContextualTools" class='ipsClearfix' {{if isset( \IPS\Output::i()->sidebar['sticky'] )}}data-ipsSticky{{endif}}> {expression="\IPS\Output::i()->sidebar['contextual']" raw="true"} </aside> {{endif}} {{if isset(\IPS\Output::i()->sidebar['widgets']['sidebar']) and count( \IPS\Output::i()->sidebar['widgets']['sidebar'] ) and ( \IPS\core\Advertisement::loadByLocation( 'ad_sidebar' ) ) }} {advertisement="ad_sidebar"} <br><br> {{endif}} {template="widgetContainer" group="global" app="core" params="'sidebar', 'vertical'"} </div> {{endif}} Thirdly: Now you need to edit a system file, which you can do on your desktop then overwrite the file or you can do on cPannel file explorer as i have cPannel i'll be doing it in there, I STRONGLY advise you back this file up, editing this file incorrectly will result in none of your widgets working! Navigate to: Applications >> Core >> Modules >> Front >> System >> and edit Widgets.php On these lines add your widget name: Line: 33 if ( ! \IPS\Member::loggedIn()->modPermission('can_manage_sidebar', 'can_manage_WIDGET NAME') Line 35: \IPS\Output::i()->error( 'no_permission_manage_sidebar', 'no_permission_manage_WIDGET NAME', '3S172/1', 403, '' ); Line 75: if ( ! $block->isExecutableByApp( array( \IPS\Request::i()->pageApp, 'sidebar', 'WIDGET NAME' ) ) ) Line 236: if( !in_array( \IPS\Request::i()->area, array( 'sidebar', 'WIDGET NAME' , 'header', 'footer' ) ) ) once you have made those changes save the widgets.php and overwrite the file. Now when you go back to your home page and try to insert blocks into the new widgets it should work without any errors and save the locations! Finally: This is hugely variable between widgets youv'e chosen and widget locations. However you can move the original: {template="sidebar_two" if="theme.sidebar_position == 'right'" app="core" group="global" params="'right'"} To wherever you want the widget to be on your site, you may need to also do some CSS edits. BUGS: So because default IPS only have 3 blocks 1 is which is sidebar, in your theme settings it will ask where you want your sidebar (left or right) this is kinda of obsolete now as you can put it wherever you want. The blocks do mobile friendly rather well, however left blocks will appear on top of the side and right blocks will appear at the bottom.
  7. Making your own block locations

    I sussed it out, i'll be making a tutorial soons
  8. Hello, So iv'e noticed that IPS4.X is limited to 3 block locations: Header Side (Left OR Right not both) Footer Well i found i can create my own block locations, for example if i wanted Header Left Right Footer Some other location I can accomplish this by just simply copying {template="widgetContainer" group="global" app="core" params="'footer', 'horizontal'"} and changing it to {template="widgetContainer" group="global" app="core" params="'footer_two', 'horizontal'"} or whatever else, this accomplishes the new block location however it reports as block cannot be saved error on the site. My question is if anyone knows how to get around this or if there's some javascript in place to save block locations ? I feel it would be of great benifit if we could make our own block locations for portal for example to be more on part with 3.x. Thanks!
  9. Display Blocks Per Club

    Hello, So nothing special just having some fun playing around with the new features on IPS4.2 Clubs are a great feature that iv'e been enjoying however I noticed that lack of customisation in the form of blocks, if i add one block to one club it adds it to them all, which is obviously a problem if you wanting just one block per club. I can't search around Invision Power due to me never knowing whether or not it's going to say i need to be a client but could anyone lemme know if this is an upcoming thing, at the moment i'm using javascript for it. Thanks.
  10. Java script based on member group

    Hello, I was curious if it's possible to assign java script to to specific group. I have some advertiser code I'd like to implement but only for guests. In IPB3 it used to be something (been a while so i cant quiet remembe) like if [membergroup=0] // java script // else .... etc .... but it doesn't work anymore it causes the [teamplate_out_of_date] error on my theme. Any help would be great thanks!

  12. Custom CKeditor Button

    I was wanting something with a few options like this: <img src="{option0"}> <br><br> <p>Artist:{option1} Album:{option2} Year:{option3} Bitrate:{option4} <br><br> tracklist: <br><br> 01 {option5} 02 {option6} 03 {option7} 04 {option8} 05 {option9} 06 {option10} <br><br> Support: <br></p> <a href="{option11}">Facebook</a> / <a href="{option12}">Purchase</a> where people could just fill in the requested pieces of information and the rest is generated for them.
  13. Custom CKeditor Button

    Only allows one {option} {content} i'm wanting multiple ?
  14. Custom CKeditor Button

    Hello, I was wondering if anyone knew how to make custom CKEditor buttons for IPS4.x.x, I know you can create them using the toolbox option in the ACP however i was wanting a button with multiple {options} and not just one. If anyone knows how to then could you PM me please or kinda explain how ?
  15. Music Case

    Good answer haha! I'm going to add a "back to top" button though i feel the portal "To Top" ain't the best