Thread Rating:
  • 8 Vote(s) - 3.38 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Forum Icons
#41
(2009-07-24, 02:48 AM)Steve Moore Wrote: Hyde: The plugin does a find and replace in templates, if what its looking for has been altered even slightly on the line that it needs to find then it won't replace hence it won't work on other themes that are missing that line.

I tried it in 3 different themes.. Only works on the DEFAULT one.. like hmm?

I even reinstalled the A FRESH LEAF again.
Reply
#42
Hyde: You are obviously not reading what I put therefore I am no longer giving you help with your issues.
Official Site: http://mochacoder.com
Coming Soon: http://wowgnerd.com & http://generalrides.com

Follow me on twitter: @MochaCoder
Reply
#43
(2009-07-24, 02:56 AM)Steve Moore Wrote: Hyde: You are obviously not reading what I put therefore I am no longer giving you help with your issues.

I READ WTF YOU SAID , I just dont understand how something can be broken in 3 themes and even when i reinstall it? I literally re-downloaded the theme again .
Reply
#44
My concern is that since it requires modifying management.php, that when there will be a MyBB update that this will get overwritten.
Reply
#45
apa: Yes it will get overwritten but I am working on doing file edits automatically so you don't have to worry about that. Even with any plugin that edits files, you will have to reinstall the plugin due to it opening and writing to a file.

Hyde: Nothing is broken, pay attention, my mod does a find and replace in templates, with custom themes, if that 1 line that my plugin is searching for has been altered in any way then it won't find it to add the new stuff. I will put instructions for editing your custom templates.

Open forumbit_depth2_forum template

Find:
<img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" />

Replace with:
<if $mybb->settings['enable_pl9ForumIcons'] then>
<if $forum['forum_icon'] then>
<img src="{$forum['forum_icon']}" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" />
<else />
<img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" />
</if>
<else />
<img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" />
</if>

If you do those edits to your other 3 themes then it will work find on all themes.
Official Site: http://mochacoder.com
Coming Soon: http://wowgnerd.com & http://generalrides.com

Follow me on twitter: @MochaCoder
Reply
#46
Works fine for me. Tested it on 3 different themes.
Reply
#47
Thnx steve , now it does work . A suggestion though , you should've added this as a troubleshooting option like labrocca does . good luck
Reply
#48
Hyde: I'm not Labrocca, I give all the users the benefit of the doubt. I don't treat them like idiots. I prefer if peeps have trouble they give full details then I provide it, what you did is over multiple posts say it wasn't working with no other details. If you would have mentioned you had 3 themes then I would have done that to begin with.
Official Site: http://mochacoder.com
Coming Soon: http://wowgnerd.com & http://generalrides.com

Follow me on twitter: @MochaCoder
Reply
#49
arse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/wchaveni/public_html/wc3haven.com/forums/inc/functions_forumlist.php(321) : eval()'d code on line 3 Huh my friend is having this problem after he activates the plugin. Anyway + invisible rep for your last comment. I believe there is conflict with other plugin.
Reply
#50
Murloc: Hmmmm, I will get the issue resolved probably by tommorrow at the latest. Found out there are a few plugins I can use to eliminate the need to edit the file.
Official Site: http://mochacoder.com
Coming Soon: http://wowgnerd.com & http://generalrides.com

Follow me on twitter: @MochaCoder
Reply


Forum Jump:


Users browsing this thread: 7 Guest(s)