View Full Version : mYvBindex v3.1
Pages :
1
2
3
[
4]
5
6
7
8
9
Littlebit
02-20-2003, 03:27 PM
Plurplanet,
Thank you! That fixed it. I vaguely remember instructions like that. Maybe I forgot to make the changes...I am prone to that.
About the pm, no rush at all...I'm still excited that someone is finally going to help me out!
-littlebit
arracing
02-20-2003, 03:35 PM
yea im using myvbindex3.1 w/ vbulletin 2.2.5
I still dont understand why the new index file wont show the last poster when i copied the whole latest post table section from the old file to the new one. Its very strange.
Zachery
02-21-2003, 08:06 PM
hello again, cant seem to stay loged out, i did follow the instructions for the hack :\
Tigga
02-21-2003, 08:11 PM
I'm assuming you changed the cookie domain in the Admin CP as instructed in the install file, right? Since the cookie domain was changed, the cookies on your computer may conflict with each other. Try clearing your cookies and see if that helps... If not let me know.
Zachery
02-21-2003, 08:12 PM
jw, should it be www.[sitenamehere].com or .[sitenamehere].com
Tigga
02-21-2003, 08:15 PM
Assuming it's for the same site as in your profile, it should be .digitalkore.net (no "www" or anything else)
Zachery
02-21-2003, 08:17 PM
that didnt seem to be working even after i cleard my cookies :\
ive changed it back to blank and it seems to be working for everything now
Tigga
02-21-2003, 08:26 PM
Hmm... It should work fine after you cleared your cookies. Did you close your browser and then log back in? As long as it's working ok with that being blank it shouldn't be a problem. I'd recommend double checking everything though (log in from myvbindex then log out from the board, then log in from the board and out from myvbindex). As long as it still works then you shouldn't have any problems.
Iezugod
02-21-2003, 08:27 PM
I have a question... I don't know if it's been asked before, but I don't have time to read 16 pages of posts.
I want to add a 3rd "Custom Table". I have already added the option for it in the ACP, and I figured out how to add it to the index.php page...
The first 2 custom tables are put in the index w/ $custom1 and $custom2
I have no freaking clue how to get my 3rd table to work by typing $custom3 ...
You know what I mean?
site:
www.crystalchronicle.com
Tigga
02-21-2003, 08:32 PM
Iezugod - Check this post https://vborg.vbsupport.ru/showthread.php?s=&postid=327859&highlight=custom+templates#post327859
Red Blaze
02-21-2003, 08:44 PM
Originally posted by PlurPlanet
formerEVO2 - 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.
Hey, I have the same problem and I can't seem to figure it out. I can't find that "isnews" anywhere in my phpMyAdmin. Rather it's there and I can't find it, or it's just not there. I doubt it's there in the database. How can I add it, or what should I do?
Tigga
02-21-2003, 09:51 PM
The "isnews" column should be the last one on your post table. As long as you didn't get any errors when you ran the install file though it should be there.
Did you make the posts before or after you installed the script? If it was before, then the script only displays news that was made after it was installed. You could double check that you modified your newthread.php file correctly and uploaded it. If that still doesn't work let me know. Also, what do you have set for your News Forum ID?
Cloud Strife
02-21-2003, 11:37 PM
How do you update the news??? I tried the code you gave in my phpmyadmin, but it doesnt update... All new posts register... And i see no problem with how i set it up... This is the code I used:-
UPDATE post SET isnews='Y' WHERE postid=(replaced with thread id);
Zachery
02-21-2003, 11:57 PM
u need to go to your admin cp, set the fourm id to the right one :\ at least i think so
u should be able to put your mouse over the link to the forum, and find out its id number
arracing
02-22-2003, 01:00 AM
hey plur, you know how I made my links open up on the side. Is the code you gave me with the meta tags search engine friendly. Can the search engines see those pages and content?
Also my other question is I want to make it so the poll on the index gets picked randomly from any poll on the forum. Is their a way to do this?
I have released my index so to get to it go to
www.ar-racing.com
Red Blaze
02-22-2003, 02:00 AM
Ok, here's my newthread.php file where I think it suppose to be at.
// create first post
$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,at tachmentid,pagetext,allowsmilie,showsignature,ipad dress,iconid,visible,isnews) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars($subject))."','".addslashes($postusername)."','$bbuserinfo[userid]','".time()."','$attachmentid','".addslashes($message)."','$allowsmilie','$signature','$ipaddress','$iconi d','1','Y')");
$postid=$DB_site->insert_id();
I also did found the isnews thing. Still can't figure out what the problem is. =/
The news posts are ID#3
The Polls forums are ID#2
And I did post something after I installed it to test if it worked. And got nothing.
Sulaiti
02-22-2003, 05:31 AM
I install mYvBindex v3.1 Hack into my forum
Q. How Can I add the index.php to the online.php
http://www.doha.ws/index.php
Regards
Cloud Strife
02-22-2003, 10:24 AM
@ Faranth
I have already set my news forum ID... Ive had myvbindex before, but I updated my vbulletin, so the news posts dont register anymore...
I tried the code that plurplanet gave to update the posts in phpmyadmin, and it doesnt work... I even checked to see if the isnews column was there and it is... Also check my newthread and newreply.phps to see if I hacked them ok... There seem to be no problem there... So I either delete all the posts in my news section and repost them again so they register, or I find an easier way....
Cloud
Tigga
02-22-2003, 11:13 AM
Cloud - According to your post above, you set it to update the wrong post. The number should be the postid, not the threadid. Be sure you were using the postid in that query and if it still doesn't work let me know.
arracing - I can't guarantee how 'random' the polls will be since I've never had much luck with this function, but other people say it works fine so hopefully it will do the trick... Just open your myvbindex.php file and look for:
ORDER BY thread.pollid DESC LIMIT 1
Change that to:
ORDER BY RAND()
Sulaiti - Open your online.php file and look for:
case 'index.php':
Right Above that Add:
$userinfo[activity] = 'home';
break;
Then look for:
case 'index':
Right Above that Add:
case 'home':
$userinfo[where] = "Your Site Name Here <a href='/index.php?s=$session[sessionhash]'>Main Index</a>";
break;
Be sure to replace "Your Site Name Here" with the name of your site.
Cloud Strife
02-22-2003, 11:57 AM
Ah... Thank plurplanet;)
Works great now
Cloud
arracing
02-22-2003, 12:40 PM
PLUR:
yea but if i do the random function. Will it only randomly pick from the polls forum? I want it to randomly pic polls from the entire message board at random. That way I can get rid of the poll forum all together.
Sting
02-22-2003, 04:43 PM
nice hack, but i am stupid and on the index page, where it displays the news and stuff its all fine BUT the post icons,
ex on the forum i pick 1.gif for the post icon, but on the index page it displays as icons18.gif
anyone know what i did wrong?
Krackills
02-22-2003, 05:39 PM
=\ ok we have tryed for awile to get the images working but they willnot show up it looks kinda crapy www.roguesaints.net is what it is looking like if you know what we did wrong plz give me a shout
Image folder path /forums/plasma
Title image path /forums/plasma/vBulletin_logo.gif
Reply image path plasma/reply.gif
New thread image path plasma/newthread.gif
Closed thread image path plasma/threadclosed.gif
dose that look right if not can somone tell me what paths it sould be the url is www.roguesaints.net
Sulaiti
02-22-2003, 09:17 PM
Thank plurplanet
Works fine now
Regards ,
keith70
02-22-2003, 09:47 PM
Would like to be able to add a random image from Photopost on the main index page. Can you help with this or has this been posted before?
Tigga
02-22-2003, 10:13 PM
arracing - Look for this line:
FROM thread LEFT JOIN poll ON (thread.pollid=poll.pollid) WHERE thread.forumid=$pollsforum ORDER BY RAND()");
(that's assuming you already made the change to pull a random poll... If not that line will be slightly different)
Replace it with:
FROM poll LEFT JOIN thread ON (poll.pollid=thread.pollid) ORDER BY RAND()");
Sting - You're talking about the icons for the news posts, right? It should display the same icon that was selected with the thread... Did you maybe edit the post afterwards or something? If you can post or PM me with a link to your website I'll take a look and see if I can figure out what's wrong.
Krackills - The images looked fine when I checked so I'm assuming you found the problem...
Krackills
02-22-2003, 10:17 PM
ok it works on the default template but when u select a template from list not all images are their like plz register and look at the plasma skin it dont realy work right
Tigga
02-22-2003, 11:05 PM
keith70 - It's been a while since I've used PhotoPost... I had it installed on my site, but am now using mostly my own script. If most or all of your photos are jpg images, then I'm pretty sure there would be an easy way to do that. Since it doesn't actually store the thumbnail's name in the data base though it makes it harder if you have to distinguish between what kind of image it is. If the majority of your photos are one type of image let me know and I should be able to come up with something for you.
Krackills - You need to edit your index_header template to add the images and such that are in your header template.
Krackills
02-22-2003, 11:16 PM
can u tell me how to do that sorry if i sound n00bish but i am very new to vbb i used to use a diff forum system sorry for the troubles
Tigga
02-22-2003, 11:22 PM
Do you have any need for a seperate header template for your index? If not, you can just edit your index template and replace $index_header with $header. Then you would need to edit your header template and change each link there to point to the full url to your forums.
If you do want a seperate header for your index I would recommend copying the content of your header template to your index_header template, and then changing the links to point to the full url to your fourms. Oh, and a little tip... You can just put $bburl in front of each link instead of the actual url. That way if you ever change the location of your forums you won't have to update those links again.
Krackills
02-22-2003, 11:25 PM
ok thnx for the hlp still a lil confused but... i dono i am going to try
arracing
02-23-2003, 02:45 AM
I searched for this line in my myvbindex file but couldnt find it
ORDER BY thread.pollid DESC LIMIT 1
arracing
02-23-2003, 02:51 AM
nevermind, those lines were in the include file not the myvbindex file. The random function is working perfectly picking from all forums. This is awsome. I just want to make sure it doenst pick from forums such as my moderator forums and what not. What do i need to inlclude in the code to make it not pick from certain forum ids?
arracing
02-23-2003, 03:00 AM
also you never answered my question about that hack you showed me to do with opening the pages on the right side. Since they are in templates and also the way the meta tags are set up, can search engines search these for content? Do search engines search templates or no?
arracing
02-23-2003, 05:54 AM
Originally posted by arracing
nevermind, those lines were in the include file not the myvbindex file. The random function is working perfectly picking from all forums. This is awsome. I just want to make sure it doenst pick from forums such as my moderator forums and what not. What do i need to inlclude in the code to make it not pick from certain forum ids?
I put AND forumid!=XX before the Order by rand.....
and that didnt work. This random thing is useless if I cannot block those forums. Their has got to be a way to do this, but i have no clue. Hopefully you know the answer.
Tigga
02-23-2003, 06:22 AM
You were close... Try using WHERE forumid!=XX instead. ;)
By the way, that will work ok for you now, but once your board starts to get bigger you will start to run into problems... I thought about using that on my site which has 300,000+ posts, but it took my homepage 30+ seconds to load. I should be able to split the polls query up into 2 separate queries though that will do the job much more efficiently, so when I do I'll post the code here for you.
Oh, and search engines shouldn't have a problem spidering the pages you added in your templates.
Sulaiti
02-23-2003, 06:42 AM
Sorry I can't search all this Thread with 53 pages
My Question:
How can I add more then News Forum ID
Example: News Forum ID 64,48,21,9
Regards
Tigga
02-23-2003, 06:50 AM
Sulaiti - Open your myvbindex and find:
thread.forumid=$newsforum
Replace that with:
thread.forumid=XX OR thread.forumid=YY
(obviously replace the XX and YY there with your forumids)
arracing - Try replacing your polls query with the one here. I tried it on my site and it seemed to work perfectly.
$pollinfo=$DB_site->query_first("SELECT thread.pollid, thread.open, thread.threadid, thread.replycount, poll.pollid, poll.question, poll.dateline, poll.options, poll.votes, poll.active, poll.numberoptions, poll.timeout, poll.multiple, poll.voters FROM thread LEFT JOIN poll ON (thread.pollid=poll.pollid) WHERE thread.pollid!='0' AND thread.forumid!=XX ORDER BY RAND()");
And of course change the XX there to the fourmid you don't want it to pull polls from.
arracing
02-23-2003, 01:49 PM
i am sometimes getting blank polls being displayed on the index. Can you check that out. Just keep refreshing and you will see what I mean. Thats with your latest code update. www.ar-racing.com
Tigga
02-23-2003, 06:14 PM
Hmmm... It looks like it's pulling threads that have been moved and that's where it's creating the problem. Try adding in this code:
AND thread.open='1' AND thread.open<>10
Right after this code in the poll query:
WHERE thread.pollid!='0'
That should fix it but if not let me know.
arracing
02-23-2003, 06:15 PM
it seems to be grabbing any threads that have been moved and thinking they are polls. I think this is what is going on and why the blank polls on the main index are leading to and why they come up blank because their is no poll.
arracing
02-23-2003, 06:15 PM
hahaah we posted at teh same time
arracing
02-23-2003, 06:20 PM
seems to be working now. I will let you know if something wierd happens. Thanks plur, you have been a great help!
Tigga
02-23-2003, 06:24 PM
Glad to hear it. :)
I'm just wondering why moved threads would have something in the pollid field though... :ermm:
Lacrosse Boy
02-23-2003, 10:27 PM
I keep getting this error:
Warning: ChDir: No such file or directory (errno 2) in /home/metrodan/metrodancecenter-www/myvbindex.php on line 13
What do I do? :ermm:
arracing
02-23-2003, 10:28 PM
what is that new code you just told me to put in their doing?
HarryBO
02-24-2003, 03:48 PM
Hey Guys!
First i will be sorry about my bad english. I´m a germany vb-Freak *g*
myvbindex runs very well, but i will add one feature (top10[1].status+full.php) How can i intigrate it on the footer of my vbindex?
I hope someone can help me!
Much greetingz BO
Kamui Shirou
02-24-2003, 07:49 PM
hi folks.
first of all once more. this is a great addon. okay my prob hope you can help.
how can i exclude certain forums from the latest forum topics view.
thx
Lacrosse Boy
02-25-2003, 01:26 AM
Ok, I got my other problem straigthned out, but I have a new one . . . why don't the Latest Forum Topics show in the appropriate area? http://www.metrodancecenter.com/myvbindex.php
Tigga
02-25-2003, 02:13 AM
arracing - The new code you added in is just telling it not to select a thread that is closed or has been moved.
HarryBO - Can you send me a link to the hack you are trying to integrate?
Kamui Shirou - See the code changes I gave someone else in this post - https://vborg.vbsupport.ru/showthread.php?postid=351427#post351427
Lacrosse Boy - Do you happen to have "Show Latest Thread Icon" turned off in your Admin CP? If so, try turning that on and see if it helps. There's a small typo in the coding that could result in the threads not being displayed if that's turned off, so that could be the reason. If that doesn't help let me know.
FleaBag
02-25-2003, 03:47 AM
For some reason, my index templates aren't grouped after upgrading to 2.3.0... I made the file changes necessary - any ideas?
Tigga
02-25-2003, 03:58 AM
When upgrading vBulletin it deletes any templates that aren't original vBulletin templates and haven't been customized (look at your homepage, you'll see that you're missing a few ;)). If you upload the install file and go to this url it should fix the problem - http://yoursite.com/forums/admin/myvb_install.php?step=3
FleaBag
02-25-2003, 04:25 AM
Ah now I understand. Everything seems to be in tip top shape now I re-applied the templates. Thanks again mate, working great with 2.3.0. :)
arracing
02-25-2003, 04:41 AM
so in other words if I have a poll that was moved to another forum that poll will not show up in the main index since it was moved?
FleaBag
02-25-2003, 04:55 AM
PlurPlanet... Sorry to be a pain, but wondered if you could help me out here. All of my news posts use one of two icons - I was just wondering why this is the case?
Latest threads are also assigned random icons when they don't even have icons selected by their creators.
For an example see www.dragonninja.co.uk - thanks!
FleaBag
02-25-2003, 05:15 AM
Sorry, just realised I had my BB turned off, it's back on now.
Tigga
02-25-2003, 05:19 AM
arracing - Sorry, I guess I should have been a little more specific... That just checks for threads that have been closed or have been moved and had a redirect left in the previous forum. Threads that have a value of 10 in the open field are simply there as redirects, so there's no point in pulling those. ;)
GamerForums - Check your PM's.
FleaBag
02-25-2003, 06:17 AM
OK some more questions, sorry!
The "most ever users on-line" feature of your hack says the most users on-line in a day ever is 26 [see here (http://www.dragonninja.co.uk)] - but the "Who was on-line today (https://vborg.vbsupport.ru/showthread.php?s=&threadid=34014)" hack that I previously installed [see here (http://www.dragonninja.co.uk/forums.php)] says the most ever is 97. Is there a way I can make the hack I already have installed run with the number on my forum index, and save the queries in that file?
Also... I use the following hack found here (https://vborg.vbsupport.ru/showthread.php?s=&threadid=38877) to hide which users are admins on Who's On-line - how can I do this for the list of names on MyVbIndex page too?
Thanks in advance PlurPlanet.
arracing
02-25-2003, 12:00 PM
ok i got another interesting thing for ya. Lets say you have a poll that is kinda out of date and you want to close the poll and not have it show up on the main index. By closing the poll I mean the actual voting not the thread. Does the code you gave me still pull closed polls? And just so I am understand you right, as of now it is not pulling closed poll threads correct?
Lacrosse Boy
02-25-2003, 12:07 PM
Originally posted by PlurPlanet
Lacrosse Boy - Do you happen to have "Show Latest Thread Icon" turned off in your Admin CP? If so, try turning that on and see if it helps. There's a small typo in the coding that could result in the threads not being displayed if that's turned off, so that could be the reason. If that doesn't help let me know.
Thanks PlurPlanet -- Now they are showing. But I have one question . . . why does it show PostIcons that were never selected for any threads? :confused: It is rather annoying for me to see smilies that were not ever intended to be there. Check it out to see what I mean: http://www.metrodancecenter.com/myvbindex.php
MartynJ
02-25-2003, 12:39 PM
Hi, me again and sorry to bother you :p
Um, I'm sure this can be done... adding below the news, the forums themselves? I mean, I can see it in my head where you have to eval the forumhome template, but can't for the life of me figure it out, get it down into code.
I've attached a screenshot to show what I mean. Anyone know how? :(
Um, I actually can't find the screenshot. But basically, what I want is to have the templates at the side eg, login, calendar etc... then three news posts centred, and just below them, the forums themselves.
MartynJ
02-25-2003, 12:50 PM
Ok, here's the screenshot!
HarryBO
02-25-2003, 01:40 PM
@ Plur Planet: Here is the Link to the Top 10 Statistics (https://vborg.vbsupport.ru/showthread.php?s=&threadid=47428&highlight=top10)!
Kamui Shirou
02-25-2003, 05:04 PM
muss ich bei diesem hack was in der newreply.php verändern?
HarryBO
02-25-2003, 06:27 PM
In welchem?
XtReMaTriX
02-26-2003, 02:10 AM
Hey PlurPlanet, just wanted to say thanks one more time... I added a hidden forum on my board and when I posted it, only the people who have the right to see it can see it on the Latest Forum Topics... Very Nice!!! Keep up the good work!!!
Zachery
02-26-2003, 02:12 AM
evil language barrier
where is my gf when i need her
FleaBag
02-26-2003, 02:20 AM
Where is my PlurPlanet when I need him? ;)
joeboo
02-26-2003, 04:58 AM
can this work if your forums is on a different server from your site?
MartynJ
02-26-2003, 12:39 PM
Originally posted by joeboo
can this work if your forums is on a different server from your site? Yes, so long as it has access to the same database.
Tigga
02-26-2003, 02:19 PM
I apologize that I don't had much time to help everyone right now... Things have been very busy with my business this week and I haven't had much time to help people customize things. If anyone is having an actual problem with the script I will still try to help, but most customizations will have to wait until I have some more free time.
Gamerforums - I'm not sure how good you are with PHP, but if you make similar changes to your myvbindex file as you did to your index file then you can add the most users in a day. If you can't figure it out let me know and I'll have a look in a day or two.
arracing - If you add AND poll.active=1 in the WHERE clause of the poll query then that will keep polls that are closed from being displayed. And you are correct, right now it will not pull a poll where the thread has been closed.
Lacrosse Boy - Right now it is set to display a default icon if none is selected with the thread. I will be releasing v3.1.1 in a couple of days that will fix a couple of small bugs and will change this to go by what you have selected in your forums options, so if you have that turned off for your regular forums, it will work the same way for your index page.
MartynJ - That shouldn't be too hard to do... I will see if I can post instructions for you once I have the time.
HarryBO - I think if you applied the instructions there to your myvbindex.php file instead of your forums/index.php file then it should work. One or two parts of the code may be slightly different, but it shouldn't be too hard to figure out.
Kamui Shirou - Sorry, but the only word I understood there was newreply.php... Could somebody maybe translate that?
XtReMaTriX - Glad you're enjoying the hack. :)
joeboo - I don't think it can unless that server has access to the same database. There *may* be a way to have it pull the info from the other server if it doesn't have access to the database, but I've never tried that and I'm not sure if it would even work or not. I can try to look into making a "mini-hack" if I can get that to work when I have some more time though.
MartynJ
02-26-2003, 03:49 PM
Originally posted by PlurPlanet
joeboo - I don't think it can unless that server has access to the same database. There *may* be a way to have it pull the info from the other server if it doesn't have access to the database, but I've never tried that and I'm not sure if it would even work or not. I can try to look into making a "mini-hack" if I can get that to work when I have some more time though. I'm sure you can. It all has to do with the name of the database server in admin/config.php
For example, the myvbindex.php file is on Server A and the forums are on Server B.
You would need to mimic certain files such as global.php etc on the Server A, and then on server B in admin/config.php don't put "localhost" as teh servername. Hmm, actually, this is getting more complex as I think about it. In order to be included, the admin/config.php would need to be on the same server also as the myvbindex.php -
Hmm, I think then that you'd need to have it so that on Server A you had myvbindex.php, global.php and then all the contents of the admin folder. In the admin folder on Server A you'd specify the IP or full hostname of the MySQL server on Server B. Server B you would leave intact as a normal forum and use the term "localhost" in your admin/config.php
The problem though may be a question of "What constitutes two uses of one licence?"
EDIT
Oh, it gets worse. While securing a MySQL server I'm running at home, I found out that you also have to specify from which hosts any given user can access the server. I'm betting 100% of Hosting Co's will just have this set to "localhost" purely for security reasons. That means that no matter what, you'll not be able to *directly* connect to the remote database from another server unless it is specifically enabled (maybe a second MySQL account would allow it, but you'd need to speak to your host)
PKRWUD
02-27-2003, 09:05 AM
Greetings,
After upgrading to 2.3.0, I lost the weather. Can you tell me specifically what to reinstall?
Thanks Brian!
Take care,
~Chris
Tigga
02-27-2003, 03:24 PM
Hmm... Are you sure you only lost the weather templates Chris? Normally when upgrading to a new version of vB it will delete any templates that haven't been customized. I'm not quite sure why it does that when many people will have new templates from hacks, but I guess it's easier for them to delete all that haven't been customized rather than listing them all out. There should be 37 index templates, not including the 4 for the weather. You may want to double check that you have all of them. If you are missing any you can upload the myvb_install.php file to your admin folder and go to http://yoursite.com/forums/admin/myvb_install.php?step=3. You don't have to worry about it overwriting any custom templates or anything as those should still be there, so it may be a good idea to do that anyways just to be sure. As for the weather... If you'll upload your weather_install.php file to your admin folder, go to that page in your browser, and only continue to the 2nd step, that will restore your weather templates. You shouldn't have any problems with that, but if you do let me know.
Oh, and incase anyone is wondering, Chen was kind enough to change my name to Tigga for me. ;)
PKRWUD
02-27-2003, 03:36 PM
Thank you, that's just what I needed to know! I ran your install page 3 for the other missing templates, but I no longer had a weather install file, and was thinking those templates were packaged with the others. I will get the weather install file, and give it a go again. Thanks so much for taking the time to follow up!
Take care,
~Chris
Tigga
02-27-2003, 10:22 PM
MartynJ - Attached are instructions on how to add your fourms to your index page. :)
Tigga
02-27-2003, 10:29 PM
Well nevermind... Apparently attachments aren't working on here right now for some reason so I'll just post it.
In your myvbindex.php file look for:
// vbPortal mini calendar - by wajones
Right Above that Add:
function makeforumbit($forumid,$depth=1,$permissions='') {
global
$DB_site,$bbuserinfo,$iforumcache,$ipermcache,$imo dcache,$session,$accesscache,$usergroupde
f,$noperms;
global
$showlocks,$hideprivateforums,$showforumdescriptio n,$forumhomedepth,$dateformat,$timeformat
,$enableaccess;
if ( !isset($iforumcache["$forumid"]) ) {
return;
}
$forumbits
= '';
while ( list($key1,$val1)=each($iforumcache["$forumid"]) ) {
while (
list($key2,$forum)=each($val1) ) {
// Permissions
if ( $enableaccess and
is_array($accesscache["$forum[forumid]"]) ) {
if
($accesscache["$forum[forumid]"]['accessmask']==1) {
$forumperms =
$usergroupdef;
} else {
$forumperms = $noperms;
}
} else if
( is_array($ipermcache["$forum[forumid]"]) ) {
$forumperms =
$ipermcache["$forum[forumid]"];
} else {
$forumperms = $permissions;
}
if (!$hideprivateforums) {
$forumperms['canview']=1;
}
if
(!$forumperms['canview']) {
continue;
} else {
$forumshown=1;
// do light bulb
if ($bbuserinfo['lastvisitdate']=='Never') {
$forum['onoff']='on';
} else {
if (($fview =
get_bbarraycookie('forumview', $forum['forumid'])) > $bbuserinfo['lastvisit']) {
$userlastvisit=$fview;
}
else {
$userlastvisit=$bbuserinfo['lastvisit'];
}
if ($userlastvisit<$forum['lastpost']) {
$forum['onoff']='on';
} else {
$forum['onoff']='off';
}
}
if ((!$forumperms['canpostnew'] and $showlocks) or
$forum['allowposting']==0) {
$forum['onoff'].='lock';
}
//
prepare template vars
if (!$showforumdescription) {
$forum['description']='';
}
// dates
if ($forum['lastpost']>0) {
$forum['lastpostdate']=vbdate($dateformat,$forum['lastpost']);
$forum['lastposttime']=vbdate($timeformat,$forum['lastpost']);
eval("\$forum['lastpostinfo'] = \"".gettemplate('forumhome_lastpostby')."\";");
}
else {
$forum['lastpostinfo']='Never';
}
$listexploded=explode(",", $forum['parentlist']);
while (
list($mkey1,$mval1)=each($listexploded) ) {
if ( !isset($imodcache["$mval1"]) )
{
continue;
}
reset($imodcache["$mval1"]);
while
( list($mkey2,$moderator)=each($imodcache["$mval1"]) ) {
if (
!isset($forum['moderators']) ) {
eval("\$forum['moderators'] =
\"".gettemplate('forumhome_moderator')."\";");
} else {
eval("\$forum['moderators'] .= \", ".gettemplate('forumhome_moderator')."\";");
}
}
}
if ( !isset($forum['moderators']) ) {
$forum['moderators'] = ' ';
}
if ($forum['cancontainthreads']==1) {
$tempext = '_post';
} else {
$tempext = '_nopost';
}
eval("\$forumbits .=
\"".gettemplate("forumhome_forumbit_level$depth$tempext")."\";");
if
($depth<$forumhomedepth) {
$forumbits.=makeforumbit($forum['forumid'],$depth+1,$forumperms);
}
} // END
if can view
} // END while ( list($key2,$forum)=each($val1) ) {
} // END while (
list($key1,$val1)=each($iforumcache["$forumid"]) ) {
unset($iforumcache["$forumid"]);
return $forumbits;
}
if (!isset($forumid) or $forumid==0 or $forumid=='') {
$forumid=-1;
} else {
// need to get permissions for this specific forum
$permissions=getpermissions(intval($forumid));
}
$forumbits=makeforumbit(intval($forumid),
1, $permissions);
In your index template, look for:
$newsbits
Right after that Add:
<br><table cellpadding="{ tableouterborderwidth}" cellspacing="0" border="0"
bgcolor="{ tablebordercolor}" { tableouterextra} width="{ contenttablewidth}"
align="center"><tr><td>
<table cellpadding="4" cellspacing="{ tableinnerborderwidth}" border="0" { tableinnerextra}
width="100%">
<tr align="center">
<td bgcolor="{ tableheadbgcolor}"><smallfont> </smallfont></td>
<td bgcolor="{ tableheadbgcolor}" width="80%" align="left"><smallfont
color="{ tableheadtextcolor}"><b>Forum</b></smallfont></td>
<td bgcolor="{ tableheadbgcolor}"><smallfont
color="{ tableheadtextcolor}"><b>Posts</b></smallfont></td>
<td bgcolor="{ tableheadbgcolor}"><smallfont
color="{tableheadtextcolor}"><b>Threads</b></smallfont></td>
<td bgcolor="{ tableheadbgcolor}" nowrap><smallfont color="{ tableheadtextcolor}"><b>Last
Post</b></smallfont></td>
<td bgcolor="{ tableheadbgcolor}" width="20%"><smallfont
color="{ tableheadtextcolor}"><b>Moderator</b></smallfont></td>
</tr>
$forumbits
</td></table></td></tr></table></td>
Be sure to remove the space after the { in each of those replacement colors. Sorry to do it that way, but that's the only way I could since I can't attach a text file.
PKRWUD
02-28-2003, 12:10 AM
Just wanted to update you, and tell you that running the weather install file through step two was the trick. All is well again, and everyone gets to see that it's a freezing 59 degrees here right now. ;)
Thanks again Brian.
Take care,
~Chris
arracing
02-28-2003, 01:12 AM
arracing - If you add AND poll.active=1 in the WHERE clause of the poll query then that will keep polls that are closed from being displayed. And you are correct, right now it will not pull a poll where the thread has been closed.
That didnt work. It is still pulling up polls that have been closed. I dont want to have to close the whole thread only the poll and have it now show up in the index. So can you tell me what is wrong?
ElenaBB
02-28-2003, 09:12 AM
You excuse my bad English
My problem is the to associate the graphics of my forum to the portal!
How can I do for making him/it equal to the forum?
GIF PORTAL (http://www.maxlotto.tv/portal.gif)
GIF FORUM (http://www.maxlotto.tv/forum.gif)
Tigga
02-28-2003, 10:14 PM
arracing - That should have worked... Any polls that have been closed have a value of 0, and any that are open have a value of 1. You could try changing that to poll.active!=0. It should work either way, but maybe that will help. If not let me know, and also do me a favor and post exactly what you have for that query so I can test it out if that doesn't work.
ElenaBB - You didn't follow the instructions in the readme 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.
ElenaBB
03-01-2003, 08:16 AM
The problem I am not the images but Header!!!
Don't create the same Header of the forum!!!
Strider Xero
03-01-2003, 11:28 AM
Yeah you have to go into the myvbindex templates and edit the header template yourself.
As for me, do you HAVE to create a new News forum? Because I put in the id # for my pre-existing News forum, but nothing is showing up for some reason. Also, when I choose 'No' in "Show Latest Threads Icon?", the latest threads don't show up at all. Everything else is either fine, or i figured out how to work around the errors that I got.
Tigga
03-01-2003, 05:20 PM
ElenaBB - It pulls a different header than your forums header since not everyone wants it to be the same. You should be able to edit that to match your forums header though.
Strider Xero - No, you can use an existing news forum, but either way the script will only recognize posts that were made after the script was installed. A new field was added to the post table during the installation to determine if the post is the first in the thread. Without this it would sometimes pull random posts for some reason. If you need to update those existing posts, here is a link explaining the best way to do that - https://vborg.vbsupport.ru/showthread.php?postid=334648#post334648
The latest threads icon thing is caused by a small typo which results in the threads not being displayed if that is turned off. I'll be releasing a new version this week that will fix that and add a couple of other small things options. For now I would suggest just leaving that on and editing the index_threadbit template to remove the icon from there.
mcyates
03-01-2003, 06:11 PM
I'm trying to add the last reply by (username)
why does this work on forumdisplaybit template:
$thread[lastposter]
But not on the index_threadbit template?
Im using the myvbindex
Please help me
http://www.myfootballforum.com
(you will see it just says Last reply by, (and no username))
MartynJ
03-02-2003, 04:30 PM
Tigga, did you get my email?
Tigga
03-02-2003, 05:47 PM
mcyates - Search this thread for "lastposter". I'm sure you'll find the answer. ;)
MartynJ - Sorry, I did get your email but this weekend has been very busy and I completely forgot about it. I'm attaching the text file here incase others would like to do the same, so hopefully the attach option will work this time. :)
Dean C
03-02-2003, 05:59 PM
Hi Tigga,
I've decided to use your script instead of vbhome lite because of a few little addons you have listed which enable me to do this work easier for a client of mine currently. The only thing this lacks is a top 10 posters side block. If you could intigrate that or make a little addon for it i'd be most grateful.
Regards
- miSt
Tigga
03-02-2003, 09:47 PM
Hey Mist, if you'll check this post (https://vborg.vbsupport.ru/showthread.php?postid=344323#post344323) I already explained how to go about doing that for someone else. I guess I should update the "mini-hacks" section on the first post since there's quite a few kinda scattered throughout the thread. ;)
klunderj
03-02-2003, 09:48 PM
I got this hack to install, and somewhat work, however I cant see anything new on my admin cp. I dont see any options for vbindex.
I have had this problem with other hacks- vbhomelite, etc.
What am I doing wrong that my admin cp doesnt get these new options?
Tigga
03-02-2003, 09:53 PM
Did you run the myvb_install.php file?
klunderj
03-02-2003, 11:03 PM
yes, I did run the install file, it added all templates, db entries, etc, and I even added the weather portion.
I can see all the templates and modify them, I just dont see any new options on my admin cp? That is where they are supposed to be added right?
Is there a step in the myvb_install file that I can re-run to try to get vb_index options on my admin cp?
klunderj
03-03-2003, 12:12 AM
I finally got my admin CP to see the myvbindex options. Not sure what happened.
Anyhow, Hard to believe, but this is one of my first succesful hacks installed. Still need to beef the site up... but thanks for this hack...
Does anyone know how to show all the forums on this index page, rather than just new threads?
Thanks again
Tigga
03-03-2003, 05:45 AM
That is weird... Not sure why the options wouldn't have shown up if the install file was ran, but I'm glad to hear you got it working. :)
As for putting the forums on there, see the attachment in post #837 in this thread.
Dean C
03-03-2003, 04:01 PM
Originally posted by Tigga
Hey Mist, if you'll check this post (https://vborg.vbsupport.ru/showthread.php?postid=344323#post344323) I already explained how to go about doing that for someone else. I guess I should update the "mini-hacks" section on the first post since there's quite a few kinda scattered throughout the thread. ;)
I love you!
- miSt
imageconstrux
03-03-2003, 09:38 PM
Hey Tigga -
The hack is installed, tweaking it now, but am having the same smilie problem others are having - it's putting post icons in when they shouldn't be, and referencing invalid path names, like:
domain.com/forums/images/icons/icon19.gif
when it should be
domain.com/forums/images/icons/sick.gif
How can I fix this? I've updated all post icon paths.
Thx,
Jeff
efulghum
03-03-2003, 10:19 PM
Got the post icon issue resolved, for anyone else who is having problems, here is the fix.
Find:
$iforumperms = 'AND forumid=' . implode(' OR forumid=', $iforumperms)
Change to:
$iforumperms = 'AND thread.forumid=' . implode(' OR thread.forumid=', $iforumperms);
Find:
$threads=$DB_site->query("SELECT threadid,title,replycount,postusername,postuserid, dateline,views".iif($showthreadicon, ',thread.iconid','')."
FROM thread WHERE open='1' AND open<>10 $iforumperms ORDER BY lastpost DESC LIMIT $maxlatethreads");
Change to:
$threads=$DB_site->query("SELECT thread.threadid as threadid,thread.title as title,thread.replycount
as replycount,thread.postusername as postusername,thread.postuserid as
postuserid,thread.dateline as dateline,thread.views
as views,".iif($showthreadicon,'thread.iconid as iconid,icon.title as icontitle,icon.iconpath as iconpath','')." FROM thread ".iif
($showthreadicon,'LEFT JOIN icon ON icon.iconid=thread.iconid','')."
WHERE open='1' AND open<>10 $iforumperms GROUP BY
thread.threadid ORDER BY lastpost DESC LIMIT $maxlatethreads");
Find:
$thread['icon'] = '<img src="https://vborg.vbsupport.ru/vbimages/icons/icon' . $thread['iconid'] . '.gif" border="0" align="absmiddle" alt="">';
Change to:
$thread['icon'] = '<img src="'.$thread['iconpath'].'" border="0" align="absmiddle" alt="">';
That's it.
Regards,
Liz.
refertech
03-04-2003, 12:45 AM
Everything has went well with the install but my news doesnt show up in the center of the page, just a blank white area and I'm sure I have the id correct. Someone have a clue what I might have done wrong.
Thanks,
Mark
h4x0rtje
03-04-2003, 09:58 AM
This is really a great hack, 1 problem....
But I should ask this first:
I downloaded 3.1 yesterday, do I have to fix some nasty bugs or something already?
Oke, When you are unregistered, and you try to reply or vote (what is not allowed!)
Then you'll get an error message, but de vbullet.gif is nog coming up!
The link where he's looking at, looks like
http://my.site.com/forum//forum/images/vb_bullet.gif
This with all the error/acces denied etc errors/pages... how can I fix this?
Fix:
In Template Standarderror look for the location of the vb_bullet.gif, and replace {imagesfolder} in the real location, for example just /images/vb_bullet.gif
(This is a workaround, but I had to fix it today...)
imageconstrux
03-04-2003, 09:47 PM
Mark - did you start a thread in that forum?
h4x0rtje - thanks - I have the same prob!
Jeff
Tigga
03-04-2003, 10:52 PM
imageconstrux - The fix efulghum posted should work. On most servers there shouldn't be a problem with the way it pulls the icons now, but I guess it may be necessary on some configurations to join the icon table as well. If that doesn't work though let me know.
efulghum - Thanks for posting that fix. I'll be sure to join the icon table in the next release. :)
refertech - The script can only recognize threads that were created after the script was installed. If the posts were made after the script was installed and they're not showing up, check that you modified your newthread.php file correctly. If you need to update posts that were made before the script was installed, see this post (https://vborg.vbsupport.ru/showthread.php?postid=334648#post334648) for instructions on how to update them.
refertech
03-05-2003, 11:34 PM
Thanks Tigga
and i want to tell you this after reviewing alot of this thread. I appreciate your patience and understand when dealing with people such as my self who are far from being as good a hacker as you are.
Mark
Oh yea, is it safe to upgrade to 2.3.0 C3 after this install?
Tigga
03-06-2003, 01:58 AM
Thank you refertech. I'm not that good of a hacker yet, but I try to help where I can. :)
Yes, it is safe to upgrade to 2.3.0, but when you run the vB upgrade script it will delete the myvbindex templates that have not been customized. That's really not a big deal though as you can just upload the myvb_install file to your admin cp again and go to http://yoursite.com/forum/admin/myvb_install.php?step=2. That will install only the templates for you, and any that were customized will remain the same. As long as you do that you shouldn't have any problems, but if for some reason you do let me know.
h4x0rtje
03-06-2003, 07:03 AM
I think it is discussed before... but I can't find it.
When the PM popup appeares on the vbIndex.php, and you click to see it, you are redirected to the wrong link it misses the forum directory......
Dean C
03-06-2003, 03:31 PM
Tigga - by default the news has a break between each news post... like so:
--------
news1
--------
--------
news2
--------
etc etc...
Well is this hardcode because i can't located the <br /> or <br> tag to remove in the templates...
Regards
- miSt
Dean C
03-06-2003, 06:48 PM
^ Ignore that silly comment :p
- mi
amykhar
03-06-2003, 06:55 PM
Originally posted by h4x0rtje
I think it is discussed before... but I can't find it.
When the PM popup appeares on the vbIndex.php, and you click to see it, you are redirected to the wrong link it misses the forum directory......
You need to modify your head_newpm template so that it has the full url and not the relative one.
Amy
Tigga
03-06-2003, 07:02 PM
h4x0rtje - If you'll edit your head_newpm template and look for 2 places it has private.php - change that to the full url to your forums and it should fix the problem.
Mist - Don't worry, I usually do ignore your silly comments. J/K :p
Amy - Thanks for helping. :)
refertech
03-06-2003, 09:51 PM
Ok, I'm stumped and I'm not really sure how to search for this in the thread.
My first problem is some of my weather pics arent showing up because of invalid links. Ex:hxxp://www.mysite.com/directory/test/images//weather//26.gif
Why would I have double / I know I've set something wrong.
I'm also having trouble logging out. I cant. :)
I have a few other problems so hang on to your hat Tigga. :)
Tigga
03-07-2003, 02:00 AM
For the weather, you should be able to edit your index_weather template and change this line:
<img src="{ imagesfolder }/weather/$iconset$weatherdata[cicon].gif" border="0" alt="$weatherdata[context]">
Just change { imagesfolder } to the url to your board's images folder.
Did you change the cookie domian when you were installing the script? Changing that can affect the cookies for some people, so just try clearing your cookies and then logging back in.
refertech
03-07-2003, 02:09 AM
I got it worked out. Thanks Tigga.
The post bit for the log in screen isnt showing up either. Where would i correct that url at? This is the url that it is calling for.
hxxp://www.mysite.com/forum//forum/images/vb_bullet.gif
Thanks for your help. I'll buy the beer next time. :)
Mark
Tigga
03-07-2003, 05:25 AM
Check your standarderror template and make sure the url for the image is "{ imagesfolder}/vb_bullet.gif" - without the space after the { ;)
.:.NetStartz.:.
03-07-2003, 01:12 PM
Hey...I love the hack...thanks... ;) www.eogn.net
I was wondering what I would do to make more custom windows? I want to be able to make $custom3 $custom4 etc...and also i'd like to be able to control it from the admin if possible. What do I have to do to do this?
refertech
03-07-2003, 02:05 PM
It was correct. I'm not sure why it wasnt working. I just changed it to the entire URL and now it works. That shouldnt hurt anything should it?
Oh and I think the custom template buttons are backwards. When I check yes for custom template 1. It shows me custom template 2 and vise versa. And when I edit the custom template 1, it actually is editing the template labeled 2 on the home page.
When i try to log into my site after clearing all my cookies in my browser it get a 404 page. After entering my user and pass it calls for www.mysite.com/member.php when it should be calling for www.mysite.com/forum/member.php
:banana: <-- I sure like to watch him dance. :)
Mark
Tigga
03-07-2003, 06:11 PM
Netstartz - Nice site. :) To add more custom templates, please check this post (https://vborg.vbsupport.ru/showthread.php?postid=327855#post327855). The instructions there should be pretty simple... Then to have it so they can be turned off and on in your Admin CP, please see this post (https://vborg.vbsupport.ru/showthread.php?postid=341569#post341569) for the queries you would need to run.
refertech - Changing the image that way won't affect anything unless you have multiple styles for your board. If you do and a user selects a style besides the default, then they will see the wrong icon there. Other than that though there's nothing wrong with changing that.
You are right about the custom templates being switched... Well, actually it does display the correct template, but the index_custom1 template has "Custom 2" in it and vice versa. I'll be sure to update that in the next version so thanks for pointing that out.
What do you have set for the URL under "General Settings" in your main vBulletin options? I would suggest making sure that is set to the full URL to your forums as it seems that none of your links in the header work either... Those links and the login form use that option to determine what the URL is, so you should check to make sure it's set correctly.
refertech
03-07-2003, 06:42 PM
yea I have check that url and its correct. This doesnt make sense to me and your right all the links are incorrect on the log in page which is why that image link was probably wrong too.
My url is as follows
hxxp://www.mysite.com/forum
Tigga
03-07-2003, 08:09 PM
That's really weird... The $bburl is a global variable that should be able to be used anywhere on your forum, or with any file that includes the global.php file. Do you maybe have another hack installed that could somehow have messed that up? Here's something simple you can do to test and see if it's working other places... Go to your FAQ section and click on "What are referrals?" (last option in the 2nd block). In that section you'll see a url like this: http://plurplanet.com/forum/index.php?referrerid=1. Double check that the url there is correct and let me know if it is.
refertech
03-07-2003, 08:14 PM
<a href="http://www.mysite.com/forum/index.php?referrerid=1" target="_blank">http://www.mysite.com/forum/index.php?referrerid=1</a>
Its correct. Man. Only me. If I can contact in you PM ill bring up something that might have caused it too, but i'm unsure.
Tigga
03-07-2003, 08:19 PM
Hmmm... There's nothing I can think of off hand that would cause that, especially if it's working ok through the forum. You could of course edit the templates that have $bburl in them and change that to the full url to your forum, but that will make it harder if you ever change the location of your forum, domain name, or anything like that. It is at least an option though incase nothing else works. Feel free to PM me as well with what you think could have caused it and maybe that'll help.
Dean C
03-07-2003, 08:46 PM
Tigga - i can't wait to show you what i've done with myvbindex, I LOVE THIS SCRIPT !!
- miSt
.:.NetStartz.:.
03-07-2003, 09:08 PM
Yea it really is great...I started w/ vbhomelite but was to lazy to fix it up the way I wanted to. I learned a lot from playing around with this hack and VB in general.
Tigga
03-07-2003, 09:17 PM
You'll have to send me a link to check it out. I'm sure you've done some nice things with it. :)
I just can't wait until the public beta for vb3 is out so I can start playing with that and making a new index with all of it's features. :D
.:.NetStartz.:.
03-07-2003, 09:19 PM
Isn't upgrading from a fully hacked board to VB3 going to be a pain? I love all the features I'm seeing, but I have tons of hacks installed...
Tigga
03-07-2003, 09:23 PM
Heh... Yea, it is going to be a major pain, but I think it'll be more than worth it with all the new features, plus from what I hear the coding is 10 times better. If you take a good look at my site you'll see that EVERYTHING on there uses the vBulletin database, so I figure that by the time I finish getting everything to work with the beta version then the full one should be out. :)
Dean C
03-08-2003, 11:01 AM
I should be able to show you on monday/tuesday. This script is so versatile its unbelievable.
Just a comment. Why have a <p> tag at the end of every block to seperate it. This is bad coding because you don't close the tags at any stage. It would be best to use a <br /> tag instead :)
Regards
- miSt
Tigga
03-08-2003, 05:57 PM
You know, in the 3 years that I've been writing HTML I was never aware that a <p> tag should technically be ended. Of course I've seen many people do it that way, but I wasn't aware that it should be done that way. Thank you for pointing that out. Though I've never had any problem with using the tag without closing it I'll keep that in mind and make sure to end it or use a <br> tag instead.
While we're on the subject, maybe you could tell me what the difference between a <br /> and <br> is? I had never seen the <br /> tag done that way until I started getting into PHP, but I've never quite understood what the difference is. :ermm:
Zachery
03-08-2003, 06:14 PM
.
Tigga
03-08-2003, 06:16 PM
Uh huh... Are you bumping all these posts for a reason Faranth?
refertech
03-08-2003, 06:22 PM
/me was wondering the same thing.
refertech
03-08-2003, 07:16 PM
Tigga,
Would this be possible?
Click Me (https://vborg.vbsupport.ru/showthread.php?postid=323797#post323797)
Tigga
03-08-2003, 07:31 PM
From looking at the post on Teckwizards (http://www.teckwizards.com/forum/showthread.php?threadid=132), that should be fairly simple to impliment with myvbindex. The code you would need to search for would be a little different, but other than that it shouldn't be hard to do. Just search for // Latest Threads instead of the little block of code in the instructions, and then of course the templatesused part at the top will have different templates, but you would just add the new ones in at the end of that string.
refertech
03-08-2003, 07:51 PM
// latest thread = should be in the myvbindex.php file?
Tigga
03-08-2003, 08:06 PM
Oops... Looks like I used // Latest Forum Topics to note where that starts. Sorry about that! :)
refertech
03-08-2003, 08:25 PM
Ahh, OK Thanks Tigga,
you've been very patient with me.
What part of the index template determines which side of the home page items are placed?
Tigga
03-08-2003, 09:01 PM
It shouldn't be too hard to figure out... The first things you'll see are the boxes on the left side (welcome box, online users, poll, etc), which are all in one table cell. Then the news would be next, and the rest of the boxes are in the last table cell.
refertech
03-08-2003, 09:12 PM
Yea, I figured it out. Sorry for the silly question. Thanks for your input on how to implement that Database Links. It worked out wonderfully.
Mark
Yuber
03-08-2003, 09:47 PM
I have 2 question
1) You know how you showed us how to get rid of the news and right side when you click on a menu link(the part with the include.php)? I was wondering if there was a way to have just the news disappear and the left and right sides remain?
2) I was wondering how would I change my homepage to have images and border images like what vb.org's has? I don't want to use vb.org's style, I am just using then that they have images and border images as an example.
Tigga
03-09-2003, 02:21 AM
Actually what I posted here was how to get rid of just the news. Check this post (https://vborg.vbsupport.ru/showthread.php?postid=348560#post348560) and you'll see how to do that. ;)
As for the images, that would require quite a bit of HTML changes. The best thing I could suggest would be to look at the source here and kind of use that to base yours on.
Dean C
03-09-2003, 01:18 PM
These days most html code should be written in XHTML compatible source. <br /> is XHTML and <br> is old style HTML.
Simple as that :)
- miSt
refertech
03-09-2003, 07:35 PM
How difficult would it be to add a header bar over the New to Identify which forum those post are coming from.
I need to fix the [Forgotten your Password] link on the login page still. What template would that be in?
Thanks,
Mark
Tigga
03-10-2003, 02:16 AM
Mist - Thanks. :)
refertech - The links would be in your error_nopermission_loggedout or error_nopermission_loggedin templates.
As for your first question... Do you mean to show what forum a post is in in the latest threads part?
FleaBag
03-10-2003, 05:48 AM
Tigga, I can't find the code I need for the Stylin Buddy List mini-hack.
Also, when is the new version you told me about coming out mate?
Rebel38
03-10-2003, 08:06 AM
Hey Tigga I get this error when I try to install weather_install.php
Parse error: parse error, unexpected $ in /home/virtual/site1/fst/var/www/html/forum/admin/weather_install.php on line 10920
can you please tell me what could be causing this?
Thanks
Rebel
refertech
03-10-2003, 10:22 AM
Actually I was just wanting to create a header over the news section of the home page that Identified where those New post came from. Mine come from Annoucements. No biggy just messing with the idea.
None of those templates contained the link for that. :( Any others I should look for? See the pic for the links I need to repair and ill probably just remove the register ones.
Tigga
03-10-2003, 06:01 PM
GamerForums - The stylin buddy list is in the first post under the mini-hacks section.
I should be able to release v3.2 soon... The majority of it is done, but there are still a few small changes I need to make, I still need to test it out a little, plus I haven't had much time to work on it these last couple of weeks. At first I was just going to fix a couple of small bugs, but I decided to add a couple of new small features as well and I'm trying to make sure there will be no problems so that this will be the final release until vB3 comes out.
Rebel38 - Check that the file was uploaded completely and that it was uploaded in ASII mode.
refertech - One of those links should be in the templates above. The other 2 would be in the username_loggedout template. ;)
Oh, and I'm still not sure I follow you about the header thing... Could you maybe give me an example of what you're talking about?
refertech
03-10-2003, 06:38 PM
Ahh, that was it. username_loggedout . Thanks a bunch.
I'll have to see if I can come up with a way to show you want I was looking for. More less nothing more than a extra strip that stays at the top of the news section to Identify where those post acctually come from. Nothing fancy. But ill see if I can make what I'm wanting in PS and put a image here for ya to see.
Thanks you so much for your help, you've been a lift saver.
Mark
Lacrosse Boy
03-10-2003, 09:33 PM
Well, when I install 3.2, I have a question,
-How can I rearrange some of the elemnts, such as user fields, news etc. I am new to PHP, so I don't want to screw anything up! I would like to put the Custom /template 1 somewhere else. What would I need to change?
refertech
03-10-2003, 10:42 PM
Edit the index template in the Myvbindex Template Set. Just arrange them the way you like. :) You will see what I'm talking about when you see the code.
Yuber
03-10-2003, 11:02 PM
Originally posted by Tigga
Actually what I posted here was how to get rid of just the news. Check this post (https://vborg.vbsupport.ru/showthread.php?postid=348560#post348560) and you'll see how to do that. ;)
As for the images, that would require quite a bit of HTML changes. The best thing I could suggest would be to look at the source here and kind of use that to base yours on.
Can you give me some good tips please? I know barely anything about html, and if I go by some stuff of vb.org's the longer stuff will be to long for such as stuff like online buddies. :(
arracing
03-10-2003, 11:23 PM
its still showing closed polls for some reason i tried using both !=0 and =1 and they both dont work. I also tried with and without the '1' around the 1.
here is my code:
$pollinfo=$DB_site->query_first("SELECT thread.pollid, thread.open, thread.threadid, thread.replycount, poll.pollid, poll.question, poll.dateline, poll.options, poll.votes, poll.active, poll.numberoptions, poll.timeout, poll.multiple, poll.voters FROM thread LEFT JOIN poll ON (thread.pollid=poll.pollid) WHERE thread.pollid!='0' AND thread.open='1' AND thread.open<>10 AND poll.active='1' AND thread.forumid!=64 AND thread.forumid!=49 AND thread.forumid!=47 AND thread.forumid!=40 ORDER BY RAND()");
arracing
03-11-2003, 01:24 AM
hey tigga, i have decided i dont want the random pulling polls from all over my board after testing this out for a month now. Instead i want it to pull polls randomly from my specicif polls forum which is id number 71. Can you help me with that code?
Tigga
03-11-2003, 01:56 AM
refertech - Do you mean something like a strip across the top of the news that states which forum the news is coming from?
Lacrosse Boy - As refertech said, all you need to do is edit the index template. It was designed to be very customizable and moving the "boxes" is as easy as moving a small variable for most of them. It doesn't really require any knowledge of PHP, just HTML. ;)
Yuber - About the best thing I can tell you is to find a tutorial on HTML that could explain it. There are several different ways it could be done with background images, regular images, and tables. Other than that I can tell you it just mostly requires using tables to get different images lined up together to appear as one... Hopefully that will at least help a little. :)
arracing - You would just need to change your poll query to something like this:
$pollinfo=$DB_site->query_first("SELECT thread.pollid, thread.open, thread.threadid, thread.replycount, poll.pollid,
poll.question, poll.dateline, poll.options, poll.votes, poll.active, poll.numberoptions, poll.timeout, poll.multiple, poll.voters
FROM thread LEFT JOIN poll ON (thread.pollid=poll.pollid) WHERE thread.forumid=$pollsforum AND thread.pollid!='0' AND thread.open='1'
AND thread.open<>10 AND poll.active='1' ORDER BY RAND()");
Then just enter the id number of your polls forum in the mYvBindex options.
refertech
03-11-2003, 01:59 AM
yea man. :) Sort of stupid i guess just thought I would play with it and see what it looks like.
Tigga after saying that much to that many people your suppose to say. SHEWWWWWW. :)
Mark
Tigga
03-11-2003, 02:03 AM
LOL... Well the best way I would suggest for you to do that would be to just edit the index template and add some HTML in there to link to the forum. There are other ways to do that which would pull all the info from the database, but personally I don't see the point in doing it that way and adding an extra query when it could be done the easier way. ;)
refertech
03-11-2003, 02:09 AM
* refertech shakes Tigga's hand and says thank you. :)
I'm off to Philadelphia till Thursday. See ya then. :)
Mark
arracing
03-11-2003, 02:43 AM
thanks tigga, thats much better and less problems.
Tigga
03-11-2003, 02:50 AM
refertech - Have fun in Philly. :)
arracing - No problem. Sorry it wasn't working right from all forums, but as far as I know the code I gave you should have worked. Oh well, glad it's working better now. :)
Kernel
03-11-2003, 10:52 PM
Hey I have a problem. I was having problems with the weather and I found a "weathertemplate.php" on this post that the author posted. I installed it, and now I have 2 weather options and the weather table on my index is really...fat O.O
http://kernel.verbicide.net/php-bin/vbb
Can you please tell me how to uninstall just 1 of them? Preferably the template one I downloaded off of this thread. Thanks.
350Chevy
03-12-2003, 02:03 AM
Hey Plurplanet er Tigga.. :D,
I just upgraded to 2.3.0 and noticed I needed to upgrade your MyvBindex as well. In doing so I replaced the templates that needed to be replaced and the index.php. Everything seems back in order but now the HTML in the news posts doesn't show?? I have HTML turned on still in the news forum. Does your latest version not support HTML in news posts anymore? TIA.. :D
It's also turned on in the CP under the MyvB options.. ;)
FleaBag
03-12-2003, 11:18 AM
Tigga, I managed to integrate with "Who was online today" hack, as well as my own hack for hiding admins very easily... Thanks for a great script!
Tigga
03-12-2003, 04:07 PM
Kernel - The best thing I can suggest to remove the extra setting and template is to delete them with phpMyAdmin. Just look for the "Show Weather" option in your setting table, and then one of the index_weather in columns your template table. Then below I'm attaching the index_weather template for this version.
350Chevy - As far as I know there's no reason it shouldn't allow HTML if it's turned on. You could try to save the settings again to make sure they were saved to the template. If it still doesn't work after that you could open your myvbindex file and look for $newshtml. If you replace that with a 1, it should solve the problem, but you won't be able to easily switch that off and on via your Admin CP. Or, if neither of those work or you would prefer for me to take a look at it I can try to find the problem if you want to give me FTP access and set up a temporary admin account for me on your board.
GamerForums - Glad to hear it. I didn't think it would be too hard to figure out. :)
350Chevy
03-12-2003, 06:32 PM
Originally posted by Tigga
350Chevy - As far as I know there's no reason it shouldn't allow HTML if it's turned on. You could try to save the settings again to make sure they were saved to the template. If it still doesn't work after that you could open your myvbindex file and look for $newshtml. If you replace that with a 1, it should solve the problem, but you won't be able to easily switch that off and on via your Admin CP. Or, if neither of those work or you would prefer for me to take a look at it I can try to find the problem if you want to give me FTP access and set up a temporary admin account for me on your board.
Thanks... I didn't really want to mess with it too much after upgrading everything 12 hours straight with 40+ hacks. I just replaced the $newshtml with a 1 and it works fine. I doubt I'll ever need to turn it off anyway.. ;)
Thanks again.. :D
Kernel
03-12-2003, 09:01 PM
Thanks for the reply :) Well, I found 4 index_weather's and..i dont know which to delete. Do I delete them all and just leave 1? Also, there are other duplicates concerning weather...get rid of those too? :D Thank for the help.
--edit--
Heh I decided to take a risk and delete all the recent ones, and leave the oldest. Worked like a charm :banana: :banana:
refertech
03-12-2003, 11:32 PM
Tigga,
Would it be possible to have images that i insert into the New post to show up in the Portal page news articles? Now if this has been asked allready I'm sorry. I'm still in Philly till tommorow and stuck on dailup. so searchs are going slow. :)
Thanks,
mark
Anybody installed this with vb 2.3.0 RC3 ?
PKRWUD
03-13-2003, 08:19 PM
Today at 01:47 PM ub3x said this in Post #915 (https://vborg.vbsupport.ru/showthread.php?postid=365776#post365776)
Anybody installed this with vb 2.3.0 RC3 ?
Works perfect with it. You will need to reinstall some templates if you are upgrading to 2.3.0, and already have mYvBindex installed. If you want to install mYvBindex for the first time, and are running 2.3.0, it will be a snap.
BTW, this is by far my favorite addition since installing vBulletin!
http://www.RiceHatersClub.com
Take care,
~Chris
Rebel38
03-13-2003, 10:34 PM
Hey Tigga how do I add a counter to myindex.php?
I want to add a page counter to myindex.php, but dont know where to add it with out getting errors.
Can you please help me?
Thanks
Rebel38
Heffe2000
03-14-2003, 01:57 AM
Is there an easy way to move the Latest Post Topics under the news, like on vbportals? I like your software much better, but my users like the old format. I tried searching the thread, but there's way too much to do that effectively :).
I also tried to hide several (read about 40) forums from the latest post topics using the method mentioned earlier in this post (AND open<>10 AND forumid!=xx), and kept adding the AND forumid!=xx's, one for each. So far it seems to not be working. In VBportal there was a place to put the forums you wanted to exclude (just a list of forumid's), would this be possible for your software also?
Krackills
03-14-2003, 06:05 AM
ummmm moveing the new posts below the news to give it more room is this posible well yes it is bbut i dont know enuff php to do it so if you could tell me how that would be great!
mcyates
03-14-2003, 10:19 AM
How can i add "last post by" to the recent descusion list. It has the author who created it but i also want the name of the person who last replied to the message. Take a look at the site below:
http://www.diyaudio.com
I want something similar to that/
Tigga
03-14-2003, 04:39 PM
refertech - It's possible now to insert images using the img tag or by enabling HTML. Is there another way you were wanting to insert the image?
ub3x - Yes. It will work with versions 2.6 & up.
Rebel38 - There are several counter systems out there that shouldn't be a problem to impliment with this. Short of writing one for you there's not much I can do to help you impliment one though.
Heffe2000 - Moving the latest topics under the news is just a matter of editing the HTML in the index and index_threadbits templates. You would basically move the latest threads block to right underneath the $newsbits part in your index template and maybe make a few small cosmetic changes. It really shouldn't be too hard to figure out. ;)
As for excluding the forumids, try something like "AND open<>10 AND forumid!=xx OR forumid!=yy OR forumid!=zz" (with OR after each forumid instead of AND). That should work, but if it doesn't let me know.
Krackills - See my reply to Heffe2000. ;)
refertech
03-14-2003, 06:36 PM
ahh, now I see says the blind man.
Thanks
Tigga that did it. :)
What would it cost me to get you to write a hack for me?
Tigga
03-14-2003, 06:40 PM
It depends... Email me (brian@plurplanet.com) with some details and I'll let you know. :)
refertech
03-14-2003, 07:21 PM
Sent. :)
thanks,
Mark
Krackills
03-14-2003, 10:18 PM
<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><font color="{categoryfontcolor}"><b>Login</b></smallfont>
</td>
</tr>
<tr>
<td bgcolor="$getbgrow">
<table><tr><td>
<smallfont><form action="$bburl/member.php" method="post"><b>Username:</b></smallfont><BR><input type="hidden" name="s" value="$session[sessionhash]">
<input type="hidden" name="action" value="login">
<input type="text" class="bginput" name="username" size="12"></td></tr><tr><td><smallfont><b>Password:</b></smallfont><BR>
<input type="password" name="password" size="12" class="bginput"></td></tr><tr><td>
<input type="submit" class="bginput" value="Login!">
</td></tr><tr><td>
<smallfont>Not a member yet?<BR><A HREF="$bburl/register.php">Register Now!</a></td></tr></form></td></tr></table></table></td></tr></table><p>
ok how can i make that so that when i click login it keeps me on the main page (just like refreshes once or somthing) i already have it so it opens another window to the forums so that you log in but how can i do this any hlp would be great!
Heffe2000
03-14-2003, 11:30 PM
Tried the edit for the excluding forums, but that didn't work. It'd be nice if there was a config for that kind of stuff that was seperate from the main php file :). I'll see what I can come up with for the moving of the latest posts though, but my HTML is really rusty..
arracing
03-14-2003, 11:39 PM
okay i need help with something. I want to put some code for streaming audio from a radio station into my index site. Problem is whenever someone clicks on any link in my index site it stops the music and tries to reload the whole page. How can I get it so this music plays and shows the streaming audio little box it creates but make it so the page does not reload it when you click on a link?
Heffe2000
03-15-2003, 12:02 AM
I moved the threadbits under the $newsbits, and it works fine, except the format is kid of large (the old one was either one line or 2, can't remeber now). I'll work on that though (I'd like one line with the thread title, and a 2nd line with the rest of the info).
Think anyone could help me out with codeing a line in the usercp block where you have a link to the admin cp if you're an admin, or the mod cp if you're a mod? My php coding skills are very lacking in something like that. That one's not so much for me, as it is my co-admins, I use the direct link to the admincp..
attroll
03-15-2003, 09:36 AM
Ok I installed this in 2.3.0 and have a problem.
When I login to my test site it logs me in but it takes me straight to the forums. It does not stay at my index page like it is suppose to. Then when I close my browser (all my browesers) and click my icon on my desktop to open my site back up it comes up wanting me to login with my name and password. But it says I am already logged on under active users. It seems that it is logging me on but not doing it correctly. I know it is logging me in because when I click on forums it comes up with my avatar and welcomes me. Once I have gone to the forums and then click back to my index it shows my avatar and has me logged in.
What happened here. I had it working on another site. Does anyone know what is going on here? Is it 2/3/0 that is causing the problem?
I deleted all my cookies and temp files and it still keeps doing this.
Help!
D|ver
03-15-2003, 11:39 AM
i installed this great hack and i am very happy with it :D
but can i show single posts in threads (not the first) as news?
i changed isnews to Y and it appears now on the news box, but then i have the problem, that the post user is not right and the avatar doesn't work as well
can anyone help me ?
thx in advance :)
mcyates
03-15-2003, 01:44 PM
In the latest messegest posted. It has the name of the author, but it is possible to add the name of the last member to post? If so how can i add it?
Tigga
03-15-2003, 07:12 PM
I'm sorry everyone, but I am not going to be around the rest of this weekend, and most likely will be in Miami all of next week. I will try and help anyone with problems or questions once I get back.
refertech
03-15-2003, 07:17 PM
You lucky dog I have to go to Boston. :P
Mark
Lacrosse Boy
03-17-2003, 07:11 PM
Thanks for all the help I've gotten.
I have another question: In the News Forum I have it hidden, and I don't want anybody to see the posts that are made in it, only the things on the front page. But they continue to show up in the "Latest Topics" area. I would only want these items to show up in the middle, and not have any links to them anywhere else. What do I do? :confused:
kevinnguyen
03-18-2003, 03:52 PM
Is it possible to show latest posts (Active in the Forums) like Vbportal?
I really need that
Thanx a lot!
frankenberrie
03-19-2003, 05:15 PM
At my website WWW.FRANKENBERRIE.COM
If you use any other resolution but 1280x1024, the vbindex screen cuts off but when you enter the forums it automaticly sizes itself to fit! How can I get my vbindex page to do the same... thank you!!
attroll
03-20-2003, 03:53 PM
I have a question. I looked through all the post here and can not see where someone has meantioned this.
In step #4 of the install process it says to upload newreply.php in the forums.
The problem I see is that there was no mods done to newreply.php or there was not newreply.php included in the zip file. So why is this meantioned? Did I miss something here?
attroll
03-20-2003, 03:58 PM
I have another problem. I had my weather link working good on my homepage yesterday and now it is coming back with the following errors:
=============================
Warning: fsockopen() [function.fsockopen]: php_hostconnect: connect failed in /home/attroll/public_html/index.php on line 588
Warning: fsockopen() [function.fsockopen]: unable to connect to www.msnbc.com:80 in /home/attroll/public_html/index.php on line 588
=============================
It was working once and I have done no changes to it. What can I di to fix this can someone please help me?
frankenberrie
03-20-2003, 10:11 PM
Is there a way for me to set vbindex to take news out of more than one catagory?
Rebel38
03-21-2003, 05:16 AM
Tigga in the Active Users table on my index page it shows Active Users But when I click on any of the usernames it takes me to
http://www.mydomain.com/member.php?action=getinfo&userid=30
instead of
http://www.mydomain.com/forum/member.php?action=getinfo&userid=30
I have the right path in the top of index.php, and everything else works fine except Active Users. Can you please tell me where I change the path to include /forum/
Thanks mate
Rebel
Snapperhaed
03-21-2003, 06:49 PM
Great Hack! Works perfect right out of the box with v2.3 #3 ... With the exception of the weather installer, which tells me it doesnt exist when it does. Oh Well. No great loss for me.
Quick question from an idiot who knows squat about most of this:
The hack contains custom1 and custom2 ... I also want to create custom3, 4, and 5.
I opened the index template, added $custom3 and so on, and created those templates ... Problem is they dont display. What a n00b!! haha.
Anyways, anyone who can help me out there would be much appreciated. Thanks!
Edited on March 23: I found the answer to my own question, regarding how to install more custom templates, for those who are interested it can be found at:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=44691&perpage=15&display=&pagenumber=14
Again, thanks for the excellent hack!
Heffe2000
03-22-2003, 12:03 AM
I got my other problems sorted out, but now I'm having the member.php problems same as the above user, and my weather broke over the last day or so. It was working fine, then it just stopped. If you go to the weekly forcast now, it shows 0 for all data. If anyone wants to give it a guess, feel free to check out my home page, http://www.asheron-online.com/
As far as I know, nothing has changed, but with 3 admins who work on seperate hacks & stuff, you never know :).
kevinnguyen
03-22-2003, 05:37 PM
is it possible to show the forums which the last threads are in?
Intex
03-23-2003, 08:56 PM
Tigga - First of all nice work man :cool:.
I have a problem with my installation and I've already seen some other people post about the same thing, but it doesn't seem to matter what I do, I can't get the correct path.
When running the myvbindex.php file, I get the following error:
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in c:\program files\apache group\apache\htdocs\myvbindex.php on line 13
Warning: main(./global.php) [function.main]: failed to create stream: No such file or directory in c:\program files\apache group\apache\htdocs\myvbindex.php on line 17
My myvbindex.php file contains the following info, relating to my path:
// Enter The Full Path To Your Forums Here
chdir('/forum');
// No Further Editing Necessary
You'll notice I'm running this on a Windows box :). What should this path be. My directory setup is quite straight forward (so I thought):
<ROOT>myvbindex.php
|
|---- forum
<ROOT> above is the default apache root, i.e. the htdocs folders root directory.
Any ideas?
imageconstrux
03-25-2003, 03:48 AM
Great hack! Installed on 2.2.9, and looks wonderful. Members really like it a lot. But I'm having permissions problems, like the others...
I have about 8 forums that are either for supermods or admins only, and like others these threads show up in the latest topics, and like the others when a person without the right permissions tries to access it, they are denied.
All permissions have been set correctly, these people cannot see these threads or their associated forums when they are searching through categories, forums, etc.
Is there a cleaner fix than having 8 lines of code to check if it's forum X, X+1, X+2, etc?
Thanks,
Jeff
Tigga
03-25-2003, 04:57 AM
I apologize to everyone for not being around this last week+. I had to go to Miami on business and only had my laptop on a dial-up connection. I barely had enough time to check my own forum let alone any others.
arracing - Sorry, but I don't know much about music files, though I'm sure you can find some sort of online tutorial if you search for one.
D|ver - Open your myvbindex.php file and look for:
SELECT thread.threadid,thread.title,thread.replycount,thr ead.postusername,thread.postuserid,thread.dateline ,thread.views,thread.iconid
Change that to:
SELECT thread.threadid,thread.title,thread.replycount,pos t.username,post.userid,post.dateline,thread.views, post.iconid
Heffe2000 - To add a link to the admin/mod cp, open your myvbindex.php file and look for:
$getbgrow=getrowcolor();
eval("\$welcometext = \"".gettemplate('index_welcometext')."\";");
Right above that Add:
$adminlink='';
if ($bbuserinfo['usergroupid']==6) {
$adminlink="<a href=\"$bburl/admin/\" target=\"_blank\">Admin CP</a>";
}
if ($bbuserinfo['usergroupid']==5) {
$adminlink="<a href=\"$bburl/mod/\" target=\"_blank\">Mod CP</a>";
}
Then just add the variable $adminlink in your index_welcometext template wherever you would like the link to appear.
attroll - The reason you still appear logged in when you're not is because you did not actually log out before you closed your browser window. If you log out first you shouldn't have a problem.
As for uploading the newthread.php file, that was a mistake on my part. In the previous versions of the script it was necessary to also edit that file, but I accidentally forgot to remove that part in the instructions. Thank you for pointing that out.
As for the weather part... I'm guessing that msnbc.com changed something in their settings and that's why it's no longer working. I'll see if I can figure out what was done and post a fix when I can, or you can check the vB Weather Mk 2 thread to see if a fix has been posted there.
mcyates - I have answered this question for you several times now. Search the thread.
Lacrosse Boy - Open your myvbindex.php file and look for:
$forums=$DB_site->query('SELECT * FROM forum WHERE displayorder<>0 AND active=1 ORDER BY parentid,displayorder');
Change that to:
$forums=$DB_site->query("SELECT * FROM forum WHERE displayorder<>0 AND active=1 AND forumid!=$newsforum ORDER BY parentid,displayorder");
kevinnguyen - Yes. It should be possible with a few simple template changes.
frankenberrie - That's something to do with your index_header template. Just look to see what the difference is between that template and your normal header template (I would guess there's a <p> or <br> missing after your logo).
As for pulling the news from multiple forums, you should be able to enter something like this for your News Forum ID - XX OR forumid=YY - And you would just change XX and YY to your forum id's.
Rebel38 - You missed one of the template modifications in the readme file. Check to make sure that you edited your forumhome_loggedinuser template properly.
kevinnguyen - Open your myvbindex.php file and look for:
$iforumperms = 'AND forumid=' . implode(' OR forumid=', $iforumperms);
Change that to:
$iforumperms = 'AND thread.forumid=' . implode(' OR thread.forumid=', $iforumperms);
Then look for:
$threads=$DB_site->query("SELECT threadid,title,replycount,postusername,postuserid, dateline,views".iif($showthreadicon, ',thread.iconid','')." FROM thread WHERE open='1' AND open<>10 $iforumperms ORDER BY lastpost DESC LIMIT $maxlatethreads");
Change that to:
$threads=$DB_site->query("SELECT threadid,thread.title,thread.replycount,postuserna me,postuserid,dateline,views,iconid,thread.lastpos ter,thread.lastpost, thread.forumid,forum.title AS forumtitle FROM thread
LEFT JOIN forum ON (thread.forumid=forum.forumid) WHERE open<>10 $iforumperms ORDER BY lastpost DESC LIMIT $maxlatethreads");
Intex - Try changing the path to c:\program files\apache group\apache\htdocs\forum
imageconstrux - As far as I know, if the forum permissions are set correctly then there should not be a problem. Would you mind taking a screen shot of the permissions page one of those forums that should be private and posting it here for me to check out?
Intex
03-25-2003, 07:24 PM
Tigga - thx for the response. I'd actually used a suggestion you posted eleswhere in the thread to determine the servers path, i.e. creating a file with the following info:
<?php phpinfo(32); ?>
That gave me the following path which was entered into that command line:
chdir('c:\\program files\\apache group\\apache\\htdocs\\forum');
Worked a treat :cool:. Today I looked through the entire thread for this hack and I noticed so many people were experiencing the same problem. I've also seen the same questions posed in other hacks that use the chdir command - therefore can I make a suggestion for you to include this in the instructions. This will definitely decrease the amount of support calls you get :).
On the support note, I'd just like to say that support from yourself is quite incredible. As I mentioned above, I've read the entire thread for this hack today (which took some time :)) and I have to say that not only do you retain your composure and professionality thoughout, even when clearly having to repeat yourself, but your actual support quality is no less than first class.
Keep up the superb work. Its a shame more of us don't have the same level of professionality as you do :).
BTW: On post #622 you'd provided a solution to the vB 2.2.5 problem with polls. I can confirm your solution works.
imageconstrux
03-25-2003, 11:43 PM
Tigga -
Here's a screenie of the permissions page for non-registered or not logged in users. This screenie is for a parent forum (red), and all the non-registered perms for each child forum under it is blue. (But I've tried it both ways, neither works)
imageconstrux
03-25-2003, 11:45 PM
And here's a screenie, with me being logged out, of part of the Latest Topics table. The 'Ask The Pro' thread is in one of the higher permission forums that a non-reg shouldn't be able to see.
Tigga
03-26-2003, 06:20 PM
Thank you for the compliments Intex. It's always nice to know that people appreciate the work and help. :)
I'm actually planning on making an FAQ for the script once I release the next version. As I'm sure you saw when you read the thread, there are many questions that are asked over and over again that could be prevented by that and save me quite a bit of time.
imageconstrux - Please check your PMs. :)
PKRWUD
03-26-2003, 10:01 PM
Any news on a fix for the weather?
PKRWUD
03-26-2003, 10:14 PM
Nevermind, I followed your advice and found it. The fix can be found here (https://vborg.vbsupport.ru/showthread.php?s=&threadid=41842&perpage=15&highlight=Weather&display=&pagenumber=21) (about halfway down the page).
attroll
03-27-2003, 02:56 PM
I got it working for three days then it started not showing the weather. It does not list the town and state and the temp now say "0 F". I looked at several other memebers who also have the weather on there index page and they are getting the same thing. Is there something wrong with there server that it looks to?
jarvis
03-27-2003, 04:25 PM
The weather is fixed by making the following in your myindex.php read:
fputs($rawdata,"GET /m/chnk/d/weather_d_src.asp?acid=$usersettings[accid] HTTP/1.0\n\n");
read...
fputs($rawdata,"GET http://www.msnbc.com/m/chnk/d/weather_d_src.asp?acid=$usersettings[accid] HTTP/1.0\n\n");
(Just in case people weren't able to search for the fix. ;) )
attroll
03-27-2003, 04:46 PM
I did the following like you said. I went into myvbindex.php and did the following:
Found:
fputs($rawdata,"GET /m/chnk/d/weather_d_src.asp?acid=$usersettings[accid] HTTP/1.0\n\n");
Replaced with:
fputs($rawdata,"GET http://www.msnbc.com/m/chnk/d/weather_d_src.asp?acid=$usersettings[accid] HTTP/1.0\n\n");
But I still get the same results as I meantiond before.
PKRWUD
03-27-2003, 04:57 PM
After making the above mentioned change, the next time you go to that page, select Change Settings (weather), and then select Submit, and your weather will be back. Unfortunately, for me at least, I have to do this everytime I log in to my website.
attroll
03-27-2003, 05:05 PM
Ok I did that too. I went into change settings and hit submit and still get the same thing.
PKRWUD
03-27-2003, 05:19 PM
Okay, well, after reading a little more closely, I see why there's a difference. You need to ALSO go to your weather.php file, and make the same change there. I didn't make the change in my myvbindex.php file, which is probably why I have to "reset" it each time I log in.
Anyway, make the exact same change to your weather.php file, and you should be good to go!
Take care,
~Chris
Intex
03-27-2003, 06:28 PM
For people that see the shoutbox (TWTCornish version) appear on the homepage but get an error when they come to submit a shout, it could be that your path is not set correctly in the shoutbox_postshout template.
My forum is located in /forum yet the original code seemed to rely on the shoutbox.php file being located on the root /. Anyway, adding /forum/ in front of the filename (as shown below) sorted it out for me.
<table cellpadding="5" cellspacing="0" border="0" width="100%">
<form action="/forum/shoutbox.php" method="post" name="vbform">
<input type="hidden" name="type" value="shout">
Intex
03-27-2003, 07:38 PM
In having problems with the weather hack. Its shown on my homepage, but no location information or graphics are shown either on the homepage or the actual weather stats page for the individual.
The code clearly has an incorrect path and judging from the templates I can only imagine this due to the variable not working? Any ideas? (see attached image).
Tigga
03-27-2003, 07:52 PM
Is anyone still having problems with the weather after applying the fix above?
Intex - It appears as though the weather is not working at all as -18 C is what it would display if it wasn't. Did you try applying the fix listed above?
Amongthethugs
03-27-2003, 08:09 PM
How can I have more then one poll on the index page? Also I would like to post news from several forums onto the main page.. Can you help me with both of these... BTW.. looks great
refertech
03-27-2003, 10:53 PM
For some reason I'm having that weather problem now too. I've even applied the changes but not change.
Actually when i applied the fix to the index (myvbindex). It started working but when I changed the setting it went back to not working. So I applied the change to the weather.php and still no change.
Welcome back Tigga, have fun in miami?
jibious
03-27-2003, 11:19 PM
just saying hi to the tigga man! hehe.
PKRWUD
03-28-2003, 03:25 AM
*UPDATE*
Weather now works perfectly for me. I made the exact same change in both my weather.php file and my myvbindex.php file. At first I only did it to my weather file, and it would work when the settings were submitted, but I had to do that every time I logged in. I then made the change to the myvbindex file, and now it's always there.
:)
attroll
03-28-2003, 04:05 AM
OK Got it working.
INTEX this is what you have to do to get it working. At least this is what I did.
Open your Myvbinndex.php file and change the following.
Find:
fputs($rawdata,"GET /m/chnk/d/weather_d_src.asp?acid=$usersettings[accid] HTTP/1.0\n\n");
Replaced with:
fputs($rawdata,"GET http://www.msnbc.com/m/chnk/d/weather_d_src.asp?acid=$usersettings[accid] HTTP/1.0\n\n");
Now open you weather.php file and change the same thing you did in your Myvbindex.php file
Thanks for you help PKRWUD.
EnriqueHavoc
03-28-2003, 04:51 AM
id like to create content for my site and integrate it with myvbindex but im not quite sure how... for instance, id like to swap out html/php pages with the newsbits
is there a way to do this with templates?
Intex
03-28-2003, 06:01 AM
OK, ingore my problem. This was more to do with my lameness than anything else. I was working on two styles and I was switching between two :). Weather works fine.
Yesterday at 09:52 PM Tigga said this in Post #961 (https://vborg.vbsupport.ru/showthread.php?postid=374192#post374192)
Is anyone still having problems with the weather after applying the fix above?
Intex - It appears as though the weather is not working at all as -18 C is what it would display if it wasn't. Did you try applying the fix listed above?
meCOOL
03-28-2003, 04:32 PM
who i can add the command in the middle
superman
03-29-2003, 04:09 AM
will this owrk on 2.3.0?
Spitfireisgod
03-29-2003, 04:45 AM
im wondering also
superman
03-29-2003, 05:57 AM
I'll answer my own question NO IT DOESN"T DAMNIT I NEED A 2.3.0 PORTAL!!!! *runs away crying*
Tigga
03-29-2003, 05:06 PM
Amongthethugs - It's possible to pull more than one poll, but that's something I'll have to play with and post instructions for later when I have the time. As for pulling news from more than one forum, you would just change your News Forum ID in the admin options to "XX OR forumid=YY" - And you would just change XX and YY to your forum id's.
refertech - There was a different fix for the weather posted here (https://vborg.vbsupport.ru/showthread.php?postid=372943#post372943). Maybe that one will work for you? Oh, and Miami was pretty fun. I was down there mostly for business, but I still had a good time. Thanks for asking. :)
jibious - Good to see you posting on here! :)
EnriqueHavoc - Edit your index template and replace the $newsbits variable with the content you would like there instead, and just leave your News Forum ID blank in the Admin CP.
meCOOL - Huh??
superman & Spitfireisgod - Yes, it does work for 2.3.0. Several people are running 2.3.0 with myvbindex, so if you're having problems post them here and I'll be glad to help.
EnriqueHavoc
03-29-2003, 05:26 PM
thanks tigga i got that part.. but i do want to keep the news. I guess what im asking is how to keep the index + newsbits page as it is, but also have multiple links (located in one of the custom template windows) that bring up other content pages where the newsbits go.
Id like to build an entire site around myvbindex. When someone clicks on one of the links- instead of going to an entirely new page, it will just swap out the newsbits with another template and keep everything else from the index page.
am i overcomplicating or is this possible?
are you saying i should copy the index.php page, rename it to whatever.php, edit out the newsbits and add the new content, then link to that(whatever.php) from the index? will the user login and other stuff still work like that?
Tigga
03-29-2003, 05:41 PM
Ahhh, ok... Yes, that is very possible and really not that hard to do. If you'll refer to these two posts they should help you to do that. ;)
https://vborg.vbsupport.ru/showthread.php?postid=348560#post348560
https://vborg.vbsupport.ru/showthread.php?postid=349929#post349929 (the instructions there to Matrix explains how to have more than one template since the first set of instructions only tell how to have one different template)
superman
03-29-2003, 06:06 PM
well it kept giving me this unexpected parse error on line 17 then when I tried to fix it it would go to 13....
I don't understand why it won't work O_O
but it just... doesn't I guess....
if you would like to acutally hellp me IM me.... ckywang05 (aim)
alright well I'll try again....
AllMadden.net
03-29-2003, 06:13 PM
Ok...I read through page 33 and got sick of reading...lol.
I am trying to make the banners show up on the main page (that is where I think they are supposed to show up). In my banner administration I have it set up, I have it turned on in my config.php file, and it is registering impressions...but it isn't showing up...
Tigga
03-29-2003, 06:20 PM
superman - It looks like you did something wrong when entering the path to your forums. I don't use AIM, but If you want to post what you have for line 13 I can tell you what's wrong.
AllMadden.net - What banner script are you trying to implement?
superman
03-29-2003, 06:33 PM
ok it's up but I have an error... this
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/gamingwa/public_html/index.php on line 13
Tigga
03-29-2003, 06:40 PM
What do you have set for the path to your forums? Judging by the error, it looks like you left it blank...
superman
03-29-2003, 06:50 PM
no it's
http://www.gamingwave.com/forums.php?s= or something with that php thing.. .should I get rid of that/
superman
03-29-2003, 06:55 PM
sorry for the double post but
I changed it to http://www.gamingwave.com/forums/
and it still gives me that error
refertech
03-29-2003, 07:04 PM
Thanks Tigga. I cleared my cookies and it went to working and has been working every since, so I'm not going to kick a gifted horse in the mouth. :)
Yet Miami is fun, I'm in Ft. Lauderdale from time to time for business as well and I always enjoy as apposed to Boston in the winter. :( :p
Mark
Tigga
03-29-2003, 07:13 PM
superman - It has to be the path to your fourm, not the url. Try /home/gamingwa/public_html/forums ;)
refertech - Glad it's working properly now. I can imagine Ft. Lauderdale is a nice change from Boston. When I got back to Atlanta I couldn't believe how cold it was here... It was almost enough for me to want to go back! :)
refertech
03-29-2003, 07:18 PM
You call Atlanta your home as well as I do? Cool.
Mark
superman
03-29-2003, 07:20 PM
thanks it works now ;)
Yuber
03-29-2003, 07:34 PM
Hey Tigga. How do you change the widths of the polls, calebdar, welcome panel, and latest forums so they don't appear as wide on the homepage?
Tigga
03-29-2003, 07:42 PM
refertech - Well actually I live in Marietta right now, but that's close enough. :)
superman - Glad to hear it.
Yuber - In the index template the first table cell there has a width of 165. Just change that to whatever you'd like and it should affect everything in that column
superman
03-29-2003, 07:55 PM
ok everything is totally set, thanks alot, and it is a +++++ to get an imaged map banner in there phew, took forever
Intex
03-29-2003, 08:05 PM
Tigga - Have a quick quick question for you. I've installed your hack and got loads of stuff running with it.
However could you guide me as to how to use any of the forum variables, so that I can show anything on your page that I can in the forum. For example I wanted to put the forum jump menu on your page and noticed this was a variable named $forumjump + $forumjumpbit, so I put $forumjump in the myvbindex 'index' template but it didn't work.
Any general guidance on using / calling forum bits and pieces would be very much appreciated :).
Yuber
03-29-2003, 08:17 PM
Thank tigga, but that only affected some stuff, it didn't affect the calendar.
Tigga
03-29-2003, 08:47 PM
Intex - Well there's not that many global variables that would work simply by putting the variable in the template. The best thing I could suggest if you wanted to try adding a few things yourself would be to just search the file for the variable and try to figure out from there what needs to be added to the myvbindex file to make it work. That's pretty much how I started out learning PHP, vBulletin, and that's pretty much how I made the first version of this script (and it's definitely come a long way since then ;)). Oh, and here's a link to a post where I explained to someone how to add the forumjump to their homepage - https://vborg.vbsupport.ru/showthread.php?postid=340589#post340589. :)
Yuber - Sorry, I was thinking of just the left column. If you look in the index template, right below where the $newsbits part is, you'll see another table cell that has a width of 170. Just change that to what you would like the width to be and that will affect everything in the right column.
EnriqueHavoc
03-29-2003, 08:55 PM
thanks so much! thats exactly what i was looking for...
Yuber
03-29-2003, 09:08 PM
So like the polls, the calendar can only be shunk to a certain size?
Intex
03-29-2003, 09:30 PM
OK, thx Tigga :).
Today at 10:47 PM Tigga said this in Post #992 (https://vborg.vbsupport.ru/showthread.php?postid=375209#post375209)
Intex - Well there's not that many global variables that would work simply by putting the variable in the template. The best thing I could suggest if you wanted to try adding a few things yourself would be to just search the file for the variable and try to figure out from there what needs to be added to the myvbindex file to make it work. That's pretty much how I started out learning PHP, vBulletin, and that's pretty much how I made the first version of this script (and it's definitely come a long way since then ;)). Oh, and here's a link to a post where I explained to someone how to add the forumjump to their homepage - https://vborg.vbsupport.ru/showthread.php?postid=340589#post340589. :)
Yuber - Sorry, I was thinking of just the left column. If you look in the index template, right below where the $newsbits part is, you'll see another table cell that has a width of 170. Just change that to what you would like the width to be and that will affect everything in the right column.
Tigga
03-30-2003, 01:00 AM
Yuber - The calendar, or any other "box" can be changed to any size you want by changing the width for that table from 100% (for the calendar, it would be the index_calendar template).
As for the styles question, I'm not quite sure what you mean by that...
EnriqueHavoc & Intex - No problem. Hope you enjoy the script. :)
Yuber
03-30-2003, 01:11 AM
What I mean is, you know the vBindex shows colors and images according to what style you are using. I want to know if there is some option or way to show only one style's vBindex no matter what style you use. Sorta as to override all styles when you go to the vBindex.
Yuber
03-30-2003, 01:22 AM
Is there any possible way to have all styles show one styles vBindex homepage?
Intex
03-30-2003, 08:27 AM
Tigga - I'm a little confused at the moment :confused: - reading all the posts has clouded it further :).
I'd like to create quite a few more non-vB pages which will be selectable from a jump menu on myvbindex. I'd like these to have the forums header / footer but have the rest of the content personailsed by HTML that I create. How would I do this whilst still preverving forum permissions? I noticed the thread about the protal - is this the way to progress? What about the webtemplates hack by Logician?
Thanks for your help :).
XtremeVigilante
03-30-2003, 10:38 AM
hi can anyone help me with this hack i just installed it but i get this error
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in c:\program files\apache group\apache\htdocs\myvbindex.php on line 13
Warning: main(./global.php) [function.main]: failed to create stream: No such file or directory in c:\program files\apache group\apache\htdocs\myvbindex.php on line 17
Anyone know how i can fix this?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.