BLOG:CMS :: Support Forum
Support Forum for BLOG:CMS
You are not logged in.
#1 11.02.2005 18:05
- Scott Ott
- newbie...
- Registered: 28.01.2005
- Posts: 5
Link from Article to Forum Formatting Problem
I want to include a link from articles to forum in the template for the default main page and detailed pages. When I use...
Code:
<%PunBB%>
...I get a "0" linked to the proper forum. But that's not what I want. I want the link to say "Questions?".
When I use the recommended ...
Code:
<%PunBB( <a href=",">Questions?</a> )%>
... I get a the word "Questions?" linked to...
Code:
http://myURL.org/BlogCMS/%3Ca%20href='http://myURL.org/BlogCMS/forum/viewtopic.php?id=3'%3E%200%20%3C/a%3E
...which of course, doesn't take me to the forum.
Offline
#2 11.02.2005 18:20
- Scott Ott
- newbie...
- Registered: 28.01.2005
- Posts: 5
Re: Link from Article to Forum Formatting Problem
Well, I hate to answer my own question...but I hate it even worse when someone posts a question, gets an answer but doesn't share it with others.
So, here's what I have done to fix my problem.
I opened NP_PunBB.php, in admin > plugins > NP_PunBB.php, and commented out the following lines of code...
Code:
387 //echo "<a href='"; 389 //echo "'> ".$data['num_replies']." </a>";
Then on the default main homepage template, I inserted the following code in the 'item footer' box within the 'iteminfo' div...
Code:
<%PunBB( <a href=",">Questions?</a> )%>
Now, I have the word "Questions?" under each article, with a proper hyperlink to the forum topic I specified when I posted the article.
If you have a better solution, please let me know.
Last edited by Scott Ott (11.02.2005 18:31)
Offline
#4 06.04.2007 22:56
- ErectusX
- newbie...
- Registered: 05.04.2007
- Posts: 5
Re: Link from Article to Forum Formatting Problem
This is what I have done:
Code:
echo "<a href='"; echo $CONF['IndexURL']."forum/viewtopic.php?id=".$msg['topicid']; //echo "'> ".$data['num_replies']." </a>"; echo "'> Enter discussion </a>"; echo " Number of comments: ".$data['num_replies'];
and in the template I use only <%punBB%> without the text1,text2 parameters.
Offline