Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
  #16  
Old 19 Dec 2010, 22:21
Davidinh Davidinh is offline
 
Join Date: Apr 2005
oh wow ... it works like champ

thanks so much .... Digital Jedi
Reply With Quote
  #17  
Old 24 Jan 2012, 22:44
cowcowcow cowcowcow is offline
 
Join Date: Jul 2009
I did it on my custom templates using 'Postbit' to try and put my custom postbits into that category with the default postbits that comes with vbulletin.

but for some strange reason i now have two "Postbit Templates" instead with the exact same spelling lol


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Any help would be great!
Reply With Quote
  #18  
Old 24 Aug 2012, 20:19
ChiNa ChiNa is offline
 
Join Date: Jul 2012
Real name: CM
I started creating products, and I am stuck

Can I ask, the footer and header templates, can it be a part of caching, or can I use the caching on footer or header template... and which templates can be reffered to or as $globaltemplates...

Here is the HOOK for caching my template below:
<hookname>cache_templates</hookname>

and my PHPCODE:

$globaltemplates = array_merge($globaltemplates, array('MYCODENAME'));

and my replacement code:
if ($vbulletin->options['social_five_on'])
{
$replace = '$ad_location[ad_footer_start]';
$vbulletin->templatecache['footer'] = str_replace($replace,$replace.fetch_template('MYCODENAME'),$vbulletin->templatecache['footer']);

IS this done right?

by the way this is for vB3.8
__________________
I am having a little break from vB Developing. I am trying to finish my PHP and MYSQL courses for now. I will answer all my PM's if anyone needed help for my products, but only when I can be online on vB.org. Its great to see new and old developers keeping vB.org alive! Thank you all for your support!CM
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Article Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 14:02.

Layout Options | Width: Wide Color: