The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Toplist Details »» | |||||||||||||||||||||||||
Toplist
Developer: derekivey Version: 2.0.0 vBulletin Version: 3.5.5 (Seems to work fine on 3.6.0) File Edits: 0 Template Edits: 2 (Optional) New Phrases: 294 Uses Plugins: Yes! Difficulty: Easy Description: This hack adds a Toplist to your forums. You can choose in the AdminCP whether to rank the sites by their In hits or their Out hits. It is fully phrased to make it easy to translate to another language if you need to. The users are able to add a site, edit, or delete their site if they added it. The Administrators can Edit the users' sites or Delete them. This hack is for vBulletin 3.5.5. *** I Strongly Recommend That You Backup Your Database Before Installing/Upgrading This Hack! *** Planned features for a later release:
The change log is now available here. Screen Shots I have added screen shots of this hack in action below. More screenshots are located here. Demo You can find demo information here. Translations You can find a French translation of this hack here. For a How To on Editing the Dynamic Image, See this Post. Please click Install you installed this hack. Thanks! Supporters / CoAuthors Show Your Support
|
Comments |
#492
|
|||
|
|||
Wait, so you are saying you are removing .jpeg as well as .jpg? If so removing those should do the trick.
I'm kind of confused, sorry. Derek |
#493
|
|||
|
|||
I'm trying to disallow "jpeg" and allow "jpg".
Quote:
It's odd that it's not even recognizing the file format. From add_site: Code:
if ($image_type == "image/gif" OR $image_type == "image/pjpeg" OR $image_type == "image/jpeg" OR $image_type == "image/x-png") { $length = 20; $key_chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; $rand_max = strlen($key_chars) - 1; Code:
if ($image_type == "image/gif" OR $image_type == "image/pjpeg" OR $image_type == "image/jpeg" OR $image_type == "image/x-png") { $length = 20; $key_chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; $rand_max = strlen($key_chars) - 1; Code:
if ($image_type == "image/gif" OR $image_type == "image/pjpeg" OR $image_type == "image/jpeg" OR $image_type == "image/x-png") { $length = 20; $key_chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; $rand_max = strlen($key_chars) - 1; for ($i = 0; $i < $length; $i++) Code:
if ($image_type == "image/gif" OR $image_type == "image/pjpeg" OR $image_type == "image/jpeg" OR $image_type == "image/x-png") { $length = 20; $key_chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; $rand_max = strlen($key_chars) - 1; |
#494
|
|||
|
|||
Yeah, just remove the following code in each file:
PHP Code:
PHP Code:
Derek |
#495
|
|||
|
|||
But my code looks correct otherwise, eh? :\
I do like the check, just not sure why it isn't working. Btw, making those edits hoses the page. It kills the if loop. |
#496
|
|||
|
|||
Well, I got it half working. I added:
OR $image_ext = ".jpg" to the statement. If I add a site, it accepts the image, but the image shows up as a red X. If I edit that same site and readd the same image, it works. I'm looking at the loop for add and edit, and they look identical. /me scratches his head |
#497
|
|||
|
|||
Can you paste me the if statement that you have?
|
#498
|
|||
|
|||
Code:
if ($image_type == "image/gif" OR $image_type == "image/pjpeg" OR $image_type == "image/jpeg" OR $image_type == "image/x-png" OR $image_ext == ".jpg" OR $image_type == "image/jpg") |
#499
|
|||
|
|||
Try this:
PHP Code:
|
#500
|
||||
|
||||
Recently my users have been asking questions regarding their anonymity as far as IP addresses are concerned. I've taken several precautions against ip's being logged, but now someone wants to know what keeps track of things coming in and out if IPs aren't logged. Are they being logged somewhere? haha, if so probably can't really disable that, and wouldn't want to i guess for incoming to the site atleast.
My next step is to see if phpadsnew logs ip addresses, I'm sure my cpanel stat software does too. |
#501
|
|||
|
|||
Hi,
The IP Addresses are stored in the toplist_clicks table. Thats basically the only way to keep track of who clicked in. They are only stored there for In clicks, not out clicks. I don't see why your users would care though because even your web server logs all ip addresses that go to your site... Derek |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|