Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #11  
Old 02-07-2013, 04:02 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cellow View Post
is there any other location where i can hook your plugin?
I suppose it could be the template modification system. Try using hook global_start instead.


Quote:
Originally Posted by Simon Lloyd View Post
I've created this https://vborg.vbsupport.ru/showthread.php?t=286403 which may help, really simple and does the job (pretty much)
That's pretty good, but I couldn't see where it lets you do it by forumid.
Reply With Quote
  #12  
Old 02-07-2013, 04:11 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lol, i hadn't built that in (but i could do) as the person that comissioned it didnt need that, but it has the ability to put seperate variables in different forums, the ads dont show if you dont add the variable.

I suppose i could extend it to add the variable depending on forum selection, may be a little while as i dont have a lot of time at the moment.
Reply With Quote
  #13  
Old 02-07-2013, 04:18 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh, I see - that could be used by making one of the variables a list of forums, then using that in a conditional, so it would allow you to edit the list in the settings instead of having to go to a plugin. Yeah, seems like that would work.
Reply With Quote
  #14  
Old 02-07-2013, 05:15 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
Oh, I see - that could be used by making one of the variables a list of forums, then using that in a conditional, so it would allow you to edit the list in the settings instead of having to go to a plugin. Yeah, seems like that would work.
Lol, now thats thinking out of the box! i wouldn't have thought of it as easy as that!
Reply With Quote
  #15  
Old 02-07-2013, 07:32 PM
cellow cellow is offline
 
Join Date: Oct 2006
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so how can i solve my problem with Simon Lloyd mod ??? i didnt really get what u guys talking about...

@kh99
even global_start hook didnt work
Reply With Quote
  #16  
Old 02-07-2013, 08:27 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, you'd have to convert a string of number to an array then use it in an in_array(). But reading what you psted above, it wasn't working using the in_array() condition so there's got to be some other problem with your condition. If you use the plugin code and this condition do you see ads?

Code:
<if condition="(($post[postcount] % $vboptions[maxposts] == 1)) AND ($show['member']) AND 1">
Reply With Quote
  #17  
Old 02-07-2013, 08:41 PM
cellow cellow is offline
 
Join Date: Oct 2006
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmmm, very weird...

i tried:

<if condition="(($post[postcount] % $vboptions[maxposts] == 1))
ads here
</if>

even then, i dont see ads inside the postbit

it still saves somewhere my old conditions, because for "guests" the ads are shown, but not for members...
Reply With Quote
  #18  
Old 02-07-2013, 08:51 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe that's just a typo, but try this:

Code:
<if condition="($post[postcount] % $vboptions[maxposts]) == 1">
ads here
</if>

Also, make sure the template you're editing is in the same style you're using.
Reply With Quote
  #19  
Old 02-07-2013, 08:59 PM
cellow cellow is offline
 
Join Date: Oct 2006
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

doesnt work ... i dont understand why?!?

i delete datastore cache, deactivated, flushed xcache, rebuild bit_fields .... everything tried... i dont understand, why my this condition doesnt work in postbit_legacy template:

Code:
		
<!-- message --> 
<if condition="($post[postcount] % $vboptions[maxposts]) == 1">
<div style="float:left; width:301px; height:251px; border:0px solid #336699;margin-left:2px;margin-right:15px;">

adtag comes here ...
</div>
</if>
		<div id="post_message_$post[postid]">
			$ad_location[ad_showthread_firstpost_start]
			$post[message]
		</div>
		<!-- / message -->
Reply With Quote
  #20  
Old 02-07-2013, 09:09 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you sure you're using postbit_legacy and not postbit (is the user information on the left or on top)? And if you have more than one style are you editing the same one that you're using?
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 10:08 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.06628 seconds
  • Memory Usage 2,239KB
  • 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
  • (3)bbcode_code
  • (3)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