![]() |
|
#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
|
||||
|
||||
|
Quote:
But I just checked and everything seems to me alright now. Is it not? ops sorry. I didn't look at the cmps_index. (It is normal when it is 6 oclock in the morning )
|
|
#15
|
|||
|
|||
|
no i put the footer back columns still there. im toying with things... im learning, so I do things by trial and error, mostly error
How do I define it in the global ???
__________________
vBulletin-FAQ ~ A New Home for vBulletin Forum Owners! Lincoln vs Cadillac : Mopar Forum : Car Audio Talk |
|
#16
|
||||
|
||||
|
Quote:
open the global.php find: eval('$footer = "' . fetch_template('footer') . '";'); just add underneath: eval('$footer_no_ad = "' . fetch_template('footer_no_ad') . '";'); and don't forget to replace the $footer with $footer_no_ad in adv_portal template Last edited by ogetbilo; 05-17-2004 at 06:32 AM. |
|
#17
|
|||
|
|||
|
I tried that -- no good. it shows no footer at all
fyi I named mine footer_CMPS
__________________
vBulletin-FAQ ~ A New Home for vBulletin Forum Owners! Lincoln vs Cadillac : Mopar Forum : Car Audio Talk |
|
#18
|
||||
|
||||
|
Ok one last thing (because I really need to get some sleep):
Can you find the // the really important ones 'header', 'footer', in global.php . then add 'footer_CMPS', under the 'footer', As a summary you do this above modification with the fetchtemplate modification I mentioned before. Then you replace the $footer with the $footer_CMPS in the adv_portal template. That should be it. Or I am missing something. In any case, sorry for keeping you busy so long. edit: btw, did you get my pm? |
|
#19
|
|||
|
|||
|
you lost me totally there
yes i got the pm
__________________
vBulletin-FAQ ~ A New Home for vBulletin Forum Owners! Lincoln vs Cadillac : Mopar Forum : Car Audio Talk |
|
#20
|
||||
|
||||
|
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. |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|