Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

Frontend joomdoc link - again
(1 viewing) (1) Guest
Document management system (DMS) component for Joomla!

If your topic falls within one of the subcategories, then please post it directly there. Post to this parent category only if your question does not match any subcategory topic.
  • Page:
  • 1
  • 2

TOPIC: Frontend joomdoc link - again

Re:Frontend joomdoc link - again 14 years, 10 months ago #10315

Hello :)

I have done like you wrote but when I click on JoomDoc Link:

Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION in C:\Program Files (x86)\VertrigoServ\www\components\com_joomdoc\controller.php on line 116

I understand that i have to paste:
<quote>
break;
case 'doc_publish':
DocumentsHelper::publishDocument(array($gid));
break;

}
here...
</quote>
// JoomDOC link hack for front-end access
...

Is that right?
Could you help me and explain what means snippet ? :) my dictionary doesn`t have this in :)
The topic has been locked.

Re:Frontend joomdoc link - again 14 years, 8 months ago #11517

  • finc
  • OFFLINE
  • Posts: 3
me too something funny

Parse error: syntax error, unexpected T_CASE, expecting T_FUNCTION in /var/customers/webs/finc/public_html/components/com_joomdoc/controller.php on line 96
        parent::display(true);
}
 
// JoomDOC link hack for front-end access
case "doclink":
$user =& JFactory::getUser();
if ($user->guest) {
die("Not Authorized!");
} else {
global $_DOCMAN, $mainframe;
$_DOCMAN = new dmMainFrame ( );
require_once(JPATH_ROOT . "/administrator/components/com_joomdoc/includes/doclink.php");
showDoclink();
}
break;
case "doclink-listview":
$user =& JFactory::getUser();
if ($user->guest) {
die("Not Authorized!");
} else {
global $_DOCMAN, $mainframe;
$_DOCMAN = new dmMainFrame ( );
require_once(JPATH_ROOT . "/administrator/components/com_joomdoc/includes/doclink.php");
showListview();
}
break;
 
function license_result ()
{


Maybe we should use php4 function here,, even php5 is installed!
Last Edit: 14 years, 8 months ago by finc.
The topic has been locked.

Re: Frontend joomdoc link - again 13 years, 12 months ago #19330

  • JRS
  • OFFLINE
  • Posts: 3
When I first used the code snippet provided by USDC_OREGON I also got the parese error (expecting T_Function).
So I added an extra '}' sign (without the quotes) at the end of the code snipper ans it seems to work for me. However, I have no idea whether or not this addition affects other functionality of JoomDOC.
The topic has been locked.

Re: Frontend joomdoc link - again 13 years, 2 months ago #24578

  • ssiteyedek
At first I wanna thanks.....
The topic has been locked.
  • Page:
  • 1
  • 2
Přihlášení uživatele Prázdný