Skocz do zawartości
"Idzie nowe..." - o zmianach i nie tylko ×
Przeniesienie zakupów z IPS Marketplace / Moving bought items from IPS Marketplace ×

Cyrana

Użytkownik
  • Postów

    4
  • Dołączył

  • Ostatnia wizyta

Treść opublikowana przez Cyrana

  1. Cyrana

    (DP30) Forum Icons

    Here is the forumIndexTemplate code, as you can see it only has {parse replacement="{$forum_data['img_new_post']}"} once. If I replace it with your 'on' icon code, I don't see where to put the 'off' icon code. Where can I insert the on and off icon code into it? <a id='forum_img_{$forum_data['id']}' href="{parse url="app=forums&module=forums&section=markasread&marktype=forum&forumid={$forum_data['id']}&returntoforumid={$this->request['f']}" base="public"}" title="{$this->lang->words['bi_markread']}" class='forum_marker'>{parse replacement="{$forum_data['img_new_post']}"}</a>
  2. Cyrana

    (DP30) Forum Icons

    Hello. Ok, I'll do this post in two parts. First, there is a bug in the code in regards to handling images other than .gif files. You have .gif hardcoded a few times. I'd recommend removing the mention of .gif (I don't have the code on me, I can post it later...I edited it some). With the .gif stuff written into the code, it makes non .gif files show up as FILENAME.extension in the ACP when editing a forum. And, it also make the 'off' images not load. The best I could do was hardcode it so that a .jpg 'off' file loads if you name it IMAGENAME.jpg_off.jpg. About the forumIndexTemplate. I think this is the template used when you click on a forum with subforums under it. Your mod doesn't edit that template, so subforums won't display their icons. However, I was able to edit the forumIndexTemplate to show the icons...but can't find the code to show the 'off' icons. One other small bug is that the English .xml file used to install the mod still has Polish in it (the ACP menus are in Polish if I remember right). Any of this make sense? I'll post some code later on tonight...thanks again for the great mod.
  3. Cyrana

    (DP30) Forum Icons

    Just wanted to say thanks, since it is an awesome mod...(time ran out to edit the prior post). But with a few minor edits, it'd be even more useable. Also, any idea how to edit the forumIndexTemplate? I found the code in there to edit so that when you're in a category, the subforums show up with the cool icons, but in that template I don't see a place to edit to put the _off icon. Thanks again!
  4. Cyrana

    (DP30) Forum Icons

    {English version has same issue as .pl, so edited my post once I sorted it} Edit: I installed it, but had to download the .pl version and edit the files again, so I think you need to update the file on the resources site. However, the mod doesn't seem to like .jpg files. If I put them in the forumicons/ directory, they show up in the acp as 'filename.jpg', whereas .gif ones just show up with their name. Also, the _off.jpg file gets loaded as 'filename.jpg off.gif' when you load the page. I see the template edit is causing this: <if test="$forum_data['icon'] != ''"> <center><img src='public/forumicons/{$forum_data['icon']}.gif' /></center> <else /> {parse replacement="{$forum_data['img_new_post']}"} </if> </a> AND <if test="$forum_data['icon'] != ''"> <center><img src='public/forumicons/{$forum_data['icon']}_off.gif' /></center> <else /> {parse replacement="{$forum_data['img_new_post']}"} </if> </if> I will manually edit it to work with .jpg, but it would be nice if it could just not mess with file extensions and trust the uploaded in that area (so just add _off at the end maybe, and not touch the rest?).
×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.