View Full Version : Problem: Sorry, this Module isn't active!
J3nny
09-10-2006, 01:23 PM
Hi,
with some trouble I have installed your wonderful script, I run a site with PHP-nuke and it has PHPBB2 already installed in it.
At first I had some problems getting the headlines right but with a little help from this tread here at the forums:
http://www.dev-forums.com/index.php/topic,133.0.html
that works now. (I changed the config.php-file)
My NEW problem is when I click the link "Comments" or the name of the user that posted the tread, it opens a forumpage that says: "Sorry, this module isnīt active!". Iīm guessing it is just some simple settings somewhere but I canīt figure it out, so I really appreciate some help.
EDIT
Sorry, the path to forumnews is:
http://www.j3nny.se/PEST/PHPnuke/html/blocks/forumnews.php
Also, as you can see, the avatars is not showing..
Patrick
09-10-2006, 03:50 PM
Your URL is still incorrect:
http://www.j3nny.se/PEST/PHPnuke/html/modules.php?name=Forums&mode=viewprofile&u=2
Notice the Forumsprofile.php ... that is definitely wrong. You need to modify the template and define exact URLs. Don't use any of the predefined !!NEWS_URL!! or !!AUTHOR_URL!! stuff. Instead (as I said in the post that you linked to), use exact URLs such as:
http://www.j3nny.se/PEST/PHPnuke/html/modules.php?name=Forums&file=profile&mode=viewprofile&u=!!AUTHOR_ID!!
That is why tags such as !!AUTHOR_ID!!, !!AUTHOR_NAME!!, !!THREAD_ID!!, and so on are available (in the event that the forum uses a non-standard URL).
The same applies to avatars (don't use !!AVATAR_URL!!).
I explained all of this in the post that you linked to.
J3nny
09-11-2006, 02:38 PM
Yeah, I guess Iīm a little slow cause I still donīt get it right... I thought you should either edit all files manually OR edit the config file. When I edited the config file it showed the posts right but the comments/users and so didnīt quite work.
But if I got it right now you mean that I should edit the forumnews/config/templates.php
and change
$this->TEMPLATES[0]['headlines'] = "· <a href=\"!!NEWS_URL!!\">!!TITLE!!</a><br>";
to
$this->TEMPLATES[0]['headlines'] = "· <a href="http://www.j3nny.se/PEST/PHPnuke/html/modules.php?name=Forums&file=viewtopic&t=3"</a>!!TITLE!!<br>";
(at first I wrote it as you did and simply wrote thread_id in the code, but when that didnīt work I figured it was me being dumb and that you probably meant the real id to the tread)
but then I get this error:
Parse error: syntax error, unexpected T_STRING in /customers/j3nny.se/j3nny.se/httpd.www/PEST/forumnews/config/template.php on line 40
both when I try to see the forumnews adress and when I try to acess admin.php
Again, this is probably just me being dumb, but Iīm completely new to PHP...
And if I against all odds would make this work, the problem with that link (the link itself works if I open it) is that it shows a post while I would like it to show like the 2 or 3 newest post of that board, is that possible to do?
And also, how do I know author id and avatar id and all that when itīs different users that write the posts? *Iīm a numbskull*
I do hope I didnīt get your explanasion all wrong.... then I wasted your time with this post.
Patrick
09-11-2006, 05:33 PM
DO NOT manually edit template.php or config.php . These files used to have to be edited manually long ago but since then we have a control panel.
What you need to do now is completely remove script. Reinstall script. Reconfigure script. Then finally modify your templates (vie Edit Templates in admin panel).
Powered by vBulletin™ Version 4.0.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.