Jump to content

Recommended Posts

  • Manager
Posted

Nazwa pliku: (DP30) Forum Icons

Autor: DawPi

Data wysłania: 21 lip 2009

Data aktualizacji: 10 sie 2009

Kategoria: Modyfikacje

Wersja modyfikacji: 1.0.1

Opis:

Ustaw dowolną ikonę dla każdego forum oddzielnie.

Zmiany z wersji 1.0.0 do wersji 1.0.1:

  • Naprawa i poprawa kodu,
  • Naprawa błędnego linku do ikon,
  • Naprawa błędnego wyświetlania ikon czytanych for i nie czytanych,
  • Naprawa błędu związanego z dodawaniem nowego forum,
  • Dodano wyświetlanie ikon w subforach.

Pobierz plik

  • Like 3
  • Sad 1

intermedia - profesjonalne rozwiązania Invision Power Board

---

Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.

  • Manager
Posted

Strange! Could you show me screen from your public/ directory?

P.s. please change your board version in profile. :D

  • Like 1

intermedia - profesjonalne rozwiązania Invision Power Board

---

Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.

  • Manager
Posted

Mo7sin: please send me your ACP and FTP if you could. I can't got this error on my dev board. Another member have similar problem. I think there is problem but i can't figure it without access to board with it.

  • Like 1

intermedia - profesjonalne rozwiązania Invision Power Board

---

Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.

  • Manager
Posted

I have same problem with this hook! :o

What problem?

I made small mistake in Polish Version ot this mod - i just updated it in our database. If you download Polish Version please do this again. :)

  • Like 1

intermedia - profesjonalne rozwiązania Invision Power Board

---

Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.

Posted (edited)

{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?).

Edited by Cyrana
  • Manager
Posted

Both versions was updated. And only one folder ( forumicons ) inside public/ directory is correct.

Install this mod and check all and i think all will be OK. :D

  • Like 1

intermedia - profesjonalne rozwiązania Invision Power Board

---

Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.

Posted

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. :D

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. :D

Thanks again!

  • Manager
Posted

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. :D

Hello,

i quite don't understand you? Could you describe your doubts more clearly?

intermedia - profesjonalne rozwiązania Invision Power Board

---

Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.

Posted (edited)

Hello. :D

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.

Edited by Cyrana
Posted

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>

Posted

Thanks for a great mod DawPi. But how can I add support for subforums? ANd what did you edit Cyrana to support subforums? Atm subforums only display the default icons.

Posted

hello

please i need some help

i've instaled this hook on my forum

but it dosen´t show the images..but also dose,'t give any error

the images dosen't appear on IE 6 or on firefox 3.5.2, ider the on or off images

but on ie 8, the "on" image appear

if i mark the forum as read the revert to the original image

besides that, it appears that dosen't like jpg file and if the extenson "gif" is on upercase "GIF" it dosen´t show on the combo box on the forum settings

one last thing, the images only appear on the board index..if i go in to the categorie they dosen´t appear

can some one help me?

i would really like to have this hook working

thank you

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.