News:

Wondering if this will always be free?  See why free is better.

Main Menu

Package Manager ignoring operation

Started by Randem, September 10, 2015, 02:39:14 AM

Previous topic - Next topic

Randem

I am having issues with package manager ignoring an operation in one file only... no matter what I change the cod e to it will still ignore the second operation
I have changed the search code of the second operation to be identical to the first operation and it still gets ignored. I have changed the <add> information and still it gets ignored. The first operation always works. I have removed the first operation and still the second one gets ignored. What am I missing about package manager???


<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
File: Recent.template.php
Contents: Function to create the recent post output
Line 25
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

<file name="$themedir/Recent.template.php">

<operation>

<search position="before"><![CDATA[function template_main()

{

global $context, $settings, $options, $txt, $scripturl;

]]></search>

<add><![CDATA[

// Randem Systems - 20150908
if (isset($_GET['time'])){
RecentPostsTemplateCreate();
return; // Only perform 1,3,7 Latest Post routine
}
// Randem Systems - 20150908
]]></add>

</operation>


<operation>

<search position="after"><![CDATA[function template_unread()

{

global $context, $settings, $options, $txt, $scripturl, $modSettings;
]]</search>


<add><![CDATA[
// Randem Systems - 20150908
include $sourcedir . '/RecentPosts.php';
// Randem Systems - 20150908
]]></add>

</operation>

</file>
BotBanish - The Ultimate Bot Firewall
Scams - How to Protect Yourself
Why Professionals Should Not Use Free Email Accounts

Always ignore those who attempt to tell you what to think and believe those who will allow you think for yourself

margarett

Can you show us the complete package? (PM me a link if you don't want to have it public yet)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

margarett

You have an error here
global $context, $settings, $options, $txt, $scripturl, $modSettings;
]]</search>


The last line is missing the closing ">" of CDATA. Eg:
]]></search>
This causes the search operation to be kinda endless :P

edit: the same problem exists in the edit to BoardIndex.template.php, which is why it fails ;)

I'll PM you other "thoughts" ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Randem

Thanks, You have indeed solved the issue. One little character...
It is working now!
BotBanish - The Ultimate Bot Firewall
Scams - How to Protect Yourself
Why Professionals Should Not Use Free Email Accounts

Always ignore those who attempt to tell you what to think and believe those who will allow you think for yourself

Advertisement: