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)

Buddha 02-28-2003 07:28 PM

Quote:

Originally posted by Evil Chris
I need to join a couple of boards using this hack and get a good feel for it.
check this out

tenchiws 03-01-2003 05:41 PM

I'm having some errors with this mod. I installed it following all the instructions but it won't work for the template we got. Here's what it's doing:

http://forums.xfernet.com/forums/vbindex.php

Buddha 03-07-2003 01:12 PM

Quote:

Originally posted by tenchiws
I'm having some errors with this mod. I installed it following all the instructions but it won't work for the template we got. Here's what it's doing:

http://forums.xfernet.com/forums/vbindex.php

are you referring to the header problem?
if so, just edit home_header and change it to suit your site.

KeneticKangaroo 03-13-2003 07:16 PM

hey, i installed tis before and im just reinstalling it, when i go to the vbindex page it loads ok and just above the header it says

Quote:

Warning: Cannot add header information - headers already sent by (output started at /usr/local/psa/home/vhosts/xxxxxxxxxxxxxx.co.uk/httpdocs/vbindex.php:2) in /usr/local/psa/home/vhosts/xxxxxxxxxxxxxx.co.uk/httpdocs/admin/functions.php on line 1573

subu1 03-15-2003 05:51 AM

goog morning friends, ups 94 pages, i dont want read this now, because my vbindex works, but i have a little questions.

The user can see the privat heading thread but not read, he may not see it.

what can i do

drives fast 03-15-2003 05:53 AM

that is definately answered in this thread

Evil Chris 03-17-2003 01:13 AM

I've finally installed this on my now working new board.
Thanks.

jimmyjoe 03-17-2003 07:38 PM

I just upgraded to 2.1 and things seem to load faster but I have 2 issues...

1) The news section doesn't include a synopsis of the news item just the title and avatar of the user...

2) I can't remember or find out how to add links to the left side for more pages.

Thanks for any help!!

http://www.smartphonesource.com

jimmyjoe 03-17-2003 07:43 PM

.

todd.o.callen 03-17-2003 10:29 PM

1st of all: Everything works great! :) :)

In fact, everything is working so well that I am forced to try to split the "Latest Posts" list into categories. Is there a way to point the list to a single top-level forum and all of its sub-forums?

I guess I need something like this:


Latest Corporate Posts (this actually would need to concatonate from several top-level forums)

Latest Plant 1 Posts

Latest Plant 2 Posts

Latest Plant 3 Posts


Any help would be adored.

Yuber 03-22-2003 09:29 PM

I notice on The Sisters Three, that you have a higher version.

Yuber 03-22-2003 09:34 PM

BTW, How do you work HTML to use images around each part like what they do with vb.org?

NTLDR 03-23-2003 04:19 PM

Quote:

I notice on The Sisters Three, that you have a higher version.
Thats correct, I've a slightly improved version there that I did a little bit of work on. However I won't be using vBindex there as I've almost finished my new portal for it.

I will however upgrade and introduce some new features in vBindex when vB3 is release for public beta.

flup 03-23-2003 05:01 PM

NTLDR, i've got a problem.
I've installed the hack like u said in the install.txt file.

I've uploaden vBindex.php to:
/vBindex.php

And my forum is at:
/forum/index.php

In that case i put chdir to './forum'
and : require('./forum/global.php')

But the page won't display, it even doesn't give an error.
What is the problem?

The page URL would be:
http://sat-gsm.dyndns.org/
and the forum url:
http://sat-gsm.dyndns.org/forum/

TIA

Yuber 03-23-2003 09:45 PM

How do you work HTML to use images around each part like what they do with vb.org?

todd.o.callen 04-02-2003 08:37 PM

Quote:

11-06-02 at 04:53 PM lemarsu said this in Post #1050
NTLDR,

Thanks
I updated online.php

replaced
PHP Code:

    case 'gallery':
      
$userinfo[where] = "Viewing Picture <a href='gallery.php?s=$session[sessionhash]'>Gallery</a>";
      break; 

by
PHP Code:

    case 'gallery':
      
$userinfo[where] = "Viewing Picture <a href='gallery.php?s=$session[sessionhash]'>Gallery</a>";
      break;
    case 
'portal':
      
$userinfo[where] = "Viewing <a href='vbindex.php?s=$session[sessionhash]'>The Portal</a>";
      break; 

and replaced

PHP Code:

  case '/robots.txt':
    
$userinfo[activity] = 'spider';
    break; 


by

PHP Code:

  case '/robots.txt':
    
$userinfo[activity] = 'spider';
    break;
  case 
'vbindex.php':
    
$userinfo[activity] = 'portal';
    break; 

all seem to work.


I want to do the same thing, but I am not sure I understand this example. I want my vbindex.php to come up as "MyCrossTalk".

Where do these values plug in?

Thanks.

lemarsu 04-03-2003 07:04 AM

todd.o.callen

you will need to edit online.php use the following :

replaced
PHP Code:

    case 'gallery':
      
$userinfo[where] = "Viewing Picture <a href='gallery.php?s=$session[sessionhash]'>Gallery</a>";
      break; 

by
PHP Code:

    case 'gallery':
      
$userinfo[where] = "Viewing Picture <a href='gallery.php?s=$session[sessionhash]'>Gallery</a>";
      break;
    case 
'portal':
      
$userinfo[where] = "Viewing <a href='vbindex.php?s=$session[sessionhash]'>MyCrossTalk</a>";
      break; 

and replaced

PHP Code:

  case '/robots.txt':
    
$userinfo[activity] = 'spider';
    break; 


by

PHP Code:

  case '/robots.txt':
    
$userinfo[activity] = 'spider';
    break;
  case 
'vbindex.php':
    
$userinfo[activity] = 'mycrosstalk';
    break; 


todd.o.callen 04-04-2003 06:50 PM

Quote:

Yesterday at 03:04 AM lemarsu said this in Post #1417
todd.o.callen

you will need to edit online.php use the following :


PHP Code:

  case '/robots.txt':
    
$userinfo[activity] = 'spider';
    break; 


by

PHP Code:

  case '/robots.txt':
    
$userinfo[activity] = 'spider';
    break;
  case 
'vbindex.php':
    
$userinfo[activity] = 'mycrosstalk';
    break; 



I completed the first replace, but I don't have the second case in my online.php. What do I do?

Buddha 04-05-2003 12:15 AM

Quote:

03-23-03 at 06:19 PM NTLDR said this in Post #1413
Thats correct, I've a slightly improved version there that I did a little bit of work on. However I won't be using vBindex there as I've almost finished my new portal for it.

I will however upgrade and introduce some new features in vBindex when vB3 is release for public beta.

how is that portal going, ntldr... i'm very curious about it.

my site went live 1st of april, and i've gotten lots of great compliments on the off-forum pages, and each time i say it's thanks to your script!

todd.o.callen 04-07-2003 01:16 PM

Quote:

04-04-03 at 09:15 PM Buddha said this in Post #1419
how is that portal going, ntldr... i'm very curious about it.

...

i've gotten lots of great compliments on the off-forum pages, and each time i say it's thanks to your script!

Me too, on both counts.

dbroomjr 04-09-2003 02:57 AM

I have got a slight problem...Everything is working perfectly..But, when it pulls the news thread, it shows the Title of the thread, the users avatar, read full post, comments, etc.

But, no matter the amount of characters I set for it to show, it simply shows nothing in the body of the post.

Did I zig when I should have zagged somewhere in the setup? I am using vBulletin 3.0

Thanks,

Dave

ForKmaN 04-12-2003 04:15 AM

Mine all works good, it even shows the news tiltes and avatars, except, it wont show the news content ...

Help please?

ForKmaN 04-12-2003 04:16 AM

ok, same problem as dbroomjr

Rose 04-12-2003 05:18 PM

Yep yep. I just upgraded to version 2.3.0 and I get everythign working fine also but the news won't pull.

Maybe it has to do with the file edit in which I found the line in three places in the 2.3.0 file? Wait, that won't make sense without reference. I'll be right back.

Rose 04-12-2003 07:07 PM

Update - for 2.3.0 users

First, make sure you ran the update counters after installing. If this doesn't fix the problem (of the news not being pulled onto the main page), then try this:

In newthread.php find the line

PHP Code:

 // Add postid to thread table if vBindex news forum
  
if ($forumid=$newsforum) {
           
$DB_site->query("UPDATE thread SET tpostid='$postid' WHERE threadid='$threadid'");
  } 

You need to hardcode the forumid in, at least it worked for me. :) If it doesn't work for you - sorry 'bout that.

Anyway, change the above to something like below:

[php]
PHP Code:

 // Add postid to thread table if vBindex news forum
  
if ($forumid==X) {
           
$DB_site->query("UPDATE thread SET tpostid='$postid' WHERE threadid='$threadid'");
  } 

Note - Change "X" to your forumid of the news forum. Also, notice there is now a double equal sign instead of a single sign. :)

NTLDR 04-12-2003 07:16 PM

Quote:

how is that portal going, ntldr... i'm very curious about it.
Its almost done at last (code wise at least), I've the Links Directory and Installer to finish. I'm not sure if I'll be releasing it yet, and if I do it won't be till after vB3 has come out.

Quote:

my site went live 1st of april, and i've gotten lots of great compliments on the off-forum pages, and each time i say it's thanks to your script!
WOW! You've done a fantastic job there Buddha, thats one impressive site/set of foums you've got :D

Sting 04-25-2003 01:58 AM

sorry but i am retarded or its too late for my brain to function properly.. but i installed vbindex fine... and it works greats, its awesome.. good job.. but the images are not working.... probably bc the vbindex.php is not in the forum/ dir. so where do i have to change it to fix it? i probably missed something... thnx in advance...

nvm.... i just had to change the images path.... on vbulletin cp... but the avatar image wouldnt work, bc u had to change it in vbindex.php... i am retarded

crowfield99 04-27-2003 10:55 AM

Hello,

I have tried to install this hack as I think its a really good idea but keep getting this at the bottom of vbindex.php

// ------------------------- // end vBulletin original code } // end of vB // vBindex - start // ------------------------- // welcome panel by trilOByte // ------------------------- if ($bbuserinfo[userid]!=0) { $avatarurl=getavatarurl($bbuserinfo[userid]); if ($avatarurl=='') { $avatarurl='{imagesfolder}/avatars/noavatar.gif'; } $avatarimage=''; } else { $avatarimage=''; } // ------------------------- // end welcome panel // news (based on code by TECK) // ------------------------- if ($newsonoff!=0) { $newsquery=$newsquery=$DB_site->query("SELECT thread.*,threadpost.pagetext AS pagetext FROM thread LEFT JOIN post AS threadpost ON (thread.tpostid = threadpost.postid) WHERE forumid = '$newsforum' ORDER BY thread.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]; $newstext=censortext(bbcodeparse($news[pagetext],0,1)); $icon=$news[iconid]; // uncomment out next line to remove line breaks in the news //$newstext=str_replace("
","",$newstext); // max news chars if ($maxnewschars!=0) { if (strlen($newstext) > $maxnewschars) { $newstext = substr($newstext,0,$maxnewschars); $newstext .= "..."; } $readmore="Read Full Post - "; } // end max newschars // get users avatar to display with news if ($shownewsavatar!=0) { $newsavatarurl2=getavatarurl($newsuserid); if ($newsavatarurl2=='') { $newsavatarurl='{imagesfolder}/clear.gif'; } else { $newsavatarurl=''.$bburl.'/'.$newsavatarurl2.''; } eval("\$newsavatar = \"".gettemplate('home_avatar')."\";"); } // end avatar eval("\$newsbits .= \"".gettemplate('home_newsbit')."\";"); } eval("\$news = \"".gettemplate('home_news')."\";"); } // ------------------------- // end news // latest threads // ------------------------- if ($threadsonoff!=0) { //get forum perms $forumperms=$DB_site->query("SELECT forumid FROM forumpermission WHERE canview='0' AND usergroupid='$bbuserinfo[usergroupid]'"); while ($forumperm=$DB_site->fetch_array($forumperms)) { $threadsql .= " AND forumid!=$forumperm[forumid]"; } $threadsquery=$DB_site->query("SELECT * FROM thread WHERE open=1 AND thread.open<>10 ".$threadsql." AND forumid!=$newsforum AND forumid!=$pollsforum AND visible=1 ORDER BY lastpost DESC LIMIT $maxvbithreads"); while ($latestthread = $DB_site->fetch_array($threadsquery)) { $title = unhtmlspecialchars($latestthread['title']); $starter = $latestthread['postusername']; $numreplies = $latestthread['replycount']; $lastposter = $latestthread['lastposter']; $mpostid= $latestpost['postid']; $postdate=vbdate($dateformat,$latestpost[dateline]); $posttime=vbdate($timeformat,$latestpost[dateline]); $postforum=$latestforum['title']; $postforumid=$latestthread['forumid']; $gothreadid = $latestthread['threadid']; if (($counter++ % 2) != 0) { $threadbg="{firstaltcolor}"; } else { $threadbg="{secondaltcolor}"; } eval("\$threadbits .= \"".gettemplate('home_threadbit')."\";"); } eval("\$threads = \"".gettemplate('home_threads')."\";"); } // ------------------------- // end latest threads // poll by wajones // ------------------------- if (($pollonoff!=0) && (!isset($section) or $section=="")) { $pollinfo=$DB_site->query_first("SELECT poll.*,thread.threadid,thread.open,thread.replycou nt FROM thread LEFT JOIN poll ON (thread.pollid=poll.pollid) WHERE thread.forumid='$pollsforum' ORDER BY poll.dateline DESC LIMIT 1"); if (!empty($pollinfo[question])){ $pollinfo[question]=bbcodeparse($pollinfo[question],0,1); $polltitle=$pollinfo[title]; $splitoptions=explode("|||", $pollinfo[options]); $splitvotes=explode("|||",$pollinfo[votes]); $pollisclosed=0; $pollisactive=$pollinfo[poll.active]; $pollid=$pollinfo[poll.pollid]; $comments=$pollinfo[replycount]; if (!$pollinfo[active] or !$pollinfo[open] or ($pollinfo[dateline]+($pollinfo[timeout]*86400)query_first("SELECT pollvoteid FROM pollvote WHERE userid='$bbuserinfo[userid]' AND pollid=$pollinfo[pollid]")) { $uservoted=1; } } $counter=0; while ($counter++<$pollinfo[numberoptions]) { $pollinfo[numbervotes]+=$splitvotes[$counter-1]; } $counter=0; $pollbits=""; while ($counter++<$pollinfo[numberoptions]) { $option[question] = bbcodeparse($splitoptions[$counter-1],0,1); $option[votes] = $splitvotes[$counter-1]; //get the vote count for the option $option[number] = $counter; //number of the option // Now we check if the user has voted or not if ($pollisclosed or $uservoted) { // user did vote or poll is closed if ($option[votes] == 0){ $option[percent]=0; } else{ $option[percent] = number_format($option[votes]/$pollinfo[numbervotes]*100,2); } $option[graphicnumber]=$option[number]%6 + 1; $option[barnumber] = round($option[percent])*2; $option[barnumber] = round($option[percent]); $option[percent] = round($option[percent]); if ($pollisclosed) { $pollstatus = "Poll Closed."; } elseif ($uservoted) { $pollstatus = "You have already voted."; } $pollbits .= "$option[question] $option[votes]$option[percent]%"; } else { // $pollbits .= "$option[question]"; if ($pollinfo['multiple']) { $pollbits .= "$option[question]"; }else{ $pollbits .= "$option[question]"; } } } if ($pollisclosed or $uservoted) { eval("\$poll = \"".gettemplate('home_pollresult')."\";"); } else { eval("\$poll = \"".gettemplate('home_poll')."\";"); } } else { $poll="No Poll Available"; } } // ------------------------- // end poll // start shoutbox by TWTCommish // ---------------------------- if (($shoutboxonoff!=0) && (!isset($section) or $section=="")) { $smilie_limit = 12; if ($type == 'shout' && $comment_submit && trim($message) != '' && $bbuserinfo[userid] > 0) { $DB_site->query("INSERT INTO shoutbox SET userid = '$bbuserinfo[userid]', shout_text = '".addslashes($message)."', timestamp = '".time()."'"); header("Location: $PHP_SELF?s=$sessionhash[sessionid]"); } $shouts = $DB_site->query("SELECT u.username, u.userid, s.shoutid, s.shout_text FROM user u, shoutbox s WHERE u.userid = s.userid ORDER BY s.timestamp DESC LIMIT $shoutlimit"); if (!$DB_site->num_rows($shouts)) { eval("\$shoutbits = \"".gettemplate("home_shoutbox_error",1,0)."\"; "); } else { while ($shout_info = $DB_site->fetch_array($shouts)) { extract($shout_info); $subject = stripslashes($subject); $body = stripslashes($body); $user = ($HTTP_GET_VARS["userid"] > 0) ? "&userid=$userid" : ''; $color = ($num++ % 2 == 0) ? '{firstaltcolor}' : '{secondaltcolor}'; $shout_text = bbcodeparse($shout_text); eval("\$shoutbits .= \"".gettemplate("home_shoutboxbit",1,0)."\";"); } } if ($bbuserinfo[userid]) { $submit=$PHP_SELF; eval("\$shoutbox_postshout = \"".gettemplate("home_postshout",1,0)."\";"); } eval("\$homeshoutbox .= \"".gettemplate("home_shoutbox")."\";"); } // end shoutbox by TWTCommish // --------------------------- // left & right templates // ------------------------- eval("\$left = \"".gettemplate('home_left')."\";"); eval("\$right = \"".gettemplate('home_right')."\";"); // header, footer & headinclude templates // ------------------------- eval("\$homeheadinclude = \"".gettemplate('home_headinclude')."\";"); eval("\$homeheader .= \"".gettemplate('home_header')."\";"); eval("\$homefooter .= \"".gettemplate('home_footer')."\";"); // vBindex - end // multi-paged vBindex page selector if (!$page) { // no page specified eval("dooutput(\"".gettemplate('home')."\");"); } else { // only allow home_extra_ templates for security reasons eval("dooutput(\"".gettemplate("home_extra_$page") ."\");"); } ?>

