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)

cyklonen 01-20-2003 12:57 AM

Hiya :)
First i wanna say, im totally an NOOB :) and installed this hack, think it is great, but i have 2 quessys

1. the weather.....u see i live in denmark, is there anyway to change the "default" weather setting, seems no sence to show how NY has shiny weather when it is raining here *lol*

2. about the "costom boxes" is there anyway i can choose etc. box 1 to show ONLY for administrator ???

i dont know much about php or coding here, as i said i'm really a noob, but learn fast :P

My regards

PKRWUD 01-20-2003 01:02 AM

Quote:

Originally posted by jeffj
your problem is the line below //Enter....

it should be
PHP Code:

chdir('/home/pkrwud/public_html/vbulletin'); 

it looks like you just typed over what he has in the original distribution of the hack. It's probably a good idea for you to pick up a PHP manual to get a feeling for the syntax of the langauge. It always comes in handy because that way you can understand why the developer did things in a certain way. I often make mods to hacks to tailor them to my own forum's specific needs.

I hope this helps you out... this is the best hack I've ever installed.

You helped me big time! Thank you!!!

Since we're on a roll, why do you think I'm getting this error when I copy and paste the part for weather (see a couple posts back):

Parse error: parse error in /home/pkrwud/public_html/vbulletin/admin/functions.php on line 812

Fatal error: Call to undefined function: vbsetcookie() in /home/pkrwud/public_html/vbulletin/admin/sessions.php on line 205


Thanks again!

Tigga 01-20-2003 01:15 AM

Jeffj - Thanks for the compliment and for helping PKRWUD. :)

cyklonen - Yes, there is a way to change the default city for the weather hack. If you'll look in the readme file, it's explained right under the section that explains the Admin CP options.
As for making one of the custom boxes visible only to admins:

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

if ($showcustom2) {
  
$getbgrow=getrowcolor();
  eval(
"\$custom2 .= \"".gettemplate('index_custom2')."\";");


Change that to:
PHP Code:

      if ($bbuserinfo['usergroupid']==6) {
  
$getbgrow=getrowcolor();
  eval(
"\$custom2 .= \"".gettemplate('index_custom2')."\";");



Tigga 01-20-2003 01:16 AM

PKRWUD - What version of vBulletin are you running?

cyklonen 01-20-2003 01:43 AM

Great :)

hehe the first place to look, lol why i forgot that :D
well u are the man, and the templates for admin only works aswell :)

THX bro, i'm glad for the QUICK responce

Keep up the good work ;P

jeffj 01-20-2003 01:50 AM

for anyone having problem getting the current temperature to display properly when installing this hack on 2.2.5 I found the problem.

the myvbindex.php has this line:

PHP Code:

if (substr($getbit,7,5) == "Temp"

and there should be a space after p in temp as follows:

PHP Code:

if (substr($getbit,7,5) == "Temp "

change this and the temp will display fine.

- jeff

PKRWUD 01-20-2003 02:23 AM

Quote:

Originally posted by PlurPlanet
PKRWUD - What version of vBulletin are you running?
2.2.9

Tigga 01-20-2003 02:49 AM

That's odd... I'm running 2.2.9 on both my personal site, and another server I use just to test things and have never had an error like that. If you would like to send me a copy of your modified admin/functions.php file I'll be glad to take a look and see if I can find the problem. If you'd like to send it, use the address plurplanet@hotmail.com. I'm in the process of moving servers right now, so my regular email address isn't working at the moment. ;)

3dfly 01-20-2003 05:06 PM

Quote:

Originally posted by PlurPlanet
3dfly - There are quite a few changes from versions 2.0 - 3.1. One of the biggest is that most all the templates were changed so that it would mesh better with vBulletin. If you look at the screen shots in the first post you can see that there's not much of a difference... If you would like to keep the templates the way they are you can still upgrade, it just makes it a little harder since you will have to edit a few of the templates to apply any changes. If you would like to change to the new template style then upgrading should be a little easier. Either way, let me know if you wish to keep the old style or switch to the new one and I will tell you what you need to do to upgrade.
PlurPlanet thank for the answer !

I would like to keep the templates.

But if for you will be easier to write description about upgrade with new style it will be excellent.

cbwadmin 01-20-2003 09:05 PM

installed and works great!

A little tricky to figure out how to edit everything.

Only error left is that it wont show the avatars on the main page.


www.combatwars.com


All times are GMT. The time now is 03:19 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.02514 seconds
  • Memory Usage 1,754KB
  • 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
  • (5)bbcode_php_printable
  • (3)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