This forum is for less technical discussions about the Drupal project, not for support questions.

howto disable 'recent comments' + reformat the categories links....

Using kubrick theme,
with the new php template engine.. but ' Recente comments ' is listed on my navigational links, how could this be removed?

also another issue im unable to resolve is this:
my categories have the time it was posted on them , how could i remove this? I only want to have

Categories
Storys (5)

Instead of what i have currently:

Categories
Storys (5)
7 min 53 sec ago

Thanks for your comments!
Really unable to resolve this :(

PHP block examples

In this thread one can post working PHP code to be put in a block. You can copy the code in a new custom block on your Drupal site. Note that this code is "AS IS" and might not work on all versions/platvorms and isn't up to the quality of the Drupal core code itself.

Integrate Drupal into exsisting Member subscribed database

Hi everyone,

Im working on a migration of Drupal with my current database. This is the situation:

dspmembers < current member database with members >
dt_members table : contains password and usernames + other data
username and password are saved in plaintext along with some other member datafields within this table.

dspmagazine < database where installed drupal for magazine >

Now I want drupal to use the dt_members table and read the passwords and usernames from there, the rest of the data should be stored in the drupal database (dspmagazine)

How would i do this, where do i start?

the current dt_members table looks like this:

#----------------------------
# Table structure for dt_members
#----------------------------
create table dt_members (
id int(11) not null auto_increment,
login varchar(25),
pswd varchar(20),
email varchar(255),
name varchar(40),
gender varchar(10),
age int(11),
country varchar(255),
looking_for varchar(255),
ip_addr varchar(15),
reg_date int(11),
`status` int(11),
system_status int(11) default '0',
system_status_end int(11),
unlimited int(11) default '0',
unlimited_end int(11),
matchfinder int(11),
highlight int(11) not null default '0',
aquire int(11) not null default '0',
onchat int(11) not null default '0',
onimc int(11) not null default '0',

forum timestamps...

Could someone please tell me how I could go about givng the forums 'last reply' column a timestamp rather than a running count of how much time has gone by? I mean, 'Feb. 4 2005' instead of '4 days ago'. I have been fiddling with both format_date() and format_interval() in common.inc, but as yet have had no luck. I just can't get it to output a set date. Do I need strtotime() or can I use the existing functions?

All help welcome,
larry

form_select for language switching

Did anybody attempted to use form_select for language switching ?

assuming locale modifications to common.inc
say if we have,

<a href="/{PHP._GET.q}&mylang=fr">french</a>
<a href="/{PHP._GET.q}&mylang=en">english</a>

select french would change the language setting to french.

Posting content programmatically

Hello everyone,

I'm trying to put our club magazine online, as a book.
The editor however wants to continue doing his work with Word and I don't blame him.
He probably _is_ willing to make some changes to his process. For instance
he could make more use of structural markup ( headings, etc ) so it should be possible
to export to HTML, run Tidy and run my own to-be-developed tool that posts images and book pages to Drupal.

Pages

Subscribe with RSS Subscribe to RSS - General discussion