I don't know what I have done wrong at all! Is there anyway maybe some one who has this hack installed with Vbulletin 2.3.0 could send me the files that needed edited because I have gone through it like a tooth comb and just don?t know what?s happen.

If you could send me the files I would be so grateful my e-mail address is crowfield99@aol.com

Many thanks.

sjau 04-30-2003 07:06 AM

Dear NTLDR (I hope I did spell it right),

I have a little question regarding your portal software. I know this thread is huge but I haven't managed to find an answer yet. Maybe I was using the wrong keywords.

Anyway, in your hack description you mention "multiple" pages. How is that to be understood?

What I currently plan to do is creating a portal page for two different clans (Diablo 2 and Counterstrike) and I would each one to have their own news and polls forum. If possible to have their own "Newest Topics" etc listed.

Can that be done?

scottct1 05-01-2003 06:36 PM

Can someone tell me how I add a forum jump to my page?

I tried putting in <p align=right>$forumjump</p> but got nothing.

Any ideas?

Thanks

devilish 05-06-2003 07:48 AM

im working on installing the hack atm, but ran into a little problem

if i want to got to the URL:

http://devilish99.host.sk/vbindex.php

it says:

Database error in vBulletin 2.2.6:

Invalid SQL: SELECT u.username, u.userid, s.shoutid, s.shout_text FROM user u, shoutbox s WHERE u.userid = s.userid ORDER BY s.timestamp DESC LIMIT 5
mysql error: Table 'sieger.shoutbox' doesn't exist

mysql error number: 1146

errr now im a n00b in Mysql and stuff i know table shoutbox is missing but i dunno how to add it, can someone help me with it pls :rolleyes:


btw sieger is the name of my database

devilish 05-06-2003 01:08 PM

nm i over red :lick:

K33nny 05-12-2003 06:14 AM

NTDLR, you should really really release your portal before vBulletin 3.0. God knows when that thing is going to launch, seems like there is set back after set back.

ontherun 05-13-2003 03:51 PM

Moving and Updating and want to get a clean start so how do I
Uinstall vBindex 2.0 from vB 2.2.8.

todd.o.callen 05-29-2003 07:25 PM

I want the "New Posts" queries to exclude items that the current user does not have the authority to view. This includes unmoderated posts !!!

How/where do I change the code within the vbindex.php file?

Please help, I have almost 600 CORPORATE users screaming at me!!

Thanks!

wewe 06-28-2003 05:29 AM

ojhhh

drives fast 06-30-2003 04:26 AM

NTLDR,
now that vb3.0.0 has been released...are you going to be updating vbindex?

I really like this for my index page over all of the other similar things.

todd.o.callen 06-30-2003 01:09 PM

Quote:

Today at 12:26 AM drives fast said this in Post #1437
NTLDR,
now that vb3.0.0 has been released...are you going to be updating vbindex?

I really like this for my index page over all of the other similar things.

Amen to that!!
I don't think any vb3 hacks are allowed until vb3 goes gold, though.

PS Are you alive, NTLDR? No posts in a longggggg time... :surprised:

NTLDR 07-06-2003 08:50 PM

Yes I will be re-writing this for vB3 when I get a chance to do it properly.

Not sure if I'll add anything new or not.

todd.o.callen 07-08-2003 01:18 PM

Quote:

07-06-03 at 04:50 PM NTLDR said this in Post #1439
Yes I will be re-writing this for vB3 when I get a chance to do it properly.

Not sure if I'll add anything new or not.

Rough ETA?
(I'm not entirely sure what the rules for vB3 hacks are, nor do I know how much work the conversion will be for you.)


All times are GMT. The time now is 10:26 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.02887 seconds
  • Memory Usage 1,885KB
  • 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
  • (12)bbcode_php_printable
  • (12)bbcode_quote_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
  • (40)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