The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
To be fair, changing the template used on the fly isn't exactly standard functionality.
There's no great way to do it, but you should be able to hook into vbcms_article_populate_start and recreate the $view object. Completely untested: PHP Code:
(Actually, on second thought, ignore this. It'll only work if your home page content is assigned to the hme page) |
#12
|
|||
|
|||
Thank you for your reply. When you say this would have to be repeated for other content types as needed what does that mean?
All I want to do is have a custom structure of my "home" page which is a specific section in vbulletin terms. And only that section use it. Heres one part of my reasoning for the custom template for the vbcms_content_article_custom_preview vs the default vbcms_content_article_preview - is the default template has css styling that has the *important rule applied that I cant over ride in the "additional.css". So I was going to add some custom div class's to target the thumbnail images for that specific section. If you have a better way of achieving this please let me know. Cause I want the default to work everywhere else. I already have to manually add the articles to this "home" section as it is. |
#13
|
||||
|
||||
You may override CSS. You just haven't told us the exact rule you wish to override so we can't see exactly where it is in your page (which you also have not linked to) and so we can't tell you what to do. Also, even if you do a new basic page, I'll bet you still use a layout/grid and my guess is the CSS is in there. But, we won't know until you tell us exactly what you need to change.
|
#14
|
|||
|
|||
I want to change the article preview thumbnail in my home page section.
--------------- Added [DATE]1323840903[/DATE] at [TIME]1323840903[/TIME] --------------- right now when I try to target the element it reflects it everywhere. |
#15
|
|||
|
|||
Do you know what I need to do differently?
|
#16
|
||||
|
||||
How about a link to the section you wish to change and a link to a section that should stay the same.
|
#17
|
|||
|
|||
Ok I will post a link soon as I get my custom style loaded. I am having difficulty for some reason.
|
#18
|
|||
|
|||
ok the url is texasmx.com/forums the site is password protected since it is in a testing directory. I will pm you the login details so you can access it. you will see one thumbnail on the home page of the cms in the post "welcome to texasmx" I would like to make the preview thumbnail larger. maybe even full width of that area. and then style the title and preview text differently. I just cant seem to figure how to override the default *important styling. This is the point I was trying to make a custom template and rename the divs around the code that calls the content. Since this is the only section that will really be using thumbnails I can just have the archives of that section display it the same way.
Looking forward to your response! |
#19
|
|||
|
|||
Lynne did you happen to take a look yet?
|
#20
|
||||
|
||||
I replied to you just after I got your PM.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|