I'm running text ads on my website, and sometimes they seem to be in a continuous "loading" state, which leaves the WYSIWYG locked. Is there any place that I can put the ads so they won't show up on newthread.php or newreply.php?
My advertisements are killing my WYSIWYG.
Collapse
X
-
Tags: None
-
You can put this around your ads code in the templateCode:<if condition="THIS_SCRIPT != 'newthread' OR THIS_SCRIPT != 'newreply'"> Your ads code goes here </if>
-
Thanks, both of you.
To anyone else that needs this script: Don't forget to add "AND
THIS_SCRIPT != 'editpost'", so you won't have the problem while editing
posts.Comment
-
A page can't be both.
gear, using and would make that conditional fail 100% of the time
everypage would be not a AND not bComment
-
Originally posted by ZacheryA page can't be both.
gear, using and would make that conditional fail 100% of the time
everypage would be not a AND not bComment
-
Let's see...
The problem:
they won't show up on newthread.php or newreply.php
Your solution (using OR): condition="THIS_SCRIPT != 'newthread' OR THIS_SCRIPT != 'newreply'"
THIS_SCRIPT=newthread ==> false OR true ==> true ==> it shows the ads (we don't want this)
THIS_SCRIPT=newreply ==> true OR false ==> true ==> it shows the ads (we don't want this)
THIS_SCRIPT=anything_else ==> true OR true ==> true ==> it shows the ads (OK HERE!!!)
My solution (using AND): condition="THIS_SCRIPT != 'newthread' AND THIS_SCRIPT != 'newreply'"
THIS_SCRIPT=newthread ==> false AND true ==> false ==> it don't shows the ads (OK HERE!!!)
THIS_SCRIPT=newreply ==> true AND false ==> false ==> it don't shows the ads (OK HERE!!!)
THIS_SCRIPT=anything_else ==> true AND true ==> true ==> it shows the ads (OK HERE!!!)
Am I evaluating something wrong?Last edited by Gearloose; Wed 15 Jun '05, 10:28pm.Comment
-
Code:<if condition="THIS_SCRIPT != 'newthread' AND THIS_SCRIPT != 'newreply' AND THIS_SCRIPT != 'editpost'"> </if>
Comment
-
Let me be a smartass and use in_array.
Code:<if condition="!in_array(THIS_SCRIPT, array('newthread', 'newreply', 'editpost'))"> Stuff Here </if>
Comment
-
-
Originally posted by ZacheryThus I am the winner for suggesting it to him!Comment
-
-
This probably isn't a problem in the new editor, BTW. I'm guessing it had to do with onload events, which we don't use anymore.Comment
Related Topics
Collapse
-
Hey all,
I am trying to add Google Ads to my cloud hosted site and I think I've done it right
- I've added an Ad module to the bottom of my page, put my <script> code from Google...-
Channel: vB Cloud Support & Troubleshooting.
Tue 8 May '18, 3:59am -
-
by TheFurtherI have been trying to get approved for google Adsence for quite a while now and im stuck on the reviewing your page for over a month now. I have a feeling its because i posted the code on the wrong section...
-
Channel: Support Issues & Questions
Tue 24 Jan '17, 7:19am -
Comment