Go Back   Pligg Forum > Pligg Development > Pligg Mods
Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 03-15-2008, 11:47 AM
johnange johnange is offline
New Pligger
 
Join Date: Mar 2008
Posts: 1
Downloads: 5
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
What about importing of published date field?

E.g.

<dc:date>2008-03-14T18:37:00+00:00</dc:date>
Reply With Quote
Sponsored Links
Check out the New Templates at the Pligg Pro Shop.
  #12 (permalink)  
Old 03-22-2008, 04:38 PM
xenfra xenfra is offline
Pligg Donor
Pligg Version: 9
Pligg Template: expertvision
 
Join Date: Mar 2008
Posts: 52
Downloads: 0
Uploads: 0
Thanks: 11
Thanked 0 Times in 0 Posts
command in cron

Hi,
I also try with
/var/www/vhosts/xenfra.com/httpdocs/import.php
after copyng the file in root

and I have try with
/var/www/vhosts/mysite/httpdocs/module.php?module=rss_import_do_import

and the error is NO SUCH FILE OR DIRECTORY

I can't understand the command that I must put in COMMAND on Cron Tab
Reply With Quote
  #13 (permalink)  
Old 04-17-2008, 07:47 AM
wilsontoad wilsontoad is offline
New Pligger
 
Join Date: Apr 2008
Posts: 1
Downloads: 0
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Arrow How to automate import of RSS feeds

To automatically import RSS feeds into Pligg using RSS Importer v0.5

1. Ensure your PHP is compiled with curl support (if it isn't you can still do this using curl from the command line but this HOWTO doesn't cover this)
2. Create a php file in your root web directory called importrss.php
3. Put the following in this file replacing the url, username and password below with your details:

<?php
// INIT CURL
$ch = curl_init();

// SET URL FOR THE POST FORM LOGIN
curl_setopt($ch, CURLOPT_URL, 'http://www.yoururl.com/login.php');

// ENABLE HTTP POST
curl_setopt ($ch, CURLOPT_POST, 1);

// SET POST PARAMETERS : FORM VALUES FOR EACH FIELD
curl_setopt ($ch, CURLOPT_POSTFIELDS, 'username=whatever&password=whatever&processlogin= 1');

// IMITATE CLASSIC BROWSER'S BEHAVIOUR : HANDLE COOKIES
curl_setopt ($ch, CURLOPT_COOKIEJAR, 'cookie.txt');

# Setting CURLOPT_RETURNTRANSFER variable to 1 will force cURL
# not to print out the results of its query.
# Instead, it will return the results as a string return value
# from curl_exec() instead of the usual true/false.
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);

// EXECUTE 1st REQUEST (FORM LOGIN)
$store = curl_exec ($ch);

// SET FILE TO DOWNLOAD
curl_setopt($ch, CURLOPT_URL, 'http://www.yoururl.com/module.php?module=rss_import_do_import');

// EXECUTE 2nd REQUEST (FILE DOWNLOAD)
$content = curl_exec ($ch);

// CLOSE CURL
curl_close ($ch);

?>

4. Set up a crontab to run as follows, putting your path in the relevant place

01* * * * /usr/local/bin/php -f /insert-path-here/importrss.php >/dev/null 2>&1

5. Sit back and watch
Reply With Quote
  #14 (permalink)  
Old 04-17-2008, 02:28 PM
jkjunkfilter jkjunkfilter is offline
Casual Pligger
 
Join Date: May 2007
Posts: 83
Downloads: 15
Uploads: 0
Thanks: 9
Thanked 1 Time in 1 Post
Is there a way to have the RSS feeds post to a specific page, not the main page?
Reply With Quote
  #15 (permalink)  
Old 06-26-2008, 11:49 PM
snok snok is offline
New Pligger
 
Join Date: May 2008
Posts: 25
Downloads: 29
Uploads: 0
Thanks: 0
Thanked 2 Times in 1 Post
@jkjunkfilter
Excluding a category from the main page, im working on that, only im stuck...
Reply With Quote
  #16 (permalink)  
Old 06-26-2008, 11:50 PM
snok snok is offline
New Pligger
 
Join Date: May 2008
Posts: 25
Downloads: 29
Uploads: 0
Thanks: 0
Thanked 2 Times in 1 Post
oops oldddd.... im writing history
Reply With Quote
  #17 (permalink)  
Old 07-18-2008, 08:43 PM
jkjunkfilter jkjunkfilter is offline
Casual Pligger
 
Join Date: May 2007
Posts: 83
Downloads: 15
Uploads: 0
Thanks: 9
Thanked 1 Time in 1 Post
Any news on this?
Reply With Quote
Reply



Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
i want AUTO IMPoRT RSS in my Pligg website bhatiacane Core Development 1 06-08-2008 10:13 PM
Pligg integration with SMF Forum autoinc Pligg Mods 64 05-19-2008 01:22 AM
Page titles & breadcrumbs AshDigg Core Development 11 06-30-2006 06:35 PM


LinkBacks Enabled by vBSEO 3.0.0