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)

SuB_ZeR0 09-11-2002 03:50 AM

I don't know if you notice this already ...but when a guest come to the site ... he will be presented with two login areas ... 1 at the top-left side and the other is at the top-middle ... this might be a little confusing for newcomers since they have no idea where to login ... ofcourse both are the same....
my suggestion is to take 1 of them out ... and put something there instead ... :)

TECK 09-11-2002 08:20 AM

Quote:

Originally posted by NTLDR
The number of queries depends on a number of things, there were 35 queries for the screenshot's that were posted, but disabling parts that you don't use significatly reduceds the number of queries performed.

Each Latest Thread adds 2 queries, as does each news item, users who have voted on a poll will also have an extra query.

I have tried to keep the number of queries to a minium and have at least halfed the number of that of the standard v1.3 avaible.

there is a way to get out of the loop... :)
if you set the right set of perms you can have 285 threds listed and still use only 3queries... and 35-40queries is huge on a busy server it will bring it almost to it's knees...
my microstats are:
Page generated in 0.09391904 seconds (81.15% PHP - 18.85% MySQL) with 14 queries.

and that's a real loading time, no errors.

NTLDR 09-11-2002 05:39 PM

Quote:

Originally posted by SuB_ZeR0
I don't know if you notice this already ...but when a guest come to the site ... he will be presented with two login areas ... 1 at the top-left side and the other is at the top-middle ... this might be a little confusing for newcomers since they have no idea where to login ... ofcourse both are the same....
my suggestion is to take 1 of them out ... and put something there instead ... :)

I know ;) theres supposed to be to. Its up to the person installing where they want the things to go. I just provide a basic set of templates for users to manipulate :)

NTLDR 09-11-2002 05:43 PM

Quote:

Originally posted by TECK
[B]there is a way to get out of the loop... :)
if you set the right set of perms you can have 285 threds listed and still use only 3queries...
Thanks for the tip TECK ;) I'll look into this. I still have alot of PHP/MySQL to learn :)


Quote:

and 35-40queries is huge on a busy server it will bring it almost to it's knees...
Indeed it is which is why I don't recomend people have all the features enabled. My proper page (on a not particularly busy server) is 33, and thats with stuff I don't really need but have the as it doesn't matter as much for me.

FleaBag 09-12-2002 12:07 PM

Thanks for the Shoutbox integration. :)

Gohan 09-13-2002 08:30 AM

Addon a weather on left or right page:
https://vborg.vbsupport.ru/showthrea...538#post298538

:)

TECK 09-13-2002 08:52 AM

Quote:

Originally posted by Gohan
Addon a weather on left or right page:
https://vborg.vbsupport.ru/showthrea...538#post298538

:)

Gohan, read this.

garoboldy 09-14-2002 03:02 AM

NTLDR: I got your reply about vbhome problems. I am working on installing your index2.0 right now. you also said that it had all the features that I was wanting available....did you mean that it comes setup with the page having the login, threads latest, news latest, shouts, users etc...if not, I misunderstood excuse the error. Thank you for the information. Greatly Appreciated.

SuB_ZeR0 09-14-2002 04:54 AM

just a quick question .... where do I insert the <br> to separate one news post from another?

NTLDR 09-14-2002 05:07 PM

Quote:

Originally posted by garoboldy
did you mean that it comes setup with the page having the login, threads latest, news latest, shouts, users etc...
The only thing that doesn't come as default with the setup is the shoutbox, where you need to follow a few simple instructions I posted here on how to integrate TWTCommish's shoutbox: https://vborg.vbsupport.ru/showthrea...439#post292439

NTLDR 09-14-2002 05:08 PM

Quote:

Originally posted by SuB_ZeR0
just a quick question .... where do I insert the <br> to separate one news post from another?
The home_news template.

garoboldy 09-14-2002 05:53 PM

ok, I got the index working fine on local and did some neat things with it....great hack...

but now I just installed it on my site....it didnt work for some reason...here is the link...

www.evolutionaryconcepts.com/vbindex.php

