View Full Version : mYvBindex v3.1
Pages :
1
2
[
3]
4
5
6
7
8
9
Tigga
01-16-2003, 04:37 AM
By the way, you are running v3.1, correct? Did you start out with the version you're using or did you upgrade from an earlier version?
Bison
01-16-2003, 04:39 AM
Installed V3.1 ... I didn't upgrade.
Tha tfix you added didn't work either ... i'm using php 4.30
Bison
01-16-2003, 04:53 AM
I even deleted the forum (54) and created another one (55) and that didn't work either ....
Tigga
01-16-2003, 05:05 AM
This is weird... I really don't see why the news isn't working when everything else works fine... If you want, you can try replacing the part for the news with the query below:
$getnews = $DB_site->query("SELECT thread.threadid,thread.title,thread.replycount,thr ead.postusername,thread.postuserid,thread.dateline ,thread.views,thread.iconid,thread.votenum,thread. votetotal,post.postid,post.pagetext FROM thread LEFT JOIN post ON (thread.threadid=post.threadid) WHERE thread.forumid=55 AND isnews='Y' GROUP BY thread.threadid ORDER BY thread.threadid DESC");
while ($news=$DB_site->fetch_array($getnews)) {
That strips out the parts for the avatar and a couple of other things. It also removes the variables and the forum id (55) is just hard coded in there.
Bison
01-16-2003, 05:26 AM
That didn't do it either ... i'm tellin ya that there's somethin with the variable names that not gettin posted.
I'd like to copy your templates you have working (for the news) into mine, to see if thats the issue here.
Another thing ... does the myvbindex.php file have to keep it's name (Can I rename the file?)?
I renamed it to index.php inside the root directory above my forum folder.
This is the part in the "index template" that's susposed to post the contents of the news variable into the index page ... from the MyVbIndex templates that were created during the install:
</td><td valign="top">$newsbits</td>
<td valign="top" width="170">
Where in the "myvbindex.php" file, where "$newsbit" being called ... from this template?
Tigga
01-16-2003, 05:47 AM
The only 2 that should really matter are the index and index_newsbits since it would at least show something besides a blank page if all the settings and these 2 templates are correct I've attached them in a text file here (I would post them, but it would replace the color variables with vb.org's).
And yes, you can rename the file to whatever you would like.
Tigga
01-16-2003, 05:51 AM
The $newsbit variable is what calls the index_newsbits template. It's on line 443 of the myvbindex.php file.
eval("\$newsbits .= \"".gettemplate('index_newsbits')."\";");
Bison
01-16-2003, 06:16 AM
I noticed that the $index_footer isn't being called either!
Yikes!
Tigga
01-16-2003, 06:25 AM
Um... Did you check that your index template had the right content? What other major hacks do you have installed? I just saw that you have 96 hacks installed, so it's possible that another hack could be affecting something.
Bison
01-16-2003, 06:47 AM
I don't have that many installed from my profile. That's how many i've installed to test in the ime i've been a registered member.
This is baffling me but I know now what could be the problem. It seems that none of the templates from the install are being read.
I changed from your index_footer template ... to the regular footer template, and it worked. So in theory, I think that the templates that were installed are not being recognized as default templates. They might have to be redesignated as custom templates instead, in order for them to work.
Is there a way to reassign the templates to custom ... instead of default?
Tigga
01-16-2003, 06:57 AM
That's really weird, but hopefully that will be the solution. If the index_newsbits template has already been changed and is showing as custom though, I don't see why it wouldn't display if that was the case. There's not really an easy way to change them all to custom templates other than editing and saving each one.
Tigga
01-16-2003, 07:00 AM
Also, by changing the footer template, do you mean you changed the content of the index_footer template to what is in your regular footer template, or that you changed the $index_footer variable to $footer in your index template?
Bison
01-16-2003, 07:00 AM
I attached an image in the previous thread ... shows that the templates were installed as default templates...
I changed under the "templates used" to "footer", instead of "index_footer" ...
Littlebit
01-16-2003, 11:11 PM
Plurplanet,
I just checked that template you mentioned above..I don't know what I did, but I had just $username instead of $bbuserinfo[username]...oops
thank you :)
there is something I just noticed also, in the online users ...the clickable user names that are logged in take you to the wrong url....leaving out the forums directory...ex.
http://mysite.com/members.php
instead of http://mysite/forums/members.php
Tigga
01-17-2003, 12:51 AM
Littlebit - Did you upgrade from v3.0 or 2.0? If I remember correctly, the $username variable was used in versions 2.0 and earlier, but should have been $bbuserinfo[username] in v3.0 and 3.1. It was changed just to remove a small bit of code that wasn't really necessary.
For the logged in users, it sounds like you may have missed a step in the install file, or perhaps the template could have been reverted to it's original. If you'll edit your forumhome_loggedinuser template and add $bburl at the beginning of the code for the link it should fix that right up. :)
Littlebit
01-17-2003, 12:58 PM
Oh man...I must have installed 2.0. thinking it was 3.0...what do you recommend I redo to make sure all works since I did all the upgrade instructions for 3.0 to latest instead of 2.0 to latest like I should have done.... :cross-eyed:
Oh thanks for pointing out the forumhome_loggedinuser template. That was it. 2 my bads...ugg :o
mcyates
01-17-2003, 04:05 PM
my forum is on this directory
http://www.myfootballforum.com/forum
I want the mYvBindex.php on this directory:
http://www.myfootballforum.com
but when i put it in this directory, none of the pictures show up? They show up on the http://www.myfootballforum.com/forum directory. Wht is this?
The portal file is set to:
// Enter The Full Path To Your Forums Here
chdir('/home/sites/site8/web/forum/');
// No Further Editing Necessary
how come none of the images show up?
Tigga
01-17-2003, 06:40 PM
Littlebit - From looking at your site, I don't see anything else that doesn't seem to be working properly. However, there were a few templates that were changed from 2.0 to 3.0, so I'm going to attach the readme file from that version which includes a list of all templates that were changed, and how they were changed. You may want to look over that to be sure you won't have any problems in the future. Also, any of your templates that have not been customized will not need to have anything changed as the upgrade file should have overwritten any original templates. Oh, it's also possible that you would have a couple of extra options in the Admin CP (such as News Smilies) since those would not have been removed with the way you upgraded. It really shouldn't affect anything, but if you would like to just highlight all your myvbindex options and paste them here, I can look over them and tell you how to easily get rid of any that aren't used any more. Again, it won't affect the way the script functions, but may help to prevent some confusion later. ;)
mcyates - It looks like you missed a step in the install file. For the images to work properly, you have to change the path to your images for each style. Here are the instructions from the install file:
Next find the Styles section near the bottom left frame in your Admin CP. Click on "Modify" under Styles, then click on the [fonts/colors/etc] link. Near the bottom of this page you will see a section for Image Paths. Set the "Image folder path" and the "Title image path" to the full URL for your images folder inside your forums (ex - /forum/images or http://yoursite.com/forum/images). You must do this for each of your styles, otherwise your images will not show up.
mcyates
01-17-2003, 09:30 PM
ok thanks for that quick reply, i have sorted the images out. Now the problem is, i'm logged into the portal for the url below:
http://www.myfootballforum.com/forum/myvbindex.php?s=
but not logged into the portal when its out side the forum url:
http://www.myfootballforum.com/index.php (the renamed portal file)
Tigga
01-17-2003, 10:07 PM
Did you edit your cookie path as instructed in the readme file?
Littlebit
01-17-2003, 11:22 PM
Plurplanet,
thanks so much for looking to see already. I'll go over everything from your readme from 2.0 to 3 like you said and double check all the templates info..
..man, I can't believe I did that...
ranger2kxlt
01-18-2003, 05:38 AM
ok plurplanet, found a bug, the birthdays on the home page don't link to the right place?? missing the bburl...any ideas?
XtReMaTriX
01-18-2003, 07:13 AM
Hi...
I have a question... but 1st I would just like to say very nice hack... ok well now for my
Q:
is there a way to have an attachment show up on the news postings?
with or preferably without the text saying it is an attachment....
I would like to be able to post a picture with the news without having to upload the image via FTP....
please let me know...
thanks
Tigga
01-18-2003, 08:29 AM
Ranger - You're running v3.0, right? That's something I accidentally overlooked in that version. Here's how to fix that:
Edit your calendar_showbirthdays template. Change the link in this template and to the full url to your forums member.php file (ex /forum/member.php?s=$session[sessionhash]&action=getinfo&userid=$bd_userid).
Note that it might take a day or or so before that will work properly because of the way vBulletin does the birthdays... It basically uses the above template to insert the birthdays into a field in the database, and won't update that field unless that field is manually deleted or it's time to update it. ;)
Matrix - I've never really looked at adding attachments to news posts, but I wouldn't think it would be that hard. I'll try to look at that over the weekend and post here how you would go about adding that feature.
Tigga
01-18-2003, 08:55 AM
*Edited to attach the file to add to the minihacks section* :)
Littlebit
01-18-2003, 12:14 PM
Hi Plurplanet,
Here's the list of my options...to keep it clean I think I would like the queries to get rid of the unnecessary ones.
News Forum ID
News Posts Maximum
News Maximum Characters
Allow News Comments
Show News Smilies
Show News Icon
Latest Threads Maximum
Latest Threads Maximum Characters
Show Latest Threads Date & Time
Show Latest Threads Icon
Polls Forum ID
Allow Poll Discussion
Show Poll Smilies
Show Users Avatar
Show Private Messages
Show Users Buddylist
Show the online users box.
Show Search Box
Show Mini Calendar
Show Custom Template 1
Show Custom Template 2
There's sometihng else, when I ran the install script I declined the templates update thinking I was going from 3 to 3+ and the only changes were cosmetic.
will I be able to re run the 3+ install script to get the latest default templates installed for sure...so I can do a compare with my customized? I'm sure my defauts are all probably 2.0 (errrr I suck)
I'm thinking I might get an error when the script first goes to load the tables that are already existing...can I bypass that part somehow?
sorry about this...all was totally my bad
Tigga
01-18-2003, 01:06 PM
Actually it appears you are missing about 10 options as well... I was thinking that there would only be a couple of extra ones, but I must have got the version's confused for second and was thinking of the difference between 3.0 - 3.1. To make things easy on both of us, I made you a quick script that should update everything for you. Just upload it to your forums/admin folder and then go to the url in your browser. Note that it will change all the settings to their default, so you will have to reset all the myvbindex options in your Admin CP after you run it. It will also update all the default templates so you will be sure to have them all. You will not lose any changes to the templates that you have made, but it will overwrite all of the original ones so you will be able to click on the "view default template" link to see any changes. Also, you may want to edit any tempates that are still original since the default templates installed with be using the new style. Anyways, hope that helps you out and if you have any other problems let me know. :)
jeffj
01-18-2003, 01:10 PM
PlurPlanet - I just wanted to personally thank your for a great hack. I love it, and my members love it - It's great and you're support is great too!
thanks
- jeff
Littlebit
01-18-2003, 01:13 PM
plurplanet...holy cow! you are wonderful! And it was all my fault too. Thank you thank you thank you ...for making things so easy for us numbnuts. lol
Tigga
01-18-2003, 01:25 PM
jeffj - Thank you. Glad you and your users are enjoying the script. :)
Littlebit - No problem at all. I figured a quick script would be easier than trying to explain everything. ;)
Oh, and ignore the "Uninstall" part at the top. I just took parts from the uninstall and upgrade scripts and put them together, but I didn't change the header part.
Littlebit
01-18-2003, 01:31 PM
Plur...I just ran it and it worked great! thank you again :)
XtReMaTriX
01-18-2003, 02:17 PM
Hey, thanks again PlurPlanet.... what you did works, but one more little problem... now on every post, even those without attachments it shows a spot for a picture... and if there is not a picture for it then it will show a little broken image box (you know what i am talking about right?)
so... is there a way to say if attachment = 0 then do not display or something... i am not sure how 2 do it...
once again i would really like it if u could help me...
thanx!!!
Tigga
01-18-2003, 02:25 PM
Glad everything's working for you Littlebit. :)
Matrix - Sorry about that. You should be able to fix that by opening your myvbindex.php file and looking for the code you just added:
eval("\$news[attachment] = \"".gettemplate("index_attachment")."\";");
And replacing it with:
$news[attachment]='';
if ($news[attachmentid]!='') {
eval("\$news[attachment] = \"".gettemplate("index_attachment")."\";");
}
Littlebit
01-18-2003, 02:32 PM
Hi plurplanet, I just noticed that the vB code for the sigs in news aren't working. I checked and do have vB (and html) enabled for news. where do I need to head to fix it?
XtReMaTriX
01-18-2003, 02:42 PM
Originally posted by PlurPlanet
Matrix - Sorry about that. You should be able to fix that by opening your myvbindex.php file and looking for the code you just added:
eval("\$news[attachment] = \"".gettemplate("index_attachment")."\";");
And replacing it with:
$news[attachment]='';
if ($news[attachmentid]!='') {
eval("\$news[attachment] = \"".gettemplate("index_attachment")."\";");
}
:( well that got rid of the attachments... all of them...
now the ones with stuff in them dont show up
Tigga
01-18-2003, 02:48 PM
Littlebit - Thank you for pointing that out. I didn't think about vB code in signatures when I added that part. You can fix that by opening your myvbindex.php file and looking for:
if ($news[showsignature]==1) {
Right below that add:
$news[signature]=bbcodeparse($news[signature]);
Matrix - That's strange... It works just fine on my server. You could try changing this line:
if ($news[attachmentid]!='') {
To:
if ($news[attachmentid]!=' ') {
(just adding a space between the ' marks) That might fix it... If not let me know and I'll try a different method for it to see if an attachment exists.
Tigga
01-18-2003, 02:52 PM
Just incase that doesn't work, here's another method you could try. Just replace that whole attachment part with this instead:
if ($news[attachmentid]=='') {
$news[attachment]='';
} else {
eval("\$news[attachment] = \"".gettemplate("index_attachment")."\";");
}
XtReMaTriX
01-18-2003, 02:56 PM
yeah mine is already like that... and is still doesnt work... i am not sure what 2 do... anything else i should check?
XtReMaTriX
01-18-2003, 02:58 PM
Originally posted by PlurPlanet
Just incase that doesn't work, here's another method you could try. Just replace that whole attachment part with this instead:
if ($news[attachmentid]=='') {
$news[attachment]='';
} else {
eval("\$news[attachment] = \"".gettemplate("index_attachment")."\";");
}
um...what attachment part... sorry not sure which u r talking about??? still in the myvbindex right?
Tigga
01-18-2003, 03:00 PM
Sorry, I guess I should have been more specific. Yes, still in the myvbindex.php file replace this part with what I posted above:
$news[attachment]='';
if ($news[attachmentid]!='') {
eval("\$news[attachment] = \"".gettemplate("index_attachment")."\";");
}
XtReMaTriX
01-18-2003, 03:01 PM
Originally posted by PlurPlanet
Just incase that doesn't work, here's another method you could try. Just replace that whole attachment part with this instead:
if ($news[attachmentid]=='') {
$news[attachment]='';
} else {
eval("\$news[attachment] = \"".gettemplate("index_attachment")."\";");
}
ok, i put that into myvbindex and i am not getting en error...
Parse error: parse error in /home/virtual/site79/fst/var/www/html/myvbindex.php on line 742
i donno y i am getting that because i am not working anywhere near that line, but then again i still have alot 2 learn...
Littlebit
01-18-2003, 03:02 PM
Littlebit - Thank you for pointing that out. I didn't think about vB code in signatures when I added that part. You can fix that by opening your myvbindex.php file and looking for:
if ($news[showsignature]==1) {
Right below that add:
$news[signature]=bbcodeparse($news[signature]);
All better thanks again plurplanet!
Tigga
01-18-2003, 03:08 PM
Matrix - It looks like there's a } missing... To make things easy, just replace everything starting from:
// News Admin Options
With:
// News Admin Options
$adminopts = '';
if (in_array($bbuserinfo['usergroupid'], array(5, 6)) OR ($news[postuserid] == $bbuserinfo[userid])){
eval("\$adminopts .= \"".gettemplate('index_news_adminopts')."\";");
}
if ($news[attachmentid]=='') {
$news[attachment]='';
} else {
eval("\$news[attachment] = \"".gettemplate("index_attachment")."\";");
}
eval("\$newsbits .= \"".gettemplate('index_newsbits')."\";");
}
$DB_site->free_result($getnews);
unset($news);
}
Then the next line after that part should be:
// vbPortal mini calendar - by wajones
XtReMaTriX
01-18-2003, 03:10 PM
Ok, the error is gone, but i am still not getting the attachments in there...
XtReMaTriX
01-18-2003, 03:13 PM
you can see here the thread with the attached file : Thread with picture (http://www.xtremods.com/vbulletin/showthread.php?s=&threadid=163)
myvbindex.php is here... the 1st post should have it... : Myvbindex (http://www.xtremods.com/myvbindex.php)
Tigga
01-18-2003, 03:26 PM
Matrix - Check your PM's. :)
XtReMaTriX
01-18-2003, 04:02 PM
Thanks PlurPlanet... it all works great now!!!
supersimon
01-18-2003, 05:37 PM
ok when i go to the addy for my website is (www.liquidflo.com/myvbindex.php) and its all white and it says done .. and at first i though it was cause teh templates were missing but they aint... i need help.. i have installed many harder hacks ...
my MSN is liquidflo@msn.com
Tigga
01-18-2003, 06:00 PM
What did you set as your path in your myvbindex.php file?
supersimon
01-18-2003, 06:11 PM
chdir('/home/simon14/public_html/');
i had a feeling that was wrong lol but i dindt know it would make teh file blank..
do u know what it should be or... cant i run a readme file or something to find it
Tigga
01-18-2003, 11:57 PM
Supersimon - try chdir('/home/simon14/public_html/rap');
If that doesn't work, search this thread for info.php and that will tell you how to find out what the path should be.
supersimon
01-19-2003, 01:24 PM
Originally posted by 350Chevy
alkatraz,
I would imagine you would just change this
// Custom Boxes
$custom1='';
$custom2='';
if ($showcustom1) {
$getbgrow=getrowcolor();
eval("\$custom1 .= \"".gettemplate('index_custom1')."\";");
}
if ($showcustom2) {
$getbgrow=getrowcolor();
eval("\$custom2 .= \"".gettemplate('index_custom2')."\";");
}
to something like this...
// Custom Boxes
$custom1='';
$custom2='';
$custom3='';
$custom4='';
$custom5='';
if ($showcustom1) {
$getbgrow=getrowcolor();
eval("\$custom1 .= \"".gettemplate('index_custom1')."\";");
}
if ($showcustom2) {
$getbgrow=getrowcolor();
eval("\$custom2 .= \"".gettemplate('index_custom2')."\";");
}
if ($showcustom3) {
$getbgrow=getrowcolor();
eval("\$custom3 .= \"".gettemplate('index_custom3')."\";");
}
if ($showcustom4) {
$getbgrow=getrowcolor();
eval("\$custom4 .= \"".gettemplate('index_custom4')."\";");
}
if ($showcustom5) {
$getbgrow=getrowcolor();
eval("\$custom5 .= \"".gettemplate('index_custom5')."\";");
}
And create templates for each.
Then edit the 'index' template located under mYvBindex Templates and add $custom3, $custom4, $custom5 where ever you want the templates to be displayed.
Did that exact thing and the box doesnt show up ? i made the template .. ??
PKRWUD
01-19-2003, 02:53 PM
Greetings,
I thought I followed the directions, but I seem to have screwed up something. After making all the changes, and uploading the files, I tried to install, and was greeted with the following message:
Parse error: parse error in /home/pkrwud/public_html/vbulletin/admin/functions.php on line 812
Fatal error: Call to undefined function: vbsetcookie() in /home/pkrwud/public_html/vbulletin/admin/sessions.php on line 205
This same message came up when attempting to visit the forums as well, so, I just moved the vbulletin folder to a safe location, and replaced it with the back-up, and everything is as it was, but I'd really like to install this.
Do you have any idea what I did wrong?
TIA!
Take care,
~Chris
Tigga
01-19-2003, 03:43 PM
supersimon - There was a small mistake in 350chevy's instructions for that. If you'll refer to this post (https://vborg.vbsupport.ru/showthread.php?postid=341569#post341569) it will tell you how to fix that. :)
PKRWUD - It looks like you didn't edit your admin/functions.php file correctly. Make sure that file was edited according to the instructions and it should work fine.
PKRWUD
01-19-2003, 04:10 PM
Thanks for the quick reply!
The only editing I did to the admin/functions.php file was to copy and paste the "weather functions" code above the "start doshutdown" code, as instructed. I just tried it again, and got the exact same error message.
Confused in California
3dfly
01-19-2003, 06:17 PM
how update from v2.0 to v3.1 ?
PKRWUD
01-19-2003, 06:30 PM
Originally posted by PlurPlanet
PKRWUD - It looks like you didn't edit your admin/functions.php file correctly. Make sure that file was edited according to the instructions and it should work fine.
*UPDATE*
I tried one more time, and had the same errors, so I just replaced the admin/funtion.php file with one from my back-up. and went forward with the install, minus the weather. Everything went smoothly, until I entered myvbindex.php after my domain to access the index. I was greeted with a parse error telling me I didn't enter my path correctly at line 13 of the myvbindex.php file. I tried every combo I could think of, but nothing corrected it.
I'm obviously a rookie at this, and would appreciate if you could specifically tell me what should be entered on line 13. Here is the way it is right now (with the lines from before and after):
// Enter The Full Path To Your Forums Here
http://www.ricehatersclub.com/vbulletin/index.php?s=
// No Further Editing Necessary
Thanks
Tigga
01-19-2003, 11:50 PM
3dfly - There are quite a few changes from versions 2.0 - 3.1. One of the biggest is that most all the templates were changed so that it would mesh better with vBulletin. If you look at the screen shots in the first post you can see that there's not much of a difference... If you would like to keep the templates the way they are you can still upgrade, it just makes it a little harder since you will have to edit a few of the templates to apply any changes. If you would like to change to the new template style then upgrading should be a little easier. Either way, let me know if you wish to keep the old style or switch to the new one and I will tell you what you need to do to upgrade.
PKRWUD - What version of vBulletin are you running? I don't see why you would get an error if you edited the admin/functions.php file correctly, but it's possible it could be something to do with the version of vBulletin you're running. As for the path, it should be the path to your forum folder, not the url. Try this instead - /home/pkrwud/public_html/vbulletin ;)
PKRWUD
01-20-2003, 12:42 AM
I just installed 2.2.9.
Here is the first 14 lines of my myvbindex.php file:
<?php
error_reporting(7);
// -------------------------
// mYvBindex v3.1 release by PlurPlanet (Brian Gunter)
// -------------------------
$templatesused = 'index,index_threadbit,index_newsbits,index_news_a dminopts,index_news_comments,i ndex_news_commentnull,index_news_readmore,index_ne wsbits_rating,index_newsbits_s ignature,index_newsbits_avatar,index_newsbits_send tofriend,index_newsbits_printa ble,index_header,index_footer,headinclude,forumhom e_pmloggedin,index_welcometext ,index_logincode,index_buddy,index_buddylist,index _buddypmlink,forumhome_loggedi nuser,index_online,index_search,index_welcometext_ avatar,index_calendar,index_ca lendar_todaysevents,index_weather,index_custom1,in dex_custom2,index_pollresult,i ndex_polloption_multiple,index_polloption,index_po lloptions,index_pollresults_vo ted,index_pollresults_closed,index_pollreview,inde x_pollresults,index_polldiscus s,index_polledit,showthread_ratingdisplay,index_st ats,index_birthdaybits';
$loadmaxusers=1;
$loadbirthdays=1;
// Enter The Full Path To Your Forums Here
/home/pkrwud/public_html/vbulletin
// No Further Editing Necessary
And here's the error I get:
Parse error: parse error in /home/pkrwud/public_html/myvbindex.php on line 13
I want to resolve this before I try to figure out what's wrong with the weather.
Thanks again
jeffj
01-20-2003, 12:52 AM
your problem is the line below //Enter....
it should bechdir('/home/pkrwud/public_html/vbulletin');
it looks like you just typed over what he has in the original distribution of the hack. It's probably a good idea for you to pick up a PHP manual to get a feeling for the syntax of the langauge. It always comes in handy because that way you can understand why the developer did things in a certain way. I often make mods to hacks to tailor them to my own forum's specific needs.
I hope this helps you out... this is the best hack I've ever installed.
cyklonen
01-20-2003, 12:57 AM
Hiya :)
First i wanna say, im totally an NOOB :) and installed this hack, think it is great, but i have 2 quessys
1. the weather.....u see i live in denmark, is there anyway to change the "default" weather setting, seems no sence to show how NY has shiny weather when it is raining here *lol*
2. about the "costom boxes" is there anyway i can choose etc. box 1 to show ONLY for administrator ???
i dont know much about php or coding here, as i said i'm really a noob, but learn fast :P
My regards
PKRWUD
01-20-2003, 01:02 AM
Originally posted by jeffj
your problem is the line below //Enter....
it should bechdir('/home/pkrwud/public_html/vbulletin');
it looks like you just typed over what he has in the original distribution of the hack. It's probably a good idea for you to pick up a PHP manual to get a feeling for the syntax of the langauge. It always comes in handy because that way you can understand why the developer did things in a certain way. I often make mods to hacks to tailor them to my own forum's specific needs.
I hope this helps you out... this is the best hack I've ever installed.
You helped me big time! Thank you!!!
Since we're on a roll, why do you think I'm getting this error when I copy and paste the part for weather (see a couple posts back):
Parse error: parse error in /home/pkrwud/public_html/vbulletin/admin/functions.php on line 812
Fatal error: Call to undefined function: vbsetcookie() in /home/pkrwud/public_html/vbulletin/admin/sessions.php on line 205
Thanks again!
Tigga
01-20-2003, 01:15 AM
Jeffj - Thanks for the compliment and for helping PKRWUD. :)
cyklonen - Yes, there is a way to change the default city for the weather hack. If you'll look in the readme file, it's explained right under the section that explains the Admin CP options.
As for making one of the custom boxes visible only to admins:
Open your myvbindex.php file and look for:
if ($showcustom2) {
$getbgrow=getrowcolor();
eval("\$custom2 .= \"".gettemplate('index_custom2')."\";");
}
Change that to:
if ($bbuserinfo['usergroupid']==6) {
$getbgrow=getrowcolor();
eval("\$custom2 .= \"".gettemplate('index_custom2')."\";");
}
Tigga
01-20-2003, 01:16 AM
PKRWUD - What version of vBulletin are you running?
cyklonen
01-20-2003, 01:43 AM
Great :)
hehe the first place to look, lol why i forgot that :D
well u are the man, and the templates for admin only works aswell :)
THX bro, i'm glad for the QUICK responce
Keep up the good work ;P
jeffj
01-20-2003, 01:50 AM
for anyone having problem getting the current temperature to display properly when installing this hack on 2.2.5 I found the problem.
the myvbindex.php has this line:
if (substr($getbit,7,5) == "Temp")
and there should be a space after p in temp as follows:
if (substr($getbit,7,5) == "Temp ")
change this and the temp will display fine.
- jeff
PKRWUD
01-20-2003, 02:23 AM
Originally posted by PlurPlanet
PKRWUD - What version of vBulletin are you running?
2.2.9
Tigga
01-20-2003, 02:49 AM
That's odd... I'm running 2.2.9 on both my personal site, and another server I use just to test things and have never had an error like that. If you would like to send me a copy of your modified admin/functions.php file I'll be glad to take a look and see if I can find the problem. If you'd like to send it, use the address plurplanet@hotmail.com. I'm in the process of moving servers right now, so my regular email address isn't working at the moment. ;)
3dfly
01-20-2003, 05:06 PM
Originally posted by PlurPlanet
3dfly - There are quite a few changes from versions 2.0 - 3.1. One of the biggest is that most all the templates were changed so that it would mesh better with vBulletin. If you look at the screen shots in the first post you can see that there's not much of a difference... If you would like to keep the templates the way they are you can still upgrade, it just makes it a little harder since you will have to edit a few of the templates to apply any changes. If you would like to change to the new template style then upgrading should be a little easier. Either way, let me know if you wish to keep the old style or switch to the new one and I will tell you what you need to do to upgrade.
PlurPlanet thank for the answer !
I would like to keep the templates.
But if for you will be easier to write description about upgrade with new style it will be excellent.
cbwadmin
01-20-2003, 09:05 PM
installed and works great!
A little tricky to figure out how to edit everything.
Only error left is that it wont show the avatars on the main page.
www.combatwars.com
Tigga
01-20-2003, 10:05 PM
3dfly - Ok, here's the best way I can tell you to upgrade from 2.0 w/o switching the templates style. Download v3.1 and upload the myvbindex.php file over your old one. Then download the update.php file from this post (https://vborg.vbsupport.ru/showthread.php?postid=343217#post343217). That post tells exactly what that upgrade script does, so read it carefully before continuing. And lastly, you can download the 3.0 redme file from here (https://vborg.vbsupport.ru/attachment.php?s=&postid=343034) (by the way, that file has a php extension since I couldn't upload a html file here, so just open it with your browser as you normally would). At the bottom of that file, it will give you a list of templates you need to edit. Make those changes, and then check the bottom of the 3.1 readme file for one last template change you will need to make and that should be it. It really shouldn't be too hard and still shouldn't take more than a few minutes, but if you have any problems/questions let me know. Oh, you will also NOT need to run the upgrade script that comes with 3.1 as the alternate upgrade script will make the necessary changes for you.
cbwadmin - In the url to your avatar it has your forum url twice, so I'm guessing you have the "Path to image" for your avatar set to the full url to your site. You should be able to fix that by opening your myvbindex.php file and looking for this line:
$newsavatarurl = "$bburl/$news[avatarpath]";
Remove the $bburl in that line and it should fix the problem. Alternatly you could edit your avatar's path's and remove the http://yoursite.com/ from them, but I figured the above fix would be easier. And if that doesn't correct the problem let me know and I will be sure to find something that will. ;)
maverick1236
01-20-2003, 10:59 PM
looking for some more addons though
I love this page
http://www.wxchat.com/index.php
things im lookin to add
1.top 10 posters
2.a shoutbox that fits
3.random photos box
4.affiliates box
5.supporting members box
ive tried adding these things-the template never comes out right though
has anyone added these?-and if so-could you please share your templates?
i would be very grateful
great hack anyway-installed without a hitch
cbwadmin
01-20-2003, 11:09 PM
what you said didnt work, but it lead me in the right direction.
Its working now. Thanks.
Tigga
01-21-2003, 04:06 AM
maverick - Most everything you mentioned shouldn't be too hard to add...
The top 10 posters wouldn't be hard at all. I can tell you how to do that tomorrow after I get some sleep.
There are 2 shoutbox integration mini-hacks in the first post on this thread. Have you tried either of those?
Random photo's shouldn't be hard, but I would have to know where they would be coming from... Ex - Do you use Photopost or something like that?
An affiliates box could be done by adding or editing a custom template couldn't it?
I'm sure a supporting members box would be possible, but how do you distinguish a 'supporting member' from a regular one?
cbwadmin - Glad you got it working. :)
Littlebit
01-21-2003, 05:21 AM
Hi Plurplanet,
I decided to have attchements work for news too and went thru the instructions you gave matrix and ended with nothing showing but no errors (template made and newsbits edited as well as the myvbindex) and I was wondering what info you gave matrix in pm that got it goin'Originally posted by PlurPlanet
Matrix - Check your PM's. :)
:bunny:
Tigga
01-21-2003, 09:05 AM
Littlebit - What exactly is it showing? Does it display the broken images as it did with Matrix, or does it just show nothing at all? The problem when Matrix tried it was he forgot to change the news query to add in the call to the attachment table. If all that seems to be correct, you can email me a copy of your file and I'll take a look to see why it's not working properly.
Tigga
01-21-2003, 09:37 AM
maverick - Here is how you can add the top X posters...
Open your myvbindex.php and look for:
$topposter=$DB_site->query_first("SELECT userid,username,posts FROM user ORDER BY posts DESC LIMIT 1");
Remove that line, then look for:
// Forum Permissions
Right above that line, add:
$topposters=$DB_site->query("SELECT userid,username,posts FROM user ORDER BY posts DESC LIMIT 10");
while ($tposter=$DB_site->fetch_array($topposters)) {
eval("\$posterbits .= \"".gettemplate('index_topposterbits')."\";");
}
eval("\$topposters = \"".gettemplate('index_topposters')."\";");
Then you will want to create a new template called index_topposters with the following content:
<table cellpadding="{ tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{ tablebordercolor}" { tableouterextra} width="100%"><tr><td>
<table cellpadding="4" cellspacing="{ tableinnerborderwidth}" border="0" { tableinnerextra} width="100%">
<tr id="cat"><td bgcolor="{ tableheadbgcolor}"><smallfont color="{ categoryfontcolor}"><b>Top Posters</b></smallfont></td></tr>
<tr><td bgcolor="$getbgrow"><smallfont>$posterbits
</smallfont></td></tr></form></table></td></tr></table><p>
(Be sure to remove the space after each { in that template)
Then create a template called index_topposterbits with the following content:
<a href="$bburl/member.php?s=$session[sessionhash]&action=getinfo&userid=$topposters[userid]">$tposter[username]</a> ($tposter[posts])<br>
Then just add the variable $topposters in your index template where you would like the "top posters box" to appear. You may also want to remove the top poster part in the stats section too. ;)
Oh, and that's set up to display the top 10 posters for your forum. If you would like to change that number, just change the part "DESC LIMIT 10" in the code you added to whatever you would like the number to be.
jjj0923
01-21-2003, 09:54 AM
in the FWIW department. I use PhotoPost and I added code to Myvbindex to display the 3 most recent photos posted in PhotoPost. Ther's also logic to 'exclude' one of my photo galleries since one of them contain only pictures of hot looking babes in thongs (part of the high performance boating scene). I only show the boat pictures on the myvbindex page.
:)
Tigga
01-21-2003, 10:02 AM
So where are these pictures of the hot babes in thongs??? :p
Littlebit
01-21-2003, 02:25 PM
PlurPlanet,
yeh, nothing at all is showing. I bet for the same reason. I'll pm you the file all the same just as a added measure. :).
deano1
01-21-2003, 03:45 PM
having a problem with myvbindex 3.1
the code i put in the sid area of my profile
on the portal
it shows the code
and don't work
any help on that
http://www.deanosworld.net
this is what i mean
http://www.deanosworld.net/sig.JPG
Tigga
01-21-2003, 03:56 PM
deano1 - I accidentally overlooked using vBcode in signatures. You can fix that by opening your myvbindex.php file and looking for:
if ($news[showsignature]==1) {
Right below that add:
$news[signature]=bbcodeparse($news[signature]);
Littlebit
01-21-2003, 04:05 PM
Thanks PlurPlanet!
Everything is working excellently (is that a word?)
Tigga
01-21-2003, 04:08 PM
No problem Littlebit. Glad it's working. :)
And yes, excellently is a word. :p
http://dictionary.reference.com/search?q=excellently
deano1
01-21-2003, 04:19 PM
Originally posted by PlurPlanet
deano1 - I accidentally overlooked using vBcode in signatures. You can fix that by opening your myvbindex.php file and looking for:
if ($news[showsignature]==1) {
Right below that add:
$news[signature]=bbcodeparse($news[signature]);
perfect
you right
thanks for your help
one other thing
this step to install the portal
i could not do at all
if i did do this
it would wipe out my online users
and only show one , if the person was there or not
this step i'm reffering to is this
but it works fine without it
In your Admin CP, find the Templates section and click on Modify. Find your "forumhome_loggedinuser" template and replace the code there with this code.
<a href="$bburl/member.php?s=$session[sessionhash]&action=getinfo&userid=$userid">$username</a>$invisibleuser
Tigga
01-21-2003, 04:24 PM
No problem deano.
For the online users... If you got that result, you changed the forumhome_loggedinusers template instead of the forumhome_loggedinuser one. ;)
tmuna
01-21-2003, 04:25 PM
mYvBindex......... Best! :bandit:
deano1
01-21-2003, 04:27 PM
Originally posted by PlurPlanet
No problem deano.
For the online users... If you got that result, you changed the forumhome_loggedinusers template instead of the forumhome_loggedinuser one. ;)
thanks
i may have
i was drunk when i did the install , lol
i will have a look
thanks
deano1
01-21-2003, 04:32 PM
Originally posted by PlurPlanet
No problem deano.
For the online users... If you got that result, you changed the forumhome_loggedinusers template instead of the forumhome_loggedinuser one. ;)
your right again
i went back and did it right
the only change it made anyway was making the online user names a bit smaller
but you say it's needed , so it will stay
thanks for all your help
i like this portal
Tigga
01-21-2003, 04:38 PM
LOL! Installing hacks while drunk is never a good thing. ;)
Changing the template shouldn't have made the text any smaller though... All that does is add $bburl in front of the link so it will point to the right place on your index file.
deano1
01-21-2003, 04:42 PM
kool thanks
PKRWUD
01-21-2003, 10:11 PM
Brian-
Thank you so much for looking over that file, and sending back the corrections! I made them, and now it works flawlessly. I'm still not sure how the code became that way, but that's what I downloaded. Also, to answer your question regarding vB, I do have 2.2.9, and it's the only version I've ever had.
In any case, thank you so much for your hack, and for following through with personal help! It is greatly appreciated!
Take care,
~Chris
3dfly
01-21-2003, 10:20 PM
Thank you PlurPlanet!
I updated home page, is working excellently.
Tigga
01-22-2003, 01:11 AM
No problem you guys. Hope you enjoy the script. :)
deano1
01-22-2003, 01:15 AM
i love it
Sinister112
01-22-2003, 11:05 AM
is there anyway i can add my vbb skin to it?
Tigga
01-22-2003, 11:17 AM
What exactly do you mean by skin? It will display the colors and etc from your styles, and you can edit the index_header template to match the rest of the site if that's what you mean.
bobII
01-22-2003, 12:19 PM
I recently installed this hack, everything seems to be working fine except if someone receives a private message from the index page, when the popup and asks "Would you like to open a new window to view the new message" it points to private.php. I need to change the link to:
/forum/private.php
Can anyone tell me where I can make this change. I've been looking in the admin without any luck so far.
Any help is greatly appreciated!
Thanks in advance,
Bob
Tigga
01-22-2003, 12:29 PM
Oh, thank you for pointing that out. I guess I changed the template so long ago on my site and forgot that would be necessary.
To fix it, edit your head_newpm template and look for:
window.location="private.php?s=$session[sessionhash]";
Change that to:
window.location="$bburl/private.php?s=$session[sessionhash]";
That should work, but if it doesn't replace the $bburl there with the url to your forums. Sorry about that and thank you for pointing it out. :)
bobII
01-22-2003, 01:51 PM
Thanks for the speedy reply. You pointed me in the right direction, the line that needed to be changed is as follows:
(Press cancel to open your $inboxname in the current window.)");
if (second_box==true) {
window.open('private.php?s=$session[sessionhash]','pmnew','width=600,height=
500,menubar=yes,scrollbars=yes,toolbar=yes,locatio n=yes,directories=yes,resi
zable=yes,top=50,left=50');
when I concatenated the private.php to the actual URL that solved my problem....
:banana:
Thanks again - bobII
supersimon
01-22-2003, 08:48 PM
There seems to have been a slight problem with the LiquidFLO database.
Please try again by pressing the refresh button in your browser.
An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.
We apologise for any inconvenience.
Database error in vBulletin 2.2.7:
Invalid SQL: SELECT thread.threadid,thread.title,thread.replycount,thr ead.postusername,thread.postuserid,thread.dateline ,thread.views,thread.iconid,thread.votenum,thread. votetotal,post.postid,post.pagetext,post.allowsmil ie,post.showsignature,user.signature,avatar.avatar path,NOT ISNULL(avatardata) AS hascustom,customavatar.dateline AS avatardateline FROM thread LEFT JOIN post USING (threadid) LEFT JOIN user ON (user.userid=post.userid) LEFT JOIN avatar ON (avatar.avatarid=user.avatarid) LEFT JOIN customavatar ON (customavatar.userid=user.userid) WHERE thread.forumid=62 AND isnews='Y' GROUP BY thread.threadid ORDER BY thread.threadid DESC LIMIT 5
mysql error: Got error -1 from table handler
mysql error number: 1030
Date: Wednesday 22nd of January 2003 05:34:42 PM
Script: http://www.liquidflo.com/rap/rap/myvbindex.php
Referer:
iv had my homepage up for 2-3 days and i come home,... and get this ??? can ayone help
Tigga
01-22-2003, 09:42 PM
Supersimon - That looks like one of your tables has become corrupt. You should try running the repair.php file in the "extras" folder that came with vBulletin.
Hi Guys,
I am trying to password protect my pages that are on myvbindex page so once they are logged in they can view our site. I have found a few things but nothing seems to work right. Is there anything like that in myVBindex?
So if they are not logged in it takes them to a reg. page and if they are it allows them access to the site.
Papa
jeffj
01-25-2003, 05:10 PM
Originally posted by papa
Hi Guys,
I am trying to password protect my pages that are on myvbindex page so once they are logged in they can view our site. I have found a few things but nothing seems to work right. Is there anything like that in myVBindex?
So if they are not logged in it takes them to a reg. page and if they are it allows them access to the site.
Papa
papa:
this should work for you...assuming you do not want un-registered/un-logged-in users to see your myvbindex.php page;
right after:
require('./global.php');
insert the following code:
if ($bbuserinfo['userid'] == 0) { eval("dooutput(\"".show_nopermission()."\");"); }
Thanks Jeff,
It worked like a champ blocking me out but if I enter my username and pass it takes me to the member.php page and not the page I was at??? Could this be a setting in the log in page?
One more questions. Can I use:
require('./global.php');
if ($bbuserinfo['userid']==0) {
eval("dooutput(\"".show_nopermission()."\");");
}
on non vb pages can I use the above code as an include to protect those pages.
Thanks in advance
ranger2kxlt
01-26-2003, 11:51 PM
plur planet, maybe you can help me with this
https://vborg.vbsupport.ru/showthread.php?s=&threadid=48130
please refer there, but we would also like this done on the vbindex pages we have, anyway?
Thanks
jeffj
01-27-2003, 12:54 AM
Originally posted by papa
Thanks Jeff,
It worked like a champ blocking me out but if I enter my username and pass it takes me to the member.php page and not the page I was at??? Could this be a setting in the log in page?
One more questions. Can I use:
require('./global.php');
if ($bbuserinfo['userid']==0) {
eval("dooutput(\"".show_nopermission()."\");");
}
on non vb pages can I use the above code as an include to protect those pages.
Thanks in advance
sure. I use it all the time...make sure you've got
require(./global.php');
at the beginning to make all the vb variables available.
This is the error I get Jeff,
Parse error: parse error, unexpected T_REQUIRE in /home2/mmdclab/mmdclab-www/forums/v_blur_tool.php on line 1
????
OK I got the require thing going but now I get this at the top of the pages:
Warning: Cannot add header information - headers already sent by (output started at /home2/mmdclab/mmdclab-www/forums/v_blur_tool4.php:3) in /home2/mmdclab/mmdclab-www/forums/admin/functions.php on line 1573
You can enter your username and pass and it will work ok but I am not sure where this error is coming from.
ok we are making progress.
We do not get an error and it works everytime as long as the file we add this code to is in the forums directory. If we place the file in a folder it will not work. It keeps taking us to the member.php file and it is looking for it in the folder our protected file is in.
Anyone have any solutions to this? I guess we could just place all of our files we want to require registration in our forums folder but that would just get crazy.
Thanks in advance.
XtReMaTriX
01-28-2003, 02:53 AM
For some reason my "Latest Forum Topics" does not work... when i enter in 0 for the value the header shows up. and if it. if i enter in 10 then i still get just the header...
what should i do to fix this???
DarkDraco07
01-28-2003, 03:21 AM
i havnt been up to date on this thread. has that mini hack addon been made yet?
Tigga
01-28-2003, 05:13 AM
I apologize for not being around to help these last few days. My normal job is a club promoter and this weekend was our 2 year anniversary event, and one of the biggest we've done yet. Things were extremely busy around here so I haven't had much time to check vb.org... Plus I kinda had to take a day to relax and recover from the weekend. Now I'll see if I can help with some of the questions. :)
Ranger - Open your myvbindex.php file and look for:
$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user');
Replace that with:
$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user WHERE usergroupid!=3');
Papa - Is it looking for the member.php file in the wrong directory and resulting in a blank page when you first try to go to the password protected page, or is it just redirecting you to the member.php file after you log in from one of those pages?
Matrix - Was the latest threads part working before and suddenly stopped, or has it not ever worked? Have you modified your myvbindex file at all? If so, try uploading a fresh version and name it something other than what the current file is called and see if it works on that one. You could also try checking your index_threadbit template and make sure it's not blank, and your index template to make sure the $threadbits variable is in there right below the header part.
DarkDraco - I'm assuming you mean a hack to keep the index page open if the forums are closed. If so, sorry but I haven't had time to work on that yet.
XtReMaTriX
01-28-2003, 10:58 PM
I can only remember my latest threads working the very first time i loaded it. after that it had never worked... and it stopped working before i tried 2 modify the file. i loaded a fresh copy onto my server and when i view it still nothing for it. and for my index_threadbit well here is the code in it...
<tr><td bgcolor="$getbgrow">$thread[icon]<normalfont><a href="$bburl/showthread.php?s=$session[sessionhash]&threadid=$thread[threadid]"><b>$title</b></a></normalfont><br>
<smallfont color="{timecolor}">$thread[date]</smallfont><br>
<smallfont> by <a href="$bburl/member.php?s=$session[sessionhash]&action=getinfo&userid=$thread[postuserid]">$thread[postusername]</a><br>
Replies: $thread[replycount] | Views: $thread[views]</smallfont></td></tr>
Ok lets say in my custom boxes I decide to make them into a nav bar how would I go about making a new page like a staff page where the things on the left and right are the same but where news is is the new tables and stuff. If it's been posted already Im sorry I went through 16 pages looking for it.
XtReMaTriX
01-31-2003, 06:40 AM
Mono - I did something similar to what you are asking with the WEBTEMPLATES hack (https://vborg.vbsupport.ru/showthread.php?s=&threadid=36419)
you just have to put in some extra code like
$getbgrow=getrowcolor();
eval("\$custom1 .= \"".gettemplate('index_custom1')."\";");
The thing that i could get to show without having it mess up was the "most users ever online" but i just removed that for the new pages...
Here is a live demo of myvbindex: XtReMoDs (http://xtremods.com)
WEBTEMPLATES: Template (http://www.xtremods.com/vbulletin/show.php?pg=reviews)
If you PM me then i can tell you more about what code to add...
Tigga
01-31-2003, 12:47 PM
Mono - Something like that could be done fairly easily. I know I already explained how to do it somewhere in this thread, but I couldn't find it by searching, so I'll just explain it again. :)
If you'll open your myvbindex.php file and look for this line:
// News
Right above that you'll want to place some coding like this:
if ($action=="newpage") {
eval("\$newsbits = \"".gettemplate('index_newpage')."\";");
} else {
Then you'll want to look for this line:
$DB_site->free_result($getnews);
unset($news);
}
Right below that you will want to add another }
Then you'll want to create a template called index_newpage (of course you can call it whatever you'd like, just be sure to change the name in the code above).
Then to link to that page, you would use the url http://yoursite.com/myvbindex.php?s=$session[sessionhash]&action=newpage
And again the "newpage" part after the action can be changed to whatever you'd like, just be sure to change that in your coding as well.
attroll
01-31-2003, 11:16 PM
Awesome hack. I love it but I have two problems.
1. When I go to install the weather_install.php. I get a "The page cannot be displayed". This page is in my admin directory and I don't know why I get this error when trying to execute it.
2. When my calendar shows it has the current time and date but the date that is highlited on the calendar is the wrong one. What can I do to fix this.
My site that I installed this mod on is a test site for my main site. The hack can be viewed on http://lifestrails.com
Colon33
02-01-2003, 09:39 PM
I keep getting an ERROR here when i post a poll.
Fatal error: Call to undefined function: get_bbarraycookie() in /home/moguslan/public_html/myvbindex.php on line 251
Can anyone help me out?
Originally posted by PlurPlanet
Mono - Something like that could be done fairly easily. I know I already explained how to do it somewhere in this thread, but I couldn't find it by searching, so I'll just explain it again. :)
If you'll open your myvbindex.php file and look for this line:
// News
Right above that you'll want to place some coding like this:
if ($action=="newpage") {
eval("\$newsbits = \"".gettemplate('index_newpage')."\";");
} else {
Then you'll want to look for this line:
$DB_site->free_result($getnews);
unset($news);
}
Right below that you will want to add another }
Then you'll want to create a template called index_newpage (of course you can call it whatever you'd like, just be sure to change the name in the code above).
Then to link to that page, you would use the url http://yoursite.com/myvbindex.php?s=$session[sessionhash]&action=newpage
And again the "newpage" part after the action can be changed to whatever you'd like, just be sure to change that in your coding as well.
Thank you oh so much
and before I forget ... *clicks install*
Tigga
02-02-2003, 07:22 AM
Attroll - That's strange that it would be giving you an error like that for the weather part. I know one other person was having a similar problem before and we never could figure out why. Double check that the file was uploaded to your forums/admin folder and that you are going to the right url in your browser. If it still doesn't work for you let me know and I will post a file here with the queries so you could run the queries through phpMyAdmin instead.
As for the calendar, that should work correctly and highlight the current date according to the time that is set in your Admin CP. I just checked your site and it has the correct date highlighted. If you're still having problems with it though let me know and I'll try to figure out what's wrong.
Colon33 - Are you running vBulletin 2.2.5 or lower? That's a function that was apparently changed in 2.2.6, and that's the lowest version I've had to test it with. For the time being, I believe you could remove this code from your myvbindex.php file:
get_bbarraycookie('pollvoted', $pollid) or
However, that will not check the cookie on people's computer to check if they have voted on the poll or not, so it would make it a little easier for people to vote more than once if they wanted to. If someone could email me (brian@plurplanet.com) their admin/functions.php file from v2.2.5 I could take a look there to find out what the function was changed from and post a fix for those users.
Mono - Thanks for installing the hack. Hope you enjoy it. :)
Tigga
02-02-2003, 07:37 AM
Actually, this may work too for the cookie function problem. This is the function from 2.2.9, so if it was added in it should fix the problem. Just open your myvbindex.php file and look for:
require('./global.php');
Right below that Add:
$bbcookiecache = array();
function get_bbarraycookie($cookiename, $id) {
// gets the value for a array stored in a cookie
global $HTTP_COOKIE_VARS;
global $bbcookiecache;
if (!isset($bbcookiecache[$cookiename])) {
$bbcookiecache[$cookiename] = @unserialize($HTTP_COOKIE_VARS["bb$cookiename"]);
}
return intval($bbcookiecache[$cookiename][$id]);
}
Let me know if that works. :)
TotlKaos
02-02-2003, 01:55 PM
I would like to replace the News part on the front page with just the forums.. so that way you have the forums with the info boxes on the left and the right..
Is this possible to do?
Russ
Tankmech
02-02-2003, 02:50 PM
Hi there,
Nice Hack, it's working great here.
Is it possible to prevent the latest forums topics portion from showing threads that they do no have access to. Sometimes the subject of the message gives information you don't want the whole board to see.
XtReMaTriX
02-02-2003, 03:52 PM
Originally posted by PlurPlanet
Mono - Something like that could be done fairly easily. I know I already explained how to do it somewhere in this thread, but I couldn't find it by searching, so I'll just explain it again. :)
If you'll open your myvbindex.php file and look for this line:
// News
Right above that you'll want to place some coding like this:
if ($action=="newpage") {
eval("\$newsbits = \"".gettemplate('index_newpage')."\";");
} else {
Then you'll want to look for this line:
$DB_site->free_result($getnews);
unset($news);
}
Right below that you will want to add another }
Then you'll want to create a template called index_newpage (of course you can call it whatever you'd like, just be sure to change the name in the code above).
Then to link to that page, you would use the url http://yoursite.com/myvbindex.php?s=$session[sessionhash]&action=newpage
And again the "newpage" part after the action can be changed to whatever you'd like, just be sure to change that in your coding as well.
Do you have to use Action for this? can you call it whatever you want?
KeneticKangaroo
02-03-2003, 03:08 AM
This is the error:
Warning: ChDir: No such file or directory (errno 2) in /usr/local/psa/home/vhosts/airwavescomms.co.uk/httpdocs/myvbindex.php on line 13
Warning: Unable to access ./global.php in /usr/local/psa/home/vhosts/airwavescomms.co.uk/httpdocs/myvbindex.php on line 17
this is my vbindex file:
// Enter The Full Path To Your Forums Here
chdir('/forums');
// No Further Editing Necessary
require('./global.php');
on the require ('./global.php'); bit i dont know why there is a .there
but If i change require('./global.php');
to
require('forums/global.php');
i get this error
Warning: Unable to access /admin/db_mysql.php in /usr/local/psa/home/vhosts/airwavescomms.co.uk/httpdocs/forums/global.php on line 139
instead of
Warning: Unable to access ./global.php in /usr/local/psa/home/vhosts/airwavescomms.co.uk/httpdocs/myvbindex.php on line 17
KeneticKangaroo
02-03-2003, 03:23 AM
ok the chdir bit is sorted, its the global bit i still have a problem with
XtReMaTriX
02-03-2003, 04:04 AM
OK, I have a question about the whole action= thing.
Whenever u put action="pagename" can u make that the template name. so then i would not have to make an if then statement for each page i make. so if i type:
myvbindex.php?action="templatename" then the template would come up.
Am i explaining this right?
certify
02-03-2003, 06:04 AM
I can't edit the thread, check ip or warn as it keep showing the same postid. Every time I click edit my post or someone else post it goes and edit the first thread. Goto the thread below and you will know what I am talking about.
http://www.bmwclub.com.my/forums/showthread.php?
s=&threadid=2
Tigga
02-03-2003, 09:21 AM
TotlKaos - Yes, that would be possible with a bit of hacking. I'll test it out and try to post instructions on what you would change a little later.
Tankmech - Private topics in the latest threads part are only visible to those who have permission to view them. If you log out or log in as a user that does not have access to those forums, those threads should not be visible. If they are still visible, you should make sure your forum permissions are set so that those usergroups are not allowed to see other's threads in that forum.
Matrix - Yes, you should be able to change "action" to pretty much whatever you would like. It would just need to be changed in the code and the url. Just adding templates alone would not work though. If you wanted to have more than one seperate page like that, you would need to add something like this:
if ($action=="newpage") {
eval("\$newsbits = \"".gettemplate('index_newpage')."\";");
} elseif ($action=="newpage2") {
eval("\$newsbits = \"".gettemplate('index_newpage2')."\";");
} elseif ($action=="newpage3") {
eval("\$newsbits = \"".gettemplate('index_newpage3')."\";");
} else {
Then if you wanted more than 3 different templates that could be pulled in place of the news, you would just add another elseif statement in there before the else part at the end.
KeneticKangaroo - The path to your fourms should be /usr/local/psa/home/vhosts/airwavescomms.co.uk/httpdocs/forums and you should not have changed the require part.
certify - That wouldn't have anything to do with this hack. It looks like something has been messed up either in the code or your postbit template. The best thing I can suggest is for you to make a backup of your postbit template and then revert it to it's original to see if that's where the problem is. If that doesn't work, you should try uploading an unhacked version of your admin/functions.php and/or showthread.php files. The problem would most likely be in that template or one of those files.
certify
02-03-2003, 11:15 AM
Thanks for the tip. :)
!2eS!n
02-04-2003, 09:13 PM
Nothing is showing up in the middle section of my front page now... Am i doing something wrong?! Everything else is 100% just its balnk in the middle row, but both sides are fine?!?!
attroll
02-05-2003, 03:50 AM
OK. The calendar started working. I guess it was just a glitch. I reuploaded weather_install.php to my forum/admin folder and tried to run it again and now I get the following error:
Parse error: parse error in /usr/local/etc/httpd/htdocs/lifestrail/forum/admin/weather_install.php on line 35444
Is this because it is trying to create an SQL database file? If so I can not do that on my own my host has to create it for me.
Tigga
02-05-2003, 03:55 PM
!2eS!n - Were the posts in your news forum made before or after you installed the script? The scirpt will only recognize posts that were made after it was installed. If you need to update those posts, search this thread for phpMyAdmin and you should be able to find how to update those posts. If the posts were made afterwards, then your News Forum ID is not set correctly, or you did not edit your newthread.php file correctly.
attroll - I double checked that line of code in the weather_install.php file and there's nothing there that could cause that error. It's possible though that the file got cut off during transfer, which would result in an error like that. I would suggest to try re-uploading the file and make sure it is uploaded completely, and then run the script again. If that doesn't work let me know.
attroll
02-06-2003, 03:37 AM
I tried uploading the file in binary and asc and not matter what I keep getting the same problem when I try to execute the file.
The page cannot be displayed
The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings.
I kept getting this error the every time until the other night when I reuploaded and got the last error message in my last post. But this current one is the one I was getting every other time.
Man what the hell is going on?
redstaing0
02-06-2003, 09:56 AM
i have a problme plsea help me why
Adding city values 1-10,000...
Database error in vBulletin Control Panel 2.2.6:
Invalid SQL: INSERT INTO weather_city VALUES ('AYXX0007', 'Base Arturo Prat', 263)
mysql error: Duplicate entry 'AYXX0007' for key 1
mysql error number: 1062
Date: Thursday 06th of February 2003 09:54:14 AM
Script: http://localhost/vbbb/vbbb/admin/weather_install.php?step=4
Referer: http://localhost/vbbb/admin/weather_install.php?step=3
Tigga
02-06-2003, 03:47 PM
attroll - I'm really not sure why it would be doing that. One other person has had a problem like that before, but I have no idea why. About the only thing I can suggest is to run the queries manually through phpMyAdmin. Here's a link to the thread that has the queries and instructions - https://vborg.vbsupport.ru/showthread.php?postid=318513#post318513
redstaing0 - That's most likely a result of you hitting the "next" link twice when installing the weather. The best thing I can suggest for you to do is to upload the myvb_uninstall.php file to your forums/admin folder and go to this url - http://yoursite.com/forums/admin/myvb_uninstall.php?step=3
That should remove all changes for just the weather part, and then you can run the weather_install.php script again.
redstaing0
02-06-2003, 10:39 PM
i will try it agen today
but it is cool hack thankes
i will try it agen now i hop they help to install
Units
02-07-2003, 12:22 AM
I cannot get the news to show on the page! weird :(
Prophet2002
02-07-2003, 02:12 AM
Would there be some way to exclude specific forum or thread id's from the "Latest Forum Topics" section on the main page?
mforster
02-07-2003, 06:07 AM
Excellent hack, installed no probs A++++ Check it out at http://www.boogle.org.uk.
Found it very easy to customise, hoping to get a new skin on it over the weekend.
WELL DONE!
Tigga
02-07-2003, 12:14 PM
Units - Please check post #634 in this thread. If that doesn't help let me know.
Prophet2002 - If you'll open your myvbindex.php file and look for this line:
FROM thread WHERE open='1' AND open<>10 $iforumperms
Replace that with:
FROM thread WHERE open='1' AND open<>10 AND forumid!=XX $iforumperms
Replace XX there with the forum id that you do not want to appear in the latest threads.
mforster - Thank you. Hope you enjoy the hack. :)
Prophet2002
02-07-2003, 01:51 PM
you are the man PP, thx for the info.:D
slabuda
02-08-2003, 01:27 PM
attempted to use this Hack ... looks good ...
But going through the install I found that in the step to edit the pages ..
(Q1)
Step 3 - File Modifications
Find:
'1')");
Replace it with:
'1','Y')");
I could not find this in my file.
(Q2)
In step 2, was I supposed to clear out all the data in those templates and replace with the data in the instructions?
(Q3)
I can't seem to log out of my Forums now.
Any help would be appreciated ... thanks
Tigga
02-08-2003, 02:00 PM
1. What version of vBulletin are you running? Unless you have another hack that's changed that part of the file, that code should be just a couple of lines below the first line you edited.
2. For the first 2 template mods, yes. For the 3rd one you are only supposed to change the link to point to the full url to your forums.
3. Did you set the Cookie Domain to .yoursite.com as instructed in the install file? Also be sure your Cookie Path (the option right under the Cookie Domain) is set to /
slabuda
02-08-2003, 02:03 PM
Ok figured out my first question, but still need on the other two. Thanks
slabuda
02-08-2003, 02:09 PM
Trying to Post to the News Forum .. I recieve this error ..
Database error in vBulletin 2.2.6:
Invalid SQL: INSERT INTO post (postid,threadid,title,username,userid,dateline,at tachmentid,pagetext,allowsmilie,showsignature,ipad dress,iconid,visible,isnews) VALUES (NULL,'4330','Test','Kiko','1','1044720361','0','T est','1','1','66.61.50.249','0','1')
mysql error: Column count doesn't match value count at row 1
mysql error number: 1136
Date: Saturday 08th of February 2003 11:06:01 AM
Script: http://www.consilioetarmis.com/forum/vbaoc/forum/vbaoc/newthread.php
Referer: http://www.consilioetarmis.com/forum/vbaoc/newthread.php?action=newthread&forumid=85
And on an existing Thread ...
Database error in vBulletin 2.2.6:
Invalid SQL: INSERT INTO post (postid,threadid,title,username,userid,dateline,at tachmentid,pagetext,allowsmilie,showsignature,ipad dress,iconid,visible,isnews) VALUES (NULL,'4331','Test','Kiko','1','1044720985','0','T EST','1','1','66.61.50.249','0','1')
mysql error: Column count doesn't match value count at row 1
mysql error number: 1136
Date: Saturday 08th of February 2003 11:16:25 AM
Script: http://www.consilioetarmis.com/forum/vbaoc/forum/vbaoc/newthread.php
Referer: http://www.consilioetarmis.com/forum/vbaoc/newthread.php?action=newthread&forumid=8
----------------------------------
Ok when i tried both of these, it gave the error, but still created the thread, but didnt have the body of the message in it ..
Also any new post I put in an existing thread seems to clean that thread ...
Tigga
02-08-2003, 05:34 PM
You didn't edit the newthread.php file correctly and make the 2nd change listed in the install file.
arracing
02-09-2003, 07:58 AM
I found a problem in latest threads. Basically if you have a forum such as a moderator forum where you want the forum visible on the board yet restricted so that only mods can get in. I have such a forum and the thread topics are showing up in the myvbindex latest thread table even when the permissions such as for guest say you cannot see in that folder. I know if I make this a private forum the thread topics will not show but I do not want to make the forum private because it will disapear. I really do not want others that cannot get into the mod forum to see what the thread topics are. Is their anything i can do to change this?
jarvis
02-09-2003, 01:20 PM
This is answered about 5 or so posts up in post #642.
Just make sure that you change the XX to the forum that you do not want to show in your latest threads list.
Also, there is a typo in the post. fourmid should be forumid. :D
HTH,
Jarvis
www.mhogaming.com
Tigga
02-09-2003, 05:35 PM
If permissions are set for that forum so that those groups can't view other's threads then they shouldn't be visible in the latest forum topics. If for some reason that doesn't work though just check the post jarvis pointed out above. And thanks for pointing out that typo jarvis. :)
arracing
02-09-2003, 07:50 PM
whats the code if i wanted to put more than 1 forum in that XX ?
arracing
02-09-2003, 08:02 PM
also i put in that code with the correct forum id where the xx were but it still shows in the myvbindex.
Tigga
02-09-2003, 08:50 PM
Ahhh, it's probably still telling it to pull threads from that forum because of the forum permissions. That code you added in would tell it not to look in that forum, but the part for the forum permissions would tell it to look in that forum, so I guess the permissions are canceling that part out. If you look for this line of code instead:
$forums=$DB_site->query('SELECT * FROM forum WHERE displayorder<>0 AND active=1 ORDER BY parentid,displayorder');
Right before ORDER BY in that query, add AND forumid!=XX. If you wanted to exclude more than one forum, you would just add the AND forumid!=XX again right after the first one.
arracing
02-09-2003, 10:18 PM
im a bit confused. Should i replace this new line you just gave me with the code from before? What do I do with the line I already replaced? Should I put it back to the original line or are you saying I should modify 2 lines of code with the XX line?
Tigga
02-09-2003, 10:26 PM
You can change the first line in the threads query back to the way it was (removing the AND forumid!=XX).
Then look for this line of code:
$forums=$DB_site->query('SELECT * FROM forum WHERE displayorder<>0 AND active=1 ORDER BY parentid,displayorder');
Replace that with:
$forums=$DB_site->query('SELECT * FROM forum WHERE displayorder<>0 AND active=1 AND forumid!=XX AND forumid!=YY ORDER BY parentid,displayorder');
Then just change XX and YY there to the forum ids.
arracing
02-09-2003, 10:44 PM
thanks plurplanet, that worked fabulously.
I have another question tho, I want to understand how the latest threads get picked to be displayed? I checked my latest threads and I know their are threads that are newer then some of the threads it picks for the latest threads table in myvbindex. So im wondering how it picks them?
arracing
02-09-2003, 10:48 PM
nevermind i was looking at the thread creation date. But just to confirm how this work, it will look in all forums that do not have != and look for the latest post and display the value of how many you wanted in the table from what it finds? correct?
Tigga
02-10-2003, 12:04 PM
Yes, it will check through all forums except those that you added with the != in front of them. It will also check the forum permissions, so if a user doesn't have access to a forum, those topics should be excluded as well. And yes, it looks for the latest X posts and displays those. By the way, did you ever check to see if the forum permissions for those forums were set to not allow those groups to view others' threads? If all the permissions are set correctly, I'm pretty sure those threads should't be displayed anyways.
Also, if you would prefer for it to show the last poster and time instead, search this thread for "lastposter". I know I've posted instructions for others on how to change this at least once or twice. ;)
certify
02-10-2003, 02:57 PM
Which country's weather does the weather box report?
Yuber
02-10-2003, 03:53 PM
Have you any ideas or plans on extra hacks or features that future versions of myvBindex will have?
Tigga
02-10-2003, 05:15 PM
certify - The weather box has 247 countries and over 37,000 cities to choose from.
Yuber - If there are any future versions of this script it will probably be a couple of months before they are released, and will definitely be after vB 3.0 comes out. Lately I've been concentrating on a much bigger portal system that has been consuming the majority of my free time. There are already a couple of mini-hacks listed in the first post in this thread, plus there are a few others that I've posted throughout this thread that I will add to the first post as well once I get the time. If you have any suggestions for future versions or mini-hacks though please let me know. :)
Yuber
02-10-2003, 06:08 PM
Will the current version of myvbindex work with vB 3.0? Or once vB 3.0 isreleased say I got picked for private beta, would i have to delete myvbindex until you make a higher version for 3.0?
Tigga
02-10-2003, 06:20 PM
It's hard to say since I have no idea which variables and database tables will change, but it's very doubtful that everything would still work the same way. I've applied to beta test 3.0 as well, but since they're only picking 20 sites out of 600 that applied, I'll probably have to wait until the first public beta is released. Either way, as soon as I get my hands on 3.0 I will be rewriting the script since I will have to update it for my site as well, so I would expect to have it posted here within a couple of days after 3.0 is released.
maxxxxxx
02-11-2003, 11:05 AM
I am sure that you have telled us how i can change the position of the boxes...
But my enlish is not so good that i can read the complete thread...
can somebody tell me how i can change the boxes and the positions...
specialy i want the last post box in the middle
i have deinstalled the portal....
i am sorry about it i nerv but i am an wbb user and a newbee in vb since yesterday
cu and thx
maxxxxxx
Tigga
02-11-2003, 01:45 PM
That is mostly just a matter of editing some html. If you edit your index template and move the whole table that has the $threadbits variable to right underneath the $newsbits variable that should do the trick. And you'll probably want to edit your index_threadbit template as well to change the way each thread is displayed.
quick question. Can I only show a custom box to registered users? I have the two custom boxes with one of them being links but we wanted to reserve that box for our members? Any easy way to do that?
Tigga
02-12-2003, 05:16 PM
I'm assuming you just want this to be displayed for a user that has registered, and it doesn't matter if they have activated their account or whatnot, just simply that they have registered... If so, just open your myvbindex.php and look for this line:
if ($showcustom1) {
Replace that with:
if ($showcustom1 AND $bbuserinfo[userid]!='0') {
If you don't want it to be displayed to users if they haven't yet activated their account, instead replace that with:
if ($showcustom1 AND $bbuserinfo[usergroupid]!='3' AND $bbuserinfo[userid]!='0') {
Zachery
02-13-2003, 12:55 AM
sorry if this has been posted before, but my images keep commin up as broken, any help?
arracing
02-13-2003, 03:31 AM
on the myvbindex page in the news section their is those icons that print and mail to a friend. Well i want to change the icons to different ones but not have it affect the same icons on the forums. How can i do this?
Also my second question is I have a header.php file i want to load up on the myvbindex page that is different from the one on my forums. I know their is a post about this around post number 72 or such but i didnt understand what to do. I am trying to do a call function in the index_header template of the myvbindex group. I want this function to call that header.php file i have. Im not sure if this is possible or what. Basically in the header.php file is 1 table with an image in it. Can someone help me so that above the myvbindex page will be this image. Also eventually in this table i want to put code so that the image is a background and over to the right of it a banner also is their for sponsors.
alnany
02-13-2003, 10:00 AM
Okay... news is not showing up at all. I looked in the post table and there isn't a isnews field.. please advise.. I have phpMyAdmin 2.3.2 thanks.
forum URL: http://www.serenepoets.com/myvbindex.php
alnany
02-13-2003, 10:30 AM
Ok.. before I installed this hack I moved the forum to a new server... after installing everything and making the post above, I realized that I forgot to update my config.php to reflect the new settings... when I did that, I started getting a blank page at http://www.serenepoets.com/myvbindex.php however http://www.serenepoets.com/ still shows up fine... please help.
alnany
02-13-2003, 11:22 AM
okay.. everything makes sense now... haha, sorry and thanks anyway :)
love the script.
Yuber
02-13-2003, 05:40 PM
I had a poll on my vbindex page. But now that I posted a new poll nothing is there and I can't get it to show up? Could it be because of the number of choices? I have 25 choices. I made sure that the polls id was still correct which is 16
Zachery
02-13-2003, 11:26 PM
just installed on 2.3.0 fresh install, no problems ^_^ works great
my first install i missed a step :bunny:
Tigga
02-14-2003, 01:22 PM
arracing - To change those images you would edit the index_newsbits_printable & index_newsbits_sendtofriend templates. As for the header file, could you not just put the image and table in the index_header template?
Yuber - What version of myvbindex & vbulletin are you using? Is the poll and thread open, or was it moved from another forum? What happens if you try to post another poll in the polls forum?
Faranth & alnany - Hope you enjoy the hack. :)
frankenberrie
02-14-2003, 01:57 PM
I have VBulletin 2.29 installed with VBindex 3.1
WWW.FRANKENBERRIE.COM
Now, I wanna upgrate to Vbulletin 2.30. Will I have to follow the steps of reinstallign VBindex after doing the 2.30 upgrade?
amykhar
02-14-2003, 01:57 PM
Originally posted by Faranth
sorry if this has been posted before, but my images keep commin up as broken, any help?
Look to see where the script is trying to find the images and if you don't have the coding expertise to change that, put the images there. ;)
Amy
Tigga
02-14-2003, 02:02 PM
frankenberrie - You will have to re-apply the 3 (or 4 if using the weather part) file modifications listed in the readme file. Other than that you shouldn't have to do anything else, but if you do run into problems let me know.
Zachery
02-14-2003, 09:59 PM
ok, so far everything looks good on my forums how ever the top section where the logo and buttons, looks like the default vbulletin sytle, the buttons and banner are correct, just not the layout
image attached is what it looks like
Zachery
02-14-2003, 10:04 PM
what it should look like
pgowder
02-16-2003, 01:05 AM
Thanks for a great hack. I have a couple of issues though. I've read through some of these page, but not all 46 so I apologize if this has already been asked.
Here's my page:
http://www.powwows.com/myvbindex.php
Nothing is being displayed from the forum I specified as News. I didn't create a new forum, I'm using an existing forum.
Second, how can I get it to pull my regular header and footers?
Here is my main forum page:
http://www.powwows.com/gathering
Thanks!
amykhar
02-16-2003, 01:10 AM
pgowder, the way this hack was written, it will only show threads started after the hack was installed.
You can fix that by performing a query, but it is a bit of a pain to find the postids that you need to update.
pgowder
02-16-2003, 01:21 AM
Yep, I found that. And I've got it showing one thread. But how do I get it to render vbcode in a signature?
Take a look at:
http://www.powwows.com/myvbindex.php
And I'm still having problems with headers and footers.
pgowder
02-16-2003, 01:29 AM
On the latest thread box, how can you restrict that to not show posts in private forums?
pgowder
02-16-2003, 01:30 AM
Also, it now appears that log out doesn't work. It takes me back to the previous page, but doesn't clear me out?
amykhar
02-16-2003, 01:31 AM
Originally posted by pgowder
On the latest thread box, how can you restrict that to not show posts in private forums?
It operates off of user permissions. Log out, and you shouldn't see any threads that you aren't supposed to see.
amykhar
02-16-2003, 01:32 AM
Originally posted by pgowder
Yep, I found that. And I've got it showing one thread. But how do I get it to render vbcode in a signature?
Take a look at:
http://www.powwows.com/myvbindex.php
And I'm still having problems with headers and footers.
I changed it so that it uses the vbulletin headers and footers and not the ones that came with the hack.
Regarding sig lines, I cheated and didn't put those in cause they didn't work.
pgowder
02-16-2003, 01:33 AM
Originally posted by amykhar
It operates off of user permissions. Log out, and you shouldn't see any threads that you aren't supposed to see.
That's great, now if I could just get logged out!
amykhar
02-16-2003, 01:39 AM
I just registered at your site, went to the myvbindex.php and logged out with no problems.
Amy
pgowder
02-16-2003, 01:59 AM
Hmm, just tried it again, and I still gon't get logged out.
Zachery
02-16-2003, 02:46 AM
i have every thing working great now. ^_^ but does it work with 2.3.0? i just did an upgrade on my home server
and the post count stoped :\
Tigga
02-16-2003, 03:43 AM
Thanks for helping with some of the questions amykhar. :)
pgowder - vBcode was something I accidentally overlooked for signatures. You can find the fix for that posted here - https://vborg.vbsupport.ru/showthread.php?postid=344431#post344431
As for the header and footer, if you want to use the same as your forum just use the variables $header and $footer in your index template.
If you're still having problems logging in/out, be sure your cookie domain is set to .yoursite.com and try clearing your cookies.
Faranth - What exactly do you mean the post count? I haven't upgraded to 2.3.0 yet, but I don't see any reason why it wouldn't work.
Zachery
02-16-2003, 03:47 AM
well, i have 3 posts on my new 2.3.0 forums, and the posts show up. but not post count, as if you went to members and did top ten posts, it only shows as 0 posts instead of 3
Zachery
02-16-2003, 03:48 AM
and this
Tigga
02-16-2003, 04:12 AM
Try uploading an unhacked version of member.php and newreply.php and see if it works then. If not then you should ask at vb.com since it would have to be a problem somewhere in vb. If uploading those 2 files does fix the problem, be sure that you edited those 2 files properly when you were installing myvbindex, and then try it. If it still doesn't work let me know.
pgowder
02-16-2003, 02:05 PM
Thanks guys, that did the trick.
Appreciate all of the fast help!
Brain Crusher
02-16-2003, 04:41 PM
I have a little problem with the weathter install file "The page cannot be displayed", it´s to big for my server, i think?
Tigga
02-16-2003, 08:44 PM
I really don't see why some people are having a problem with the weather part... Most people haven't had any trouble at all, but you're the 3rd person that gets an error like that. :ermm:
Double check that the weather_install.php file was uploaded to your server and that you were going to the correct url. If it still doesn't work, check the link below and there is a zip file attached with that post with the queries you can run via phpMyAdmin and a small install file that will add the templates for you.
https://vborg.vbsupport.ru/showthread.php?postid=318513#post318513
asweetdeal
02-16-2003, 09:40 PM
I added a new usergroup and one of my members told me they are able to view our private mod's section thread titles, they try to click on them and are not allowed access which is good, but we don't want them to be able to view the threads...
What can I do to stop this?
ASweetDeal
Tigga
02-16-2003, 09:44 PM
In your admin cp, click on "Forum Permissions" under "User Groups". Edit the usergroup for that forum and be sure it's set to use custom settings and all the options are set to no.
Yuber
02-17-2003, 12:49 AM
Originally posted by PlurPlanet
Yuber - What version of myvbindex & vbulletin are you using? Is the poll and thread open, or was it moved from another forum? What happens if you try to post another poll in the polls forum?
I am using myvbindex 3.1 and vB 2.3.0. I tried posting a new short poll and it still doesn't show up. I have made sure 3 time that the correct polls forum ID is in the cp and that they are posted in thecorrect forum.
musclebody
02-17-2003, 03:07 PM
I am getting the following error:
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/musclebo/public_html/forums/index.php on line 13
I can't seem to correct it. Could someone please help?
THANKS!
musclebody
02-17-2003, 03:09 PM
Also, how would I get my Main (default) Home page for my entire website to be the forum main page?
THANKS AGAIN!
Zachery
02-17-2003, 03:34 PM
umm, all my other problems got fixed but i havent had time to test on my home server yet for the no post problem :\ any way
i wanted to know if i could have the weather images folder in just one place, instead of having to upload it into each of the themes folders
Tigga
02-17-2003, 04:35 PM
Yuber - Check your PMs. :)
musclebody - You have to set the path to your forums in the myvbindex.php file to /home/musclebo/public_html/forums
As for having that as your main forums page, you would need to rename your forums/index.php file to something else and then upload the myvbindex.php file to your forums directory and rename it to index.php. You would probably want to edit some of the links to point to whatever you renamed your forums/index.php file as well.
Farenth - Edit your index_weather template and look for {imagesfolder}. Replace that with the url to your forums images folder and that will fix it so it will not matter what style you are using.
formerEVO?
02-17-2003, 11:32 PM
* formerEVO? kicks self
Now i really need help...
I tryed alot, but i cant get the news to show up...
http://www.cyber-ns.net/~angelus/
that's the index... see no news?
http://www.cyber-ns.net/~angelus/comm/forumdisplay.php?forumid=17
but look...in my news forum, i have news...o.o help!
Iezugod
02-18-2003, 12:02 AM
Yo... I just upgraded to vB 2.3.0, and it totally fubared my page... check it... www.crystalchronicle.com..... let me know what I can do...
Tigga
02-18-2003, 01:12 AM
formerEVO² - Were the posts made before or after you installed the script? It will only pull news posts that were made after the script was installed. If they were made after you installed it, double check that your News Forum ID is set to 17.
Iezugod - What exactly did it mess up? I looked at the page but I don't see anything wrong...
formerEVO?
02-18-2003, 01:57 AM
yes, they were were posted after i installed the script, and i already double checked.
Zachery
02-18-2003, 02:44 AM
seems to work, how ever, im having this serrious problem with gettin my main templates to work with the rest of my themes, but other wise
hack works well now, if i could only figure the theme problem :"\
musclebody
02-18-2003, 12:20 PM
Plur,
I did what you had mentioned and it still shows:
"Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/musclebo/public_html/forums/index.php on line 13
Warning: Cannot modify header information - headers already sent by (output started at /home/musclebo/public_html/forums/index.php:13) in /home/musclebo/public_html/forums/admin/functions.php on line 1573"
Can you please help me fix this?
Thanks!
snout
02-18-2003, 10:38 PM
Plurplanet,
Thanks again for a gr8 hack.. I installed and it ran fine on vb 2.2.9 now i upgraded to vb 2.3.0 now users that er not logged in see the login page, when you log in the index page just shows blank ?? All I did was upgrade.
Check ur pm for url and login details m8.
Hope ya can help, its a fantastic hack :)
PS:
If you add /forum to the end of the url in ya pm you will see the board still functions fine.
Tigga
02-18-2003, 11:17 PM
formerEVO? - I can't really think of a reason it wouldn't display if everything was done and installed correctly... You can double check that you have a template called index_newsbits and that it's not blank. If you have phpMyAdmin, you could log in with that and make sure your post table has a row called "isnews" (it should be the last one). If that's there then you should find your news post (should have 8 in the id field) and make sure that it has a 'Y' in the isnews column. Let me know about those things and that should help determine the problem.
musclebody - Judging by that error it doesn't look like there is anything set for your path. Either way though if you are going to put it in your forums directory you can just remove that line and it should work fine.
snout - I just upgraded my test board to 2.3.0 and apparently the vBulletin upgrade script deletes the templates. If you upload the myvb_install.php script and go to this url it will install just the templates for you -
http://yoursite.com/forums/admin/myvb_install.php?step=3.
SONOFSAM
02-19-2003, 06:23 AM
Great hack! Looks amazing with vbskins nexxus skin!
Just had one question, how do i go about adding more pages to show other content other then the news. i want to keep the items on the sides, and add content in the middle.
ive scearched...but dont know where to look, or what direction to go. I basically want to add a server status for a counter-strike server to show on the site and members for the clan.
any ideas?
site: www.gulflight.com - a temp url, sorry must register to veiw the whole site.
arracing
02-19-2003, 06:27 AM
I have a similar question to SONOFSAM's.
I have my menu on the left side of the index page and when i click on a menu item i want that page to open up to the right taking away the news section and the third column section. How can we do this?
snout
02-19-2003, 06:44 AM
Perfect thanks again Plurplanet :D gr8 hack and outstanding support :)
Tigga
02-19-2003, 04:42 PM
SONOFSAM - I have to agree, that does look very nice with the nexxus skin. :) To change it so you can have a different template displayed in the middle rather than the news, check this post (https://vborg.vbsupport.ru/showthread.php?postid=348560#post348560). And if you need more than one different page like that, see this post (https://vborg.vbsupport.ru/showthread.php?postid=349929#post349929). It should be fairly easy to do, but if you have any problems let me know.
arracing - Something like that could be done (if you look at my site that's actually the way I have it set up), but it does require a bit more work (ex - Your pages will have to be renamed to have .php extensions, the html page will have to be made into a vBulletin template, etc). Have you added any hacks or anything to your myvbindex file? Have you changed the "boxes" that are displayed on the left side? If you have changed any of that let me know what was changed and then I can give you instructions on how you would go about doing that.
snout - Glad everything's working for you. :)
arracing
02-19-2003, 05:45 PM
well all I have done is swtiched it so that custom Template 2 is on the left side which is my menu, and the log in stuff is on the right.
I dont think I installed any hacks to it.
here i will show you the link to the page.
http://www.ar-racing.com/myvbindex.php
musclebody
02-19-2003, 06:14 PM
THANKS PLUR, I finally figured it out.
I was just wondering, How do I get the LOGIN BOX to appear on the page?
THANKS!
why not supported vBcode??? and turn on/off signatures in news???
Tigga
02-19-2003, 07:28 PM
arracing - Ok, this should work for you... I have 2 files attached here (one in this post, one in the next... sorry, I'm being lazy and doing it this way rather than zipping them ;)) that should help allow you to turn myvbindex into more of a portal rather than just a homepage script. Since the only things you'll be using for the left side of the page are the poll, custom templates, and search, those are the only parts I put in the "portal" part. If you ever decide you need to add something else to that side let me know and I can tell you how to change it.
Now for the instructions... First open the include.php file attached here. Change the path in the chdir part to point to your forums (just as you did with the myvbindex.php file when you first installed it). Then upload both the include.php and myvbindex.php files to the root folder on your server and after they are uploaded you can check the myvbindex.php page to be sure it still loads right. Then you will want to create a new template called include with the following content:
$index_header
<table width="100%" cellspacing="10"><tr align="left" valign="top"><td width="165">
$custom1
$search
$custom2
$currentpoll
</td><td valign="top">
Then you would want to create another new template for the content of the page. It can be called whatever you would like. You would place the following content in the template (or at least something like this):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Cache-Control" content="no-cache">
<!-- end no cache headers -->
<META NAME="title" CONTENT="$hometitle">
<META NAME="keywords" CONTENT="">
<META NAME="description" CONTENT="">
<TITLE>$hometitle</TITLE>
$headinclude
</head>
<body>
$include
<-- YOUR CONTENT GOES HERE -->
</td></tr></table>
$index_footer
</body></html>
Obviously replace the <-- YOUR CONTENT GOES HERE --> part with the html code for the content of that page.
Now for the last part, which is actually getting that template to display. You want to create a new file... It can be called whatever you would like, but must have a .php extension. The content of the file should be something like this:
<?php
$templatesused .= 'testpage,';
require("./include.php");
eval("dooutput(\"".gettemplate('testpage')."\");");
?>
The only things in that need to be changed are the 2 places you see "testpage". This should be changed to whatever the name of the template you just created is. Change that, upload the file, and it should work just fine. One thing to note... In the first part where you see $templatesused, make sure there is always a comma after the template since there will be more templates called from the include.php file. Also, one nice thing is that you will be able to use replacements in your new templates, and these pages will change to reflect the style a user has selected if you use the replacement tags for the colors and such. And of course to create other pages like this, you would just create a new template and new page, and change then put the name of the template in the 2 places for that page.
Well that should be everything you need to do. If you have any questions or problems let me know. :)
Tigga
02-19-2003, 07:29 PM
And the 2nd file for arracing... :)
Tigga
02-19-2003, 07:33 PM
musclebody - The login box should already be present if a user is not logged in. Does it not show up? If not can you give me alink to the file on your site?
M.C. - vBcode works for the news. It does not work for the signatures becasue that was something I accidentally overlooked in this version. You can find the fix for that posted here - https://vborg.vbsupport.ru/showthread.php?postid=344431#post344431
And you can disable signatures in the news by disabling it when you make the post, just as you normally would.
arracing
02-19-2003, 09:42 PM
im confused with the part where you said to put a comma after $templatesused
how come you didnt write it in the code part above. or did you make a mistake and is the period before the = supposed to be a comma?
Tigga
02-19-2003, 09:49 PM
No, there shouldn't be a comma after $templatesused, just one after the template name in that part.
$templatesused .= 'testpage,';
That's the one I was talking about. ;) Honestly the only problem it will create is adding an extra query or two to that page if it was removed, but there's no sense in adding extra queries if they're not necessary.
arracing
02-19-2003, 09:53 PM
after i uploaded those 2 files i got this error
Fatal error: Call to undefined function: get_bbarraycookie() in /home/share/b/ar-racing/public_html/include.php on line 52
Tigga
02-19-2003, 10:00 PM
Did you ever have a problem with that before? That's a function that was changed after vBulletin 2.2.5, so if you're running 2.2.5 or an earlier version then that would be why... It just doesn't make sense that you wouldn't have had the problem before. Either way you should be able to fix it by opening the include.php file and looking for:
$index_header = '';
Right Above that Add:
function get_bbarraycookie($cookiename, $id) {
// gets the value for a array stored in a cookie
global $HTTP_COOKIE_VARS;
global $bbcookiecache;
if (!isset($bbcookiecache[$cookiename])) {
$bbcookiecache[$cookiename] = @unserialize($HTTP_COOKIE_VARS["bb$cookiename"]);
}
return intval($bbcookiecache[$cookiename][$id]);
}
I've never had 2.2.5 to test that on, but I'm pretty sure it should work.
arracing
02-19-2003, 10:12 PM
okay i did that and page loaded fine. I created the about us page to test this all out but after doing everything for the about us link and making sure that the link pointed to the new about_us.php file i created in the root directory.
I got these errors
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/share/b/ar-racing/public_html/about_us.php on line 3
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/share/b/ar-racing/public_html/about_us.php on line 3
Parse error: parse error in /home/share/b/ar-racing/public_html/about_us.php on line 3
Tigga
02-19-2003, 10:26 PM
That would mean something was done wrong in the $templatesused part on line 3. I'm assuming you figured it out though since I just checked the page and it loaded fine... Let me know though if you have any other problems.
arracing
02-19-2003, 10:31 PM
i messed around with it a bit and got it to work, i guess i had saved it in rich file format so it wasnt working. I saved it another way and it did.
thx Plur, i might have a question or 2 if i cant figure something out so i will just post it here.
arracing
02-19-2003, 10:32 PM
how can i group all those new templates i am making into 1 folder?
arracing
02-19-2003, 10:37 PM
what does this stuff mean
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Cache-Control" content="no-cache">
<!-- end no cache headers -->
arracing
02-19-2003, 10:38 PM
also i cannot get the $index_footer
to be shown outside the table in the blue background area.
arracing
02-19-2003, 10:46 PM
also why did the poll section where it asks the question turn purple after i did this hack?
Tigga
02-19-2003, 11:46 PM
how can i group all those new templates i am making into 1 folder?
I'm assuming you mean to group them together like the myvbindex templates and default forum ones, right? To do that you would have to make sure you give each one of your new templates a suffix, something like "mytemplates_aboutus". Then you would need to edit your admin/template.php file and look for:
$only['index'] = 'mYvBindex';
Right below that add:
$only['mytemplates'] = 'Name Of Group';
Just change "mytemplates" in that code to the suffix you gave them, and Name of Group to whatever you want the heading in the template set to say.
Then you would need to find each template in phpMyAdmin and change it's templatesetid to -1.
what does this stuff mean
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Cache-Control" content="no-cache">
<!-- end no cache headers -->
Those are meta tags incase you have "Add No-cache headers" enabled in your admin options. They should be at the top of most of your forum's pages.
also i cannot get the $index_footer
to be shown outside the table in the blue background area
You should be able to change where it's displayed by moving the $index_footer variable before or after the table in the new templates you added.
also why did the poll section where it asks the question turn purple after i did this hack?
I just checked it and it looked fine to me, so I'm assuming you figured it out...
arracing
02-19-2003, 11:52 PM
i tried moving the $index_footer to differnt spots but it wasnt coming out at the bottom. It works on the main index page but not when i click a link like about us. I ended up removing it from those templates but I really want to use it because it has the vb copyrights and my copyrights in it.
Tigga
02-20-2003, 12:01 AM
You should be able to get it to display at the bottom if the structure for the tables is right... You could try adding </td></tr></table> again right before $index_footer incase there's a table that wasn't ended somewhere.
arracing
02-20-2003, 12:07 AM
i did all that stuff to group the templates together and i got this error when trying to refresh the admin control panel
Warning: Unknown MySQL Server Host 'db0.tyva.netherweb.com' (1) in /home/share/b/ar-racing/public_html/forums/admin/db_mysql.php on line 40
Warning: MySQL Connection Failed: Unknown MySQL Server Host 'db0.tyva.netherweb.com' (1) in /home/share/b/ar-racing/public_html/forums/admin/db_mysql.php on line 40
arracing
02-20-2003, 12:09 AM
i refreshed again and it worked. I wish their was a way that when you add a new template it asks you what category you want it under so i dont have to keep going into my phpadmin and searching for it.
Tigga
02-20-2003, 12:14 AM
Actually, I didn't think about that... If it would be easier for you, you can put your server in dubug mode (Just add the code $debug="1"; at the bottom of your admin/config.php file, right before the ?>). Upload that file and then you'll see your Global template set when your edit your templates. Add the templates to that set and it will work that way too. Oh, and don't forget to take your board out of debug mode after you finish since it can be a security risk. ;)
Yuber
02-20-2003, 01:11 AM
Originally posted by PlurPlanet
arracing - Ok, this should work for you... I have 2 files attached here (one in this post, one in the next... sorry, I'm being lazy and doing it this way rather than zipping them ;)) that should help allow you to turn myvbindex into more of a portal rather than just a homepage script. Since the only things you'll be using for the left side of the page are the poll, custom templates, and search, those are the only parts I put in the "portal" part. If you ever decide you need to add something else to that side let me know and I can tell you how to change it.
Now for the instructions... First open the include.php file attached here. Change the path in the chdir part to point to your forums (just as you did with the myvbindex.php file when you first installed it). Then upload both the include.php and myvbindex.php files to the root folder on your server and after they are uploaded you can check the myvbindex.php page to be sure it still loads right. Then you will want to create a new template called include with the following content:
$index_header
<table width="100%" cellspacing="10"><tr align="left" valign="top"><td width="165">
$custom1
$search
$custom2
$currentpoll
</td><td valign="top">
Then you would want to create another new template for the content of the page. It can be called whatever you would like. You would place the following content in the template (or at least something like this):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Cache-Control" content="no-cache">
<!-- end no cache headers -->
<META NAME="title" CONTENT="$hometitle">
<META NAME="keywords" CONTENT="">
<META NAME="description" CONTENT="">
<TITLE>$hometitle</TITLE>
$headinclude
</head>
<body>
$include
<-- YOUR CONTENT GOES HERE -->
</td></tr></table>
$index_footer
</body></html>
Obviously replace the <-- YOUR CONTENT GOES HERE --> part with the html code for the content of that page.
Now for the last part, which is actually getting that template to display. You want to create a new file... It can be called whatever you would like, but must have a .php extension. The content of the file should be something like this:
<?php
$templatesused .= 'testpage,';
require("./include.php");
eval("dooutput(\"".gettemplate('testpage')."\");");
?>
The only things in that need to be changed are the 2 places you see "testpage". This should be changed to whatever the name of the template you just created is. Change that, upload the file, and it should work just fine. One thing to note... In the first part where you see $templatesused, make sure there is always a comma after the template since there will be more templates called from the include.php file. Also, one nice thing is that you will be able to use replacements in your new templates, and these pages will change to reflect the style a user has selected if you use the replacement tags for the colors and such. And of course to create other pages like this, you would just create a new template and new page, and change then put the name of the template in the 2 places for that page.
Well that should be everything you need to do. If you have any questions or problems let me know. :)
How would I do that if I want the login, and the weather on the left side as well?
Tigga
02-20-2003, 01:27 AM
You would use the same files I posted above, but you would have to remove some code from the myvbindex file and place it in the include file...
First, in myvbindex.php you would need to find:
// Show Avatar
You would highlight everything below that, up to:
// Online Users
(about 45 lines of code)
Remove that from the myvbindex.php file, and paste it in the include.php file right before:
// Current Poll
Then you would find:
// Weather - by JJR512
Highlight everything below that up to:
// Search Box
Remove that and paste it in your include.php file right under the last code you added.
arracing
02-20-2003, 02:09 AM
Originally posted by PlurPlanet
Actually, I didn't think about that... If it would be easier for you, you can put your server in dubug mode (Just add the code $debug="1"; at the bottom of your admin/config.php file, right before the ?>). Upload that file and then you'll see your Global template set when your edit your templates. Add the templates to that set and it will work that way too. Oh, and don't forget to take your board out of debug mode after you finish since it can be a security risk. ;)
Ur the man!!! And this site rockz too!!
arracing
02-20-2003, 05:46 AM
okay i just noticed this. In my lateste post table. where its supposed to say the last poster. it doenst show up. This happened after i uploaded the new myvbindex.php file. I went and looked at the old one before the new upload and copied the whole latest post section to the new one and still nothing shows up. Whats going on?
http://www.ar-racing.com/myvbindex.php
arracing
02-20-2003, 06:46 AM
what i did to try and solve this was use my old myvbindex file instead of the one you gave me. It worked with the old one. I was trying to compare the 2 files and the old one doesnt require the include file but the new one does. However everything is still working using the old file. So what is your new myvbindex file doing and why is it calling that include file. Whats the include file doing?
If you go to my site now its using the old myvbindex so thats why the last poster is working. But im trying to understand why you made me upload those 2 files if everything is working fine with the old one. I must be missing something.
Tigga
02-20-2003, 01:36 PM
That's wierd... You are using myvbindex 3.1, right? The only difference between your old myvbindex and new one shoud be that it uses the require tag to also pull the info from include.php, and some of the features (search, custom tempates, & poll) were moved to the include file instead. It's a little better to do things that way incase you ever change it, but otherwise there wouldn't be anything wrong with using your original myvbindex file for your index page, and then the include file with your new pages.
Littlebit
02-20-2003, 02:10 PM
Hi Plurplanet,
From my index.php, I ran across a 404 error from the pop up to take me to a new pm message. The link, for some reason, is mysite.com/private.php?s=
and leaving out my forums directory in the bburl.
I can't figure it out.
Tigga
02-20-2003, 02:35 PM
I could have swore I put the instructions to edit that in the install file, but I guess not. Sorry about that...
You can fix it by editing your head_newpm template and looking for 2 places that you'll see private.php. Just add /fourms/ (or whatever your forum folder is called) in front of that and it should fix the problem.
By the way, I haven't forgotten about your PM. I've just been really busy this week and haven't had a chance to look into those problems you asked me about yet. I'll try to look at those for you before the weekend though. :)
Yuber
02-20-2003, 03:06 PM
Thanks a lot Plur, i'll try it out tonight and tell you how it works and/or if I have a probs.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.