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-18-2003 11:57 PM

Supersimon - try chdir('/home/simon14/public_html/rap');

If that doesn't work, search this thread for info.php and that will tell you how to find out what the path should be.

supersimon 01-19-2003 01:24 PM

Quote:

Originally posted by 350Chevy
alkatraz,

I would imagine you would just change this

Code:

// Custom Boxes
$custom1='';
$custom2='';
if ($showcustom1) {
  $getbgrow=getrowcolor();
  eval("\$custom1 .= \"".gettemplate('index_custom1')."\";");
}
if ($showcustom2) {
  $getbgrow=getrowcolor();
  eval("\$custom2 .= \"".gettemplate('index_custom2')."\";");
}

to something like this...

Code:

// Custom Boxes
$custom1='';
$custom2='';
$custom3='';
$custom4='';
$custom5='';
if ($showcustom1) {
  $getbgrow=getrowcolor();
  eval("\$custom1 .= \"".gettemplate('index_custom1')."\";");
}
if ($showcustom2) {
  $getbgrow=getrowcolor();
  eval("\$custom2 .= \"".gettemplate('index_custom2')."\";");
}
if ($showcustom3) {
  $getbgrow=getrowcolor();
  eval("\$custom3 .= \"".gettemplate('index_custom3')."\";");
}
if ($showcustom4) {
  $getbgrow=getrowcolor();
  eval("\$custom4 .= \"".gettemplate('index_custom4')."\";");
}
if ($showcustom5) {
  $getbgrow=getrowcolor();
  eval("\$custom5 .= \"".gettemplate('index_custom5')."\";");
}

And create templates for each.

Then edit the 'index' template located under mYvBindex Templates and add $custom3, $custom4, $custom5 where ever you want the templates to be displayed.


Did that exact thing and the box doesnt show up ? i made the template .. ??

PKRWUD 01-19-2003 02:53 PM

Greetings,
I thought I followed the directions, but I seem to have screwed up something. After making all the changes, and uploading the files, I tried to install, and was greeted with the following message:

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


This same message came up when attempting to visit the forums as well, so, I just moved the vbulletin folder to a safe location, and replaced it with the back-up, and everything is as it was, but I'd really like to install this.

Do you have any idea what I did wrong?

TIA!

Take care,
~Chris

Tigga 01-19-2003 03:43 PM

supersimon - There was a small mistake in 350chevy's instructions for that. If you'll refer to this post it will tell you how to fix that. :)

PKRWUD - It looks like you didn't edit your admin/functions.php file correctly. Make sure that file was edited according to the instructions and it should work fine.

PKRWUD 01-19-2003 04:10 PM

Thanks for the quick reply!

The only editing I did to the admin/functions.php file was to copy and paste the "weather functions" code above the "start doshutdown" code, as instructed. I just tried it again, and got the exact same error message.

Confused in California

3dfly 01-19-2003 06:17 PM

how update from v2.0 to v3.1 ?

PKRWUD 01-19-2003 06:30 PM

Quote:

Originally posted by PlurPlanet
PKRWUD - It looks like you didn't edit your admin/functions.php file correctly. Make sure that file was edited according to the instructions and it should work fine.
*UPDATE*
I tried one more time, and had the same errors, so I just replaced the admin/funtion.php file with one from my back-up. and went forward with the install, minus the weather. Everything went smoothly, until I entered myvbindex.php after my domain to access the index. I was greeted with a parse error telling me I didn't enter my path correctly at line 13 of the myvbindex.php file. I tried every combo I could think of, but nothing corrected it.

I'm obviously a rookie at this, and would appreciate if you could specifically tell me what should be entered on line 13. Here is the way it is right now (with the lines from before and after):

// Enter The Full Path To Your Forums Here
http://www.ricehatersclub.com/vbulletin/index.php?s=
// No Further Editing Necessary


Thanks

Tigga 01-19-2003 11:50 PM

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.

PKRWUD - What version of vBulletin are you running? I don't see why you would get an error if you edited the admin/functions.php file correctly, but it's possible it could be something to do with the version of vBulletin you're running. As for the path, it should be the path to your forum folder, not the url. Try this instead - /home/pkrwud/public_html/vbulletin ;)

PKRWUD 01-20-2003 12:42 AM

I just installed 2.2.9.

Here is the first 14 lines of my myvbindex.php file:

<?php
error_reporting(7);

// -------------------------
// mYvBindex v3.1 release by PlurPlanet (Brian Gunter)
// -------------------------

$templatesused = 'index,index_threadbit,index_newsbits,index_news_a dminopts,index_news_comments,i ndex_news_commentnull,index_news_readmore,index_ne wsbits_rating,index_newsbits_s ignature,index_newsbits_avatar,index_newsbits_send tofriend,index_newsbits_printa ble,index_header,index_footer,headinclude,forumhom e_pmloggedin,index_welcometext ,index_logincode,index_buddy,index_buddylist,index _buddypmlink,forumhome_loggedi nuser,index_online,index_search,index_welcometext_ avatar,index_calendar,index_ca lendar_todaysevents,index_weather,index_custom1,in dex_custom2,index_pollresult,i ndex_polloption_multiple,index_polloption,index_po lloptions,index_pollresults_vo ted,index_pollresults_closed,index_pollreview,inde x_pollresults,index_polldiscus s,index_polledit,showthread_ratingdisplay,index_st ats,index_birthdaybits';
$loadmaxusers=1;
$loadbirthdays=1;

// Enter The Full Path To Your Forums Here
/home/pkrwud/public_html/vbulletin
// No Further Editing Necessary



And here's the error I get:

Parse error: parse error in /home/pkrwud/public_html/myvbindex.php on line 13


I want to resolve this before I try to figure out what's wrong with the weather.

Thanks again

jeffj 01-20-2003 12:52 AM

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.


All times are GMT. The time now is 12:12 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.02420 seconds
  • Memory Usage 1,758KB
  • 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
  • (1)bbcode_php_printable
  • (2)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