GremlinGod
05-17-2006, 01:52 AM
Here is my first mod for eSyndiCat Pro 1.2. Nothing special but to make a long short short when I first added a sponsored plan from the admin area I did not see that to have the plan description show up in the "Suggest a Link" area this needed to be added to the language file manually. I just took it for granted that this was a mySQL functuality and template variables.
To see what I am talking about go to Admin-> manage plans. If you already have a plan, select Edit then save changes. You will see that all you get is the "Plan changes saved." notification.
What this mod does is after you have created your sponsor plans will display and remind you about the changes you need to add to your language file(s). Now if you miss the first notice you will no longer have to delete the plan and recreate it to see the changes you need to make. :yahoo:
Open and Edit /admin/manage-plans.php
Search for or goto line 77:
$msg = 'Plan changes saved.';
Replace with:
$msg = 'Plan changes [/code]saved.
';
$msg .= 'Please update your language file with the following changes:
';
$msg .= "<div class=\"lang\">'{$tmp['name']}' => '{$tmp['name']}',</div>";
$msg .= "<div class=\"lang\">'{$tmp['description']}' => '{$tmp['description']}',</div>";
Now when you save changes it will display the changes your need to make to you langauge file(s) as a reminder.
Enjoy!
Note: I could not use the BBCodes for this post more than likely because of the square braces in the code.
To see what I am talking about go to Admin-> manage plans. If you already have a plan, select Edit then save changes. You will see that all you get is the "Plan changes saved." notification.
What this mod does is after you have created your sponsor plans will display and remind you about the changes you need to add to your language file(s). Now if you miss the first notice you will no longer have to delete the plan and recreate it to see the changes you need to make. :yahoo:
Open and Edit /admin/manage-plans.php
Search for or goto line 77:
$msg = 'Plan changes saved.';
Replace with:
$msg = 'Plan changes [/code]saved.
';
$msg .= 'Please update your language file with the following changes:
';
$msg .= "<div class=\"lang\">'{$tmp['name']}' => '{$tmp['name']}',</div>";
$msg .= "<div class=\"lang\">'{$tmp['description']}' => '{$tmp['description']}',</div>";
Now when you save changes it will display the changes your need to make to you langauge file(s) as a reminder.
Enjoy!
Note: I could not use the BBCodes for this post more than likely because of the square braces in the code.