A Quick Cash Mod Plugin Fix To Cash Currencies »  Show posts from    to     

Icy Phoenix


General Support - A Quick Cash Mod Plugin Fix To Cash Currencies



MWE_001 [ Wed 10 Aug, 2016 07:05 ]
Post 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: [Hide] [Select]
include('page_footer_admin.' . PHP_EXT);

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


Mighty Gorgon [ Wed 10 Aug, 2016 11:07 ]
Post subject: Re: A Quick Cash Mod Plugin Fix To Cash Currencies
Thanks for reporting, I will fix everything and release a patch.


MWE_001 [ Sat 20 Aug, 2016 17:30 ]
Post 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.

screenshot_5_1471708278_168806

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


Informpro [ Sat 20 Aug, 2016 18:09 ]
Post 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: [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...)


MWE_001 [ Sat 20 Aug, 2016 18:21 ]
Post 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.


**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. 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


Informpro [ Sat 20 Aug, 2016 21:12 ]
Post 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++)


MWE_001 [ Sat 20 Aug, 2016 21:19 ]
Post 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


Mighty Gorgon [ Sat 20 Aug, 2016 22:56 ]
Post subject: Re: A Quick Cash Mod Plugin Fix To Cash Currencies
Here is the fix:

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

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


MWE_001 [ Sun 21 Aug, 2016 04:45 ]
Post 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!




Powered by Icy Phoenix