View Full Version : [module] Forum list
hqtrung
10-15-2005, 09:43 PM
Forum list for VBA 2.0
Full permission implied !!!
Author Huynh Quang Trung
Judge Ruckus
10-16-2005, 02:23 AM
It cuts off the frist few letters near the bottom of my box.
Other then that I like it, guess it has room for style adjustments.
Thank You
Mikobu
10-16-2005, 03:52 AM
It cuts off the frist frew letters near the bottom of my box.
Yes.... I have the same problem
thanks....
hqtrung
10-16-2005, 10:18 AM
okie, i can see that problem.
It's CSS problem because I was using a CSS list. It's display OK with Firefox. I will check it on IE.
Judge Ruckus
10-16-2005, 02:36 PM
okie, i can see that problem.
It's CSS problem because I was using a CSS list. It's display OK with Firefox. I will check it on IE.
Doesnt look like an error now. On my living room PC it looks just fine but my bedroom PC it is a little off.
PS, (lol)
I am not getting mysite.com/forums
Need my forums in the URL there.
Flow Fusion
10-17-2005, 10:49 AM
Thanks works great.
Souli
10-17-2005, 02:45 PM
Very useful - works without any problems .. Thx
AndyA
10-17-2005, 04:51 PM
Anyone have a demo or a screenshot ?
Judge Ruckus
10-17-2005, 11:38 PM
Anyone have a demo or a screenshot ?
You can see mine at www.cecilcountyx.com BUT the links are not going to my forums.
Cyricx
10-18-2005, 05:51 PM
Just zippin by, but I'll guess that this
$ret.= "<a href='forumdisplay.php?f=$forumid'>"." $forum[title_clean]\n";
Needs to be changed to
$ret.= "<a href='$vboptions[bburl]/forumdisplay.php?f=$forumid'>"." $forum[title_clean]\n";
or if that don't work then
$ret.= "<a href='http://www.cecilcountyx.com/forums/forumdisplay.php?f=$forumid'>"." $forum[title_clean]\n";
Should certainly work.
FleaBag
10-18-2005, 06:28 PM
So I just uplaod the module in CMPS and that's it?
Judge Ruckus
10-18-2005, 10:36 PM
Just zippin by, but I'll guess that this
or if that don't work then
$ret.= "<a href='http://www.cecilcountyx.com/forums/forumdisplay.php?f=$forumid'>"." $forum[title_clean]\n";
Should certainly work.
Hey thanks man! That worked and is all good now.
FleaBag
10-31-2005, 06:03 PM
Can I restrict this to a specific category?
grains
11-11-2005, 02:29 PM
Hi, how do we use this?
Yeah how you install this?
grains
11-13-2005, 12:43 PM
never mind.....i cleaned it up...
grains
11-13-2005, 03:49 PM
I keep getting "the file you have uploaded is not a valid module file.... :( any ideas?
grains
11-13-2005, 04:14 PM
well....i finally got it to upload....the admin username had an apostrophe in it, so it was the reason for the above error....
HOWEVER......the forumlist still doesnt show a list of forums....it just shows the header....
I'm thinking it's because I'm running VB 3.0.3 :confused:
any help?
Praet0rian
11-15-2005, 05:48 PM
Mine works, but every forum has "BB" before it on the list...
grains
11-15-2005, 05:49 PM
Mine works, but every forum has "BB" before it on the list...
Are you using VB 3.0.3? And if so, did you follow these directions specifically or was there something else that you did?
Synth
11-23-2005, 11:08 AM
Hey thanks man! That worked and is all good now.
where might you find that code?
agiacosa
11-23-2005, 12:15 PM
Can someone please take a look at this and see how to not show sub-forums?
Thank you.
puertoblack2003
11-24-2005, 12:00 AM
okie, i can see that problem.
It's CSS problem because I was using a CSS list. It's display OK with Firefox. I will check it on IE.
any solution to this problem it looks good on firefox but not ie
take a peek of it:http://img476.imageshack.us/img476/6926/forumlist8lc.th.gif (http://img476.imageshack.us/my.php?image=forumlist8lc.gif)
Synth
11-24-2005, 01:36 AM
any solution to this problem it looks good on firefox but not ie
take a peek of it:http://img476.imageshack.us/img476/6926/forumlist8lc.th.gif (http://img476.imageshack.us/my.php?image=forumlist8lc.gif)
I have the same problem...
CommunityZ
11-25-2005, 02:07 PM
Anyway to get rid of the BB 0 things infront of the forum title? I am using vb3.5.1 and vBadvanced CMPS v2.0.0
sorry had to upload it in .zip because
"The Dimension limits for this filetype are 620 x 280. We were unable to resize your file so you will need to do so manually and upload it again. Your file is currently 166 x 456."
Hengis
11-25-2005, 06:36 PM
I still can't get this to work - VB Admin just keeps saying "this file is not a valid module" - HELP!! :)
blitzburgh
11-26-2005, 12:44 AM
Is there any solution to the forums being off the list the farther they get down the page? Or can you trim them someway to get rid of the sub forums?
Thanks
Praet0rian
11-29-2005, 11:36 AM
Are you using VB 3.0.3? And if so, did you follow these directions specifically or was there something else that you did?
Im using 3.5 and followed the directions exactly.
Synth
11-29-2005, 01:14 PM
any solution to this problem it looks good on firefox but not ie
take a peek of it:http://img476.imageshack.us/img476/6926/forumlist8lc.th.gif (http://img476.imageshack.us/my.php?image=forumlist8lc.gif)
I'm having this problem in IE, anyone have a solution?
jfreundn
12-03-2005, 01:51 PM
Why can't I upload the forumlist_module for the 1st thread? Do I need to do something to the file 1st?
Thanks,
John
blitzburgh
12-03-2005, 06:57 PM
Why can't I upload the forumlist_module for the 1st thread? Do I need to do something to the file 1st?
Thanks,
John
I used vBa CMPS in the Admin and hit Download/Upload module and browse to the forumlist.module file on your computer, upload, then it should install.
jfreundn
12-03-2005, 07:23 PM
I tried that, thats when I get the following error message:
"The file you have uploaded is not a valid module file"
John
led_belly
12-06-2005, 11:40 PM
For those of you getting the "The file you have uploaded is not a valid module file" message when trying to upload this module, this is what I did to get it working:
Step One: I created a plugin in the global_start hook with the following code from the module Huynh Quang Trung posted:
//++=========================================================================++
// || Module: Forum list on portal for vBadvanced Portal 2.0
// || Author: Huynh Quang Trung (hqtrung at gmail dot com)
// ||
// || http://vnsolutions.net
// ||
// ||
// ++ ========================================================================++
function construct_forum_list($parentid = -1, &$ret, $permission = '')
{
global $vbulletin;
global $stylevar, $vbphrase, $defaultselected;
if (!($vbulletin->userinfo['permissions']['forumpermissions'] & $vbulletin->bf_ugp_forumpermissions['canview']))
{
return;
}
if (empty($vbulletin->iforumcache))
{
require_once(DIR . '/includes/functions_forumlist.php');
cache_ordered_forums(1, 1);
}
if (empty($vbulletin->iforumcache["$parentid"]) OR !is_array($vbulletin->iforumcache["$parentid"]))
{
return;
}
$ret.= "<ul>\n";
foreach($vbulletin->iforumcache["$parentid"] AS $forumid)
{
$forumperms = $vbulletin->userinfo['forumpermissions']["$forumid"];
if ((!($forumperms & $vbulletin->bf_ugp_forumpermissions['canview']) AND !$vbulletin->options['showprivateforums']) OR !($vbulletin->forumcache["$forumid"]['options'] & $vbulletin->bf_misc_forumoptions['showonforumjump']) OR !$vbulletin->forumcache["$forumid"]['displayorder'] OR !($vbulletin->forumcache["$forumid"]['options'] & $vbulletin->bf_misc_forumoptions['active']))
{
continue;
}
else
{
$forum = $vbulletin->forumcache["$forumid"];
$ret.= "<li>\n";
$ret.= "<a href='forumdisplay.php?f=$forumid'> $forum[title_clean]</a>\n";
construct_forum_list($forumid, $ret, $forumperms);
$ret.= "</li>\n";
} // if can view
} // end foreach ($vbulletin->iforumcache[$parentid] AS $forumid)
$ret .= "</ul>\n";
return $ret;
}
$adv_portal_forumlist = "";
$adv_portal_forumlist = construct_forum_list(-1, $adv_portal_forumlist);
Note that I made a few changes to correct some problems w/ the code. I added the missing </a> to close the href tag. I also removed the eval/fetch_template line and moved the <div> to the template (see next step).
Step Two: I then created a custom template and inserted the following.
<tr>
<td class="$bgclass">
<!-- forum list -->
<div id="moduleforumlist">$adv_portal_forumlist</div>
<!-- / forum list -->
</td>
</tr>
Step Three: I created a new template module including the template above.
And that's it!
Note: You'll notice I used some custom CSS in my template. You can add the following to 'Additional CSS Definitions' in Style Options or create your own changing the id in the div. My changes to the CSS haven't been tested and I'm not sure if li:before and content: work in IE but '\BB' is the CSS equivilant to » (used by vbadvanced). Anyway, the CSS is yours to play with :)
#moduleforumlist ul {
list-style: none;
margin: 0;
padding:0;
padding-left: 1em;
text-indent: -1em;
}
#moduleforumlist li {
list-style-image: none;
list-style-type: none;
}
#moduleforumlist li a:active, #moduleforumlist li a:visited, #moduleforumlist li a:link {
text-decoration:none;
}
#moduleforumlist ul li:before {
content: "\BB";
}
restless
12-08-2005, 04:24 PM
anyone know how i can get this to NOT display the forum categories?
mr_enix
12-08-2005, 10:08 PM
this **** still don't work for me
redspider
12-09-2005, 12:24 PM
For those of you getting the "The file you have uploaded is not a valid module file" message when trying to upload this module, this is what I did to get it working:
led_belly how did you call the template ?
did you still use the file from this hack?
ty
led_belly
12-09-2005, 05:23 PM
I called the template in Step Three when I created a new (template-based) module...
did you still use the file from this hack?
The forumlist.module file? No. If you follow the instructions above you don't need it anymore.
blitzburgh
12-10-2005, 12:59 PM
I Love it led_belly. Is there anyway to make the font smaller? Otherwise you did a great job. Here is a pic of my right forum sidebar top, I just need the font a little smaller. Thanks again!
skizzy203
12-10-2005, 06:20 PM
In IE... everything looks peachy.
In Firefox however, I am getting the above mentioned
BB[]0
As a bullet to the forum list.
Is anyone else experiencing this?
blitzburgh
12-10-2005, 07:37 PM
Actually what I did after the last post was add the Step Three code to the Main Css to take away the text style, and it got rid of the bullets and I think it looks better, and not off the page anymore. Not sure how FireFox works.
michaelbenson
01-12-2006, 03:20 PM
Does anyone know if this is possible to develop further to actually display the forum status icon too? Or perhaps to display individual forums based off a template which would contain the desired look for the forums to be listed as?
XtAzY
01-19-2006, 11:49 PM
is there a way to not list the Category names? I also want to show only one section of the forum with its subforums, not the entire forum.
pipedreams
02-08-2006, 09:51 AM
I attach here a version that works on vb 3.5.3 and vBadvanced CMPS 2.1.0
(forumlist.module)
I also attach a variation of the above (addnewthread.module) which still gives a forum listing, but when you click on a forum it will bring you to a new thread of that forum instead.
(its still not perfect as it will list categories and will not link right if you can't post ion that category)
Hope these are helpful to people. :)
is it possible to remove the BB infront of each section ?
and can a option be made so you choose what section is displayed ?
maartenvr
03-07-2006, 02:44 AM
Where do I find the CSS to edit this? I guess for #custom ?
993ti
03-14-2006, 07:38 PM
is it possible to remove the BB infront of each section ?
and can a option be made so you choose what section is displayed ?
Search for it in styles & templates -> adv_portal_forumlist
Just delete it.
Looks way better in FF.
Also, a friend of mine is busy making the site w3c compliant and he found 51 errors (on my site) in forumlist.php and solved it.
I don't know if anyone wants it, but i'll attach the w3c compliant version.
993ti
03-20-2006, 12:54 PM
1 error left in forumlist.php for w3c compliancy.
Attachement above updated.
XtAzY
04-24-2006, 01:27 AM
hey is there anyway i can edit the module where it only display a section of a forum i choose? Cuz i have a forum where it has many subforums and i want to list those subforums instead of other forums
XtAzY
04-25-2006, 12:56 AM
anyone? cuz i want to add this mod as my navigation but it showing too many forums, or forums i dont want to be showned
san9nh0
05-08-2006, 09:05 AM
Search for it in styles & templates -> adv_portal_forumlist
Just delete it.
Looks way better in FF.
Also, a friend of mine is busy making the site w3c compliant and he found 51 errors (on my site) in forumlist.php and solved it.
I don't know if anyone wants it, but i'll attach the w3c compliant version.
Its work good :D i like it very much, thanks you
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.