Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 10-07-2011, 06:26 AM
SaN-DeeP's Avatar
SaN-DeeP SaN-DeeP is offline
 
Join Date: Jun 2002
Location: Mumbai, India
Posts: 1,195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to use <if conditions> only in specific forum pages and speicif usergroups.

Hello,
I have following adsense codes in all entire forum

AD1
AD2
AD3

I require to display AD4 only in Forum ABC and all threads which are contained in Forum ABC
I dont want AD4 to appear anywhere else except FORUM ABC and threads which are present in FORUM ABC

Similarly,
I require to display AD5 only in Forum XYZ and all threads which are contained in Forum XYZ.
I dont want AD5 to appear anywhere else except FORUM XYZ and threads which are present in FORUM XYZ

Also,
I need to know how to display only AD6 to usergroup number 100 instead of AD2.
I dont want AD2 to appear to Usergroup 100
I want AD6 to appear only to Usergroup 100 and hide to all.

I need to know how to display only AD7 to usergroup number 200 instead of AD2.
I dont want AD2 to appear to Usergroup 200
I want AD7 to appear only to Usergroup 200 and hide to all.

Regards,
Reply With Quote
  #2  
Old 10-07-2011, 09:51 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SaN-DeeP View Post
Hello,
I have following adsense codes in all entire forum

AD1
AD2
AD3

I require to display AD4 only in Forum ABC and all threads which are contained in Forum ABC
I dont want AD4 to appear anywhere else except FORUM ABC and threads which are present in FORUM ABC

Similarly,
I require to display AD5 only in Forum XYZ and all threads which are contained in Forum XYZ.
I dont want AD5 to appear anywhere else except FORUM XYZ and threads which are present in FORUM XYZ

Also,
I need to know how to display only AD6 to usergroup number 100 instead of AD2.
I dont want AD2 to appear to Usergroup 100
I want AD6 to appear only to Usergroup 100 and hide to all.

I need to know how to display only AD7 to usergroup number 200 instead of AD2.
I dont want AD2 to appear to Usergroup 200
I want AD7 to appear only to Usergroup 200 and hide to all.

Regards,
Hmmm... OK let me see if I follow your logic...

Code:
AD1
<if condition="is_member_of($bbuserinfo, 100)">AD6<else /><if condition="is_member_of($bbuserinfo, 200)">AD7<else />AD2</if></if>
AD3
<if condition="$GLOBALS[forumid] == A">
AD4
</if>
<if condition="$GLOBALS[forumid] == X">
AD5
</if>
Where A is the forumid of Forum ABC and X is the forumid of Forum XYZ.
Reply With Quote
  #3  
Old 10-07-2011, 10:10 AM
SaN-DeeP's Avatar
SaN-DeeP SaN-DeeP is offline
 
Join Date: Jun 2002
Location: Mumbai, India
Posts: 1,195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dear Sir,
Thank for your quick reply.
I accidentally deleted a template which had all the settings done by my coder.

I just want to re-confirm again, if your code will work like I request.
Please also give solution to this as well.

How to do only this
************************
have following adsense codes in all entire forum

AD1
AD2
AD3

I require to display AD4 only in Forum ABC and all threads which are contained in Forum ABC
I dont want AD4 to appear anywhere else except FORUM ABC and threads which are present in FORUM ABC

Similarly,
I require to display AD5 only in Forum XYZ and all threads which are contained in Forum XYZ.
I dont want AD5 to appear anywhere else except FORUM XYZ and threads which are present in FORUM XYZ
************************
How to do only this :

I need to know how to display only AD6 to usergroup number 100 instead of AD2.
I dont want AD2 to appear to Usergroup 100
I want AD6 to appear only to Usergroup 100 and hide to all.

I need to know how to display only AD7 to usergroup number 200 instead of AD2.
I dont want AD2 to appear to Usergroup 200
I want AD7 to appear only to Usergroup 200 and hide to all.

************************

If YES,
I appreciate your time and once again thank you very much.

Regards,
Reply With Quote
  #4  
Old 10-07-2011, 10:13 AM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SaN-DeeP View Post
I just want to re-confirm again, if your code will work like I request.

If YES,
I appreciate your time and once again thank you very much.

Regards,
If it doesn't, you're not any worse off I would say. You can always remove the code.
Quote:
I accidentally deleted a template which had all the settings done by my coder.
You don't have a backup copy of the template?
Reply With Quote
  #5  
Old 10-07-2011, 10:39 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SaN-DeeP View Post
Dear Sir,
Thank for your quick reply.
I accidentally deleted a template which had all the settings done by my coder.

I just want to re-confirm again, if your code will work like I request.
Please also give solution to this as well.

How to do only this
************************
have following adsense codes in all entire forum

AD1
AD2
AD3

I require to display AD4 only in Forum ABC and all threads which are contained in Forum ABC
I dont want AD4 to appear anywhere else except FORUM ABC and threads which are present in FORUM ABC

Similarly,
I require to display AD5 only in Forum XYZ and all threads which are contained in Forum XYZ.
I dont want AD5 to appear anywhere else except FORUM XYZ and threads which are present in FORUM XYZ
************************
How to do only this :

I need to know how to display only AD6 to usergroup number 100 instead of AD2.
I dont want AD2 to appear to Usergroup 100
I want AD6 to appear only to Usergroup 100 and hide to all.

I need to know how to display only AD7 to usergroup number 200 instead of AD2.
I dont want AD2 to appear to Usergroup 200
I want AD7 to appear only to Usergroup 200 and hide to all.



************************

If YES,
I appreciate your time and once again thank you very much.

Regards,
I assume by Forum ABC you mean 1 single forum called "ABC" and NOT 3 forums called Forum A, Forum B, and Form C.

If Forum ABC is one forum then yes, it should work- but try and test it of course.
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


All times are GMT. The time now is 04:43 PM.


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.03729 seconds
  • Memory Usage 2,208KB
  • Queries Executed 13 (?)
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
  • (1)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete