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

Admin 04-07-2002 11:12 AM

el3m3nt, please do as I asked in my private message.

el3m3nt 04-07-2002 11:55 AM

sorry, firefly.. this is included with the newest version (1.2)

the file isn't available right now.. cause i found some minor bugs.. in a few mins the file will be online.

el3m3nt 04-07-2002 12:11 PM

okey.. the hackdb and the first post are updated :).

For upgrading from version 1.0 to 1.2: just reinstall the whole hack. means, update all templates with the new content and upload also the new index.php and don't forget to read the readme-file. follow the instructions... otherwise the hack wont work.

KarateKid 04-07-2002 12:13 PM

HI All,

I implemented the vblinks Hack into the vbindex. This works quiet perfect as you can see here -> http://www.kampfkunst-board.de/kampf...forum/home.php

when element releases his new version I'll compare my version with his one and will release a little vbportal, with the linkdatabase :)

-=dm=- 04-07-2002 12:29 PM

error in
LINE 154:
//today online hack end

}


// vBindex - start
// -------------------------

looking great :)
hmm my buddy list dont show up...

el3m3nt 04-07-2002 12:38 PM

dm, u didnt read the readme file. there u have to follow the instructions.. otherwise nothing works..

firefly draw attention to me that in the index.php of my hack is too much original code of vBulletin. so u have to copy this code out of the original index.php and insert it in the new index.php

got it? :)

KarateKid 04-07-2002 12:50 PM

now the linkdatabase is shown, I'll put the files together and release it in a couple of minutes.

You can see the database here: Just click on "Linkdatenbank"

http://www.kampfkunst-board.de/kampf...forum/home.php

-=dm=- 04-07-2002 12:56 PM

ups sorry!
wow cool now it working :D

but still I cant put it on my public board, it still showing the private forums.

I cant wait for version 1.3 ;)

TECK 04-07-2002 12:58 PM

el3m3nt.. lol.. you didnt even bother to change at least the install.txt look from my hack? you should do something. put a credit note in your files. you released this hack, because you got "inspired" from my work... them you got creative and copied some code bits from vbPortal? also you forgot to put a credit note for all the hacks you implemented in that index.php, hacks that are available here. did you wrote the "today online users" hack?

how colud you create your own hack and dont even change the variables or the install.txt? example:

Your file:
PHP Code:

// vBindex - start
// -------------------------

// news
// -------------------------
$newsquery=$DB_site->query("SELECT * FROM thread WHERE forumid='$newsforum' ORDER BY dateline DESC LIMIT $newsposts");
while (
$news=$DB_site->fetch_array($newsquery)) {
  
$newsthreadid=$news[threadid];
  
$newstitle=$news[title];
  
$newstime=vbdate($timeformat,$news[dateline]);
  
$newsdate=vbdate($dateformat,$news[dateline]);
  
$newsusername=$news[postusername];
  
$newsuserid=$news[postuserid];
  
$comments=$news[replycount];
  
$getnews=$DB_site->query_first("SELECT * FROM post WHERE threadid='$newsthreadid' ORDER BY postid ASC LIMIT 1");
  
$newstext=bbcodeparse($getnews[pagetext]);

  if (
$news[iconid]!=0) { $icon="<img src=\"{imagesfolder}/icons/icon$news[iconid].gif\" border=0>"; } else { $icon=""; }

  eval(
"\$newsbits .= \"".gettemplate('home_newsbit')."\";");
}

eval(
"\$news = \"".gettemplate('home_news')."\";"); 

My file:
PHP Code:

// news ***************************
$newssql=$DB_site->query("SELECT * FROM thread
                          WHERE forumid='
$newsforum'
                          ORDER BY dateline DESC LIMIT 
$newsposts");
while (
$news=$DB_site->fetch_array($newssql)) {
  
$newsthreadid=$news[threadid];
  
$newstitle=$news[title];
  
$newstime=vbdate($timeformat,$news[dateline]);
  
$newsdate=vbdate($dateformat,$news[dateline]);
  
$newsusername=$news[postusername];
  
$newsuserid=$news[postuserid];
  
$getnewssql=$DB_site->query_first("SELECT * FROM post
                                     WHERE threadid='
$newsthreadid'
                                     ORDER BY postid ASC LIMIT 1"
);
  
$newstext=bbcodeparse($getnewssql[pagetext]);
  
$newsavatarurl=getavatarurl($newsuserid);
  if (
$newsavatarurl=="") {
    
$newsavatarurl="{imagesfolder}/clear.gif";
  }

  eval(
"\$newsavatar = \"".gettemplate('home_avatar')."\";");
  eval(
"\$newsbits .= \"".gettemplate('home_newsbits')."\";");
}
// end news *********************** 

Your Install text file:
Code:

+-----------------------------------------------------------------------+
| vBindex 1.2 - by el3m3nt (el3m3nt@gmx.ch)                                |
+-----------------------------------------------------------------------+
| vB.org Thread: https://vborg.vbsupport.ru/showthrea...threadid=37021
|                                                                        |
| Demo: http://partylife.ch                                                |
| Screenshots: http://partylife.ch/misc/vbindex1-5.jpg                        |
+-----------------------------------------------------------------------+

+-----------------------------------------------------------------------+
| Installation                                                                |
+-----------------------------------------------------------------------+

My Install text file:
Code:

+-----------------------------------------------+
| vbHome (lite)                                |
| Version 1.0                                  |
+-----------------------------------------------+
| By Nakkid (vBulletin.org hacker)
| Email(Messenger): nakkidone@hotmail.com
|
+--------------------------------------------------------------------------+
| This hack will create a vBulletin(powered) homepage for your website.    |
|                                                                          |
| The advantage of this hack is that you can interact better your          |
| website with vBulletin.                                                  |
| vbHome (lite) is fully customizable through vBulletin templates, so      |
| it's very easy to achieve any look or webdesign you want.                |
|                                                                          |
| NOTE: You are allowed to use this hack only if you agree not to remove  |
|      the vbHome (lite) link in the custom footer.                      |
+--------------------------------------------------------------------------+
|
+-----------------------------------------------+
| TEMPLATES TO CREATE                          |
+-----------------------------------------------+

i really dont care if other people who you copied the hacks into your file dont mind about this, but for me, i want you to put a credit note into your index.php (or install text) file, stating that portions of your hack were inspired from vbHome (lite) by nakkid.

let me ask you this. if i would not release this hack, whould you release it by yourself?

el3m3nt 04-07-2002 01:15 PM

dm, solution:

in index.php look for...
PHP Code:

$threadsquery $DB_site->query("SELECT threadid,forumid,title,postusername,lastposter,replycount FROM thread WHERE forumid!=$newsforum AND forumid!=$pollsforum AND visible=1 order by lastpost desc limit $numthreads"); 

now edit the code like this...

PHP Code:

..... WHERE forumid!=$newsforum AND forumid!=$pollsforum AND visible=AND forumid!=(<= your private forum) AND forumid!=5 etc

just add the forumids of ur private forums...


All times are GMT. The time now is 09:36 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.01664 seconds
  • Memory Usage 1,783KB
  • 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
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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