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 v2.1 (https://vborg.vbsupport.ru/showthread.php?t=41916)

NTLDR 08-17-2002 10:03 PM

Quote:

Originally posted by drives fast
NTLDR,
you are correct in all your answers about the logical way it works.

however on my forum in the news forum there are news that we want to stay on top for certain periods of time and with the present situation the only way to get it back on top is to delete it and re-post it.

If I get a chance in the next few days I'll take a look and see what I can do ;)

NTLDR 08-17-2002 10:14 PM

Quote:

Originally posted by drives fast
I noticed that if a post is made in the news forum it shows on top on vbindex and if someone makes another new thread it then shows on top but if the previous one is replied to it remains second in order on vbindex never to return to the top as it does in the forum itself.
I remembered this one would be easy ;)

Change:
PHP Code:

$newsquery=$DB_site->query("SELECT * FROM thread WHERE forumid='$newsforum' ORDER BY dateline DESC LIMIT $newsposts"); 

To:
PHP Code:

$newsquery=$DB_site->query("SELECT * FROM thread WHERE forumid='$newsforum' ORDER BY lastpost DESC LIMIT $newsposts"); 

As for the sticky threads was did you mean keep them at the top of the news block, or the top of the latest threads block? I'll take a look into that when I get the chance :)

drives fast 08-18-2002 12:28 AM

yes....on top of the news block

the latest threads is not a concern....I like that the way it is

and thank you for your considerations in modifactions......the order by change worked perfect

Donkeyballz 08-18-2002 04:36 AM

Here you get a few lines before and after:

Code:

} else {
  //eval("\$welcome = \"".gettemplate('home_unregwelcome')."\";");
  eval("\$logincode = \"".gettemplate('home_login')."\";");
  eval("\$welcomelogincode = \"".gettemplate('home_welcomelogin')."\";");
  eval("\$unregwelcomemessage = \"".gettemplate('home_unregmessage')."\";");
  $buddy = "";
}

// start vBulletin original code
// -------------------------
$activeusers = "";
$loggedinusers = "";
if ($displayloggedin) {
  $datecut=time()-$cookietimeout;

  $loggedins=$DB_site->query_first("SELECT COUNT(*) AS sessions FROM session WHERE userid=0 AND lastactivity>$datecut");
  $numberguest=$loggedins['sessions'];

  $numbervisible=0;
  $numberregistered=0;


LightBringer 08-18-2002 06:37 AM

I've read through this thread and I am still unable to exclude my private forums from the "Latest Threads" column.

I've verified that my installation is correct.
I've double and triple checked my forum permissions.
I've double and triple checked my usergroup permissions.

As a regular user or unregistered user,etc I am not able to view the private forums, but I CAN see the latest threads from the private forums. It'd be great if I could just excluse forms from populating this field OR it did follow the vbulletin default method of permission parsing for particular forums. Unfortunately this isn't the case. :/

Any advice?

I have gone through the database and checked that the canviewvbindex=0 is available and it is, my concern with this however is that I want ALL users to be able to see vbindex, just NOT the private forums within the latest threads.

Any advice?

aLuCaRD 08-18-2002 12:12 PM

Didnt see anyone else with the same welcome panel problem as me, wondering if you could help me please mate..?

(Probably something simple.) :)

aLuCaRD 08-18-2002 12:26 PM

No worries, I tried an upgrade on the board then tried it from scratch on a fresh board and realised what I'd done wrong. :)

NTLDR 08-18-2002 04:29 PM

Quote:

Originally posted by Donkeyballz
Here you get a few lines before and after:
I can't see anything wrong with it, does the page show, but with that error at the top?

Whats on your line 1604 of functions.php, in the deafult 2.2.6 its cookie stuff and this could(?) have something to do with it, heres the comment:

PHP Code:

// It's been reported that there's a bug in PHP 4.2.0/4.2.1 with Apache 2 causing setcookie() to not work correctly.
    // This is the workaround. If you need to use this code, please add:
    //      define('USE_COOKIE_WORKAROUND', 1);
    // to your config.php. 


NTLDR 08-18-2002 04:35 PM

Quote:

Originally posted by LightBringer
Any advice?
This seems to be a bug with vB as oposed to vBindex as you can see the title of your last post in a private forum from your profile for example.

This should work, it will exlude the news forum, polls forum, forums with visible set to 1 (non-private (still has vB bug)) and any forumids you specify:

Change:
PHP Code:

$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"); 

To:
PHP Code:

$threadsquery $DB_site->query("SELECT threadid,forumid,title,postusername,lastposter,replycount,iconid FROM thread WHERE forumid!=$newsforum AND forumid!=$pollsforum AND forumid!=x ".$threadsql." AND visible=1 order by lastpost desc limit $numthreads"); 

Change x to the forum id, if you wish to add more forum ids add:

PHP Code:

AND forumid!=

Changing x again, do this for each forum id you wish to be exculded.

clangrounds.com 08-18-2002 06:29 PM

Quote:

Originally posted by NTLDR


If you use the home template as the basis for a new page, and change the content of the center colum and remove any of the other stuff you don't want and add your content.

Save the template as a home_pagename

You can then access it using the following URL:

Code:

vbindex.php?page=home_pagename
Everything that is avalible on the vBindex page can be used within any new pages you create, eg you could swap the left and right colums on a new page.

I renamed vbindex.php to index.php so I can run it off my main domain name. I added the "home" template contents into a new template I made called "home_images" for my image gallery. But when I went index.php?page=home_images off my domain it came up as a blank page. Then I replaced "images" with a bunch of odd characters to see if it would display blank again, and it did. So I am not entering the right url to go see my "home_images" template page?


All times are GMT. The time now is 06:42 AM.

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.02320 seconds
  • Memory Usage 1,764KB
  • 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
  • (2)bbcode_code_printable
  • (6)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
  • (4)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