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)

SatMan2028 01-26-2003 07:20 PM

I don't want the shout feature on my vbindex! The code already had this included, so I deleted it and now its fine!

Huron 01-26-2003 08:17 PM

Hey NTLDR-
This is the best hack I have installed and I want to thank you for your hard work and time you put forth not only in putting everything together (coding, instructions, revisions, etc.) but also providing such great support (90 pages of it even) for your hack for those who have problems.

I had no issues whatsoever during installation and it is running great and loads just as fast as any of the other pages on my site. Out of all the hacks on my board my members like this one the best...Thanks again!

/me installs

NTLDR 01-26-2003 08:57 PM

Thanks Huron, its good to know people are still installing the hack :)

Rufus69 01-28-2003 12:33 AM

hmmm I don't real like reading ALL of these posts...

so here is my question...

I'm trying to make it so that I can have a news forum AND a "Article" forum and have the article thing just like the news thing but on the main page too? is that possible?

(if you don't get what I mean... I just want 2 news things at the main page but one pointing to a different forum)

todd.o.callen 01-30-2003 05:30 PM

I have been really playing around with your layout to make it work for me, and, well, I torched the left column. I had what I wanted until I logged out and saw that I had moved some of the "logged in" content into templates that are displayed to both users and guests.

OOOPS. I really don't want to revert back to your original for the left family of templates, so maybe you can help me muddle through?

Left column:
Quote:

<table cellpadding="0" cellspacing="0" border="0" width="100%" bordercolor="990000" align="center">
<tr>
<td>
$login
$logout
</td>
</tr>
<tr>
<td>$xxxlinks</td>
</tr>
</table>

$login has the stuff you should see if you need to login.
$logout has the stuff you should see if you are logged in.
$xxxlinks (not porn, just easy to spot) is a custom template that has some jump menus that should be displayed to all users.

Am I calling the in/out templates incorrectly? The xxxlinks is all that displays right now. I can even make that disappear if I mess with the order of the evaluate statements in the vbindex.php file.


Quote:


... from vbindex.php...

// left & right templates
// -------------------------
eval("\$xxxlinks = \"".gettemplate('home_xxxlinks')."\";");
eval("\$myforumbit = \"".gettemplate('usercp_forumbit')."\";");
eval("\$myforums = \"".gettemplate('usercp_forums')."\";");
eval("\$left = \"".gettemplate('home_left')."\";");
eval("\$right = \"".gettemplate('home_right')."\";");



Also, I tried to call in the avatar template to the login and logout templates, but nothing would ever display. Again, it is just my simple ignorance I'm afraid.

HEEEELLLLLLPPPPPPP!

NTLDR 01-30-2003 07:21 PM

Look at how $logincode is assigned and that will show you how to do $login and $logout correctly.

todd.o.callen 01-30-2003 07:40 PM

I added "$logincode" into the left template and almost everything is displaying again. Why is that?

All that still doesn't work is the following code that I put into the logout template:


Quote:

$avatarimage
I tried calling the $avatar, but that didn't help.


Here's what is in the avatar template:

Quote:

<table border=1 width=100% bordercolor="990000" cellpadding=0 cellspacing=0>
<tr>
<td>
<a href="$bburl/member.php?s=&action=editavatar" img src="$bburl/$newsavatarurl" border="0"></a>
</td>
</tr>
</table>

NTLDR 01-30-2003 09:04 PM

Quote:

Originally posted by NTLDR
Look at how $logincode is assigned and that will show you how to do $login and $logout correctly.
You need to look and see how its done and duplicate it, not add it again in the template.

todd.o.callen 01-31-2003 01:14 PM

Man, I am trying to understand... but I don't.

Some strange stuff is going on now.
I inserted some garbage "tracers" into the home_left to get to the bottom of it, and the following stuff:

Quote:

aaa
$logincode
bbb
$login
ccc
$logout
ddd
yielded the following to a logged int user:

Quote:

aaa
==============
(content of home_logout)
==============
bbb ccc ddd
Is this normal? I expected the bbb and ccc to be above the home_logout content. Even more surprising to me was that I still got content when I removed the $login and $logout. Apparently, the $logincode actually displays either $login OR $logout. Right?
So, all I should have to do is get the dynamic avatar for the user and insert it into home_logout. I've scrounged around, but can't seem to get that part right. I did get the avatar to show up in the home_left template again, but for formatting reasons, I really need it inside the table that's in home_logout. What's the secret?


Sorry for the hassle. Officially above and beyond the call of duty.

NTLDR 01-31-2003 09:00 PM

$login and $logout IIRC don't even exist, hence they don't display anything.

I'm a little confused here, do you just want to include the avatar in the home_logout (and/or home_login) template?

For reference, home_logout shows the code for users who are logged in and home_login shows the code for users who are logged out.


All times are GMT. The time now is 04:22 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.02013 seconds
  • Memory Usage 1,746KB
  • 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
  • (7)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