vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBindex v3.0.0 RC5 (https://vborg.vbsupport.ru/showthread.php?t=59524)

Mobo 05-14-2004 06:23 PM

Oppsss, sorry about being a tard on the URLs...I should have caught that . I know I saw an email addy some were to send you a donation, I'd like to send one if I can find the addy again.

Also, one of my users asked if it was possible to have new PMs show up on the front page. Maybe some thing under where it show what subscribes threads have been updated. Like this...

Welcome Back mobo!

New & Updated Threads: 40 | New posts: 111
Updated Susbscribed Threads: 12
New Private Messages: 3
View New Posts | Today's Posts

Is that possible?

NTLDR 05-14-2004 06:38 PM

Just edit the VBINDEX template.

Mobo 05-14-2004 09:23 PM

I opened up that template and I think I figured out where to edit it, but I'm not sure what to put in there to make the new PMs show up. I'm way new at this code/hack stuff.

Thanks for your help.

NTLDR 05-14-2004 09:55 PM

The HTML/variables can be found in the navbar and global.php.

Mobo 05-14-2004 10:55 PM

So, is this the bit of coade that I need to insert?

PHP Code:

$pmunread_html iif($bbuserinfo['pmunread'], "<strong>$bbuserinfo[pmunread]</strong>"$bbuserinfo['pmunread']);
$vbphrase['unread_x_nav_compiled'] = construct_phrase($vbphrase['unread_x_nav'], $pmunread_html);
$vbphrase['total_x_nav_compiled'] = construct_phrase($vbphrase['total_x_nav'], $bbuserinfo['pmtotal']); 


Qualia 05-15-2004 12:15 AM

Hi,

I'm helping CrankN while he's at work. I downloaded a fresh copy, removed and replaced all the files. I went to the admin cp, pasted http://www.ourdomain.net/folder/admincp/vbiupgrade.php and hit Enter. It started to load, "Processing complete...proceed" flashed at the top of the page, then the page went blank. The side menu of the admin cp shows but the main right side is plain white. It looks like a path problem to me. We don't have /forum/ and I'm wondering if the install is looking for that or not. If not, have you got any ideas what might be causing this and what I can do to complete it?

Thanks,
Janice

Maikeru 05-15-2004 01:01 AM

Is there anyway to make this appear when you go to http://www.lvlzero.uni.cc?

Also could I make the news go in decending order?

Mobo 05-15-2004 06:54 AM

Never mind on the PM thing. It's already show at the top of the page :o

My users have found a problem though. If you click on the "go to last post" icon, it brings up a Page can not be displayed error. It's been verified on diferent computers and networks.

Any thoughts?

ImportPassion 05-15-2004 12:44 PM

I am a little concerned about at least 2 of the queries.

In the GET NEWS query I see this...
PHP Code:

WHERE forumid IN ($vbindex[newsfid])
AND 
deletionlog.primaryid IS NULL
AND forumid NOT IN (".implode(',', $limitfids)."

now, if you are already doing and IN clause, there is no need to do a NOT IN clause. It's more overhead for absolutely nothing.

Now in the GET LATEST THREADS there is a similar issue..
PHP Code:

WHERE open '1'
AND thread.open <> 10
AND thread.forumid NOT IN (".iif(is_numeric($vbindex['newsfid']), "$vbindex[newsfid],").implode(',', $limitfids)."

Here we see open=1 and open <> 10. You don't use both. You are already looking for 1, so <>10 will again be useless overhead.

For this NOT IN, I had more NOT IN id's than I would have IN id's, so I changed this to an IN statement and hardcoded my id's. I think only 5 instead of 30 or so I want to exclude. I think this could be made an option.

One last thing, I added indexes on dateline for post and thread and it made a significant increase in speed for my db with 100,000+ threads and over 1.5million posts.

Went from the vbIndex loading in 30s to about 3s with all these changes.

Your milage may vary, but I think it's worth a shot.

Big Daddy 05-15-2004 03:55 PM

When I try to enable news on my vbindex, it gives me this error:

-------------------------
Database error in vBulletin 3.0.1:

Invalid SQL:
## GET NEWS ##
SELECT thread.*,thread.iconid AS threadiconid, threadpost.pagetext AS pagetext,
threadpost.attach AS attachcount,


IF(user.displaygroupid = 0, user.usergroupid, user.displaygroupid) AS displaygroupid
FROM thread AS thread
LEFT JOIN user AS user ON (thread.postuserid = user.userid)
LEFT JOIN post AS threadpost ON (thread.firstpostid = threadpost.postid)
LEFT JOIN deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')


WHERE forumid IN (http://www.my domain.com/forums/forumdisplay.php?t=15)
AND deletionlog.primaryid IS NULL
AND forumid NOT IN (0)
AND thread.open <> 10
AND thread.visible = '1'


ORDER BY thread.dateline DESC
LIMIT 4
mysql error: You have an error in your SQL syntax near '://www.my domain.com/forums/forumdisplay.php?t=15)
AND deletionlog.primar' at line 14

mysql error number: 1064
--------------------------------------------------------

What do I do??????
Thanks in advance for your help!!!


All times are GMT. The time now is 05:54 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.03399 seconds
  • Memory Usage 1,754KB
  • 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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