Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 12 Sep 2010, 01:07
KW802's Avatar
KW802 KW802 is offline
 
Join Date: Jul 2003
Real name: Kevin
Question Example of using hook rssfeeddata_presave?

With the current version of vB 3.8.x, is there an example out there of using the hook rssfeeddata_presave?

What I am trying to do is to modify the parsed description so that if starts with value X then to remove X from the description prior to the post being saved.

Thanks
__________________
Sci-Fi Forum / The Walking Dead & Horror Forum / CinVin

(Sorry, but I am no longer developing for vB; please do not PM. So long, and thanks for all the fish.)
Reply With Quote
  #2  
Old 12 Sep 2010, 02:02
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
I don't know of an example, but it looks like you could do something like:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

assuming that "title" is the field you want, of course. I didn't see anything else that looked like a description, but if you look at the top of includes/class_dm_rssfeed.php there's a list of fields.
Reply With Quote
  #3  
Old 14 Sep 2010, 03:23
KW802's Avatar
KW802 KW802 is offline
 
Join Date: Jul 2003
Real name: Kevin
kh99,

Thanks for the pointer. Guess this weekend I have to redo my plugin a bit to see where I'm going wrong.
__________________
Sci-Fi Forum / The Walking Dead & Horror Forum / CinVin

(Sorry, but I am no longer developing for vB; please do not PM. So long, and thanks for all the fish.)
Reply With Quote
  #4  
Old 14 Sep 2010, 04:43
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Hmm..I'm not sure I understand, did you do it a different way or did my example not work? There may be other ways to make it work using that hook, and I didn't actually try my example. BTW it's in class_dm_rssfeed.php and you probably would also want to look at class_dm.php (but maybe you knew that already).

ETA: and now I notice that you've obviously been around a while and released a number of mods, so probably I just misunderstood your original question.

Last edited by kh99; 14 Sep 2010 at 04:56.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 23:58.

Layout Options | Width: Wide Color: