![]() |
|
|
|
#1
|
|||
|
|||
|
I have the hack 'adcolumns' installed.
http://www.vbulletin.org/forum/showthread.php?t=62348 when I run CMPS it shows the Ad column on the page..........squeezing the right column of CMPS (see attached screenshot) SO how do I get the two to work together?
__________________
vBulletin-FAQ ~ A New Home for vBulletin Forum Owners! Lincoln vs Cadillac : Mopar Forum : Car Audio Talk |
|
#2
|
||||
|
||||
|
Did you try to increase the right column size from
adminCP --> vBa CMPS --> edit pages --> Default/HomePage --> Right Column Width : ... Try to set a fixed value, rather than a percentage (ie give a number btw 120 - 180). and see what happens. |
|
#3
|
|||
|
|||
|
no I can tell already that wont work. Adcolumns has to be turned off for this page...thats the only answer
__________________
vBulletin-FAQ ~ A New Home for vBulletin Forum Owners! Lincoln vs Cadillac : Mopar Forum : Car Audio Talk |
|
#4
|
||||
|
||||
|
try to resize the center column
open the adv_portal template find: <if condition="$show['center_column']"> <td valign="top"> replace with <if condition="$show['center_column']"> <td valign="top" width=XX% > and play with that XX number (btw 40-60) You don't want to turn off ads on your main page, do you?
|
|
#5
|
|||
|
|||
|
no no -- resizing any column will only leave the adcolumn there.......who wants that many columns?
the adcolumns has to be conditioned out of that page somehow.....
__________________
vBulletin-FAQ ~ A New Home for vBulletin Forum Owners! Lincoln vs Cadillac : Mopar Forum : Car Audio Talk |
|
#6
|
||||
|
||||
|
oh ok. I understood you wrong. Let me check the hack and see what it does.
|
|
#7
|
|||
|
|||
|
Thanks
http://www.lincolnvscadillac.com/cmps_index.php? is my page so you can check source.... its working,
__________________
vBulletin-FAQ ~ A New Home for vBulletin Forum Owners! Lincoln vs Cadillac : Mopar Forum : Car Audio Talk |
|
#8
|
|||
|
|||
|
The other trick, is how do we condition adcolumns out of this page but not necessarily other new pages that are created with this?
__________________
vBulletin-FAQ ~ A New Home for vBulletin Forum Owners! Lincoln vs Cadillac : Mopar Forum : Car Audio Talk |
|
#9
|
||||
|
||||
|
ok my suggestion would be
-open the footer template. copy all the contents -edit the adv_portal template: 1-replace the $footer towards the end with the text you copied above. 2-then remove the section starting with <!-- BEGIN AdColumns --> (ie all the hack) 3-save the adv_portal template edit: I know it is not the most elegant solution but I still did not understand how Brian wrote the code to fetch the footer template ![]() edit2: ok, he gets it from the global.php . There you can define an alternative $footer (for ex: $footer_no_ad) to be used on certain pages, which does not include the ad hack and use this $footer_no_ad on pages you do not want to have the advertisements. Hope you know how to do this Last edited by ogetbilo; 05-17-2004 at 06:01 AM. |
|
#10
|
|||
|
|||
|
I have no clue -- Im way still learning........
I dont think its in the footer though, I think adcolumns comes out of global.php
__________________
vBulletin-FAQ ~ A New Home for vBulletin Forum Owners! Lincoln vs Cadillac : Mopar Forum : Car Audio Talk |
|
#11
|
||||
|
||||
|
Quote:
hence, you want to remove the ad hack from the footer template on the main page. the above modification should be enough for this. |
|
#12
|
|||
|
|||
|
well - I removed the footer ($footer) command - and that works -- of course I have no footer now, so thats the next step...
__________________
vBulletin-FAQ ~ A New Home for vBulletin Forum Owners! Lincoln vs Cadillac : Mopar Forum : Car Audio Talk |
|
#13
|
|||
|
|||
|
I tried making a seperate footer template without the adcolumns -- that didnt work.... same as no footer at all...
__________________
vBulletin-FAQ ~ A New Home for vBulletin Forum Owners! Lincoln vs Cadillac : Mopar Forum : Car Audio Talk |
|
#14
|
||||
|
||||
|
The easiest way to take care of this would probably be with an if condition. I haven't used this hack so I can't tell you the exact code, but if you'll find the variable or code for the ad column in your footer template and add this before it:
<if condition="THIS_SCRIPT != 'adv_index'"> Then add this after it: </if> That should disable the ad column on your homepage. |
|
#15
|
|||
|
|||
|
Yup == That worked Thanks!!!!!!!
__________________
vBulletin-FAQ ~ A New Home for vBulletin Forum Owners! Lincoln vs Cadillac : Mopar Forum : Car Audio Talk |
|
#16
|
||||
|
||||
|
aaargh, I still don't know what kind of variables can be used in the templates.
Still learning, still learning...
|
|
#17
|
|||
|
|||
|
same here -- I was pretty sure it had to be a conditional, just wasnt sure how to write it.
__________________
vBulletin-FAQ ~ A New Home for vBulletin Forum Owners! Lincoln vs Cadillac : Mopar Forum : Car Audio Talk |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|