thanks for any info that you may have.

later

NTLDR 09-14-2002 06:02 PM

Have you set all the variables at the top of the files correctly? Are the home_ templates part of the template set the hack is using (should be) and have you unommented the chdir bit?

ie:

PHP Code:

chdir('./forum'); 


garoboldy 09-14-2002 06:03 PM

let me check it out real quick...hold on a sec

garoboldy 09-14-2002 06:22 PM

I have the chdir uncommented
chdir is ./forum
the require global.php is ./global.php

here is the bulletin code I put in...maybe something is wrong with that part...

// start vBulletin original code
// -------------------------
// add here the vBulletin code of the original index.php
// lines 139 - 213(in an unhacked 2.2.6 index.php)
$activeusers = "";
$loggedinusers = "";
if ($displayloggedin) {
$datecut=time()-$cookietimeout;

$loggedins=$DB_site->query_first("SELECT COUNT(*) AS sessions FROM session WHERE userid=0 AND lastactivity>$datecut");
$numberguest=$loggedins['sessions'];

$numbervisible=0;
$numberregistered=0;

$loggedins=$DB_site->query("SELECT DISTINCT session.userid,username,invisible,usergroupid
FROM session
LEFT JOIN user ON (user.userid=session.userid)
WHERE session.userid>0 AND session.lastactivity>$datecut
ORDER BY invisible ASC, username ASC");
if ($loggedin=$DB_site->fetch_array($loggedins)) {
$numberregistered++;
if ($loggedin['invisible']==0 or $bbuserinfo['usergroupid']==6) {
$numbervisible++;
$userid = $loggedin['userid'];
if ($loggedin['invisible'] == 1) { // Invisible User but show to Admin
$invisibleuser = '*';
} else {
$invisibleuser = '';
}
if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i>$loggedin[username]</i></b>";
} else if (($mod["$userid"] or $loggedin['usergroupid'] == 5) and $highlightadmin) {
$username = "<b>$loggedin[username]</b>";
} else {
$username = $loggedin['username'];
}
eval("\$activeusers = \"".gettemplate('forumhome_loggedinuser')."\";" );
}

while ($loggedin=$DB_site->fetch_array($loggedins)) {
$numberregistered++;
$invisibleuser = '';
if ($loggedin['invisible']==1 and $bbuserinfo['usergroupid']!=6) {
continue;
}
$numbervisible++;
$userid=$loggedin['userid'];
if ($loggedin['invisible'] == 1) { // Invisible User but show to Admin
$invisibleuser = '*';
}
if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i>$loggedin[username]</i></b>";
} else if (($mod["$userid"] or $loggedin['usergroupid'] == 5) and $highlightadmin) {
$username = "<b>$loggedin[username]</b>";
} else {
$username = $loggedin['username'];
}
eval("\$activeusers .= \", ".gettemplate('forumhome_loggedinuser')."\";") ;
}
}
$DB_site->free_result($loggedins);

$totalonline=$numberregistered+$numberguest;
$numberinvisible=$numberregistered-$numbervisible;

$maxusers=explode(" ", gettemplate('maxloggedin',0,0));
if ((int)$maxusers[0] <= $totalonline) {
$time = time();
$maxloggedin = "$totalonline " . $time;
$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'");
$maxusers[0] = $totalonline;
$maxusers[1] = $time;
}
$recordusers = $maxusers[0];
$recorddate = vbdate($dateformat,$maxusers[1]);
$recordtime = vbdate($timeformat,$maxusers[1]);
eval("\$loggedinusers = \"".gettemplate('forumhome_loggedinusers')."\"; ");
}
// -------------------------
// end vBulletin original code

SuB_ZeR0 09-15-2002 01:20 AM

Quote:

Originally posted by NTLDR


The home_news template.


where exactly in the home_news template do I insert the break? sorry for being such a newbie .. ;)

also .. is it possible to allow only about 200 characters to show up in the news bit ... and if people want to read the rest of the post they can click on the "read more" or "see whole post" which will bring them to the actually post in the News forum ...
some of my news posts are quite lengthy and I don't want them to take too much space on the front page. .... by default ... it will only show 5 most recent news post in the frontpage right? ... where do I go to edit this number? .... that's all the questions for the day ... :) ... Thanks again.

Sigon 09-15-2002 02:50 AM

Ok. Here is my problem
http://forums.lotronline.com/rpgcenter

I would like the hack to use my RPG Center Style set not my default one. How and what do I edit to accomplish this? Thanks!

CelticEnd 09-15-2002 01:05 PM

I'm having some trouble with VBindex.php

I've set up a test at http://news.thehuddleboard.com/vbindex.php but the page never loads despite the fact it is definetly there...

NTLDR 09-15-2002 06:05 PM

Quote:

Originally posted by Sigon
I would like the hack to use my RPG Center Style set not my default one. How and what do I edit to accomplish this? Thanks!
Untested, but it should work, after:

PHP Code:

require('./global.php'); 

Add:

PHP Code:

// figure out the chosen style settings
unset($styleid);
$styleid=

Where X is the style id number.

NTLDR 09-15-2002 06:06 PM

Quote:

Originally posted by CelticEnd
I'm having some trouble with VBindex.php

I've set up a test at http://news.thehuddleboard.com/vbindex.php but the page never loads despite the fact it is definetly there...

Try removing the Poll code from the PHP file and see if it works then.

Sigon 09-15-2002 06:07 PM

And one more question. I would like to use this on my page at lotronline.com but it is a different domain? How would I do this?

Sigon 09-15-2002 06:11 PM

<a href="http://forums.lotronline.com/rpgcenter/" target="_blank">http://forums.lotronline.com/rpgcenter/</a>

Got a parse error.

Sigon 09-15-2002 06:17 PM

ok. I added a ; at the end of the code and it works now but with the style I wanted. :(

Sigon 09-15-2002 06:46 PM

Swoit. I got it working. It need to go above the templates used section

NTLDR 09-15-2002 08:08 PM

Quote:

Originally posted by Sigon
And one more question. I would like to use this on my page at lotronline.com but it is a different domain? How would I do this?
This should be fine, you have to change the chdir() statement that commented out to point to your forums directory, so if you have the following structure:

/ root
/lotronline.com
/forums.lotronline.com

you would set the path to ../forums.lotronline.com and place the vBindex.php file in the lotronline.com root folder.

Sigon 09-15-2002 08:10 PM

Ok now I have a problem. How would I make it so the style we create is only used in the forums it should be used in and the vbindex? This is essential and it seems as if I cannot figure it out for the life of me. I just want the index to use one style and not change when someone changes styles.

NTLDR 09-15-2002 08:40 PM

Quote:

Originally posted by Sigon
Ok now I have a problem. How would I make it so the style we create is only used in the forums it should be used in and the vbindex? This is essential and it seems as if I cannot figure it out for the life of me. I just want the index to use one style and not change when someone changes styles.
Issue sorted via ICQ :)

garoboldy 09-15-2002 09:22 PM

well, I have yet to figure out whats goin on with this thing.
on 2.2.7 I have it working fine when I am logged in and its working. but when I am not logged in I look at the main page as if a guest would and its all crazy and nothing is really there....sorry to bother but looking for some insight.

www.evolutionaryconcepts.com/vbindex.php
this is the sites page I am talking about.

NTLDR 09-15-2002 09:31 PM

Have you got a screenshot from when you are logged in? The display the images and not broken links you need to put the full path in for the images folder in the admin cp, not just images/ :)

garoboldy 09-15-2002 09:58 PM

here is the one that is logged in
Logged in Pic

and logged out
Logged in Pic


and on the full path...

would that relative to the index...meaning forum/images/

garoboldy 09-15-2002 09:59 PM

also, I tried getting a shout box to show up on the index as well...and I have yet to do that.... I put the $shoutbox right below the $threads and it didnt show up...maybe I did something wrong...

garoboldy 09-16-2002 03:19 AM

ok, I had to redo all my templates....deleted wrong set....(YEAH i KNOW...STUPID ME...) ANYWAY

I got an error when reinstalling my vbindex.
Database error in vBulletin Control Panel 2.2.7:

Invalid SQL: ALTER TABLE usergroup ADD canviewvbindex SMALLINT (6)
mysql error: Duplicate column name 'canviewvbindex'

mysql error number: 1060

Date: Sunday 15th of September 2002 10:17:49 PM
Script:

anyone know whats going on here???
sorry to bother...still too new to the php and sql stuff.

garoboldy 09-16-2002 03:34 AM

ok, sorry to post that...I figured it out.
Its all working pretty much now....
I can finally say GREAT HACK!

one thing I think somewhat should work on for this...(I will try too) is 1. when you are not logged in and you do login on the index page. it redirects you back to the index page instead of the forum homepage. 2.when your logged in already on the vbindex page and you logout, it redirects you back to the vbindex page...this may be really simple but I am too new to this stuff to be sure of the complexity.

kuska 09-16-2002 09:37 AM

THIS HACK KICKS ARSE !!! me installs :banana:
Here is my vbindex in polish :) http://www.NaKazdyTemat.com

I have 2 problems tho ...
Once i installed im getting white pages from time to time ...
And my second problem is a request ...
How do i add a small shoutout box on the right side?? Which one do i use?? Plz help
THANKS !!! :lick:

NTLDR 09-16-2002 05:17 PM

Quote:

Originally posted by garoboldy
one thing I think somewhat should work on for this...(I will try too) is 1. when you are not logged in and you do login on the index page. it redirects you back to the index page instead of the forum homepage.
This has been done already, but as it is basicly a chunk of copied vB code it can't be posted here. Read through the thread for details and I can PM the file if required.

NTLDR 09-16-2002 05:20 PM

Quote:

Originally posted by kuska
How do i add a small shoutout box on the right side?? Which one do i use?? Plz help
THANKS !!! :lick:

The shoutbox posted in this thread will work correctly with this hack, just add it to the home_right template as oposed to the home_left one.

garoboldy 09-16-2002 05:34 PM

go ahead and pm the chunk to me...thanks a ton.

I am on messenger if you need that as well

garoboldy@hotmail.com
carbondale_guy@yahoo.com messenger


thanks again
later

garoboldy 09-16-2002 05:38 PM

btw, I noticed on the news on vbindex...it shows the latest news but there isnt a link like on the title of the news....do I just make it a link and if so would you happen to know what that link would be...I dont...but will try to figure it out....this stuff is confusing...lol

NTLDR 09-16-2002 05:46 PM

Quote:

Originally posted by garoboldy
btw, I noticed on the news on vbindex...it shows the latest news but there isnt a link like on the title of the news....do I just make it a link and if so would you happen to know what that link would be...I dont...but will try to figure it out....this stuff is confusing...lol
Sending PM right after this. Is there not a link there already?

If not here's the href:

Code:

$bburl/showthread.php?s=$session[sessionhash]&threadid=$newsthreadid

garoboldy 09-16-2002 05:52 PM

hey the link worked great.
checking pms at this very moment.

also if you take a look at www.evolutionaryconcepts.com/vbindex.php
for just a sec. on the right my threads box is acting weird....

here is the code for it also. let me know if you see anything odd.
<td width=140 valign="top">
<table cellpadding="0" cellspacing="0" border="0" bgcolor="{tablebordercolor}" width="140" align="center">
<tr>
<td>
<table cellpadding="0" cellspacing="1"border="0" width="140" align="center">
<tr>
<td bgcolor="{firstaltcolor}"><smallfont>$threads</smallfont></td></tr>

</tr>
</table>
</td></tr>

<tr>
<td>
<table cellpadding="1" cellspacing="1" border="0" width="140">
<tr>
<td bgcolor="{firstaltcolor}">$homeshoutbox</td></tr>

</tr>
</table>
</td></tr>

</table>

</td>


All times are GMT. The time now is 04:15 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.02051 seconds
  • Memory Usage 1,853KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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