Trở lại   Chợ thông tin Cà phê Việt Nam > KHU THẢO LUẬN CHUNG > Kỹ Năng ~ Kinh Nghiệm

 
 
Công cụ bài viết Kiểu hiển thị
  #1  
Cũ 21-09-2012, 08:46 AM
cuahangso1 cuahangso1 đang online
Senior Member
 
Tham gia ngày: Jun 2012
Bài gửi: 125
Mặc định Nhận set up khởi tạo qu�n C� ph�, Nh� h�ng

Hệ thống quảng cáo SangNhuong.com

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
Trả lời với trích dẫn


 


Công cụ bài viết
Kiểu hiển thị

Quyền viết bài
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is Mở
Mặt cười đang Mở
[IMG] đang Mở
HTML đang Mở
Chuyển đến

SangNhuong.com



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



Diễn đàn được xây dựng bởi: SangNhuong.com
© 2008 - 2024 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.