The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#12
|
|||
|
|||
I have set it up that way, through SSI calls, and I can tell you it works just fine, as tubedogg said
I have been using this syntax without problems: Code:
<!--#include virtual="/forums/active.inc.php"--> |
#13
|
|||
|
|||
good job tubedog
|
#14
|
|||
|
|||
Thank you
I help where I can. |
#15
|
|||
|
|||
<seriously off-topic emotional outburst>
YES!!!!!!!! With that previous post I have become a Senior Member! YAY YAY YAY! </seriously off-topic emotional outburst> |
#16
|
|||
|
|||
<seriously off-topic emotional outburst>
good job tubedogg </seriously off-topic emotional outburst> On another off topic note only 60+ more good job tubedoggs and I will also be a senior member |
#17
|
|||
|
|||
Great! It finally worked.
Now, I've searched through the site, but could not find the codes for these. Does anybody know how to display polls and currently active users on non vb pages? Thanks again |
#18
|
|||
|
|||
I got this beautiful little hack to work (not sure who to thank-but I thank whoever is responsible)
BUT, it seems to be showing even our private forums, including the moderators chat. NOT COOL. I had to take it down. Is there some modification that will stop any private forum from showing on this non-vb page? I know nothing about php, but I can follow good directions |
#19
|
|||
|
|||
ok. I still know nothing about php
but, it seems to me that it shouldn't be difficult to add usergroups to this little hack. Anyone have any idea how this would be done? in other words: I'd like to be able to list the usergroups from whom this information is pulled. Here is the hack code, how would I make it so it only shows posts of, say... usergroup: members? Code:
<?php // Set this to the max number of threads to display $maxthreads = 5; require("/path/to/my/admin/config.php"); $db=mysql_connect($servername,$dbusername,$dbpassword); mysql_select_db($dbname); $query = "SELECT * FROM thread ORDER BY lastpost DESC LIMIT $maxthreads"; $resultlatest = mysql_query($query,$db); while ($latest_array = mysql_fetch_array($resultlatest)) { echo "<FONT SIZE=\"2\" FACE=\"Verdana, Arial, Helvetica, sans-serif\"> ? <A HREF=\"http://www.mysite.com/forum/showthread.php?threadid=$latest_array[threadid]\">$latest_array[title]</A></FONT><BR>"; } ?> |
#20
|
|||
|
|||
Well, here's some code to make it so it doesn't show threads private forums:
(I'm guessing this will work) Code:
SELECT * FROM thread LEFT JOIN forumpermission ON (forumpermission.forumid=thread.forumid) WHERE forumpermission.canview=1 ORDER BY lastpost DESC LIMIT 0,$maxthreads |
#21
|
|||
|
|||
Ok, what I did was replace the code in the hack that resembled your suggestion
Now, it ONLY shows the private forums. I tried switching the word ON to OFF and it showed nothing when I did that. here is the modified code: Code:
<?php // Set this to the max number of threads to display $maxthreads = 5; require("/path/to/my/admin/config.php"); $db=mysql_connect($servername,$dbusername,$dbpassword); mysql_select_db($dbname); $query = "SELECT * FROM thread LEFT JOIN forumpermission ON (forumpermission.forumid=thread.forumid) WHERE forumpermission.canview=1 ORDER BY lastpost DESC LIMIT 0,$maxthreads"; $resultlatest = mysql_query($query,$db); while ($latest_array = mysql_fetch_array($resultlatest)) { echo "<FONT SIZE=\"2\" FACE=\"Verdana, Arial, Helvetica, sans-serif\"> ? <A HREF=\"http://www.domain.com/forum/showthread.php?threadid=$latest_array[threadid]\">$latest_array[title]</A></FONT><BR>"; } ?> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|