vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Rotating Banner System (https://vborg.vbsupport.ru/showthread.php?t=188328)

y2ksw 09-26-2011 09:07 AM

Quote:

Originally Posted by Gripi (Post 2250125)
is it possible to run this addon or call the banner script inside my complete php file? example "test.php" ? but the file is inside the directory of vbulletin forum core file too.

You may use the addon where you wish, but you will have to edit it accordingly.

imported_Saleel 10-02-2011 02:17 PM

Is there any template which lets me put an advert under the first post in a thread, on every page?

Apolo. 10-02-2011 04:09 PM

Quote:

Originally Posted by imported_Saleel (Post 2252346)
Is there any template which lets me put an advert under the first post in a thread, on every page?

You may want to familiarize with the vBulletin template system a little bit more. :)

Sure it is. You may try with...

ad_showthread_firstpost_sig
ad_showthread_firstpost_start
ad_thread_first_post_content

... depending on what you would like to achieve. Don't be afraid to test things out! :)

imported_Saleel 10-02-2011 04:56 PM

Quote:

Originally Posted by Apolo. (Post 2252381)
You may want to familiarize with the vBulletin template system a little bit more. :)

Sure it is. You may try with...

ad_showthread_firstpost_sig
ad_showthread_firstpost_start
ad_thread_first_post_content

... depending on what you would like to achieve. Don't be afraid to test things out! :)

Yes, I had already tried those and they didn't achieve what I wanted.

Apolo. 10-02-2011 05:04 PM

Quote:

Originally Posted by imported_Saleel (Post 2252395)
Yes, I had already tried those and they didn't achieve what I wanted.

Then would you mind to mention an example?

Because I thought you wanted something like:

|-- showthread.php
|
|---- First post
|
|-------- [your ad here]
|
|---- Second post
|
|---- Third post

Videx 10-02-2011 05:18 PM

Quote:

Originally Posted by imported_Saleel (Post 2252346)
Is there any template which lets me put an advert under the first post in a thread, on every page?

He wants it on every page, not just after the first post. I know it's possible because I have mine doing exactly this. And I'm sure I read how right here in this thread somewhere. Sorry I don't remember much about it. Try some searching?

Apolo. 10-02-2011 05:30 PM

Quote:

Originally Posted by Videx (Post 2252405)
He wants it on every page, not just after the first post.

Oh, I see. I missed that part. Sorry.

imported_Saleel 10-02-2011 09:25 PM

Quote:

Originally Posted by Apolo. (Post 2252398)
Then would you mind to mention an example?

Because I thought you wanted something like:

|-- showthread.php
|
|---- First post
|
|-------- [your ad here]
|
|---- Second post
|
|---- Third post

I want it how Videx has mentioned. However, even the above in your example - that would do for now, but I cannot achieve that either.

ad_showthread_firstpost_sig puts the banner in to the actual second post.
ad_showthread_firstpost_start puts the banner in to the first post.
ad_thread_first_post_content doesn't show the banner anywhere.

Videx 10-02-2011 10:52 PM

Okay, I found it here: https://vborg.vbsupport.ru/showpost....&postcount=722

Shows the ad after the first post on each page.

Apolo. 10-02-2011 11:09 PM

Hmmm... it looks like ad_showthread_firstpost doesn't exist on vBulletin 4.1.6 any longer. That's the version I've been working on today and that's why I didn't mention it in my reply.


All times are GMT. The time now is 07:15 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.03266 seconds
  • Memory Usage 1,745KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)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