Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Conditional Advertisement Marquee (text ads only ) Details »»
Conditional Advertisement Marquee (text ads only )
Version: 1.00, by cmedic101 cmedic101 is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.7.2 Rating:
Released: 08-24-2008 Last Update: Never Installs: 5
Template Edits
 
No support by the author.

Conditional Advertisement Marquee (text ads only )

After playing with some marquee codes and a few vb conditionals. I was able to add a marquee under the logo header in a few selected forums. The process was very easy!(always backup your settings before playing with your template)

Demo Here

http://www.thebrotherhood-forum.com/...=32&styleid=56

1.Create a Phrase

Admin control panel, Languages & Phrases, Phrase manager, Add new Phrase
Phrase Type= Global
Product= Vbulletin
Varname= (what ever you want) Lets call it ad_marquee

Text=(this is where you will put your text ad code) I am using 5 text ads starting with a brief comment. The (&nbsp are used to space out the links.

<marquee style=" font-size:125%">
<strong>
For the largest selection, Best Prices, and Fastest Shipping of Mustang Parts! Visit&nbsp;&nbsp;&nbsp;<a href="http://www.xxxxxxxxx.com" target="_blank">xxxxxxxxxxxxxxx Parts<img src="http://www.xxxxxxxxxx.com/traffic_record.php?lc=xxxxxxxxxxxxxx" border="0" width="1" height="1"></a>
&nbsp;
&nbsp;
<a href="http://www.xxxxxxxxx.com" target="_blank">xxxxxxxxxxxxxxx Parts<img src="http://www.xxxxxxxxxx.com/traffic_record.php?lc=xxxxxxxxxxxxxx" border="0" width="1" height="1"></a>
&nbsp;
<a href="http://www.xxxxxxxxx.com" target="_blank">xxxxxxxxxxxxxxx Parts<img src="http://www.xxxxxxxxxx.com/traffic_record.php?lc=xxxxxxxxxxxxxx" border="0" width="1" height="1"></a>
&nbsp;
&nbsp;
<a href="http://www.xxxxxxxxx.com" target="_blank">xxxxxxxxxxxxxxx Parts<img src="http://www.xxxxxxxxxx.com/traffic_record.php?lc=xxxxxxxxxxxxxx" border="0" width="1" height="1"></a>
&nbsp;
&nbsp;
<a href="http://www.xxxxxxxxx.com" target="_blank">xxxxxxxxxxxxxxx Parts<img src="http://www.xxxxxxxxxx.com/traffic_record.php?lc=xxxxxxxxxxxxxx" border="0" width="1" height="1"></a></marquee></strong>

After you enter your ad information save your new phrase.

2. Template edit....Header.... (if you have more than one style you will need to edit each style)


Admin control panel, Style Manager, Search in template, Find header.

if you want the ad_marquee to show in more than one forum then you will use the following conditional at the bottom of the header template
under the following line.... (find) $ad_location[ad_header_end]

Place below

<if condition="in_array($forumid, array(xx,xx))">$vbphrase[ad_marquee]
</if>

the xx= the forum id that you want to use replace the xx with numbers the forum Id can be found at the address bar in your browser.

If you just want to use the ad_marquee in one forum then you will use this conditional under the following line (find) $ad_location[ad_header_end]

Place Below

<if condition="$foruminfo['forumid'] == xx">$vbphrase[ad_marquee]</if>
Again the XX is the forum id that you want to display the ad_marquee in.

enjoy

Cmedic101

Show Your Support

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

Comments
  #2  
Old 08-25-2008, 10:58 PM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is probably the worst and most complicated (lets not forget time consuming) way i've ever seen anyone insert simple HTML into a template...ever.
Reply With Quote
  #3  
Old 08-25-2008, 11:08 PM
cmedic101 cmedic101 is offline
 
Join Date: Feb 2008
Location: N.E.Pa
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FRDS View Post
This is probably the worst and most complicated (lets not forget time consuming) way i've ever seen anyone insert simple HTML into a template...ever.
Thanks FRDS,
Guess what! it works
Reply With Quote
  #4  
Old 08-26-2008, 12:06 AM
SwollenCranium's Avatar
SwollenCranium SwollenCranium is offline
 
Join Date: Oct 2007
Location: Raleigh, NC
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FRDS View Post
This is probably the worst and most complicated (lets not forget time consuming) way i've ever seen anyone insert simple HTML into a template...ever.


hahaha ... !
Reply With Quote
  #5  
Old 08-26-2008, 01:37 AM
Doomday Doomday is offline
 
Join Date: Jul 2008
Location: Argentina
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well the way i see it he is only trying to contribute with something to the comunity, so if you have nothing nice to say or you cant help him in anything why you enter here? :s
Reply With Quote
  #6  
Old 08-26-2008, 02:01 AM
ehsanix ehsanix is offline
 
Join Date: Oct 2003
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks , worths trying
Reply With Quote
  #7  
Old 08-26-2008, 10:28 AM
cmedic101 cmedic101 is offline
 
Join Date: Feb 2008
Location: N.E.Pa
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Doomday View Post
Well the way i see it he is only trying to contribute with something to the comunity, so if you have nothing nice to say or you cant help him in anything why you enter here? :s
Quote:
Originally Posted by ehsanix View Post
thanks , worths trying
Thanks for your support! If we could get the mod bashers to contribute as well the true power of Vbulletin would be unleashed completely


cmedic101
Reply With Quote
  #8  
Old 08-26-2008, 10:08 PM
redraider redraider is offline
 
Join Date: Sep 2006
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Doomday View Post
Well the way i see it he is only trying to contribute with something to the comunity, so if you have nothing nice to say or you cant help him in anything why you enter here? :s
Agree!

I like what mod does.
Reply With Quote
  #9  
Old 08-27-2008, 02:55 AM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cmedic101 View Post
Thanks for your support! If we could get the mod bashers to contribute as well the true power of Vbulletin would be unleashed completely


cmedic101
Okay here is my contribution then.

Open header template and place

Code:
<if condition="in_array($forumid, array(xx,xx))">
<marquee style=" font-size:125%">
<strong>
For the largest selection, Best Prices, and Fastest Shipping of Mustang Parts! Visit&nbsp;&nbsp;&nbsp;<a href="http://www.xxxxxxxxx.com" target="_blank">xxxxxxxxxxxxxxx Parts<img src="http://www.xxxxxxxxxx.com/traffic_record.php?lc=xxxxxxxxxxxxxx" border="0" width="1" height="1"></a>
&nbsp;
&nbsp;
<a href="http://www.xxxxxxxxx.com" target="_blank">xxxxxxxxxxxxxxx Parts<img src="http://www.xxxxxxxxxx.com/traffic_record.php?lc=xxxxxxxxxxxxxx" border="0" width="1" height="1"></a>
&nbsp;
<a href="http://www.xxxxxxxxx.com" target="_blank">xxxxxxxxxxxxxxx Parts<img src="http://www.xxxxxxxxxx.com/traffic_record.php?lc=xxxxxxxxxxxxxx" border="0" width="1" height="1"></a>
&nbsp;
&nbsp;
<a href="http://www.xxxxxxxxx.com" target="_blank">xxxxxxxxxxxxxxx Parts<img src="http://www.xxxxxxxxxx.com/traffic_record.php?lc=xxxxxxxxxxxxxx" border="0" width="1" height="1"></a>
&nbsp;
&nbsp;
<a href="http://www.xxxxxxxxx.com" target="_blank">xxxxxxxxxxxxxxx Parts<img src="http://www.xxxxxxxxxx.com/traffic_record.php?lc=xxxxxxxxxxxxxx" border="0" width="1" height="1"></a></strong></marquee>
</if>
Where you want it to appear.

Any questions?


PS. I also fixed your closing tag order, moving the </strong> before the </marquee> for proper coding.
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 04:20 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.07270 seconds
  • Memory Usage 2,292KB
  • Queries Executed 22 (?)
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
  • (6)bbcode_quote
  • (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
  • (9)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_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