Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 08-16-2005, 12:43 AM
Neal-UK's Avatar
Neal-UK Neal-UK is offline
 
Join Date: Feb 2004
Location: Lancashire, England
Posts: 604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can I add the table code to this please? Nice mod thankyou.
Reply With Quote
  #12  
Old 09-12-2005, 12:08 PM
ZeroSixty ZeroSixty is offline
 
Join Date: Jan 2005
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can I get the ads placed in a nice table as seen here? - http://forums.digitalpoint.com/showthread.php?t=28193

TIA
Reply With Quote
  #13  
Old 10-09-2005, 05:50 AM
BamaStangGuy's Avatar
BamaStangGuy BamaStangGuy is offline
 
Join Date: Mar 2004
Location: Alabama
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<if condition="in_array($bbuserinfo[usergroupid], array(1))">
<if condition="!$GLOBALS['FIRSTPOSTID']">
$spacer_open
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td class="alt2" width="175" valign="top">
<span class="bigusername">Hey Guest!</span>
<br />
<div class="smallfont">
Not Registered? <a href="http://www.mustangevolution.com/forum/register.php">Join today!</a>
<br />
<br />
Registration allows you too:
<br />
<br />
Post on our Forums.
<br />
<br />
Host files in our <a href="http://www.mustangevolution.com/gallery/">Gallery</a>.
<br />
<br />
Create a Member <a href="http://www.mustangevolution.com/garage.php">Page</a>.
<br />
<br />
Get rid of this ad....
</div>
</td>
<td class="alt1">
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-6510039177967027";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel ="6228185316";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "910000";
google_color_url = "910000";
google_color_text = "00235D";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</td>
</tr>
</table>
$spacer_close
<div style="padding:$stylevar[cellpadding]px 0px 0px 0px; background-color: #FFFFFF;">
</div>
</if>
</if>
Here is my postbit_legacy code... adjust it to your fitting

The above if conditionals show it after the first post of every thread page and show it only to guests.

What it looks like: http://www.mustangevolution.com/foru...ad.php?t=16230
Reply With Quote
  #14  
Old 10-09-2005, 07:49 AM
jluerken's Avatar
jluerken jluerken is offline
 
Join Date: Aug 2003
Location: Germany
Posts: 1,016
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok we already scanned if its the first post and which usergroup the user has to display the ads.

I also want to have an IF clause which is checking the language the user is using.

If its a guest or if the user has english selected a text should be shown in english.
If he/she has german selected a text should be shown in german.

Does anyone know the correct if clause for this?
Reply With Quote
  #15  
Old 10-09-2005, 09:13 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just use phrases. If you have a german translation, it would automatic show for people who selected german.
Reply With Quote
  #16  
Old 10-09-2005, 10:09 AM
ZeroSixty ZeroSixty is offline
 
Join Date: Jan 2005
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very much Brent
Reply With Quote
  #17  
Old 10-12-2005, 12:44 PM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BrentWilson
Code:
<if condition="in_array($bbuserinfo[usergroupid], array(1))">
<if condition="!$GLOBALS['FIRSTPOSTID']">
$spacer_open
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td class="alt2" width="175" valign="top">
<span class="bigusername">Hey Guest!</span>
<br />
<div class="smallfont">
Not Registered? <a href="http://www.mustangevolution.com/forum/register.php">Join today!</a>
<br />
<br />
Registration allows you too:
<br />
<br />
Post on our Forums.
<br />
<br />
Host files in our <a href="http://www.mustangevolution.com/gallery/">Gallery</a>.
<br />
<br />
Create a Member <a href="http://www.mustangevolution.com/garage.php">Page</a>.
<br />
<br />
Get rid of this ad....
</div>
</td>
<td class="alt1">
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-6510039177967027";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel ="6228185316";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "910000";
google_color_url = "910000";
google_color_text = "00235D";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</td>
</tr>
</table>
$spacer_close
<div style="padding:$stylevar[cellpadding]px 0px 0px 0px; background-color: #FFFFFF;">
</div>
</if>
</if>
Here is my postbit_legacy code... adjust it to your fitting

