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)
-   -   Show Thread Enhancements - Innovative Ads After First Post (Or any post!) (https://vborg.vbsupport.ru/showthread.php?t=249274)

ninadbe 03-22-2011 11:44 AM

Is it possible to show customized PHP code in AD box instead of ADS?
I mean I want to show related images extracted from remote server in a box.

below are some lines of my code
Code:

$dbh=mysql_connect("remote_server_ip:3306", "username", "password") or die
('I cannot connect to the database because: ' . mysql_error());

mysql_select_db ("db_name", $dbh);

--php code here for extracting and displaying images--


karlm 04-04-2011 06:32 AM

I second the above post... I returned to this thread as I've got another forum I'm setting up and wish to use this (or similar) to extract data either from a text-file or a database..

Once I can do that, I'll be implementing this product on my new site.

Breakpoint 04-27-2011 01:49 AM

Great product, hope you can implement the mod to integrate more into the Admin CP

mdreamer 05-14-2011 08:38 AM

Hi,

First of all thank you for this nice mod :) its really simple and helpful

just one question:

Quote:

Originally Posted by TheLastSuperman (Post 2090785)
Well in that case you could simply add in a <vb:elseif condition= to accommodate, remember with the mod you released that's template edits similar to this for vB3, elseif was not available but in vB4 it is ;).

can you help my out with the elseif condition? i would like it to appear before the last post of each thread if it has 2 posts or couple of tens of posts spared in couple of pages

Thanks again.

Maayan

el-Turki 05-20-2011 05:22 AM

What would be the code to have several banners (with different links) rotating?

TheLastSuperman 05-23-2011 05:47 AM

Quote:

Originally Posted by mdreamer (Post 2195511)
Hi,

First of all thank you for this nice mod :) its really simple and helpful

just one question:



can you help my out with the elseif condition? i would like it to appear before the last post of each thread if it has 2 posts or couple of tens of posts spared in couple of pages

Thanks again.

Maayan

https://vborg.vbsupport.ru/showthread.php?t=231525

Scroll to the very bottom and reference the elseif, then adjust using the conditionals we have been discussing in this thread and in the description :cool:.

Quote:

Originally Posted by el-Turki (Post 2197891)
What would be the code to have several banners (with different links) rotating?

You could use something along the lines of:

Code:

<script type="text/javascript"><!--
      showbanner = new Array(3);

showbanner[0] = "<a href='http://www.yoursite.com/index.php'><img src="images/banner1.png" alt="My text here"/></a>";

showbanner[1] = "<a href='http://www.yoursite.com/index.php'><img src="images/banner1.png" alt="My text here"/></a>";

showbanner[2] = "<vb:if condition="$show['guest']"><a href='register.php{vb:raw session.sessionurl}'>Become a member &amp; get full access, additional privileges, and more</a><vb:else /><a href='http://www.yoursite.com/index.php'><img src="images/banner1.png" alt="My text here"/></a></vb:if>";

index = Math.floor(Math.random() * showbanner.length);
document.write(showbanner[index]);
      //End
      // --></script>

And as you can see conditionals work fine as well, used in the last one.

mdreamer 06-02-2011 10:05 AM

thanks :)

maryx 06-03-2011 02:12 PM

Can anyone suggest how to make a widget show up in this ad space in the forum? I have tried this -

1) putting the widget title in the space for the ad in the postbit_legacy_ads_after_firstpost template. The widget title shows up on the correct area of the page, but not the widget itself.

2) I put in the widget code in the right spot, but it doesn't show up at all.

Would love to be able to do this! Thanks!

bderen 02-22-2012 01:48 AM

how about vb 3.8.2?

twista46 03-06-2012 02:06 PM

4.1.11 not kompatibel. (Kompatibel ab 4.0.0 Beta 3


All times are GMT. The time now is 08:48 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.01216 seconds
  • Memory Usage 1,741KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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