vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Randomly positioned ad in between postbits in showthread (https://vborg.vbsupport.ru/showthread.php?t=98057)

UK Jimbo 10-11-2005 09:41 AM

Quote:

Originally Posted by GrendelKhan{TSU
mandatory "is there a screen shot?" request. ;) :p

done

Doc Great 10-11-2005 10:17 AM

Quote:

Originally Posted by UK Jimbo
Thanks for posting the usergroup variation Doc Great. I've got no issues with you re-posting the code elsewhere as long as it's not being sold!

Thats for sure :) i hate making profit with "simple" php code :D Thanks for sharing.

dsotmoon 10-11-2005 04:48 PM

how do you add additional usergroups? to

Code:

<if condition="in_array($bbuserinfo[usergroupid], array(1))">
like this?

Code:

<if condition="in_array($bbuserinfo[usergroupid], array(1, 2, 3, 4))">
ect etc?

dieselpowered 10-11-2005 04:49 PM

This does appear to work with click for quick reply.

**clicks install**

UK Jimbo 10-11-2005 05:07 PM

To limit it just to certain user groups I'd recommend the following conditional rather than the in_array() solution posted above. This version ensures that secondary group assignments are checked too.

For a single user group (1 in this case)
PHP Code:

<if condition="is_member_of($bbuserinfo, 1)"

For multiple user groups (1, 2 & 3 in this case)
PHP Code:

<if condition="is_member_of($bbuserinfo, array(1,2,3))"


Andreas 10-11-2005 05:30 PM

What about:
Show Adsense in (or under, above) first unread Post of a Thread.
I think this is the place that would get the most user attention?

UK Jimbo 10-11-2005 05:55 PM

That's a nice idea and one I'll look into. I think it will be possible to use the $threadview variable but it'll require slightly more CPU and will have to deal with cases where the latest the newest post isn't displayed on the page.

dieselpowered 10-11-2005 06:36 PM

How can I get this to not show in the PM's???

For some reason it is screwing up the page formatting when viewing private messages.

hbalagh1 10-11-2005 06:39 PM

Quote:

Originally Posted by xtremeoff-road
How can I get this to not show in the PM's???

For some reason it is screwing up the page formatting when viewing private messages.

same here, didn't even bother to check that till you said that...

dieselpowered 10-11-2005 06:53 PM

Quote:

Originally Posted by hbalagh1
same here, didn't even bother to check that till you said that...

Ya I was surprised to see it there as well :surprised:


All times are GMT. The time now is 11:10 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01324 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete