RSS Import submitter

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 02-17-2010, 02:13 PM
oobie11's Avatar
Constant Pligger
Pligg Version: 1.0
Pligg Template: Custom, wistie
 
Join Date: Apr 2009
Location: Monterey, CA
Posts: 148
Is there a way for me to import the author of a feed and have it be in place of the submitter id? I can see the "author" in the "feed field name" when setting up a feed, but I don't have a "submitter" in the "pligg field name". Thanks.
Reply With Quote
  #2 (permalink)  
Old 02-17-2010, 08:15 PM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Social Pro Kit
 
Join Date: Jun 2006
Posts: 5,448
Yes, if you've created an author for that ID. It's been explained before.
This is why we had to dump this module.. The vast majority of people that are using this module refuse to read the directions or configuration instructions. It was taking up most of our support time. The module does work if the end user can be bothered to learn how to use it.
Reply With Quote
  #3 (permalink)  
Old 02-17-2010, 09:21 PM
oobie11's Avatar
Constant Pligger
Pligg Version: 1.0
Pligg Template: Custom, wistie
 
Join Date: Apr 2009
Location: Monterey, CA
Posts: 148
Maybe Im not explaining what I want to achieve correctly. I have rss importer installed. I am importing a feed from a news source. When one configures the rss importer to import feeds, one has to click "edit" under the link and then they have to click "add new field link" three times at the bottom of the page. After doing so, one has to make the fields look like below by clicking on the drop-down selector and selecting the appropriate field names.
Quote:
-- feed field name: title --- pligg field name: link_title
-- feed field name: link --- pligg field name: link_url
-- feed field name: description --- pligg field name: link_content

In my situation, when I click on the drop-down selector for "feed field name", one of my options is "author". I would like to make it so the "author" gets imported and put in place of the submitter ID because I feel that the author of the piece should get credit, not some made up username.

I would gladly read and follow the directions on how to get this working the way I want, if they were posted anywhere, but to my knowledge they are not. I assume that many of the people that you are referring to have the same problem. I apologize for having to ask questions. Thank you.

Last edited by oobie11; 02-18-2010 at 12:49 AM.
Reply With Quote
  #4 (permalink)  
Old 02-17-2010, 09:51 PM
New Pligger
Pligg Version: 1.0.3
 
Join Date: Feb 2010
Posts: 14
You can import author information in User_Field2. then you can output that data however you wish.
Reply With Quote
  #5 (permalink)  
Old 02-18-2010, 12:46 AM
oobie11's Avatar
Constant Pligger
Pligg Version: 1.0
Pligg Template: Custom, wistie
 
Join Date: Apr 2009
Location: Monterey, CA
Posts: 148
Ok, I figured it out by using the "Extra Fields". Here is what I did in case anyone want to do the same sort of thing.
First enable extra fields by going to Admin--Configure--Misc and choose true in the "Enable Extra Fields" dropdown.
Next I opened libs/extra_fields.php and changed the red lines
Quote:
define('Enable_Extra_Field_1', false);
define('Field_2_Title', 'misc field1');
define('Field_2_Instructions', 'this is where you put the instructions for this new field.');
define('Field_2_Searchable', false);
//the variables below are not yet used in version 6.02.
define('Field_2_Required', false);
define('Field_2_Validation_Method', '');
define('Field_2_Validation_Error_Message', '');
to
Quote:
define('Enable_Extra_Field_1', true);
define('Field_1_Title', '');
define('Field_1_Instructions', 'this is where you put the instructions for this new field.');
define('Field_1_Searchable', false);
//the variables below are not yet used in version 6.02.
define('Field_1_Required', false);
define('Field_1_Validation_Method', '');
define('Field_1_Validation_Error_Message', '');
(I just left the title blank)

Then I opened templates/YOUR TEMPLATE/submit_extra_fields.tpl and quoted out all of "Extra Field 1" ( I did this because I didn't want to show the field in the submit step 2).

Next I opened templates/YOUR TEMPLATE/link_summary.tpl and found this line.
Quote:
{if $Enable_Extra_Field_1 eq 1}{if $link_field1 neq ""}<br/><b>{$Field_1_Title}:</b> {$link_field1}{/if}{/if}
and quoted it out.
Ok, next I created a new user called Author and found out the user id number by using phpMyAdmin in cPanel on my webserver.
This is where it will vary considering how you want you design. In link_summary.tpl, you are probably going to want to move the {$link_field1} up and add some conditional {if} statements. This is how I structured mine.
Quote:
<span class="postuser">
{if $user_id eq 'MY "AUTHOR" ID NUMBER'}
{if $link_field1 neq ""}{$link_field1}, <a href="{$submitter_profile_url}">{$link_submitter}</a>
{elseif $link_field1 eq ""}By <a href="{$submitter_profile_url}">{$link_submitter}</a>
{/if}
{else}{#PLIGG_Visual_LS_Posted_By#}<a href="{$submitter_profile_url}"> {$link_submitter}</a>
{/if}
</span>
Lastly, just go to rss importer in Admin and add a new "feed field link" for author and have it go to "link_field1".
This makes it so if the feed Im importing has an author it is put in place instead of the submitter id. And if it doesn't have an author, it just says "By (THE USER I CREATED)". Also, if I import a different feed by a different user or if someone submits a link, it just says what it normaly would.

Hope this helps anyone who need it.
Reply With Quote
  #6 (permalink)  
Old 03-16-2010, 08:54 AM
New Pligger
Pligg Version: 1.0.3
 
Join Date: Jan 2010
Posts: 10
I'd say that if this problem is SO common, its not really a user issue, but a usability issue. In other words the module needed more work.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
RSS Import Module - Submitter Id & Category Id to set random britbeer Questions and Comments 1 02-17-2010 11:10 AM
Rss Feed can't Import Image gaurangitech Questions and Comments 2 12-27-2009 05:24 AM
RSS Import - RSS cache? wiruzik Questions and Comments 2 10-30-2009 05:01 AM
Rss Import - Cron Importing images problem JonniE_M Questions and Comments 5 07-21-2009 11:47 PM
Capture video thumbnails from rss import and display them on published/upcoming site tand Questions and Comments 7 05-16-2008 04:16 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development