Jump to content


ipbwi for wordpress feature request


3 replies to this topic

#1 cameronp2

    Newbie

  • Active Member
  • Pip
  • 15 posts

Posted 16 December 2011 - 01:07 PM

Hi there Matthias, well we went ahead and bought a license of this. All is running great.

I had a feature request though for your widget displaying topics. Could you add options like:

Show avatar picture (we use gravatar settings on our board)
show specified number of chars from first topic (like a little snippet)

If these could be put in as options I think other wordpress users and new ones in the future would like it..
I would have added them in myself and sent the code to you but your ioncube loader takes care of that ;)


Thanks,
Cameron

Edited by cameronp2, 16 December 2011 - 01:08 PM.


#2 Matthias Reuter

    Forensklave

  • Admin
  • PipPipPipPipPipPipPipPip
  • 9234 posts
  • Gender:Male
  • Location:Hamburg / Germany

Posted 16 December 2011 - 05:57 PM

Hi Cameron,

you can edit the HTML Template of the widget to customize the widget output. You are able to access to the whole ipbwi class with all function through $GLOBALS['ipbwi'] object.

Nevertheless, this is a great feature request and I'll add this to my todo list to make it possible as option in widget settings (here you're right, this part is encoded).

Thx for using IPBWI4WP :)

Kind regards,
Matthias

#3 cameronp2

    Newbie

  • Active Member
  • Pip
  • 15 posts

Posted 17 December 2011 - 08:45 AM

Awesome thanks Matthias, I basically have it laid out the way I want...

The only issue I had was getting a snippet of the first post, I was trying $topic['post'] but that didnt work. So I used $GLOBALS['ipbwi']->post->info($topic['first_post_id'])
But nothing again. I can see that first_post_id has a value tho..

Any tips?

Thanks,
Cameron

#4 Matthias Reuter

    Forensklave

  • Admin
  • PipPipPipPipPipPipPipPip
  • 9234 posts
  • Gender:Male
  • Location:Hamburg / Germany

Posted 17 December 2011 - 01:36 PM

$topic['post'] should work within this area of the widget code:
foreach($topics as $topic){
// widget entry code...
}

you can try out dumping the var to get all possible fields:

foreach($topics as $topic){
 var_dump($topic);
}






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users