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)
-   -   vBindex v2.1 (https://vborg.vbsupport.ru/showthread.php?t=41916)

Sean123 08-22-2002 02:57 PM

Yes . .I would like it to show for anyone .. even guest .. but how did you put them there .. when I downloaded and added this hack alll it has on the left menu is UserCP, Buddies, PM,etc .. I would like to replace or make another menu with links so I can put links to pages just like yours .. so I can put stuff like a features page, interviews page,etc . .

NTLDR 08-22-2002 03:01 PM

Just edit your home_left template in the Admin CP, here you can add links to the side menu.

Sean123 08-22-2002 03:03 PM

ok .. ill try that ..

Sean123 08-22-2002 03:06 PM

ok . .before I do that .. how do I center the banner for the vBindex. I did the center banner and buttons hack for the forum but it wont center for the vbindex .. do you know how I could achieve this . .thanks

edit// I figured it out . .thanks anyways

Kohhal 08-22-2002 05:27 PM

I'm having a problem with template.php. I get the following error in my control panel when I click on Templates/Modify :

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/canoepol/public_html/forum/admin/template.php on line 359

Parse error: parse error, unexpected T_STRING, expecting ']' in /home/canoepol/public_html/forum/admin/template.php on line 365

Help would be greatly appreciated as when I try to revert to the original template.php I don't get any errors but the cpanel doesn't show me any templates :( (Note: I restrore to the original 2.2.2 vb template.php, not the one that I should have backed up before starting this hack :mad: although it was unhacked?)

Please help, my forums still work fine but I have no access to any of my templates anymore :confused:

NTLDR 08-22-2002 05:36 PM

Quote:

Originally posted by TheMasterG
(Note: I restrore to the original 2.2.2 vb template.php, not the one that I should have backed up before starting this hack :mad: although it was unhacked?)
I expect that you have PHP 4.2.x installed on your server, which means that you need the template.php from 2.2.6, as previous versions don't work correctly with PHP 4.2.x

drives fast 08-23-2002 02:11 AM

I know you said you would be adding this in the next version but it is the only thing holding me up on launching it.....

I would like to add in a $maxchars to the display of the news posts but still can't figure it out myself

I have looked at vbportal code but it is a bit complex so I decided to look in search.php since it will display only a set amount of characters and the code looks like....oops.....I think it is not cool to post original vb code huh

anyway....there is a section that starts: "// get first 100 chars of page text"

does anyone know how to integrate that feature into the news portion of vbindex?

any help would be appreciated

Kohhal 08-23-2002 07:48 AM

Quote:

Originally posted by NTLDR


I expect that you have PHP 4.2.x installed on your server, which means that you need the template.php from 2.2.6, as previous versions don't work correctly with PHP 4.2.x

Thanks, I remember doing that before actually, phew :) I've got my templates back but adding "$only[\'home\'] = \'vBindex\';" still causes the above errors. What does this line do and do I really need it? It doesn't seem to like the "///s" in the code for some reason. Also, is the line " $only['showgroup'] = 'Show Groups';" supposed to be deleted and why?

TIA, G :D

Edit: Ok, I see why \'home\' is needed but it still gives me those above errors? Should the 'showgroup' line be deleted?

NTLDR 08-23-2002 10:26 AM

Quote:

Originally posted by TheMasterG
Edit: Ok, I see why \'home\' is needed but it still gives me those above errors? Should the 'showgroup' line be deleted?
The showgroup line should stay, its part of the origional vB code. All those lines do is group the templates based on the first part of there name, home is not needed, it just makes it easier and tidier if they are grouped.

NTLDR 08-23-2002 10:27 AM

Quote:

Originally posted by drives fast
anyway....there is a section that starts: "// get first 100 chars of page text"
I'll try and take a look at that as soon as I get a proper chance.


All times are GMT. The time now is 03:52 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.02565 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)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