×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Struggling to add the component for Doc_Man

Struggling to add the component for Doc_Man 12 years 7 months ago #13779

  • Dana Haywood
  • Dana Haywood's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
I am following the directions in the manaul, but upon completing the first code to insert at the end, I get this when I refresh the page or tried to go to the DocMan on the frontend:

Documents
Order by : Name | Date | Hits [ Ascendant ]

Parse error: syntax error, unexpected T_STRING in /home/content/i/s/i/isisimagedesig/html/isisimagedesign.com/components/com_docman/themes/default/templates/documents/list_item.tpl.php on line 1

I copied and paste it at the end per instruction, so not sure whats going on.

Struggling to add the component for Doc_Man 12 years 7 months ago #13781

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Dana,
I'm really sorry to hear that you are struggling! That should not be!

This is a syntax error. In the manual you have this line:
require(JPATH_SITE."/administrator/components/com_comment/plugin/com_docman/josc_com_docma
n_item.php"); 

looks like 2 lines, but it is actually just one:
require(JPATH_SITE."/administrator/components/com_comment/plugin/com_docman/josc_com_docman_item.php"); 

Please correct it and I think that it will start to work. If it doesn't please provide me with ftp access + admin access to your website and I'll look into the problem.

Kind regards,
Daniel

Struggling to add the component for Doc_Man 12 years 7 months ago #13793

  • Dana Haywood
  • Dana Haywood's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Tried and got the same error message. Sent you an email with what you requested. Now I did this on my own website (the site the comment intended for is a contract job, and would need to get permission from person who owns the site..and that would be Monday before I hear from them. So in order to facilitate seeing what going on, I installed a basic Joomla 1.5.23 on my website with DocMan and Comments. I did the same steps, and got the same error. So whatever that can be found on my personal test site would probably fix the site I am working on.

Struggling to add the component for Doc_Man 12 years 7 months ago #13794

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Please check your mail. I can't log-in with the credentials you've sent me.
Daniel

Struggling to add the component for Doc_Man 12 years 7 months ago #13804

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Dana,
What kind of editor did you use to add the code? You have changed the standard docman template... All of the code in that template was placed on 1 line - this cannot work...

I've fixed it and you can see now - the write comment button appears on the page.

Daniel

Struggling to add the component for Doc_Man 12 years 7 months ago #13805

  • Dana Haywood
  • Dana Haywood's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Originally I used Notepad, and than when things looked a little screwy, I used netbeans. So the file you sent would be for the list_item.tpl.php?

And yes, I kinda figured it may have been something I was doing. I know how to use Joomla and all that, but still learning about PHP and things of that nature. Ask me a network question, and I can come up with a reasonable response. Ask me a PHP question, I am just not that qualified in coding yet.:) Thank you for your assistance.;)

Struggling to add the component for Doc_Man 12 years 7 months ago #13806

  • Dana Haywood
  • Dana Haywood's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Eventually, I opened it in Notepad but did not save it. I copied and paste, and now it is working fine. This is very strange as I have used notepad before without a problem. Anyways, the issue is now resolved, and I will keep the PHP file you sent if the client wants to change the template of the docman. :)

Again, many thanks. I wouldn't really have figured it out as quickly as you did.

Struggling to add the component for Doc_Man 12 years 7 months ago #13820

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
So you said:

Ask me a network question...


Ok, what for is response code 100 sent from the server, what about 202 :D Joking :)

Happy it is working now! If you encounter any other problems don't hesitate to write here :)

Cheers,
Daniel
  • Page:
  • 1
Time to create page: 0.324 seconds