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)

XtReMaTriX 01-28-2003 02:53 AM

For some reason my "Latest Forum Topics" does not work... when i enter in 0 for the value the header shows up. and if it. if i enter in 10 then i still get just the header...

what should i do to fix this???

DarkDraco07 01-28-2003 03:21 AM

i havnt been up to date on this thread. has that mini hack addon been made yet?

Tigga 01-28-2003 05:13 AM

I apologize for not being around to help these last few days. My normal job is a club promoter and this weekend was our 2 year anniversary event, and one of the biggest we've done yet. Things were extremely busy around here so I haven't had much time to check vb.org... Plus I kinda had to take a day to relax and recover from the weekend. Now I'll see if I can help with some of the questions. :)


Ranger - Open your myvbindex.php file and look for:
PHP Code:

$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user'); 

Replace that with:
PHP Code:

$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user WHERE usergroupid!=3'); 


Papa - Is it looking for the member.php file in the wrong directory and resulting in a blank page when you first try to go to the password protected page, or is it just redirecting you to the member.php file after you log in from one of those pages?


Matrix - Was the latest threads part working before and suddenly stopped, or has it not ever worked? Have you modified your myvbindex file at all? If so, try uploading a fresh version and name it something other than what the current file is called and see if it works on that one. You could also try checking your index_threadbit template and make sure it's not blank, and your index template to make sure the $threadbits variable is in there right below the header part.


DarkDraco - I'm assuming you mean a hack to keep the index page open if the forums are closed. If so, sorry but I haven't had time to work on that yet.

XtReMaTriX 01-28-2003 10:58 PM

I can only remember my latest threads working the very first time i loaded it. after that it had never worked... and it stopped working before i tried 2 modify the file. i loaded a fresh copy onto my server and when i view it still nothing for it. and for my index_threadbit well here is the code in it...

Code:

<tr><td bgcolor="$getbgrow">$thread[icon]<normalfont><a href="$bburl/showthread.php?s=$session[sessionhash]&threadid=$thread[threadid]"><b>$title</b></a></normalfont><br>
<smallfont color="{timecolor}">$thread[date]</smallfont><br>
<smallfont> by <a href="$bburl/member.php?s=$session[sessionhash]&action=getinfo&userid=$thread[postuserid]">$thread[postusername]</a><br>
Replies: $thread[replycount] | Views: $thread[views]</smallfont></td></tr>


Mono 01-30-2003 08:07 PM

Ok lets say in my custom boxes I decide to make them into a nav bar how would I go about making a new page like a staff page where the things on the left and right are the same but where news is is the new tables and stuff. If it's been posted already Im sorry I went through 16 pages looking for it.

XtReMaTriX 01-31-2003 06:40 AM

Mono - I did something similar to what you are asking with the WEBTEMPLATES hack
you just have to put in some extra code like
PHP Code:

$getbgrow=getrowcolor();
  eval(
"\$custom1 .= \"".gettemplate('index_custom1')."\";"); 

The thing that i could get to show without having it mess up was the "most users ever online" but i just removed that for the new pages...

Here is a live demo of myvbindex: XtReMoDs
WEBTEMPLATES: Template

If you PM me then i can tell you more about what code to add...

Tigga 01-31-2003 12:47 PM

Mono - Something like that could be done fairly easily. I know I already explained how to do it somewhere in this thread, but I couldn't find it by searching, so I'll just explain it again. :)

If you'll open your myvbindex.php file and look for this line:

// News

Right above that you'll want to place some coding like this:

PHP Code:

if ($action=="newpage") {
eval(
"\$newsbits = \"".gettemplate('index_newpage')."\";");
} else { 

Then you'll want to look for this line:
PHP Code:

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


Right below that you will want to add another }

Then you'll want to create a template called index_newpage (of course you can call it whatever you'd like, just be sure to change the name in the code above).

Then to link to that page, you would use the url http://yoursite.com/myvbindex.php?s=$session[sessionhash]&action=newpage
And again the "newpage" part after the action can be changed to whatever you'd like, just be sure to change that in your coding as well.

attroll 01-31-2003 11:16 PM

Awesome hack. I love it but I have two problems.

1. When I go to install the weather_install.php. I get a "The page cannot be displayed". This page is in my admin directory and I don't know why I get this error when trying to execute it.

2. When my calendar shows it has the current time and date but the date that is highlited on the calendar is the wrong one. What can I do to fix this.

My site that I installed this mod on is a test site for my main site. The hack can be viewed on http://lifestrails.com

Colon33 02-01-2003 09:39 PM

I keep getting an ERROR here when i post a poll.

Code:

Fatal error: Call to undefined function: get_bbarraycookie() in /home/moguslan/public_html/myvbindex.php on line 251

Can anyone help me out?

Mono 02-01-2003 11:05 PM

Quote:

Originally posted by PlurPlanet
Mono - Something like that could be done fairly easily. I know I already explained how to do it somewhere in this thread, but I couldn't find it by searching, so I'll just explain it again. :)

If you'll open your myvbindex.php file and look for this line:

// News

Right above that you'll want to place some coding like this:

PHP Code:

if ($action=="newpage") {
eval(
"\$newsbits = \"".gettemplate('index_newpage')."\";");
} else { 

Then you'll want to look for this line:
PHP Code:

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


Right below that you will want to add another }

Then you'll want to create a template called index_newpage (of course you can call it whatever you'd like, just be sure to change the name in the code above).

Then to link to that page, you would use the url http://yoursite.com/myvbindex.php?s=$session[sessionhash]&action=newpage
And again the "newpage" part after the action can be changed to whatever you'd like, just be sure to change that in your coding as well.

Thank you oh so much

and before I forget ... *clicks install*


All times are GMT. The time now is 08:14 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.02793 seconds
  • Memory Usage 1,768KB
  • 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
  • (7)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