Thread: vBindex v2.1
View Single Post
  #1429  
Old 04-27-2003, 10:55 AM
crowfield99's Avatar
crowfield99 crowfield99 is offline
 
Join Date: Sep 2002
Location: Manchester, UK
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01381 seconds
  • Memory Usage 1,803KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete