Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
  #241  
Old 24 Jun 2011, 21:51
kether1 kether1 is offline
 
Join Date: Jun 2006
Real name: Kether
Originally Posted by BirdOPrey5 View Post
Sorry man... VBA Dynamics is a commercial mod I just don't have access to so I don't know how it's designed or what fields may be available.

If there is a php hook available somewhere you could make a plugin with this code, it will print out all available fields for $entry and see if any of them match the userid.


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

But don't do it while your forum is on (use a test forum if you have one) otherwise everyone will see the code output.
Thanks for your efforts! I am grateful!

Regards,
Kether

--------------- Added 25 Jun 2011 at 15:25 ---------------

Just a follow-up update: I finally figured it out with your help, Joe. I went to the template and just started deleting bits and checking to see what was displayed. I found the bit that was causing the information to be displayed to everyone even though we told it to only display to the admin and user. After removing that code. It all worked!! Thanks again for your help. I appreciate it very much.

Kether
Reply With Quote
  #242  
Old 27 Jun 2011, 08:46
induslady induslady is offline
 
Join Date: Jul 2006
Hello,

Am looking for a template conditional for Blog pages.

I tried this:

<vb:if condition="THIS_SCRIPT == 'blog'">

but this works only for the blog home page.

I would want a template conditional that applies to all the blog pages.

Thanks.
Reply With Quote
  #243  
Old 30 Jun 2011, 09:10
Marv Marv is offline
 
Join Date: Jun 2002
Originally Posted by BirdOPrey5 View Post
There's no condition specifically for 2nd posts but if you set your forum to a set number of posts per page you could make a condition like:


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

...and so on... Assuming 10 posts per page- Yeah at some point the condition won't work anymore but how many threads really go X number of pages anyway. I assume you want it to show an ad so if it works in 95% of thread pages it should be good enough.
An approach I have tested out but collided with other ads around the last post on a thread, if the showthread page contains only two or three postings. To overwhelming and filled with ads.

I try to modify and create the ad-placements with a precheck, wether there are more then X posts on a showthread page or not. Dependencies:
  • if the visitor is a guest
  • if the ad placement is the X post on this showthread page as seen in the browser
  • if the page (not the whole thread) shows at least Y postings (to avoid that the whole page is looking like an adfarm)

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

Thatīs how it looks like so far - but I canīt find anything that could help me with the last if statement. Does anyone has an idea how this could be done? Isnīt there something in vB that can be used for that? May be Iīm just to blind but that damn thing ruined my whole day yesterday. I would be glad someone could lead a blind and help me out of this mess..

Any help appreciated.
Reply With Quote
  #244  
Old 30 Jun 2011, 10:11
induslady induslady is offline
 
Join Date: Jul 2006
Hello,

Am looking for a template conditional:

In Showthread page - postbit, the username of the poster needs to be in red color if she belongs to a particular usergroup id - 34, I tried this


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

But it does not seem to be working and I did the above template conditional in memberaction_dropdown

Let me know the correct conditional that needs to go there.

BTW the conditional to check if the page is a blog page including the blog index use the below:


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

Thanks.
Reply With Quote
  #245  
Old 30 Jun 2011, 10:26
Marv Marv is offline
 
Join Date: Jun 2002
Originally Posted by induslady View Post
In Showthread page - postbit, the username of the poster needs to be in red color if she belongs to a particular usergroup id - 34
If I donīt get you wrong, thatīs already a built-in feature. Check the settings of the usergroup 34 in the usergroup-settings, 3rd checkbox should be the one you are looking for.
Reply With Quote
  #246  
Old 30 Jun 2011, 13:29
induslady induslady is offline
 
Join Date: Jul 2006
Hello Marv,

Thanks for the response. Guess you are talking about the "Username HTML markup".

But this user has the usergroup id - 34 as her secondary user group ( and not primary user group). Hence the HTML markup - color code set in the usergroup setting is not output in the postbit.

let me know how to obtain this.

Thanks in advance.
Reply With Quote
  #247  
Old 30 Jun 2011, 14:02
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
I think the condition is correct. Are you using post.musername or post.username? post.musername includes the group markup, which is probably overriding your color, so try post.username.
Reply With Quote
  #248  
Old 30 Jun 2011, 15:27
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by induslady View Post
Hello,

Am looking for a template conditional:

In Showthread page - postbit, the username of the poster needs to be in red color if she belongs to a particular usergroup id - 34, I tried this


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

But it does not seem to be working and I did the above template conditional in memberaction_dropdown

Let me know the correct conditional that needs to go there.

BTW the conditional to check if the page is a blog page including the blog index use the below:


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

Thanks.
I don't think $post can be used in memberaction_dropdown. I don't know what the alternative would be either- would probably need some custom plugins I think.

memberaction_dropdown is called from many different templates, not just the postbit.
__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.
Reply With Quote
  #249  
Old 30 Jun 2011, 15:59
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Oh, good point Joe, I saw postbit and missed memberaction_dropdown. Sorry induslady.

ETA: Actually I think you might be able to substitute $memberinfo for $post. You still may have to use username instead of musername.

Last edited by kh99; 30 Jun 2011 at 16:08.
Reply With Quote
  #250  
Old 01 Jul 2011, 17:24
baghdad4ever baghdad4ever is offline
 
Join Date: May 2007
Real name: husam
How can I insert a banner in the first post of the every pages of the thread ?
Reply With Quote
  #251  
Old 01 Jul 2011, 18:25
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by baghdad4ever View Post
How can I insert a banner in the first post of the every pages of the thread ?
Open postbit template...

find {vb:raw post.message}

Either directly above it or below it add this code:


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

__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.
Reply With Quote
  #252  
Old 01 Jul 2011, 20:23
baghdad4ever baghdad4ever is offline
 
Join Date: May 2007
Real name: husam
Originally Posted by BirdOPrey5 View Post
Open postbit template...

find {vb:raw post.message}

Either directly above it or below it add this code:


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

thanks alot

it is worked perfectly

is there any way to put the banner between the content of thread?

ie: among words of post not before nor after


thanks again
Reply With Quote
  #253  
Old 01 Jul 2011, 21:39
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Not with a template conditional... that would require some custom coding beyond the realm of this article.
__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.
Reply With Quote
  #254  
Old 01 Jul 2011, 22:09
baghdad4ever baghdad4ever is offline
 
Join Date: May 2007
Real name: husam
Originally Posted by BirdOPrey5 View Post
Not with a template conditional... that would require some custom coding beyond the realm of this article.
thanks alot for your kind reply
Reply With Quote
  #255  
Old 07 Jul 2011, 20:34
flbutterflyz flbutterflyz is offline
 
Join Date: Jun 2011
Hi,

I created a profile field that I'd like each usergroup to view but only want 3 usergroups to use. How do I go about that in postbit legacy? Here's what I have so far:


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

Reply With Quote
Reply



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

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 22:56.

Layout Options | Width: Wide Color: