Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 27 Jun 2019, 22:05
Raptor Raptor is offline
 
Join Date: Nov 2001
Issues with modifying templatecache

Hello, all.

I'm attempting to replace a string in the footer template, and I'm running into an issue.


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

$z_temp is getting set - if I echo out the contents, I get the correct content (the footer template contents with the replaced string). However, setting the templatecache at the end is not working: it is not set to the contents of $z_temp, and appears to be unchanged.

Any help would be appreciated!
Reply With Quote
  #2  
Old 28 Jun 2019, 03:41
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Where do you have your plugin hooked?
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #3  
Old 28 Jun 2019, 06:47
Raptor Raptor is offline
 
Join Date: Nov 2001
It's hooked to global_complete - is that too late in the process?
Reply With Quote
  #4  
Old 28 Jun 2019, 15:24
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
I usually hook auto-template edits at "process_templates_complete". I can't say your hook is wrong per se, but give that one a try and see if you get the desired result.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
Reply



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

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 05:06.

Layout Options | Width: Wide Color: