Block spam subdomains but allow valid subdomains

Hi,

Searched everywhere for a solution to this but nobody seem to have the same problem.

My site got hacked a few weeks ago and after cleanup I still found that literally hundreds of spam subdomains - w3w, w3ww, wew. etc....

I have cleaned the site but there are still thousands of rogue links out there "in the wild".

I want to write a rule in htaccess which traps any spam subdomain and redirect to the proper domain e.g.

w3w.mydomain.com -> mydomain.com

Uploading and playing audio on Drupal 6

I am wondering if someone would be willing to give me some guidance with regard to a specific project that we have for our Drupal 6 website. I am very new to developing a website on Drupal, but what I have already done intrigues my bent in computing.

Specifically, what I am presently working to achieve is probably very simple to drupal developers – that is to produce the ability to upload and play MP3 sound files to our website.
Thus far in my journey of learning I have installed these modules that seem necessary for audio, and my Status Report shows them in functioning mode;

Filefield
AudioField
GetID3()

I have done the Permissions settings for each of these modules as well as the configuration settings.

Where I am at presently is ‘how to upload’ audio files. My thoughts have included a possible need to create a new Content Type. And I have spent days investigating any instructions for creating an Audio Type – learning plenty along that journey, but not in specific regard to any “Audio Type.”

Existing page can't be edited

Each time I tried to update a particular page in Drupal 6.x, after making the changes to the page and clicking "Save", I was diverted to a Drupal "Page not found" alert. Also, I can't seem to use gFTP to login to the site - I've checked my FTP accounts on the hosting service and all seems in order. Any suggestions?

is there a way name node tpl file in slug instead of nid

Usually I use node-20.tpl.php to build a template file for node which nid is 20.
But if I build a lot of template files.
It looks like this in my theme fold:

node-20.tpl.php
node-32.tpl.php
node-43.tpl.php
node-54.tpl.php
node-66.tpl.php
node-68.tpl.php
...

It is hard to know which page they are for.
Is there a way to name the template file in this format:

node--{node slug}.tpl.php

e.g.
node--about.tpl.php
node--contact.tpl.php

Who knows that?

Statistics counter stopped counting

I use Drupal's core Statistics module to count page views on nodes - i.e. the "### reads" part. However, it just stopped counting on all pages. It still shows the number of reads, but it won't increase no matter how many times the node is access from any computer. The statistics_enable_access_log and statistics_count_content_views variables are set to 1 in the database. There are no errors in Drupal's log or Apache's log. Any ideas? Thanks!

Blocks content loaded with jQuery ajax

I have a block, and I load with ajax his content, this content is returned by view_embed_view, and must works with ajax, but after i load content when i click something from block redirect me to view page and ajax don't work, i use Drupal.attachBehaviors("someting"); but i don't have any result.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 6.x