×

Notice

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

TOPIC: Hack code for MjazTools BlogTheme for DOCMan

Hack code for MjazTools BlogTheme for DOCMan 15 years 2 months ago #2395

  • Superliz
  • Superliz's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Hi there,

I am trying to get joomla comment to work with docman, I've read the posts about the hack code to enter but this only works for the "default" theme. I'm using the new "MjazTools BlogTheme for DOCMan," which has a slightly different code and uses for example:
table class = "dm_description" instead of div class = "dm Description" in th code. The current hack code doesn't work because of this.

Would someone please be able to send me the hack code for this. Thanks, much appreciated.

Hack code for MjazTools BlogTheme for DOCMan 15 years 2 months ago #2422

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I don't understand - you have to insert the code in the new "MjazTools BlogTheme for DOCMan" template.

Hack code for MjazTools BlogTheme for DOCMan 15 years 2 months ago #2423

  • Superliz
  • Superliz's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Hi :)

I opened up the file: components/com_docman/themes/MjazTools_BlogTheme/templates/documents/document.tpl.php

and added in the following code at the end of it.
<div class="dm_description" style="text-align:right;"><?phpglobal $option, $mosConfig_absolute_path;require_once("$mosConfig_absolute_path/administrator/components/com_comment/plugin/$option/josc_com_docman_item.php");?></div>

It didn't work and I got the following error message.

Parse error: syntax error, unexpected T_VARIABLE in /home/mysite/components/com_docman/themes/mjaztools_blogtheme/templates/documents/document.tpl.php on line 216

Any ideas?

Thanks :)

Hack code for MjazTools BlogTheme for DOCMan 15 years 2 months ago #2430

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
<?phpglobal $option, $mosConfig_absolute_path;[code]
 
can you add space between php and global
 
[code]
<?php global $option, $mosConfig_absolute_path;

Hack code for MjazTools BlogTheme for DOCMan 15 years 2 months ago #2431

  • Superliz
  • Superliz's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Great thanks that worked!!!!

Just another quick question... The comments box background is white and you can't read anything, how would I go about changing the colour.

Many thanks :)

Hack code for MjazTools BlogTheme for DOCMan 15 years 2 months ago #2434

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Probably changing some css class, but I will need an url to your web site to find which class to change.

Hack code for MjazTools BlogTheme for DOCMan 15 years 2 months ago #2435

  • Superliz
  • Superliz's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Ah yeah I figured. My website is www.world4teachers.com
The colour of the comments box in Docman is the only problem, the colour codes for joomla comment for the frontpage without docman are fine.
If you need to get into the registered part, just let me know.

Many thanks, really appreciating your help.

Hack code for MjazTools BlogTheme for DOCMan 15 years 2 months ago #2436

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I will need an account and also link to docman.

Hack code for MjazTools BlogTheme for DOCMan 15 years 2 months ago #2437

  • Superliz
  • Superliz's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
No worries:
Username: daniel
Passoword: dimtrov
This takes you to the docman page, the comments are linked a document i've put in there for you. I'm setting up the page so there's not much else there.
Thanks.

Hack code for MjazTools BlogTheme for DOCMan 15 years 2 months ago #2440

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I know what you can change, but I believe it will be much better when you change the template (from !jocomment backend) you can use a dark theme to better match your design. If you insist on using the template right know

you can change
css.css (Linie 5)
#comment .item {
padding:5px;
}
and add a background or change the color.
Background: background:#000000;
or
color: color: #000;

Hack code for MjazTools BlogTheme for DOCMan 15 years 2 months ago #2445

  • Superliz
  • Superliz's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Thanks Daniel that worked!

Just one last question if you are able to help.

When I click on a file to download from docman, instead of opening the file it redirects to the docman frontpage.
When a user uploads a file, it uploads in the administration but doesn't ask me for approval, I have to create a document for the file manually.
When I do this, I still have the same problem that the file wont download for a user or myself but redirects to the docman frontpage.

Would you be able to point me in the right direction of how I could get help for this.

Thanks again Daniel. :cheer:

Hack code for MjazTools BlogTheme for DOCMan 15 years 2 months ago #2449

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I also saw this.
I don't have a big experience with doc_man so I'm unable to tell you what to change and where. I believe it is a matter of settings, so you can try to experiment more :)

Or just go to the support page of doc_man.

Greetings!
Daniel
  • Page:
  • 1
Time to create page: 0.171 seconds