FIXED A Quick Cash Mod Plugin Fix To Cash Currencies


Subject: A Quick Cash Mod Plugin Fix To Cash Currencies
Hi guys.

I installed Cash Mod Plugin and found a error and it was easily fixed and thought I might pass it on.

At the bottom of the page on Cash Currencies it said this:

Quote:
[Icy Phoenix Debug] PHP Notice: in file /plugins/cash/adm/cash_currencies.php on line 397: include(page_footer_admin.php): failed to open stream: No such file or directory
[Icy Phoenix Debug] PHP Notice: in file /plugins/cash/adm/cash_currencies.php on line 397: include(): Failed opening 'page_footer_admin.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php:/usr/local/php55/lib/php')



I was able to fix it easily by doing the following:

OPEN plugins/cash/adm/cash_currencies.php
FIND
Code: [Download] [Hide] [Select]
include('page_footer_admin.' . PHP_EXT);

REPLACE WITH
Code: [Download] [Hide] [Select]
include(IP_ROOT_PATH . ADM . '/page_footer_admin.' . PHP_EXT);

Subject: Re: A Quick Cash Mod Plugin Fix To Cash Currencies
Thanks for reporting, I will fix everything and release a patch.

Subject: Re: A Quick Cash Mod Plugin Fix To Cash Currencies
Can someone please point me to the page in adm that produces this? Thanks!

screenshot_4_1471707027_774655

**EDIT**

Found it ... I believe. admin_cash.php

Here is the code, but where are the links produced? I can not find that info anywhere. I have searched high and low. :oops:

screenshot_5_1471708278_168806

Thanks guys. Once I figure that out, I'm well on my way to doing what I need to do.

Subject: Re: A Quick Cash Mod Plugin Fix To Cash Currencies
The code that does it is a bit below, still in admin_cash.php

it's around L111:

Code: [Download] [Hide]
  1. if ($config['cash_adminbig']) 
  2. for ($i = 0; ... 
  3.  


This code generates the menu.

The code for the class cash_menucat and cash_menuitem is in plugins/cash/functions.php (no idea why it was done that way...)

Profile PM  
Subject: Re: A Quick Cash Mod Plugin Fix To Cash Currencies
Ah ok man I really appreciate it. I been looking on and off for a week or better now. :mricy:


**EDIT**

Hmm. This one might be over my head. I am looking there and do not find any generated links for those menu items.

Here is the issue I am trying to solve.

screenshot_6_1471710357_727197

I think I brought this up before but I am trying real hard to fix it. I have a very bad OCD problem and it just eats at me that I can't figure it out. :mrgreen: I have literally lost sleep over it ha ha ha.

None the less, I have to run for now. That cook out and jim beam and beer that I mentioned in the shoutbox is now calling my name. I'll be back later. Take care guys!

Ray

Subject: Re: A Quick Cash Mod Plugin Fix To Cash Currencies
oh, you want to remove separators?

I might agree, yeah...

(it's a 2min change, you just remove the cash_menu (except for the first one) and the $i++)

Profile PM  
Subject: Re: A Quick Cash Mod Plugin Fix To Cash Currencies
Nah I was trying to fix the broken links. If someone goes in cash config and sets menu to sidebar instead of nav bar, they are in trouble due to broken links. If they do not know how to get back in to cash config to set it back to nav bar, they will be on site asking for support.

Instead of removing the sidebar completely, I like it, I was going to try and fix it and post the fix on-site but I can't find said links to fix.

If I confused you I apologize

Subject: Re: A Quick Cash Mod Plugin Fix To Cash Currencies
Here is the fix:

OPEN plugins/cash/adm/admin_cash.php
FIND
Code: [Download] [Hide] [Select]
$module['3100_CASH'][$menu[$i]->items[$j]->title] = $menu[$i]->items[$j]->linkage();

REPLACE WITH
Code: [Download] [Hide] [Select]
$module['3100_CASH'][$menu[$i]->items[$j]->title] = CASH_ADM_PATH . $menu[$i]->items[$j]->linkage();

Subject: Re: FIXED A Quick Cash Mod Plugin Fix To Cash Currencies
Thanks! I'll give that a go here in a few minutes. Just got home from a BBQ.


**EDIT**

Thanks MG that did the trick! That is exactly what I was after. Folks like you or I or inform or Mort could easily navigate back to config if needs be but a new user might not have been so lucky if they switched to sidebar. Now the problem is solved and that is one less thing anyone should ever have to ask!

Nicely done! :mryellow:


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.0818s (PHP: 24% SQL: 76%)
SQL queries: 11 - Debug Off - GZIP Enabled