The above if conditionals show it after the first post of every thread page and show it only to guests.

What it looks like: http://www.mustangevolution.com/foru...ad.php?t=16230

quick question where do i paste this?

Quote:
Originally Posted by BrentWilson
Code:
<if condition="in_array($bbuserinfo[usergroupid], array(1))">
<if condition="!$GLOBALS['FIRSTPOSTID']">
$spacer_open
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td class="alt2" width="175" valign="top">
<span class="bigusername">Hey Guest!</span>
<br />
<div class="smallfont">
Not Registered? <a href="http://www.mustangevolution.com/forum/register.php">Join today!</a>
<br />
<br />
Registration allows you too:
<br />
<br />
Post on our Forums.
<br />
<br />
Host files in our <a href="http://www.mustangevolution.com/gallery/">Gallery</a>.
<br />
<br />
Create a Member <a href="http://www.mustangevolution.com/garage.php">Page</a>.
<br />
<br />
Get rid of this ad....
</div>
</td>
<td class="alt1">
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-6510039177967027";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel ="6228185316";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "910000";
google_color_url = "910000";
google_color_text = "00235D";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</td>
</tr>
</table>
$spacer_close
<div style="padding:$stylevar[cellpadding]px 0px 0px 0px; background-color: #FFFFFF;">
</div>
</if>
</if>
Here is my postbit_legacy code... adjust it to your fitting

The above if conditionals show it after the first post of every thread page and show it only to guests.

What it looks like: http://www.mustangevolution.com/foru...ad.php?t=16230
and i would also want to show it to people who have 0 post

how can i fix that up?
Reply With Quote
  #18  
Old 08-03-2006, 10:57 PM
Mysticales's Avatar
Mysticales Mysticales is offline
 
Join Date: Oct 2005
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Question, I want to show this to all members who are NOT part of "x" usergroup (Either listed as primary or secondary) So this way if a user is in a premium usergroup (Which is normally a secondary checkmark for them) that it doesnt show up. I know if they were in primary usergroup.. this is a easy thing..

But I have all users in the "Registered User" group, however those who have a paid subscription will convert to a "Secondary addition" premium usergroup.

So any way to set something up like this so it doesnt show if a user is a part of "x" usergroup?
Reply With Quote
  #19  
Old 08-07-2006, 08:47 PM
Buczilla Buczilla is offline
 
Join Date: Jun 2003
Location: St. Petersburg, FL
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mysticales
Question, I want to show this to all members who are NOT part of "x" usergroup (Either listed as primary or secondary) So this way if a user is in a premium usergroup (Which is normally a secondary checkmark for them) that it doesnt show up. I know if they were in primary usergroup.. this is a easy thing..

But I have all users in the "Registered User" group, however those who have a paid subscription will convert to a "Secondary addition" premium usergroup.

So any way to set something up like this so it doesnt show if a user is a part of "x" usergroup?
You can do so using this conditional

Code:
<if condition="is_member_of($bbuserinfo, X)">
<else />
Ad Code Here
</if>
where X is the usergroupid of the usergroup that you do not want to see ads.
Reply With Quote
  #20  
Old 08-14-2006, 11:53 PM
Mysticales's Avatar
Mysticales Mysticales is offline
 
Join Date: Oct 2005
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Buczilla
You can do so using this conditional

Code:
<if condition="is_member_of($bbuserinfo, X)">
<else />
Ad Code Here
</if>
where X is the usergroupid of the usergroup that you do not want to see ads.
Thank you sooooo much! That lil code helped me fix a few others things too!

On 3.0.7 I wanted to disable the Triple triad from "x" usergroup by having the kind of code above to ensure they were a part of that premium usergroup.. sadly I never got the code right..
Reply With Quote
Reply


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


All times are GMT. The time now is 11:24 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08372 seconds
  • Memory Usage 2,273KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete