Chợ thông tin Cà phê Việt Nam

Chợ thông tin Cà phê Việt Nam (http://caphe.sangnhuong.com/index.php)
-   Kỹ Năng ~ Kinh Nghiệm (http://caphe.sangnhuong.com/forumdisplay.php?f=30)
-   -   Nhận set up khởi tạo qu�n C� ph�, Nh� h�ng (http://caphe.sangnhuong.com/showthread.php?t=11688)

cuahangso1 21-09-2012 08:46 AM

Nhận set up khởi tạo qu�n C� ph�, Nh� h�ng
 
This seems to be a popular request, and one that I needed, so I've chosen to release it here.

Please note that I've only tested this on 3.6.4, and haven't yet tried all poll combinations (eg multiple, etc.). However I see no reason why this wouldn't work with them. This is also my first publicly released mod, so be kind!

Features
  • Hides poll results until a user has voted on said poll.
  • Results are shown once said poll is closed.
  • Moderators and admin are exempt and can view results of all polls at all times.
  • Unregistered, Users awaiting Email Confirmation, etc are shown 'Please register to view poll.' message.
Installation
  1. Upload product-pyrix_hidepoll.xml as a product in your admin control panel
  2. Click Install.
  3. ???
  4. PROFIT!!!
Notes

I used Chris M's 'Hide Poll Results' as a reference, as that's what we had before (but it was a bit too aggressive and kept everything hidden whether you'd voted or not). So apologies to him if some of the code looks a bit familiar in places, but there are only so many ways of doing it.

Please also note that the code isn't particularly efficient, as it does a lot of processing that it doesn't need to. However this should have a very small impact and means that there are no file or template edits involved with this mod. Basically, I'm lazy.

Ollie


Múi giờ GMT +7. Hiện tại là 07:45 PM

© 2008 - 2026 Nhóm phát triển website và thành viên SANGNHUONG.COM.
BQT không chịu bất cứ trách nhiệm nào từ nội dung bài viết của thành viên.