Introducing how to make a cool xanga using Xanga blog mirror script!
Xanga is a community of online diaries and journals. You can easily start your own free journal, share thoughts with your friends and meet new friends, too as you learn how to make a cool xanga!
Xanga is sort of like the Microsoft
of the blogging world. Next to Blogger.com, it is one the most popular blogging site out there used by
millions, and it's got a nice, easy to use interface. If you're a novice and just want a
simple to use blog, Blogger or Xanga will be your best bet.
If you are like the majority of online surfers, you like to do things yourself including how to make a cool xanga. Yet, the problem is that there is not always a large amount of resources out there to find out further information on this. Therefore, the first thing you need to do is download the how to make a cool xanga script here! When you want to learn how to do something the first place you look is the internet. Compiled on this site is all of the information you need to fulfill your learning needs and more concerning how to make a cool xanga!
Okay, now let's get back to business. Analogously to Windows, Xanga seems to be looked down upon amongst
the "hard-core" bloggers, because of its closed, proprietary hosted system, and lack
of many features standard in other blog-management software as well as total
ability to tinker with the source code and customize settings to one's heart's content. Therefore, sharing information on how to make a cool xanga is really not in their priorities.
Presenting the Xanga mirror script, written in Perl. It automates logging
in and posting to Xanga, and is designed to be called from
content-management software such as Movable Type.
This code was donated by Winsford William at the University of Texas in Austin. You can email him at w22william@yahoo.com if you have any questions.
The requirements are
simple: MT or some other blog/content management software written in Perl, a
host that you have access to, and some basic knowledge of editing text files
on UNIX. Oh, and of course, a Xanga
account, which you can freely sign up for if you don't have one already. The
basic one will do -- no need for Premium.
Okay!! =)
Instructions
How to make a cool xanga.pm -- the Xanga posting script. Download this now,
edit the user setting variables in the file itself, and
save it to somewhere in your Perl @INC path, probably
PATH_TO_YOUR_BLOG_SOFTWARE/lib/. For Moveable Type using the default
installation paths, it's the same directory that MT.pm is in.
SECURITY WARNING: If this file resides in a web-server
accessible directory,
make sure you take steps to protect this file from being accessed through
the web server itself and exposing your Xanga username/password.
Please consult your web server's documentation. For Apache, the easiest
way is to create a file called .htaccess located in the same directory as this
file with the contents:
Order Deny,Allow
Deny from all
Now, you will need to modify your blog software somehow to initiate your how to make a cool xanga script. Here's what to do using
MT 2.661 which will automatically call the Xanga posting routine whenever
the file is saved, and log Xanga posts to the activity log:
- In file MT_PATH/lib/MT/App/CMS.pm, add the line 'use Xanga;'
without the quotes between the below lines near the beginning of the file as
shown:
@MT::App::CMS::ISA = qw( MT::App );
use Xanga;
sub init {
- In the same file, search for sub save_entry {. In this subroutine,
insert the following code in bold between the appropriate lines
which you can find by scrolling down (you may wish to tweak the setting
of $xanga_post to suit your preferences):
if ($id) {
## Delete the author_id param (if present), because we don't want to
## change the existing author.
$app->delete_param('author_id');
}
my %values = map { $_ => scalar $q->param($_) } @$names;
my $xanga_post = "<b><font
size=+1>".$values{'title'}."</font></b>\r\n\r\n"
.$values{'text'};
if($values{'text_more'}) {
$xanga_post .= "\r\n\r\n".$values{'text_more'};
}
my $xanga_post_results = &Xanga::post_to_xanga($xanga_post);
$app->log($xanga_post_results);
## Strip linefeed characters.
for my $col (qw( text excerpt text_more keywords )) {
$values{$col} =~ tr/\r//d if $values{$col};
}
Now, when you post to your MT blog, the entry should be automatically mirrored
in Xanga. If you go to your Xanga site, you should see the entry. If you don't,
check the activity log in your MT blog for any errors.
Limitations
This is basically alpha quality software. It only has the most rudimentary
of error handling. Also, it only supports
posting new posts to Xanga and not editing or deleting existing posts. So, if you
go back and edit an entry in your "real" blog, you'll probably need to go to Xanga
and make the old entry "private".
In summary, best of luck with your instructions on how to make a cool xanga. If you have any difficulties, contact Winsford William at the University of Texas in Austin. You can email him at w22william@yahoo.com . Thank you!
Make sure you sign up for our FREE newsletter which features unlimited deals , clearance sales, online shopping tips, $$money$$-saving shopping secrets and resourceful information all year long!
AS Seen On TV
Autos, Custom Cars and Trucks
Baby Products
 Beauty, Grooming & Skin Care
   Books & Magazines
Clothes & Fashion
Credit 101
Gifts for Him & Her
Handbags & Purses
Linens and Things
Sports & Outdoor
Travel Discounts
|