The vB Geek

Go Back   The vB Geek > vB Geek Commons > Lizard Lounge

Lizard Lounge The place to post off topic stuff.

Advertisement
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 02-18-2007, 01:37 AM
Tigratrus's Avatar
Tigratrus Tigratrus is offline
Senior Member
 
Join Date: Nov 2006
Posts: 206
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Question Postbit tweak

Anyone know a script that can handle the postbit icons in a fashion similar to the product Icons here? We're looking to setup a system where we can give people "Supporter badges" for a given year when they donate to the site and have them show up in the postbit. Looking at the way GM seems to work here by promoting purchasers into special user groups gave me the basic idea.

I've dug around over on .org and found a couple sorta/kinda matches like YAAS, but they all seem to be either overkill or incompatible with 3.6.4.

Any ideas? Thanks in advance for any suggestion...

James and Susan
Reply With Quote
  #2  
Old 02-18-2007, 05:23 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

All I do here is create a usergroup affiliated with the product, then in the postbit, do a simple <if condition="is_member_of(usergroupid, $bbuserinfo)">image here</if>

Its not perfect, but it does the trick
Reply With Quote
  #3  
Old 02-18-2007, 07:21 PM
Tigratrus's Avatar
Tigratrus Tigratrus is offline
Senior Member
 
Join Date: Nov 2006
Posts: 206
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default That's pretty much what we're looking at...

Quote:
<if condition="is_member_of(usergroupid, $bbuserinfo)">image here</if>
I've been playing around with postbit layout a *cough* bit *cough* recently for another reason and I think I'm going to do something similar. I'm with you on everything in that statement with the exception of the $bbuserinfo parameter... Can you clarify that at all?

Thanks for the info! So many little "bits" to get a handle on.

James and Susan
Reply With Quote
  #4  
Old 02-19-2007, 05:13 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Its just a parameter the function expects. However that actually is the userinfo for WHO is reading the post - I forgot I had to write a plugin for it.

Here is is:

Title: Thing
location: postbit_display_start
code:
PHP Code:
$secondary_icons "";
if (
$post['membergroupids'])
{
$ugs explode(",",$post['membergroupids']);
if (
is_array($ugs))
{
 if (
in_array(10$ugs))
    {
  
$secondary_icons.='<img src="gars_tiny.gif" width="20" height="20" border="0" title="Geek Article and Review System License Holder" />&nbsp;';
    }
 if (
in_array(9$ugs))
    {
  
$secondary_icons.='<img src="gmart_tiny.gif" width="20" height="20" border="0" title="GeekMart License Holder" />&nbsp;';
    }
 if (
in_array(11$ugs))
    {
  
$secondary_icons.='<img src="gal_tiny.gif" width="20" height="20" border="0" title="Geek Auto-Linker Pro License Holder" />&nbsp;';
    }
 if (
in_array(14$ugs))
    {
  
$secondary_icons.='<img src="gars_tiny.gif" width="20" height="20" border="0" title="Geek Advertising Banner License Holder" />&nbsp;';
    }
}

Not the cleanest code - but it works
Reply With Quote
  #5  
Old 02-22-2007, 03:33 PM
Tigratrus's Avatar
Tigratrus Tigratrus is offline
Senior Member
 
Join Date: Nov 2006
Posts: 206
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default Oops... Forgot to reply!

Just realized that I never said thank you!

I really appreciate your willingness to help with such a tangential issue . So

*ahem*

THANKS!

This'll help out as we implement phase 1 of our supporter recognition system...

James and Susan
Reply With Quote
  #6  
Old 04-17-2007, 02:53 AM
Tigratrus's Avatar
Tigratrus Tigratrus is offline
Senior Member
 
Join Date: Nov 2006
Posts: 206
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default One more question?

Now that I've got our testbed up, I'm actually implementing the first stage of our member recognition system. So I'm pretty sure I follow the plugin you listed, and that doesn't match up with the:

<if condition="is_member_of(usergroupid, $bbuserinfo)">image here</if>
So what do you add in the postbit? Just $secondary_icons wherever you want the icons dropped in?

James and Susan
Reply With Quote
  #7  
Old 04-17-2007, 07:31 AM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

$secondary_icons are already there
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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postbit in replies attroll Geek Article and Review System 0 06-22-2008 10:19 PM
Postbit Template MotMann Geek Article and Review System 5 05-12-2008 11:20 PM
How to use regular postbit for comments? trana Geek Article and Review System 1 03-02-2007 11:34 AM
GAL in the postbit? Tigratrus Geek Auto-Linker 2 02-21-2007 08:17 PM
Making the design the same as the postbit John D Geek Article and Review System 1 09-04-2006 06:55 AM


All times are GMT. The time now is 10:01 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.