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

Bison 01-16-2003 03:11 AM

No ... the forum didn't have any posts in it. I'm on my company intranet, so I can't give you a link. I can show you a screenshot, if that will help.

Tigga 01-16-2003 03:25 AM

Hmm... If the newthread.php file was edited correctly & uploaded, and the News Forum ID is set correctly, then there's no reason the news part shouldn't work. Do you have access to phpMyAdmin? If so, you could log in with that and check your 'post' table. First make sure that the last column there is called 'isnews', and then find a post that was made in that forum and make sure that it has a 'Y' in that field. If the post doesn't have a 'Y' in that field, try changing it there and see what the result is. Also, what do you have set for your News Forum ID and News Posts Maximum?

Bison 01-16-2003 03:39 AM

My new forumid is "54" ... and the news post "max" is set to zero (unlimited).

The Polls work fine (I Had polls already posted there).

Tigga 01-16-2003 03:43 AM

Did you check to see if the isnews column has a 'Y'?

Bison 01-16-2003 03:44 AM

Here's a snapshot of my admincp settings:

Bison 01-16-2003 03:47 AM

I checked the post table but I don't have any posts in that forum. I set it so that the forum cannot be seen on the main forum index page but can accept new posts from the vbindex page.

Did I do this right?

Tigga 01-16-2003 04:03 AM

Ok, this is strange... I checked my test server and set the News Limit to 0, and it resulted with no news being displayed. I had changed a couple of things on that one though, so I uploaded a fresh version and setting it to 0 worked fine... Try setting the news limit to something other than 0 and see if that changes anything.

Bison 01-16-2003 04:10 AM

Nothing ... I even changed every post column in the database under isnews to "Y" and still nothing!

Bison 01-16-2003 04:14 AM

Is it possible that there's an misspelled variable in the v3.1 template code?

Here's a dump of the index_newsbits template:

Code:

<table cellpadding="0" cellspacing="0" border="0" bgcolor="#0A293E"  width="100%"><tr><td>

<table cellpadding="4" cellspacing="1" border="0"  width="100%">
<tr id="cat"><td bgcolor="#1D6AA0">$newsicon  <normalfont color="#000000"><b>
$news[title]</b></normalfont></td></tr>

<tr><td bgcolor="#1C5780">

<table width="100%"><tr><td align="left"><smallfont>- by <a href="$bburl/member.php?s=$session[sessionhash]&action=getinfo&userid=$news[postuserid]">$news[postusername]</a> on $dateposted</smallfont></td>$newsrating</tr></table></td></tr>

<tr><td bgcolor="#13486D">$news[avatar]<normalfont>$news[message]<br>$signature</normalfont></td></tr>

<tr bgcolor="#1C5780"><td>
<table width="100%" cellpadding="0" cellspacing="0"><td align="left"><smallfont>$adminopts &nbsp;</smallfont></td><td align="right"><nobr><smallfont>&nbsp; $news[views] Views, $newscomments</smallfont></nobr></td>$sendtofriend $printable</tr></table></td></tr></table></td></tr></table><p>

I personally think it's a variable that's not getting called from your template changes in your last version upgrade.

Tigga 01-16-2003 04:36 AM

Are you sure you have your News Forum ID set correctly? 54 does seem a little high unless that is the 54th forum you have created.

The entire middle column where the news should be is blank, right? With it working fine on my site and many others, it wouldn't be something such as a variable mispelled. Even if something was mispelled in that template, it would result with the tables around the news post showing up, just not the message.

If the News Forum ID is correct, here is something you can try...

First set your News Limit to something other than 0.

Then open your myvbindex.php file and look for this line:
PHP Code:

// News 
if ($newsforum!='') {
if (
$newslimit!=0) {
  
$newsmax "LIMIT $newslimit";


Remove that part, then look for this line right below it:
PHP Code:

ORDER BY thread.threadid DESC $newsmax 

Change that to:
PHP Code:

ORDER BY thread.threadid DESC LIMIT $newslimit 

Then look for:
PHP Code:

$DB_site->free_result($getnews);
unset(
$news);


Remove the } at the end of that line and upload the file.

Doing that will remove the parts that make sure the News Forum ID and News Limit aren't set to 0. It should still work fine with that, but it's always possible that there's something with the version of PHP you're running that would cause it to behave differently, so it's worth a try.


All times are GMT. The time now is 02:21 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.02553 seconds
  • Memory Usage 1,743KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_php_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