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

(DP30) Forum Icons


DawPi

Rekomendowane odpowiedzi

  • Manager

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

  • Lubię to 3
  • Smutny 1

intermedia - profesjonalne rozwiązania Invision Power Board

---

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

Odnośnik do komentarza
Udostępnij na innych stronach

  • Manager

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

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

  • Lubię to 1

intermedia - profesjonalne rozwiązania Invision Power Board

---

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

Odnośnik do komentarza
Udostępnij na innych stronach

  • Manager

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.

  • Lubię to 1

intermedia - profesjonalne rozwiązania Invision Power Board

---

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

Odnośnik do komentarza
Udostępnij na innych stronach

  • Manager

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

  • Lubię to 1

intermedia - profesjonalne rozwiązania Invision Power Board

---

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

Odnośnik do komentarza
Udostępnij na innych stronach

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

Edytowane przez Cyrana
Odnośnik do komentarza
Udostępnij na innych stronach

  • Manager

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

  • Lubię to 1

intermedia - profesjonalne rozwiązania Invision Power Board

---

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

Odnośnik do komentarza
Udostępnij na innych stronach

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!

Odnośnik do komentarza
Udostępnij na innych stronach

  • Manager

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.

Odnośnik do komentarza
Udostępnij na innych stronach

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.

Edytowane przez Cyrana
Odnośnik do komentarza
Udostępnij na innych stronach

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>

Odnośnik do komentarza
Udostępnij na innych stronach

  • Manager

Yeah - subforums are not supported. As i wrote on IM i'll try add this in the next version of this mod! :)

  • Lubię to 1

intermedia - profesjonalne rozwiązania Invision Power Board

---

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

Odnośnik do komentarza
Udostępnij na innych stronach

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

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • 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ę.