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)

NTLDR 07-08-2003 02:15 PM

vB3 hacks arn't allowed here untill vB3 reaches RC state. Converting it will take a couple of hours at the most. Its only the templates that slow the process down.

However I can guarentee this will work with vB3 as I've already sucessfully converted by portal from vB2 to vB3 without any major problems :)

todd.o.callen 07-08-2003 02:54 PM

Thank goodness! I know that my company can't live without it anymore, so you personally are on the critical path to our upgrade plan. No pressure.

Keep up the good work. :cool:

salnet 07-17-2003 05:45 PM

I just installed your hack, its great!
I just edited some templates, e.g. the "home_threadbit" template
Now I've got several problems:
1. Each post has the same time: 01.01.1970 01:00
2. The threadicon isn't displayed
3. The forum where the thread is, is not displayed

By the way I should say, that I took some code from vbindex 1.3 to make the "home_threadbit" template. That's my "home_threadbit" template:
PHP Code:

<tr>
<
td bgcolor="$threadbgalign="center">$icon</td>
<
td bgcolor="$threadbgalign="left">
<
p><smallfont><b><a href="$bburl/showthread.php?s=$session[sessionhash]&goto=newpost&threadid=$gothreadid">  $title</a></b></smallfont></p>
</
td>
<
td bgcolor="$threadbgalign="center">
<
p><smallfont><a href="$bburl/member.php?s=$session[sessionhash]&action=getinfo&username=$starter">$starter</a></smallfont></p>
</
td>
<
td bgcolor="$threadbgalign="center">
<
p><smallfont><a href="$bburl/forumdisplay.php?s=$session[sessionhash]&forumid=$postforumid">$postforum</a></smallfont></p>
</
td>
<
td bgcolor="$threadbgalign="center">
<
p><smallfont>$numreplies</smallfont></p>
</
td>
<
td bgcolor="$threadbgalign="left">
<
smallfont>
<
table cellpadding="0" cellspacing="0" border="0" width="100%" id="ltlink"><tr align="right">
        <
td nowrap><smallfont>$postdate <font color="{timecolor}">$posttime</font><br>von <a href="$bburl/member.php?s=$session[sessionhash]&action=getinfo&username=$lastposter">$lastposter</a></smallfont></td>
        <
td nowrap>&nbsp;<a href="$bburl/showthread.php?s=$session[sessionhash]&goto=newpost&threadid=$gothreadid"><img src="{imageshome}/lastpost.gif" border="0" alt="Gehe zum letzten Beitrag"></a></td>
    </
tr></table>
</
td>
</
tr

Here you can see it: http://www.thw-interaktiv.de

NTLDR 07-17-2003 07:08 PM

Change:

PHP Code:

        $postdate=vbdate($dateformat,$latestpost[dateline]);
        
$posttime=vbdate($timeformat,$latestpost[dateline]);
        
$postforum=$latestforum['title']; 

To:

PHP Code:

        $postdate=vbdate($dateformat,$latestthread[dateline]);
        
$posttime=vbdate($timeformat,$latestthread[dateline]);
        
$postforum=$latestthread['title']; 


salnet 07-18-2003 03:32 AM

Thanks for your code.
It doesn't work so good.
In the Boardnames it displays the threadnames, and the posttimes are totaly wrong.
And it don't help me with the icons, there is still a zero instead of the icon :disappointed:

Could you look a second time for?

www.thw-interaktiv.de

NTLDR 07-18-2003 09:42 AM

You'll need to write the code for the icons yourself.

Leo Wyatt 07-21-2003 02:13 PM

Hey NTLDR, I just installed vbindex on my test forums to check it out - looks great...Im just looking into customizing it, and I want to change the links on the left - how would I do that? Couldn't find it in the templates.

Also, I want to add a new page, "banners" and want it to include the same table in all schemes [in a specific page]. For example, [when you show me how to add new pages, cuz I reead the post you made here, but am still confused on how to do it] I have three schemes, and want the same page on all schemes and have to update it ONE so that it changes on all schemes...[but of course, with each scheme's colours]

Am I getting confusing? Anyway, any help would be appreciated :)

NTLDR 07-21-2003 02:24 PM

Create a new template called home_extra_banners with the content you want in it then use http://yoururl/vbindex.php?page=banners to view the page.

All pages automatically support all styles avalible to users.

The links on the left are in home_welcomelogout IIRC.

Leo Wyatt 07-21-2003 02:34 PM

OK Thanks, Ill try it! Also - what I meant was, I will have the basic page for 'banners' in vbindex, but then [so i don't have to change all schemes to add for instance one banner] ... I want to pull it from another file...can I? How?

ETA: All I see in home_welcomelogout is

< smallfont>< a href="$bburl/member.php?s=$session[sessionhash]&action=logout">Log Out</a><br><a href="$bburl/showgroups.php?s=$session[sessionhash]">Forum Leaders< /a>< /smallfont>

ETA2: ohhhhhhh I see the links, sorry :)

NTLDR 07-21-2003 02:53 PM

The easiest way IMO would be to add in config.php:

PHP Code:

$debug 1

Add the template home_extra_banner to the Global template list you will then see, this will add the template to all styles.

Then remove the line from config.php (This is important). When you want to edit it, follow these steps but edit the template instead of adding it.


All times are GMT. The time now is 12:09 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.03443 seconds
  • Memory Usage 1,770KB
  • 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_php_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