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)

iblis 07-24-2002 10:39 AM

Quote:

Originally posted by danielhollands
Hi all, i've just installed this hack here (soon to be here), and so far it's looking really good.

What I want to do, once i've moved the forum to GameVine.co.uk is use this file in the root directory rather than the forum dir, what would I need to change in order for this to be possable?

Cheers (sorry if this quistion has already been asked, but over 300 posts is a bit too much to track though)

just add:

chdir("/home/yoursite/forum");

above "require('./global.php');" in vbindex index.php file..

then add "/forum" on all the url's in the vbindex templates :)

ps: sorry for my bad english..

Ninth Dimension 07-24-2002 11:19 AM

Hi, thank you for this, it works fantasticly (i just put in chdir("./forum"); rather than the whole path)

I do have another problem, voting on the poll does not work, I get the following error message:
Quote:

The action you have attempted could not be performed as your session appears to be invalid. Click the below link to attempt this action again with a new session.
(Yet again, i'm sorry if this question has been answered, but like i said before, 300 posts in a little too much to read though)

Cheers again.

NTLDR 07-24-2002 05:49 PM

Quote:

Originally posted by danielhollands
I do have another problem, voting on the poll does not work, I get the following error message:(Yet again, i'm sorry if this question has been answered, but like i said before, 300 posts in a little too much to read though)
Indeed this has been fixed somewhere in this thread, I'm going to contact el3m3nt and see if I can release a new version with all the bug fixes and maybe somemore features soon.

From memory you should have this line in the home_poll template:

Code:

<input type="hidden" name="s" value="$session[sessionhash]">
Which needs to be changed to:

Code:

<input type="hidden" name="s" value="$session[dbsessionhash]">
To be able to vote correctly.

NTLDR 07-24-2002 05:52 PM

Quote:

Originally posted by iblis
btw NTLDR, you know of a easy way to add the avatar on the user on the index page?
The way I have done this is to use the welcome panel hack that is avalible for your forums and applied it to the front page, take a look at mysite for an example. Is that the kind of thing you wanted?

Ninth Dimension 07-24-2002 07:07 PM

Thank you for the advice, i'll be looking foward to any new releases of this hack :)

NTLDR 07-24-2002 08:49 PM

No problem ;)

I've contacted el3m3nt regarding a new (or updated) realease of this hack and am wating to hear back from him.

iblis 07-26-2002 06:00 AM

NTLDR: I used the code from the "welcome panel" to.. but my index.php is not in the /forum directory..

so the avatar image gets broken, pointing to www.domain.com/avatar.php ..

the correct url would be www.domain.com/forum/avatar.php ..

but I cant find the <a> to fix it :(

Ninth Dimension 07-26-2002 06:42 AM

I found the only way to solve this problem was to edit the {imagesfolder} patch in the replacements section of the admin.

Try that :)

iblis 07-26-2002 11:24 AM

huh? /vbimages?

Grower 07-26-2002 05:17 PM

I highly recommend everybody using this hack to install also "Thread Preview Hack". Some level of data redundancy is the only way to go with this kind of hack. Then you can remove extra queries in loop (putting query into a loop is always the worst solution and should be avoided).

For those who have installed this hack and have also "firstpostid" column in thread table here is code you can use for pulling news:
Code:

// news by nakkid (modified)
// -------------------------
$newsquery=$DB_site->query("SELECT thread.threadid,thread.title,thread.dateline,thread.postusername,thread.postuserid,
thread.replycount,thread.iconid,post.pagetext,icon.title AS icontitle,icon.iconpath
FROM thread
LEFT JOIN post ON thread.firstpostid = post.postid
LEFT JOIN icon ON icon.iconid = post.iconid
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=bbcodeparse($news[pagetext],$newsforum,1);
  $newstext=str_replace("<br />","",$newstext);

  if ($news[iconid]=='0') {
        $news[icontitle]="";
        $news[iconpath]="https://vborg.vbsupport.ru/images/icons/icon.gif";
  }

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

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

Also there is an error on first few lines where templatesused string is filled (missing commas) which caused extra queries. Here is fixed code:
Code:

$templatesused='error_nopermission,home,home_buddy1,home_buddy2,home_footer,home_header,home_headinclude,home_left';
$templatesused.=',home_login,home_logout,home_news,home_newsbit,home_nothreads,home_poll,home_pollresult,home_right';
$templatesused.=',home_threadbit,home_threads,forumhome_loggedinuser,forumhome_loggedinusers,maxloggedin';

This thread is so long that I hope I'm not reposting something already fixed :)


All times are GMT. The time now is 12:00 PM.

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.01619 seconds
  • Memory Usage 1,747KB
  • 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_code_printable
  • (4)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
  • (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