PHP code to load tab Jstools

Hi all,
I need help with sample php snippet to dynamically load a jstools tab so that I can have either caterogory listing or latest news or new forum topics listing.Thanks in advance

ESG Consulting Inc: Drupal Developer - Work remotely (Work in the comforts of your home office OR at your local coffee shop!)

ESG Consulting Inc: Drupal Developer - Work remotely (Work in the comforts of your home office OR at your local coffee shop!)

JOB DETAILS

Title: Drupal Developer
Job Number: 18823

Industry Vertical: Social Network Website
Location: Work remotely

Client LocationL Oakland, CA 94607 (510)
Term: Full-Time Permanent Employment
Duration: Full-Time Permanent Employment

Compensation: Salary - Market Rate

ABOUT ESG CONSULTING

ESG Consulting is an award-winning national provider of diversified information technology consulting services

& Engineering Services to Fortune 1000, public sector entities, and emerging growth firms nationwide.

Founded in 1984, ESG offers almost 20 years of experience in the IT & Engineering staffing and consulting industry.

Headquartered in Santa Clara, we have opened offices nationwide and to this day are consistently re-evaluating and

expanding our service offerings and geographic capabilities. Today, we serve most major metropolitan markets.

ESG is an equal opportunity company. Our flexible management culture believes in creating a business environment

Participatory entertainment concept using Drupal

Here is our showcase, involving youth in responding to traditionnal media using our video recording technology.

Our tool is used by MusiquePlus, a youth entertainment tv channel similar to MTV. See it here:
http://www.musiqueplus.com/modules/communaute/voxpop.php

How to run cron.php without crontab

Dear drupal webmaster newbies, this is for you!

Now it's possible to run cron.php regularily, without any access to the server or without any knowledge about servers and crontab!

Just put these simple PHP lines in a block of your Drupal site, better if mostly present, or create a new block with them:

<?php
$tmstmp=mktime();
$last=file_get_contents("lastcron.txt");
if(($tmstmp-$last)>(60*60*6))
{
 $pntr=fopen('lastcron.txt', 'w');
 if(fwrite($pntr, $tmstmp))
 { 
   mail ("dest","cron OK","OK");
   include ("cron.php"); 
 }
 else
 { 
   mail ("dest","cron FAIL","FAIL"); 
 }
 fclose($point);
}
?>

Of curse replace the lines containing mail ("dest", with your own email address instead of dest.

Then you have to create a text file (lascron.txt) filled with whatever you want (eg: 123456 is ok!) and upload it on the server in the same folder of cron.php (usually the root of your FTP access). Then set file permission to 666 (rw,rw,rw): I've done it with FileZilla, right click on the uploaded file, file attributes, put the flag on write permission for everyone... anyway ... do it, no matter how ;)

Done!

Now 'cron.php' will run more or less regularly, depending on how frequently your site is visited and you'll receive also an email notification.
In the sample I'm tryng to run it every 6 hours and not more frequently: the corresponding code for that is (60*60*6), that calculate the number of seconds in 6 hours.

If you like (or even not!) this script, please leave me a comment on my web site: http://www.diegobelotti.com/?q=cron_script_eng

Init vs mail in user table.

I am curious about the purpose of the init field in the user table. I've searched the site and cannot find an authoritative answer about its purpose. Anybody know?

Here's some refs:
My previous query about this: http://drupal.org/node/119568
http://drupal.org/node/9159

RSS syndication - common problems, dirty solutions and functional specification of a "better" way

Hi,

I wrote a (rather lenghty - sorry for that) article about RSS in Drupal - I noted most annoying problems, (rather dirty) solutions to them and I drew a functional specification of a better (IMHO) way. It's my first serious article about drupal and I tried to write it as well as I could... please read it and tell me what you think. I posted a link at #drupal a few minutes ago and so far got 2 positive opinions :)

The article is here: Drupal - Troubles With RSS.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 4.5.x or older