Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-19-2010, 06:54 PM
James T Brock James T Brock is offline
 
Join Date: Sep 2004
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Advertisement after first post ONLY in a certain forum?

I would like to be able to put advertisements after the first post in a thread but ONLY in one certain forum, and viewable only by guest users.

Does this mod exists for vB version 3.8?
Reply With Quote
  #2  
Old 04-21-2010, 11:09 PM
James T Brock James T Brock is offline
 
Join Date: Sep 2004
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod doesn't exist, seriously?
Reply With Quote
  #3  
Old 04-22-2010, 02:03 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by James T Brock View Post
This mod doesn't exist, seriously?
Are you requesting for such a mod to be created for you, or do you want to know if such a mod exists?

If you want to know if it exists, have a look at the Add-on section. There you will find all mods.

However, this shouldn''t be too hard to do. Have a look at the template conditional article and follow the instructions there on how to achive what you want. It is much better, in my opinion, to try and do things for yourself rather than waiting around for others to do them for you. At least for the simple non complicated stuff
Reply With Quote
  #4  
Old 04-22-2010, 11:55 PM
James T Brock James T Brock is offline
 
Join Date: Sep 2004
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm asking if it exists because I assumed it did however I can't find it. People aren't particularly helpful in this forum anymore for some reason(other than certain mod authors within their mod threads), years ago there would have been replies directing me to the right place or at least telling me what I want doesn't exist.

And yes, you're right...I've decided to do this with conditionals. If the user is a guest and if the template is a certain ID I'll have the ads show. I've done this in the past for certain things a long time ago however I don't recall what the codes are, thanks for suggesting the template conditional article. I'll go look it up.
Reply With Quote
  #5  
Old 04-23-2010, 01:49 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Isn't there an ad template that goes right after the first post? Just put a condition around the code you put in there to only show it to guests ($show['guest']) and in a certain forum ($forumid == x)
Reply With Quote
  #6  
Old 04-23-2010, 11:07 AM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by James T Brock View Post
I'm asking if it exists because I assumed it did however I can't find it. People aren't particularly helpful in this forum anymore for some reason(other than certain mod authors within their mod threads), years ago there would have been replies directing me to the right place or at least telling me what I want doesn't exist.

And yes, you're right...I've decided to do this with conditionals. If the user is a guest and if the template is a certain ID I'll have the ads show. I've done this in the past for certain things a long time ago however I don't recall what the codes are, thanks for suggesting the template conditional article. I'll go look it up.
Hi there,

The reason I asked is because this is the Modification Requests/Questions (Unpaid) forum and your question didn''t quite fit in here. Also if you checked the add on section for a mod and you didn''t find it, then the chances are that that mod doesn''t exist. And that has nothing to do with unhelpfulness or whatever. You can''t expect other users to do the work for you all the time. Like creating mods, or searching if this mod or that mod exists etc etc. You must try to help yourself first and then we can help you. It saves a lot of time to everyone . Look, I am not looking for an argument here or anything like that. It was a fiendly suggetion, that is all

Anyway, personally I am not familiar with the templating system of a vb 3.8 forum, but check out that part Lynne mentioned above and hopefully you will be able to achive what you want. Good luck.
Reply With Quote
  #7  
Old 04-25-2010, 03:13 AM
James T Brock James T Brock is offline
 
Join Date: Sep 2004
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lynne, thanks for the help. This is the code I ended up with and it works:

Code:
<if condition="($bbuserinfo['userid'] == 0) AND ($forum['forumid'] == XX) AND ($post['postcount'] % $vboptions['maxposts'] == 1)">
<center>
Code Goes here
</center>
</if>
It shows a banner to guest users in a particular forum after the first post of every page of a thread.


edit:
Whoops! I didn't fully understand what Lynne was trying to say. I just realized that 3.8 has ad templates now and I only had to cover the ad conditional with the guest and forumid code and then insert the ad into the template that is already supplied. Not sure which version is better but both work for what I needed to do.
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 02:52 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.05254 seconds
  • Memory Usage 2,225KB
  • 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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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