Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 9 Years, 4 Months ago change collapse address
#11
Solved: 9 Years, 4 Months ago
Thanks much Leefish for your help.
But I wanted to make it through template edit to effect in a single theme (theme dependent) not core file edit.

I want the changes implemented to a theme I make. So, template or CSS edit are the only options.
#12
Solved: 9 Years, 4 Months ago
Well, you need to use a nice gif instead. It doesn't have to be a png.
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved


#13
Solved: 9 Years, 4 Months ago
Mmm ... I think so.
But the edge finish of png is better than gif. Anyway, thank you.
#14
Solved: 9 Years, 4 Months ago
(2012-08-02, 02:10 PM)Leefish Wrote: Does the collapse still work? By just changing the image address?

oh, no!
bad instruction Smile
#15
Solved: 9 Years, 4 Months ago
It doesn't have to be core edit to all themes,you can specifically general.js in headerinclude in any theme.Edit general.js file and replace gif instances with png and save it as general_custom.js and in headerinclude temple of your theme find

<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1603"></script>

and remove it ,then paste

<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general_custom.js?ver=1603"></script>

and save it.

You will now have collapse / expand function with png extensions in theme A (your current theme) and all other themes are going to behave default since general.js isn't edited.

Or you can just copy content of general.js and paste it in headerinclude template (in script tag) and replace gif with png in collapse / expand function (you also need to remove

<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1603"></script>

from that headerinclude template)
#16
Solved: 9 Years, 4 Months ago
Oh I see. I thought the OP wanted to share a theme for release - I get it now. Yes, that would definitely work.
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved


#17
Solved: 9 Years, 4 Months ago
Good idea Big Grin I'll try it.

and yes. I "wanted to share a theme for release". In-face I've already submitted that. It is under review. I'll try to implement it in next revision.


Forum Jump:


Users browsing this thread: 1 Guest(s)