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 05-20-2003 02:25 PM

This is to answer Rgsamtani's question (posted in another thread) about having different styles for each different page.

You would just want to open your myvbindex.php file and look for:
PHP Code:

require('./global.php'); 

Right above that you would want to add something like this:
PHP Code:

if ($action=='page1') {
  
$styleid 'XX';
} elseif (
$action=='page2') {
  
$styleid 'YY';
} else {
  
$styleid "";


Then of course you need to change XX and YY in the code above with the style id of the style you wish that page to appear in. You would also want to make sure that each part in the action's (page1, page2, etc) were the same for your news and styles. ;)

Goat Boy 05-20-2003 08:33 PM

On the forums index page it shows the highlights, on myvbindex it does not. All I have done was to enable the moderators to see invisable users, could this have caused that?

GB

Tigga 05-20-2003 09:10 PM

Was this the hack you used to allow mods to see invisible users? I didn't see anything in the code for that hack that could affect anything... Did you double check that your moderator usergroup still has an id of 5?

Intex 05-21-2003 10:06 AM

Keep up the superb work Tigga. I'm just about to go for the 3.1 > 3.2.1 upgrade :).

jazzcorner 05-21-2003 05:36 PM

I'm getting this error on an install of myVBindex. Just to make sure I didnt do anything stupid I reinstalled both twice and still am getting it.

Database error in vBulletin 2.3.0:

Invalid SQL: UPDATE template SET template='1 1053539119' WHERE title=maxloggedin
mysql error: Unknown column 'maxloggedin' in 'where clause'

mysql error number: 1054

Yet I know there is a maxloggedin template as I had to add it manually.

jazzcorner 05-21-2003 05:47 PM

I commented out the offending line
$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title=maxloggedin");

and it works. could this be a bug in 3.2.1 myVbindex?

Tigga 05-21-2003 05:55 PM

Yep, I'm not sure how that got changed, but it should read:
WHERE title='maxloggedin'");

That's the code that will update the maximum number of online users if a new record is set. I'm not sure how it got changed though as it was correct in v3.2 and prior... Either way if you'll just add the ' marks around maxlogged in it should fix the problem, and I've also updated the zip file in the first post. :)

jazzcorner 05-21-2003 05:59 PM

Thanks, made that change and it works fine. :banana:

Intex 05-21-2003 09:06 PM

Tigga - this might be a bug (or is on my at least). I upgraded from 3.1 to 3.2.1 today and seemed to work fine. However I notice that with news posts you can create them by using 'New Thread' and even 'Post Reply' to one that's been created, but you can't edit the thread. You just get the usual vB response:

Quote:

No post specified. If you followed a valid link, please notify the webmaster
When hovering over the 'Post Reply' link you get the following:

http://myserver/forum/newreply.php?s=&action=newreply&threadid=2427


which is what I expect, however the problem with 'Edit' is because the links aren't complete. This is what I get if I hover over the 'Edit' link:

http://mysever/forum/editpost.php?s=&action=editpost&postid=


Its completely missing the actual post id. Any ideas?

Tigga 05-21-2003 09:18 PM

Wow, you're just finding all kinds of little bugs Intex. :p
Apparently I forgot to remove a small piece of code in the news query when I was trying to figure out a way to make it work without having to edit the newthread.php file and adding a column to the post table. It doesn't quite make sense why it would affect it, but I guess it does. Anyways, to fix it just open your myvbindex.php file and look for:
MIN(postid)

Replace that with:
postid

That should fix the problem. I've got to run somewhere for a couple of hours but I'll update the zip file right after I get back. Thanks for pointing that out and hopefully that'll be the last bug you find. :)


All times are GMT. The time now is 01: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.03663 seconds
  • Memory Usage 1,747KB
  • 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_php_printable
  • (1)bbcode_quote_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