Version: 1.00, by el3m3nt
Developer Last Online: Oct 2002
Version: 2.2.x
Rating:
Released: 04-04-2002
Last Update: Never
Installs: 75
No support by the author.
Latest Version: 1.3
This hack is not very special for me. I just wanted to create a mainpage on which you can see.. (as a member) everything what u like to see. The idea of the script is similar to the vbHome of nakkid and also a little bit to the vBPortal. I tested all of them.. but i was looking for something better . so i decided to write such a script myself...
Features:
Active threads & newest posts
News & Polls (read from a newsforum and a pollforum)
Quick CP Links on the index-site
Buddies on the index-site
Very easy to customize. Just edit the templates!
Available in english and german!
Summary: On this index-site you can see everything what you as a member would like to see .
Credits
Newscode part from vBHome by nakkid.
Onlinetodaycode part from Online Today Hack by Mystics.
Pollcode part from vBPortal by wajones.
Note!
I'd really like to get every feedback you guys can give me. Also post bugreports and suggestions to improve this script. If you have installed this hack, pls click on the install button to receive updates thru email. Thank you .
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
dm, probably you mixed the two solutions (my one and NTLDR one). but when it works now then its okey .
Fazle, i have only 54 on partylife.ch. it depends on how many threads you wanna display and how many newsarticles. if i show 30 threads i have 104 queries. so 83 can be true..
Originally posted by el3m3nt dm, probably you mixed the two solutions (my one and NTLDR one). but when it works now then its okey .
yeah your right, I have installed this hack 3 times
the poll system dont work for me
I have a stupid question how do I hide poll forum from normal members and still let them vote on the mainpage(vbindex) cuz when I change the settinges in "Registered user group" the forum settings jumps to "private forum" see the screenshot.
you have to give the registered user the right to vote for the pollforum... not for the usergroup "Registered".
so go to "Forums & Moderators > Permissions > Choose your Pollforum > Registered > Edit"
There you set "Can view forum" to no and "Can vote on polls" to yes. you can also allow them to post replies (comments) or all other settings.
Thanks to nakkid, Gimp and FireFly for drawing attention to me on this.
2 new actions (getdaily and getsticky!) and threads-table-title depends on the action!
look for...
PHP Code:
if ($action=="" or $action=="getactive") {
// active threads
$threadsquery = $DB_site->query("SELECT threadid,forumid,title,postusername,lastposter,replycount,iconid FROM thread WHERE forumid!=$newsforum AND forumid!=$pollsforum ".$threadsql." AND visible=1 order by lastpost desc limit $numthreads");
}
if ($action == "getnew") {
// new posts
$threadsquery = $DB_site->query("select threadid,forumid,title,postusername,lastposter,replycount,iconid from thread WHERE visible=1 AND lastpost>=".$bbuserinfo[lastvisit]." AND open<>10 ".$threadsql." order by lastpost desc limit $numthreads");
}
replace with...
PHP Code:
if ($action=="" or $action=="getactive") {
// active threads
$threadsquery = $DB_site->query("SELECT threadid,forumid,title,postusername,lastposter,replycount,iconid FROM thread WHERE forumid!=$newsforum AND forumid!=$pollsforum ".$threadsql." AND visible=1 order by lastpost desc limit $numthreads");
$threadstitle="Latest Threads";
}
if ($action == "getnew") {
// new posts
$threadsquery = $DB_site->query("select threadid,forumid,title,postusername,lastposter,replycount,iconid from thread WHERE visible=1 AND lastpost>=".$bbuserinfo[lastvisit]." AND open<>10 ".$threadsql." order by lastpost desc limit $numthreads");
$threadstitle="Newest Posts";
}
if ($action == "getdaily") {
// posts today
$threadsquery = $DB_site->query("select threadid,forumid,title,postusername,lastposter,replycount,iconid from thread WHERE visible=1 AND thread.lastpost>=".(time() - (24 * 60 *60 * $days)).$threadsql." order by lastpost desc limit $numthreads");
$threadstitle="Posts Today";
}
if ($action == "getsticky") {
// sticky threads
$threadsquery = $DB_site->query("select threadid,forumid,title,postusername,lastposter,replycount,iconid from thread WHERE visible=1 AND sticky=1 ".$threadsql." order by lastpost desc limit $numthreads");
$threadstitle="Sticky Threads";
}
now modify the template "home_threads":
- 2 new options (select)
- replace "Latest Threads" (title) with $threadstitle
that's it. all these improvements will be included in version 1.4.
pls write me all suggestions and ideas how we all can improve this script .
Originally posted by el3m3nt you have to give the registered user the right to vote for the pollforum... not for the usergroup "Registered".
so go to "Forums & Moderators > Permissions > Choose your Pollforum > Registered > Edit"
There you set "Can view forum" to no and "Can vote on polls" to yes. you can also allow them to post replies (comments) or all other settings.
got it?
Hi el3m3nt
I did everything like you wrote above but stil no luck
I get the no premission message...