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)

Tigga 01-16-2003 04:37 AM

By the way, you are running v3.1, correct? Did you start out with the version you're using or did you upgrade from an earlier version?

Bison 01-16-2003 04:39 AM

Installed V3.1 ... I didn't upgrade.

Tha tfix you added didn't work either ... i'm using php 4.30

Bison 01-16-2003 04:53 AM

I even deleted the forum (54) and created another one (55) and that didn't work either ....

Tigga 01-16-2003 05:05 AM

This is weird... I really don't see why the news isn't working when everything else works fine... If you want, you can try replacing the part for the news with the query below:
PHP Code:

$getnews $DB_site->query("SELECT thread.threadid,thread.title,thread.replycount,thread.postusername,thread.postuserid,thread.dateline,thread.views,thread.iconid,thread.votenum,thread.votetotal,post.postid,post.pagetext FROM thread LEFT JOIN post ON (thread.threadid=post.threadid) WHERE thread.forumid=55 AND isnews='Y' GROUP BY thread.threadid ORDER BY thread.threadid DESC");
while (
$news=$DB_site->fetch_array($getnews)) { 

That strips out the parts for the avatar and a couple of other things. It also removes the variables and the forum id (55) is just hard coded in there.

Bison 01-16-2003 05:26 AM

That didn't do it either ... i'm tellin ya that there's somethin with the variable names that not gettin posted.

I'd like to copy your templates you have working (for the news) into mine, to see if thats the issue here.

Another thing ... does the myvbindex.php file have to keep it's name (Can I rename the file?)?

I renamed it to index.php inside the root directory above my forum folder.

This is the part in the "index template" that's susposed to post the contents of the news variable into the index page ... from the MyVbIndex templates that were created during the install:

Code:

</td><td valign="top">$newsbits</td>

<td valign="top" width="170">

Where in the "myvbindex.php" file, where "$newsbit" being called ... from this template?

Tigga 01-16-2003 05:47 AM

The only 2 that should really matter are the index and index_newsbits since it would at least show something besides a blank page if all the settings and these 2 templates are correct I've attached them in a text file here (I would post them, but it would replace the color variables with vb.org's).

And yes, you can rename the file to whatever you would like.

Tigga 01-16-2003 05:51 AM

The $newsbit variable is what calls the index_newsbits template. It's on line 443 of the myvbindex.php file.

eval("\$newsbits .= \"".gettemplate('index_newsbits')."\";");

Bison 01-16-2003 06:16 AM

I noticed that the $index_footer isn't being called either!

Yikes!

Tigga 01-16-2003 06:25 AM

Um... Did you check that your index template had the right content? What other major hacks do you have installed? I just saw that you have 96 hacks installed, so it's possible that another hack could be affecting something.

Bison 01-16-2003 06:47 AM

I don't have that many installed from my profile. That's how many i've installed to test in the ime i've been a registered member.

This is baffling me but I know now what could be the problem. It seems that none of the templates from the install are being read.

I changed from your index_footer template ... to the regular footer template, and it worked. So in theory, I think that the templates that were installed are not being recognized as default templates. They might have to be redesignated as custom templates instead, in order for them to work.

Is there a way to reassign the templates to custom ... instead of default?


All times are GMT. The time now is 09: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.02789 seconds
  • Memory Usage 1,738KB
  • 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
  • (1)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