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-13-2003 06:57 AM

Ok, this should be a quick/easy way to fix that. Just open your myvbindex.php file and look for:

require('./global.php');

Right below that add:

if ($bbuserinfo['userid']==0) {
$bbuserinfo[bbshowonline]=1;
$bbuserinfo[bbshowonline]=1;
$bbuserinfo[bbshowstats]=1;
$bbuserinfo[bbshowpoll]=1;
$bbuserinfo[bbshowsearch]=1;
$bbuserinfo[bbshowcustom1]=1;
$bbuserinfo[bbshowcustom2]=1;
}

If for some reason that doesn't work for you let me know.

Oh, and I'm not sure I follow you about the buttons having a form on them... There is a <form> tag started earlier in that template and the new options use that same form. If you were trying to move them to another template or something like that you would just use the same <form> tag as near the top of that file.

papa 01-13-2003 07:07 AM

AWESOME!!!
I will get the form code added and show you my beta page.

papa 01-13-2003 07:21 AM

Here is the start
http://www.digital-tutors.com/digita...ndex2_beta.php

Is there a simple recipe to add custom boxes to the options? Can I just search for the custom1 and duplicate it to make custom 3, 4 and so on?

Thanks so much. My page is really getting together.

Papa

Tigga 01-13-2003 07:38 AM

Looks very nice so far. :)

I looked over the file edits to be sure and searching for custom1 and duplicating for each additional option should work just fine.

By the way, I was planning on making a mini-hack that would move the latest threads part to the center (similar to yours) and would add a little additional info like the forum, last poster, time, and etc. I'll probably post it tomorrow or the next day so be sure to check back here if that's something you'd like. ;)

jjj0923 01-13-2003 10:26 AM

I'm not sure if anyone else has experienced this but this morning out of the clear blue I started getting a mysql error on the following code in myvbindex.php. I've been using myvbindex for about 2 weeks.
----------------------------------------------
SELECT thread.threadid,thread.title,thread.replycount,thr ead.postusername,thread.postuserid,thread.dateline ,thread.views,thread.iconid,thread.votenum,thread. votetotal,post.postid,post.pagetext,post.allowsmil ie,post.showsignature,user.signature FROM thread LEFT JOIN post USING (threadid) LEFT JOIN user ON (user.userid=post.userid)
WHERE thread.forumid=81 AND isnews='Y'
GROUP BY thread.threadid ORDER BY thread.threadid DESC LIMIT 1


so I pasted the query into mysqladmin and ran it and got the following error...

Quote:

Got error 28 from table handler
When I removed the GROUP BY clause it ran fine...

I checked the integrity of the data in the thread tables and post table and everything checks out just fine.

Like I said - this just started happening after two weeks of running fine.

ideas?

Tigga 01-13-2003 10:30 AM

Can you check your myvbindex.php file and look for this line:

// Latest Forum Topics

Copy the next 5-6 lines after that and paste them here for me.

Also what version of myvbindex do you have?

ranger2kxlt 01-13-2003 06:56 PM

plurplanet, got something for ya

we want another page, but want the menus on left and right to be the same, just don't want the news in the middle we want a different template there, is there an easy way to make this
??

Tigga 01-13-2003 10:36 PM

Ranger - Something like this should be pretty simple and should work...

Open your myvbindex.php file and look for:

// News
if ($newsforum!='') {


Right above that add:

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


Then look for:

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

And add another } right below that.


You can change "newpage" in the first part ($action=="newpage") to whatever you want, and also of course name the template to whatever you'd like. You would then add the content you'd like in your new template, and then to display that template instead of the news, you would link to http://yoursite.com/myvbindex.php?s=$session[sessionhash]&action=newpage

Tony DiMera 01-15-2003 01:44 PM

For the weather part, is there anyway to set the city you want to be the default city for guests instead of New York? Say I wanted it to be Midhurst for the default? Also I have another question. I am always getting a white box with an X in it for the icon. This is the URL of the icon, http://www.mysite.com/forums/images/weather/.gif As you can see it is always trying to find an image icon that is .gif no matter what the weather is, and I don't have a .gif image icon.

Tigga 01-15-2003 01:58 PM

Tony - If you look in the readme file, right under the section that explains the Admin CP options, there are instructions on how to change the default city.
I'm not quite sure why the image wouldn't be working... Did you upload the weather icons to your forum/images folder? Also, does the rest of the info display properly?


All times are GMT. The time now is 06:03 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.01957 seconds
  • Memory Usage 1,745KB
  • 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_quote_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