Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post 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);

 



 
MWE_001Send private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: A Quick Cash Mod Plugin Fix To Cash Currencies 
 
Thanks for reporting, I will fix everything and release a patch.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 




____________
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley
 
MWE_001Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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...)
 




____________
IcyPhoenix ADR RPGEzArena (modded phpBB2+ADR)
 
InformproSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 




____________
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley
 
MWE_001Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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++)
 




____________
IcyPhoenix ADR RPGEzArena (modded phpBB2+ADR)
 
InformproSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 




____________
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley
 
MWE_001Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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();

 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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!  
 




____________
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley
 
MWE_001Send private message  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML

HideSimilar Topics

Topic Author Forum Replies Last Post
This topic is locked: you cannot edit posts or make replies. Where Is Cash Mod? Gianni PB Old Support Topics 2 Tue 25 Dec, 2007 23:13 View latest post
novice programmer
No new posts Cash Mod, Add On ? Corleone Old Support Topics 2 Fri 25 Jan, 2008 15:19 View latest post
Corleone
No new posts Cash Mod rocko Old Support Topics 2 Thu 04 Dec, 2008 21:57 View latest post
Chaotic
No new posts Cash Mod OneWHoShanks Old Support Topics 3 Sat 16 May, 2009 13:14 View latest post
DWho
No new posts Cash Mod jefazo666 Old Support Topics 3 Fri 08 Mar, 2013 01:28 View latest post
Joshua203




 
Permissions List
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


  

 

  cron