Hey folks,
I'm trying to use an include which will bring up a file which has the account owner as part of the file name. ie - if the account is owned by root, then it would bring up /tables/root-support.html If it were owned by joe, then it would grab /tables/joe-support.html
I did something similar to give resellers their own logo based on the owner variable, and that has worked fine. Now I want to add a custom table for support links... online payments, support center, account upgrades, etc -- all things which the reseller would generally have on his own website, but which would ideally be linked from in CPanel as well.
So I tried this... (replace hard brackets [ and ] with appropriate & and & of course)
[cpanel include=&tables/[cpanel print=&$CPDATA{'OWNER'}&]-support.html&]
It fails because it sees the second set of quotes and closes the include, and then displays something like &root-support.html& as text on the screen. I assume it wasn't happy with a cpanel link being embedded in another one. So I also tried several variations of this...
[cpanel include=&tables/$CPDATA{'OWNER'}-support.html&]
Also no luck.
FWIW, if anyone is curious about my syntax for the logo display, the above should be a good hint... but here's what I used:
[cpanel print=&$CPDATA{'OWNER'}&]-cp.gif&]
Any help would be appreciated!
Thanks,
Jason
I'm trying to use an include which will bring up a file which has the account owner as part of the file name. ie - if the account is owned by root, then it would bring up /tables/root-support.html If it were owned by joe, then it would grab /tables/joe-support.html
I did something similar to give resellers their own logo based on the owner variable, and that has worked fine. Now I want to add a custom table for support links... online payments, support center, account upgrades, etc -- all things which the reseller would generally have on his own website, but which would ideally be linked from in CPanel as well.
So I tried this... (replace hard brackets [ and ] with appropriate & and & of course)
[cpanel include=&tables/[cpanel print=&$CPDATA{'OWNER'}&]-support.html&]
It fails because it sees the second set of quotes and closes the include, and then displays something like &root-support.html& as text on the screen. I assume it wasn't happy with a cpanel link being embedded in another one. So I also tried several variations of this...
[cpanel include=&tables/$CPDATA{'OWNER'}-support.html&]
Also no luck.
FWIW, if anyone is curious about my syntax for the logo display, the above should be a good hint... but here's what I used:
[cpanel print=&$CPDATA{'OWNER'}&]-cp.gif&]
Any help would be appreciated!
Thanks,
Jason