Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 06-02-2000 Last Update: Never Installs: 0
 
No support by the author.

Hi, I added the code

<?php
virtual("/centralad/ssirand.cgi?REGION=dating")
?>

into my templates but the script doe snot get executed at all? It works on .php pages, so I'm doing something wrong. Is this how you include ssis into vBUlletin?

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-02-2000, 06:59 PM
Guest
 
Posts: n/a
Default

I believe something like that can't be parsed trough the templates right now.
Excuse me if I'm wrong...
Reply With Quote
  #3  
Old 06-03-2000, 12:14 AM
Guest
 
Posts: n/a
Default

There is an admin option of:

useadvheader Yes No

Parse header as PHP code. In this case, the header variable must be specifically set in the header template. An example would be this:

//--Start header template--
$header = "<p>This is an advert</p>";
//--End header template

That is what you could use to show your advertising banner...

[Edited by wandrer on 06-03-2000 at 10:20 AM]
Reply With Quote
  #4  
Old 06-26-2000, 09:02 AM
Guest
 
Posts: n/a
Default

I am in the process of migrating to vB 1.1.3 from UBB 5.39c and would be really interested in how (if?) people got SSI working in the templates. Like others, I need to call WebAdverts via virtual("/cgi-bin/ads.pl"). The exact code that was used, where it was inserted (styles, header?) would be quite helpful...thanks!

Steve
Reply With Quote
  #5  
Old 06-26-2000, 05:07 PM
Guest
 
Posts: n/a
Default

This is probably the wrong way to go about this, but, if you need to get it up and running right away, you could just use PHP to INCLUDE a .shtml file, which would contain the code needed to call the banner script. You would probably need to have a different .shtml file for each region, so this may not be the best solution, but it would probably get you up and going right away.

This is what I'm suggesting, specifically:

Where you want the banner, use this code:
<?PHP include "ban_dating.shtml"; ?>

The file "ban_dating.shtml" would consist of a single line that said:
<!--#include virtual="/centralad/ssirand.cgi?REGION=dating"-->

Seems like it would work to me, though I haven't tested it.

If you want information on the issues that some users here have had with CentralAd, check the Chit Chat forum.
Reply With Quote
  #6  
Old 06-26-2000, 05:51 PM
Guest
 
Posts: n/a
Default

I stole and modified this script slightly from what werehere uses on his forum:

Code:
<iframe frameborder=0 height=80 marginheight=0 marginwidth=0 scrolling=no src="http://www.atwebsites.com/adserver/ssirand.cgi?REGION=vB" width=468> 
        <script language="JavaScript"><!-- 
  random = parseInt(Math.random()*1000) 
  banner = '<A HREF="http://www.atwebsites.com/adserver/redirect.cgi' 
  banner += '" TARGET="_blank">'; 
  banner += '<IMG SRC="http://www.atwebsites.com/adserver/getimage.cgi?REGION=vB' 
  banner += '" WIDTH=468 HEIGHT=60' 
  banner += ' ALT="Click Here!" BORDER=0></A>' 
  document.write(banner) 
  // --></script>
        <noscript> <a href="http://www.atwebsites.com/adserver/redirect.cgi" target="_blank"><img src="http://www.atwebsites.com/adserver/getimage.cgi?CAMPAIGN=Burst" width=468 height=60 alt="Click Here!" border=0></a> 
        </noscript> </IFRAME> <!-- End Banner Code -->
It works beautifully. He uses webadverts, and I'm sure he'd be glad to share his code
Reply With Quote
  #7  
Old 06-29-2000, 02:20 AM
Guest
 
Posts: n/a
Default

I call a cgi through vB and it works fine! Here's how...

In our header template I've put <!--#include virtual="/<filename>.shtml" -->

(Change <filename> to whatever you want)

Then in the <filename>.shtml, I have the following : <!--#exec cgi="/cgi-bin/<filename>.cgi" -->

(Again change <filename> to whatever you want)

I've also used a similar trick to keep it within two frames, and that works great too



[Edited by Ciaran on 06-29-2000 at 11:21 AM]
Reply With Quote
  #8  
Old 06-29-2000, 02:35 PM
Guest
 
Posts: n/a
Default

thanks just what i needed as well...
Reply With Quote
  #9  
Old 07-03-2001, 10:24 PM
astralight astralight is offline
 
Join Date: Jan 2002
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried Ciaran's way but it doesn't work. Upon viewing source, it isn't parsing the SSI.. its there in plain text. :/

Martin's won't work because the ad I have in the footer is rich media... and Central Ad cant serve Rich media through simple IMG and HREF source.

Any other ideas?

Would love to use php include...
Reply With Quote
Reply

Thread Tools

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 01:35 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04553 seconds
  • Memory Usage 2,256KB
  • Queries Executed 24 (?)
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)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_onlinestatus
  • (9)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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete