Drupal
View permission in ip2cc module
ip2cc module could help anyone to know where the poster was in term of country, IP address and network name. Anyway, this information may not be publicly accessible by anyone, instead it should be accessible by authorized persons. Since I forgot this feature at the time I wrote it, I have just noticed this missing feature when I want to implement a site for publicly offering image hosting service free of charge. As you might know, most image hosting services are heavily used for storing images to show in webboards. Some images are inacceptable due to copyright law or TOS violation by any reasons. In worst case, police might ask for the address of the poster. They just want to know his/her IP address. However, normally this information should be hidden to keep each image posted by anonymous user as long as nobody reports TOS violation.
- sugree's blog
- 1 comment
- Read more
- 1334 reads
Duplicate field name of nodewords and upload module in Drupal
According to my last patch to make nodewords module work on Drupal 4.7.x, it worked nearly perfect until I tried to attach a file to a node using standard upload module. Whenever I did it, I got following error messages.
Fatal error: Cannot create references to/from string offsets nor overloaded objects in /home/sugree/www/howforge4704/includes/form.inc on line 277
Sadly, I tried to fix this problem in form.inc with no luck. Eventually, by the help of var_dump(), I found that the actual problem is "description". There is other fields named description in upload fieldset so form builder always get confusing how to render this form.
- sugree's blog
- Add new comment
- Read more
- 1174 reads
ip2cc supports displaying flag in node's link area
According to the flag in comment’s link area, now ip2cc is able to display flag in node’s link area also. These 2 features was suggested by Larry. The use of these capabilities, pointed out by Larry, is to verify the location of the visitor in E-Commerce sites.
What to see a demonstration? See below. You should see I am currently in Thailand.
- sugree's blog
- 21 comments
- Read more
- 2345 reads
ip2cc supports displaying flag in comment's link area
Larry asked me how to use ip2cc module. This is very interesting question. ip2cc module generally just provides APIs to obtain location of given IP address programmatically but useless for end-user. He also inspired me to show flag for each post or comment. That"s why I quickly said thank to him and added this wonderful and useful functionality.
You could update the code to the latest one in CVS and then go to admin/settings/ip2cc to enable this function. If you want to see how it look like, check it out here.
- sugree's blog
- Add new comment
- Read more
- 1137 reads
Missing UK in ip2cc module
I have just found that ip2cc module doesn"t know the country of all IP from United Kingdom. The reason is ISO3166 used GB to identify United Kingdom but IANA used UK instead. To fix this problem, I added UK to iso3166.mysql so it will find the right country successfully.
Please update iso3166.mysql and apply it again.
- sugree's blog
- Add new comment
- Read more
- 1481 reads
Unable to change password in Drupal 4.7.0 beta 4
There is a bug in system.module which caused Drupal 4.7.0 beta 4 to reject password changing according to array functions. This bug has been discussed in http://drupal.org/node/46759. The patch is available right now.
=== modified file "modules/system.module" --- modules/system.module +++ modules/system.module @@ -68,7 +68,7 @@ function system_elements() { "#value" => "pass", "pass1" => array("#type" => "password", "#size" => 12, "#maxlength" => 24),
- sugree's blog
- Add new comment
- Read more
- 1055 reads
Recent comments
3 years 34 weeks ago
3 years 39 weeks ago
3 years 39 weeks ago
3 years 40 weeks ago
3 years 40 weeks ago
3 years 42 weeks ago
3 years 42 weeks ago
3 years 42 weeks ago
3 years 43 weeks ago
3 years 43 weeks ago