The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Hi
In VBCMS is there any counterpart of the SHOWTHREAD and FORUMDISPLAY this_script only for the article page? What I want to do is to display some html only on the article page, but the code has to be put in the footer. In forums, i would simply do this in the footer template where my code is HTML Code:
<vb:if condition="THIS_SCRIPT == 'showthread'"> blah blah blah </vb:if> Thanks |
|
#2
|
|||
|
|||
|
There is this defined for the CMS:
Code:
define('THIS_SCRIPT', 'vbcms');
|
|
#3
|
||||
|
||||
|
Hi Calories, thanks for your reply.
No it won't work because i want to be able to use the THIS_SCRIPT only for the article page, not for section page, not for category and not for CMS Home page. |
|
#4
|
|||
|
|||
|
Untested but maybe a plugin at the cache_templates hook:
Code:
// if we are in the CMS and the article page temple is there
// then define a constant for use in a template conditional
if (THIS_SCRIPT == 'vbcms' && in_array('vbcms_content_article_page', $cache))
{
define('ON_ARTICLE_PAGE_ONLY', true);
}
Code:
<vb:if condition="defined('ON_ARTICLE_PAGE_ONLY')">
blah blah blah
</vb:if>
|
|
#5
|
||||
|
||||
|
Nopes it doesn't work, though the idea seems fine.
It's very late here... will try again in the morning. |
|
#6
|
||||
|
||||
|
I'm curious if you ever got this working?
|
|
#7
|
||||
|
||||
|
Actually I don't remember...
![]() I think I did get it to work at that time but since then I have changed almost everything on my site and so I don't know what I had done. |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|