PDA

View Full Version : template output in php script


visituranus
04-10-2011, 03:04 PM
May be topic name is not so corrent but anyway, i copy-paste this extreme-simple code:
First is from default 'header' template
<vb:if condition="$notifications_total">
<li class="popupmenu notifications" id="notifications">
<a class="popupctrl" href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase your_notifications}: <span class="notifications-number"><strong>{vb:raw notifications_total}</strong></span></a>
<ul class="popupbody popuphover">
{vb:raw notifications_menubits}
</ul>
</li>
<vb:else />
<li class="popupmenu nonotifications" id="nonotifications">
<a class="popupctrl" href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase your_notifications}</a>
<ul class="popupbody popuphover">
<li>{vb:rawphrase no_new_messages}</li>
<li><a href="private.php{vb:raw session.sessionurl_q}">{vb:rawphrase inbox}</a></li>
</ul>
</li>
</vb:if>
Second is from navbar_breadcrumbs
<div id="breadcrumb_two" class="breadcrumb" style="margin-bottom:{vb:stylevar padding}">
<ul class="floatcontainer">
<li class="navbithome"><a href="index.php{vb:raw session.sessionurl_q}" ><img src="{vb:stylevar imgdir_misc}/navbit-home.png" alt="{vb:rawphrase home}" /></a></li>

{vb:raw navbits.breadcrumb}
{vb:raw navbits.lastelement}
</ul>
<hr />
</div>


Now is THE QUESTION! How to use/call/fetch output of this two templates inside custum php script?

visituranus
04-11-2011, 04:07 PM
yeah sure commercial stuff always better, thanks for support!
it is much easy to rip build_notification() function than to understand vbulletin template logic.

btw
attachments in personal messages and first post sticky on every thread page - evey forum engine got this
but not those commercials, all mods to do this is outdated to 3.x.x versions.