vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vBindex (https://vborg.vbsupport.ru/showthread.php?t=37021)

-=dm=- 04-08-2002 07:21 PM

Yes only news error.
thanx

NTLDR 04-08-2002 07:23 PM

In the template home_newsbit:

Change
Quote:

https://vborg.vbsupport.ru/images/icons/icon$icon.gif
To:
Quote:

https://vborg.vbsupport.ru/images/icons/icon$news[iconid].gif
That should correct the broken links for the news icons in v1.3 :bunny:

-=dm=- 04-08-2002 07:41 PM

Yeah cool! now its showing up again lol
a BIG Thanx to you both el3m3nt & NTLDR :)

dm

NTLDR 04-08-2002 08:03 PM

Quote:

Originally posted by -=dm=-
Yeah cool! now its showing up again lol
a BIG Thanx to you both el3m3nt & NTLDR :)

dm

No problem dm, glad I could help you and this great hack out, I hope to see how you have implimented this hack soon!

freakyshiat 04-09-2002 05:29 AM

I installed this hack with {getmicrostats} in the footer template and it is reporting 83 queries...can this be true?

el3m3nt 04-09-2002 06:44 AM

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.. :)

-=dm=- 04-09-2002 10:36 AM

me back again :lick:
Quote:

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 :D

the poll system dont work for me:(

I have a stupid question :D 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.

el3m3nt 04-09-2002 01:05 PM

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? :)

el3m3nt 04-09-2002 01:13 PM

html-code in the news:
look for...
PHP Code:

  $newstext=bbcodeparse($getnews[pagetext]); 

replace with..
PHP Code:

$newstext=bbcodeparse($getnews[pagetext],$newsforum,1);
$newstext=str_replace("<br />","",$newstext); 

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 :).

-=dm=- 04-09-2002 03:40 PM

Quote:

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...


All times are GMT. The time now is 01:14 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01601 seconds
  • Memory Usage 1,767KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete