![]() |
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 ... :) |
Quote:
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. |
Quote:
|
Quote:
Quote:
|
Thanks for the Shoutbox integration. :)
|
|
Quote:
|
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.
|
just a quick question .... where do I insert the <br> to separate one news post from another?
|
Quote:
|
Quote:
|
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 |
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:
|
let me check it out real quick...hold on a sec
|
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 |
Quote:
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. |
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! |
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... |
Quote:
PHP Code:
PHP Code:
|
Quote:
|
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?
|
<a href="http://forums.lotronline.com/rpgcenter/" target="_blank">http://forums.lotronline.com/rpgcenter/</a>
Got a parse error. |
ok. I added a ; at the end of the code and it works now but with the style I wanted. :(
|
Swoit. I got it working. It need to go above the templates used section
|
Quote:
/ 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. |
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.
|
Quote:
|
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. |
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/ :)
|
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/ |
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...
|
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. |
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. |
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: |
Quote:
|
Quote:
|
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 |
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
|
Quote:
If not here's the href: Code:
$bburl/showthread.php?s=$session[sessionhash]&threadid=$newsthreadid |
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|