Manager DawPi Posted July 21, 2009 Manager Posted July 21, 2009 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 3 1 intermedia - profesjonalne rozwiązania Invision Power Board --- Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.
Manager DawPi Posted July 21, 2009 Author Manager Posted July 21, 2009 take a look Hello, you didn't upload files from Upload/ directory from mod. 1 intermedia - profesjonalne rozwiązania Invision Power Board --- Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.
Mo7sin Posted July 21, 2009 Posted July 21, 2009 Hello, you didn't upload files from Upload/ directory from mod. i did
Manager DawPi Posted July 21, 2009 Author Manager Posted July 21, 2009 With chmod 777? 1 intermedia - profesjonalne rozwiązania Invision Power Board --- Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.
Mo7sin Posted July 21, 2009 Posted July 21, 2009 With chmod 777? it was 755 . i changed it to 777 but same error
Manager DawPi Posted July 21, 2009 Author Manager Posted July 21, 2009 Strange! Could you show me screen from your public/ directory? P.s. please change your board version in profile. 1 intermedia - profesjonalne rozwiązania Invision Power Board --- Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.
Manager DawPi Posted July 21, 2009 Author Manager Posted July 21, 2009 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. 1 intermedia - profesjonalne rozwiązania Invision Power Board --- Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.
Manager DawPi Posted July 21, 2009 Author Manager Posted July 21, 2009 Ok, got it. Please redownload and redo first file edit. 1 intermedia - profesjonalne rozwiązania Invision Power Board --- Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.
Manager DawPi Posted July 22, 2009 Author Manager Posted July 22, 2009 I have same problem with this hook! 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. 1 intermedia - profesjonalne rozwiązania Invision Power Board --- Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.
Manager DawPi Posted July 22, 2009 Author Manager Posted July 22, 2009 Glad you like this mod! Enjoy! 1 intermedia - profesjonalne rozwiązania Invision Power Board --- Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.
Cyrana Posted July 26, 2009 Posted July 26, 2009 (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 July 26, 2009 by Cyrana
Manager DawPi Posted July 26, 2009 Author Manager Posted July 26, 2009 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. 1 intermedia - profesjonalne rozwiązania Invision Power Board --- Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.
Cyrana Posted July 26, 2009 Posted July 26, 2009 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!
Manager DawPi Posted July 27, 2009 Author Manager Posted July 27, 2009 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. 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.
Cyrana Posted July 28, 2009 Posted July 28, 2009 (edited) 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. Edited July 28, 2009 by Cyrana
Cyrana Posted July 28, 2009 Posted July 28, 2009 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§ion=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>
topher Posted August 3, 2009 Posted August 3, 2009 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.
Manager DawPi Posted August 3, 2009 Author Manager Posted August 3, 2009 Yeah - subforums are not supported. As i wrote on IM i'll try add this in the next version of this mod! 1 intermedia - profesjonalne rozwiązania Invision Power Board --- Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.
nunorgil Posted August 5, 2009 Posted August 5, 2009 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
Manager DawPi Posted August 10, 2009 Author Manager Posted August 10, 2009 Nowa wersja jest dostępna! Więcej info w pierwszym poście! 1 intermedia - profesjonalne rozwiązania Invision Power Board --- Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now