PEAK XOOPS - d3forum comment integration with smartfaq & smartsection in englishin japanese

d3forum comment integration with smartfaq & smartsection

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2007/4/3 18:05 | Last modified
plusangel  ¾åÅùʼ   Posts: 32
Dear friends,

Has anyone managed to have comment integration with smartfaq module?

I've edited the ./templates/smartfaq_faq.html with the indicated way but it seems that I did something wrong...so it's not working :)
Votes:7 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2007/4/4 4:46 | Last modified
GIJOE  ÀèǤ·³Áâ   Posts: 4110
Though I don't know smartfaq at all...
Quote:

I've edited the ./templates/smartfaq_faq.html

./templates/smartfaq_faq.html ?
Have you edited a FILE?
It's wrong way.

Edit DB templates via template manager or altsys.

And nobody can see "indicated way" you said
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2007/4/4 17:04 | Last modified
plusangel  ¾åÅùʼ   Posts: 32
Dear GiJOE,

I've installed ALTSYS...
It's far better, if you want to play with templates(and not only)!

Now, regarding smartfaq (and smartsection as well) I have the same issues.

I found the following chank of code

<div style="text-align: center; padding: 3px; margin:3px;">
  <{$commentsnav}>
  <{$lang_notice}>
</div>

<div style="margin:3px; padding: 3px;">
<!-- start comments loop -->
<{if $comment_mode == "flat"}>
  <{include file="db:system_comments_flat.html"}>
<{elseif $comment_mode == "thread"}>
  <{include file="db:system_comments_thread.html"}>
<{elseif $comment_mode == "nest"}>
  <{include file="db:system_comments_nest.html"}>
<{/if}>
<!-- end comments loop -->
</div>

and I replaced it with

<{d3forum_comment dirname=d3forum forum_id=(number) itemname="id" subject=$title}>

on both modules.

The result is that the oldfashion comment system disappeared from the bottom of the item (since I remove the correspoding code) but nothing comes up in this place.

I've did the comment integration with pd-downloads with success.

I'll keep investigate it...
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2007/4/5 4:31
GIJOE  ÀèǤ·³Áâ   Posts: 4110
hi plusangel.

<{d3forum_comment dirname=d3forum forum_id=(number) itemname="id" subject=$title}>

Have you replaced (number) into real number of "forum_id"?

Make a new forum.
And specify the number of the forum.
You can find forum_id in URL.

eg:
XOOPS_URL/modules/d3forum/index.php?forum_id=1

In this case, replace (number) into "1"


"itemname" looks wrong.
Perhaps,

itemname="faqid"


Though I don't know the variable can be used as subject...
Votes:4 Average:2.50
Previous post - Next post | Parent - No child | Posted on 2007/4/5 15:24 | Last modified
plusangel  ¾åÅùʼ   Posts: 32
Dear GiJOE,

Regarding the first half of the tutorial...

Quote:
hi plusangel.
<{d3forum_comment dirname=d3forum forum_id=(number) itemname="id" subject=$title}>

Have you replaced (number) into real number of "forum_id"?

Make a new forum.
And specify the number of the forum.
You can find forum_id in URL.

eg:
XOOPS_URL/modules/d3forum/index.php?forum_id=1

In this case, replace (number) into "1"

it was what I was doing from the beginning. But the second half? For a strange I was assuming that it was plug-n-play stuff without giving the required attention.

By searching and try to understanding a bit more, I managd to make it work! For both smartSection and smartFaq modules!

So, regarding smartSection

Go to altsys - templates - smartsection - smartsection_footer.html and substitute the appropriate code chunk with

<{d3forum_comment dirname=d3forum forum_id=8 itemname="itemid" subject=$item.title}>

Regarding smartFaq we do the following steps

Go to altsys - templates - smartfaq - smartfaq_faq.html and substitute the appropriate code chunk with

<{d3forum_comment dirname=d3forum forum_id=9 itemname="faqid" subject=$faq.fullquestionlink}>

That's it!

Better work a cloned template set and on the default-original!

Dear GiJOE, thank you for your patience to explain me the procedure and make me able to find it out.
Votes:11 Average:6.36

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!