PDA

View Full Version : mYvBindex v3.1


Pages : 1 2 3 4 5 [6] 7 8 9

Littlebit
05-19-2003, 06:53 PM
I'm having difficulties understanding how everything works with photopost...heck, I should have offerred to pay you for a photo gallery had I known! :sigh:
Thanks tigga

Tigga
05-19-2003, 06:55 PM
LOL... Well mine's nowhere near ready to be distributed, but when it is I guarantee it'll be better than PhotoPost... And completely integrated with vBulletin. :D

Littlebit
05-19-2003, 06:59 PM
wait! in photopost, there is the header-inc file that gives the options to edit for vBPortal intergration as well as vBulletin intergration. I only edited it for vBulletin intergration...
do I need to edit the vBPortal stuff for use with your hack maybe?

Littlebit
05-19-2003, 07:04 PM
about your future photo gallery franchise ;) you'd make a killing charging half what photopost does and your 'customer service' that you already offer has far surpassed theirs. They seem a bit rude to people who are new with questions to their way of coding etc... I'm sorta regretting I went with using them.

Tigga
05-19-2003, 07:17 PM
Nah, you should use the vBulletin integration. vBportal is totally different. I do still have my old PhotoPost config file though... If you think that would help I can email it to you.
And actually the photo gallery I'm working on will just be a small part of a much larger script. It will be somewhat similar to vBportal, but MUCH better, many more options and scripts, and much less server intensive. Plus it will probably be priced about the same as or less than PhotoPost. ;)

Littlebit
05-19-2003, 07:21 PM
Sounds like the start of a fruitful :banana: business!
Yes, will you send it my way ...maybe I'll be able to figure it out with yours to compare...and thanks :)

Goat Boy
05-19-2003, 09:47 PM
The admin seems to be highlighted in the active users but the moderators are not, I checked through myvbinbex and I think it looks Ok but not sure, Any ideas?

GB

Toogy
05-19-2003, 10:41 PM
I installed this and now I seem to be having problems with users having to Login all the time. They site inactive for a few minutes or go to another forum and they have to login again. Or they can't logout either.

Anybody have any ideas?

Tigga
05-20-2003, 01:54 PM
Littlebit - I replied to your PM. Unfortunatly I didn't still have a modified header-inc.php file, but hopefully something I told you in the PM will help. :)

Goat Boy - I just double checked and it seems to be working just fine. Have you maybe changed your moderators usergroupid? Does it work to highlight your mods on your forum's index page?

Toogy - I'm assuming you've tried clearing your cookies and logging in again, right? What do you have your "Cookie Domain" and "Path to save cookies" set to in your main vBulletin options?

Tigga
05-20-2003, 02:16 PM
Just using this post as instructions on how to have "multiple mYvBindex's" using the same script. A lot of people seem to ask about that, but I can never find a good post with instructions. :)


To have multiple mYvBindex scripts running that will pull the news from different forums, simply follow these instructions...
First open your myvbindex.php file and look for:

// News

Right above that you will want to add:
if ($action=='page1') {
$newsforum = 'XX';
} elseif ($action=='page2') {
$newsforum = 'YY';
} else {
$newsforum = "$newsforum";
}

In the code above you would want to change XX and YY to the other forumid's of your alternate news forums. Then to link to these new pages your link would need to be something like this:

http://yoursite.com/index.php?action=page1

You can of course change "page1" in the code and the link to say whatever you would like.

If you want more than 3 different news forums, you would simply add another bit of code that was something like this:
} elseif ($action=='page3') {
$newsforum = 'ZZ';
Right before the final } else { statement at the end of that code above. Alternatly, if you only want to have 2 different news forums, you would remove the following bit of code from the code posted above:
} elseif ($action=='page2') {
$newsforum = 'YY';

Tigga
05-20-2003, 02:25 PM
This is to answer Rgsamtani's question (posted in another thread) about having different styles for each different page.

You would just want to open your myvbindex.php file and look for:
require('./global.php');
Right above that you would want to add something like this:
if ($action=='page1') {
$styleid = 'XX';
} elseif ($action=='page2') {
$styleid = 'YY';
} else {
$styleid = "";
}
Then of course you need to change XX and YY in the code above with the style id of the style you wish that page to appear in. You would also want to make sure that each part in the action's (page1, page2, etc) were the same for your news and styles. ;)

Goat Boy
05-20-2003, 08:33 PM
On the forums index page it shows the highlights, on myvbindex it does not. All I have done was to enable the moderators to see invisable users, could this have caused that?

GB

Tigga
05-20-2003, 09:10 PM
Was this (https://vborg.vbsupport.ru/showthread.php?s=&threadid=32386) the hack you used to allow mods to see invisible users? I didn't see anything in the code for that hack that could affect anything... Did you double check that your moderator usergroup still has an id of 5?

Intex
05-21-2003, 10:06 AM
Keep up the superb work Tigga. I'm just about to go for the 3.1 > 3.2.1 upgrade :).

jazzcorner
05-21-2003, 05:36 PM
I'm getting this error on an install of myVBindex. Just to make sure I didnt do anything stupid I reinstalled both twice and still am getting it.

Database error in vBulletin 2.3.0:

Invalid SQL: UPDATE template SET template='1 1053539119' WHERE title=maxloggedin
mysql error: Unknown column 'maxloggedin' in 'where clause'

mysql error number: 1054

Yet I know there is a maxloggedin template as I had to add it manually.

jazzcorner
05-21-2003, 05:47 PM
I commented out the offending line
$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title=maxloggedin");

and it works. could this be a bug in 3.2.1 myVbindex?

Tigga
05-21-2003, 05:55 PM
Yep, I'm not sure how that got changed, but it should read:
WHERE title='maxloggedin'");

That's the code that will update the maximum number of online users if a new record is set. I'm not sure how it got changed though as it was correct in v3.2 and prior... Either way if you'll just add the ' marks around maxlogged in it should fix the problem, and I've also updated the zip file in the first post. :)

jazzcorner
05-21-2003, 05:59 PM
Thanks, made that change and it works fine. :banana:

Intex
05-21-2003, 09:06 PM
Tigga - this might be a bug (or is on my at least). I upgraded from 3.1 to 3.2.1 today and seemed to work fine. However I notice that with news posts you can create them by using 'New Thread' and even 'Post Reply' to one that's been created, but you can't edit the thread. You just get the usual vB response:


No post specified. If you followed a valid link, please notify the webmaster


When hovering over the 'Post Reply' link you get the following:

http://myserver/forum/newreply.php?s=&action=newreply&threadid=2427


which is what I expect, however the problem with 'Edit' is because the links aren't complete. This is what I get if I hover over the 'Edit' link:

http://mysever/forum/editpost.php?s=&action=editpost&postid=


Its completely missing the actual post id. Any ideas?

Tigga
05-21-2003, 09:18 PM
Wow, you're just finding all kinds of little bugs Intex. :p
Apparently I forgot to remove a small piece of code in the news query when I was trying to figure out a way to make it work without having to edit the newthread.php file and adding a column to the post table. It doesn't quite make sense why it would affect it, but I guess it does. Anyways, to fix it just open your myvbindex.php file and look for:
MIN(postid)

Replace that with:
postid

That should fix the problem. I've got to run somewhere for a couple of hours but I'll update the zip file right after I get back. Thanks for pointing that out and hopefully that'll be the last bug you find. :)

refertech
05-22-2003, 01:00 AM
uh oh, I've missed alot since I've been out of town. Any major recent bugs?

How are you Tigga my friend?

Mark

Tigga
05-22-2003, 02:28 AM
Hey Mark, I'm doing good. Starting a new job and staying busy, but things have been good. :)
The only thing you've missed is v3.2.1 being released, and Intex finding the 2 small bugs above. The changes in the new version were minimal (they're listed in the first post), so hopefully that will be the last bug anyone finds. ;)

Intex
05-22-2003, 04:29 AM
Tigga - in your usual professional, lightning style it worked a treat. Nice one m8 :cool:.

Intex
05-22-2003, 11:15 AM
Actually I seem to be experiencing some other issues. I was looking at the list of changes from 3.1 > 3.2 & 3.2.1 respectively and noticed there were these additions:

Added an option to completely disable signatures in news posts.
Added an option to select a random poll from any forum for the poll part of the hack.
Now shows the last poster and last post time when you hold your mouse over the title of a thread in the Latest Threads part.
The disable signatures for the news threads option appears in the AdminCP - however the option for a random poll doesn't (I assume of course its supposed to appear in AdminCP of course).

And finally, all my threads still look like the original, i.e. shows the original poster + date/time with no effect when hovering. I believe it should show last poster and have a hover showing the original poster.

I defininately have the right myvbindex.php file as it shows:

// mYvBindex v3.2.1 release by Tigga (Brian Gunter).


Any ideas? My version is 2.2.5 btw ;).

frankenberrie
05-22-2003, 11:44 AM
Hello. I just installed the new version of this hack 3.2.1 and read above that there is a way to set the index page to select a random poll. Is this true and if so how? Thank you so much!

Littlebit
05-22-2003, 02:16 PM
Hey Tigga,
I just encountered something weird. I have someone else with admin privledges who posts a new thread in the news forum. When I replied to her thread, it fed my post to the homepage. what do I need to do to fix this one? :classic:
Edit: I don't get it. It only did it with my first reply. I replied again twice and it didn't do it. regular members didn't do it either. In case this info makes more sense :ermm:
Edit again: I deleted my post that overwrote my other admins news thread post and it referred to my next in line post in the same thread.
Did I actually find a buggy too? :o
Edit again again: My other admins reply to her news thread didn't feed to the homepage only mine. I deleted my replies and is seemed to put each last one to the homepage that was mine. Hope this info helps.

Tigga
05-22-2003, 03:41 PM
Intex - There is not a new option, button, or anything to have it select a random poll - You just put RAND in the "Polls Forum ID" field. It should have a note about that in the description for that field, but it's possible I forgot to add that if you were upgrading. As far as the latest threads part, check to see if you have modified your index_threadbit template. If so, try reverting it to the original and it should have the mouse over effect then.
One other thing... Have you used the poll on your homepage since you've installed the hack? There was a new function added to vBulletin in 2.2.6 that this script uses, so everyone that has tried to use the poll for an earlier version so far has had problems. If you do have a problem, see this post (https://vborg.vbsupport.ru/showthread.php?postid=349322#post349322) for the fix. :)

frankenberrie - See the first part of my reply to Intex. ;)

Littlebit - Did you by chance upgrade to 3.2.1 before Intex found those 2 small bugs above? It's possible that one of those could be the cause if you did. If so, try downloading the script again (remember you may have to clear your temporary internet files first) and upload the file again... Or you could just try applying the patch I posted in post #1270 (that's the one that could affect the news posts) and the fix posted in #1267. If that doesn't work though let me know and I'll look into it.

Littlebit
05-22-2003, 03:53 PM
Hi Tigga, I cleared my cache and redownloaded the latest index. I went to post a reply to a news thread and it popped it onto the index page again. Is it a having two admins thing maybe?

Tigga
05-22-2003, 03:58 PM
That shouldn't have an effect... Would you mind setting me up a temporary admin account at your board, an FTP account, and possibly give me access to phpMyAdmin so I can have a look? I can't think of any reason at all it should be doing this, but if you could give me access to check it out myself and do some testing I should be able to find the problem. :)

Littlebit
05-22-2003, 04:02 PM
Sure thing...sending you info now. thanks Tigga...you are always beyond great with helping people out.

MatrixSh0cke
05-22-2003, 04:16 PM
Tigga - How do I include other HTML files with this? I have everything setup and working as it should,just one problem.. I CAN'T seem to be able to include my pages o_0 Is their something I can edit somewhere that'll let me include pages? I tried my old inclusion code <?php if ($id == "") { include "$newsbits"; } else { include "$id"; } ?> and it doesn't work. So how would I be able to replace the news included form the specified forum, with the sites content when a link is clicked? o_0

frankenberrie
05-22-2003, 04:19 PM
Thanks... Hey, when i put RAND, it takes polls from private sections also. Is there a fix for this? Can I have it take polls at random from a se3ction made for just polls?

Littlebit
05-22-2003, 05:14 PM
Tigga, so far so good with what you did. I'll keep you updated. Thanks

Tigga
05-22-2003, 05:32 PM
Just a small note to anyone running v3.2.1 - Intex and Littlebit have found 3 small bugs in the script. Anyone running v3.2.1 should upgrade to the latest version in the first post (there are instructions and more details about the bugs in that post as well). I apologize to everyone for not testing the script better than I did, but hopefully those will be the only bugs found. On the plus side, I think I did figure out a better way to pull the news posts without any modifications to your newthread.php file or the post table in the database. Littlebit is testing this for me now (and I will be looking for a couple of other beta testers), so hopefully this new way will work better and there will be another update to follow in the next few days. :)


MatrixSh0cke - If you'll take a look at this post (https://vborg.vbsupport.ru/showthread.php?postid=349517#post349517) it should help you out. :)

frankenberrie - When pulling a random poll, it goes by the same forum permissions as the latest threads section, hence you should only be able to see polls in forums that you are allowed to view. Try logging out and see if it's still pulling polls from private forums. If so, double check that your forum permissions are set correctly and that the "Use Custom Settings" radio button at the top of the forum permissions section is checked. If you still have problems after that please let me know.

Littlebit - Glad to hear it. Thanks for helping to test it and please let me know if there are any problems.

Intex
05-22-2003, 06:06 PM
Tigga - Thx for that. I have just upgraded to 3.2.2 and I can confirm it fixes the bugs as we highlighted. Additionally the reverting of the threadbit template solved the problem with the hover - which now shows the last post person / time (even though I thought that was supposed to be reversed now ;)).

I can't see any info about the RAND command in the POLL, but I know now anyway.

As for the polls, I've never had a problem with any of the features not working on 2.2.5. Just lucky I guess :D.



Today at 05:41 PM Tigga said this in Post #1277 (https://vborg.vbsupport.ru/showthread.php?postid=398498#post398498)
Intex - There is not a new option, button, or anything to have it select a random poll - You just put RAND in the "Polls Forum ID" field. It should have a note about that in the description for that field, but it's possible I forgot to add that if you were upgrading. As far as the latest threads part, check to see if you have modified your index_threadbit template. If so, try reverting it to the original and it should have the mouse over effect then.
One other thing... Have you used the poll on your homepage since you've installed the hack? There was a new function added to vBulletin in 2.2.6 that this script uses, so everyone that has tried to use the poll for an earlier version so far has had problems. If you do have a problem, see this post (https://vborg.vbsupport.ru/showthread.php?postid=349322#post349322) for the fix. :)

frankenberrie - See the first part of my reply to Intex. ;)

Littlebit - Did you by chance upgrade to 3.2.1 before Intex found those 2 small bugs above? It's possible that one of those could be the cause if you did. If so, try downloading the script again (remember you may have to clear your temporary internet files first) and upload the file again... Or you could just try applying the patch I posted in post #1270 (that's the one that could affect the news posts) and the fix posted in #1267. If that doesn't work though let me know and I'll look into it.

Tigga
05-22-2003, 06:11 PM
Glad to hear everything is working properly. The reason the latest threads shows the last poster & time on the mouseover is because I figured it would be better to do it that way rather than changing too much around. This way you can simply edit the template and change it around to your liking. :)
That's strange that the poll works ok on 2.2.5... I've never had a version prior to 2.2.6 to test it on, but everyone I know that's tried to use this script with that version has had problems. Oh well, as you said, I guess you're just lucky. :)

Yuber
05-22-2003, 09:01 PM
Thanks for the update

Littlebit
05-23-2003, 12:25 AM
Hey Tigga :),
In troubleshooting the news thing....
I have the community bulletin installed also and when I add that same thread ID to the news part of the bulletin, it ended up inserting, in the bulletin, my first reply post in that thread instead of the actual first post of the thread by the other admin. I'm not sure what this means.
This probably makes better sense to you then me...

Tigga
05-23-2003, 12:30 AM
Acutally I'm not quite sure what you're talking about... Can you give me a link to the community bulletin hack you're talking about and a link to the problem on your site itself?

Littlebit
05-23-2003, 01:11 AM
Oh, of course, this hack: Communtiy Bulletin (https://vborg.vbsupport.ru/showthread.php?postid=201578#post201578)
you'll have to log in as an admin again to see what I meant or I can send out the bulletin and you can see it on your end that way...hang on I'll email you.

MatrixSh0cke
05-23-2003, 01:43 PM
Tigga - I have a small problem. I'm using the Myvbindex and im including the newsbit to my index.php ( http://www.anime-refuge.net/index.php ) and I have it set so only admins and moderators ( my staff) can post new threads which would be displayed on the site, that's working perfectly, but here's the problem: when another admin posts a reply to the thread THAT reply is shown instead of the intial thread that I posted. How can I fix this so only NEW THREADS are displayed in the site, and not the replies? Thanks alot, I like this hack and I want to get it to work so I can use it! = )

Tigga
05-23-2003, 02:51 PM
MatrixSh0cke - Which version of mYvBindex are you running? If you're running 3.2.1, try upgrading to the newest version in the first post (You only need to change the path in the file and upload it over your existing file). There was a small mistake in the code for that version that could cause that to happen, so I'm assuming that's what the problem is. If you're not running 3.2.1 or that doesn't help let me know and I'll figure out what's going on.

MatrixSh0cke
05-23-2003, 03:11 PM
If I install the newer version, will I have to re-edit all the templates for it? Or just replace the MyVbindex.php?

Tigga
05-23-2003, 03:14 PM
All you need to do to install the new version is download it, open the myvbindex.php file to change the path (just as you did before), and then upload it over your old file. It will not affect your templates or anything else.

MatrixSh0cke
05-23-2003, 03:15 PM
Awesome, thanks. = )

Intex
05-23-2003, 05:40 PM
Tigga - another quickie (hopefully) for you.

My forum have their width set to 75% of total screen area. However, I don't want this to apply to the myvbindex main page. Do you know a way that I can change that?

Bison
05-23-2003, 05:45 PM
Tigga - question:

How do set this to show in the online.php file that your users are viewing this page?

Right now, it shows that the user is located in a "Unknow Location" ...

Intex
05-24-2003, 07:11 AM
Tigga - another really minor issue with the link on the first page of this hack. The link to download the hack instructions for 'Allow users to set homepage options - by Tigga' has the 'h' missing from the front of the direct download link, thus:

ttp://www.vbulletin.org/forum/attachment.php?s=&postid=340947

I've also installed the User Options mini-hack and everything works ok with the exception of not being able to select 'No' to not showing the calendar. On submission, it still remains as yes. All other options are fine.

Any help appreciated.

gmarik
05-24-2003, 08:45 AM
A wish: integrate mini calendar with vbjournal.

Tigga
05-24-2003, 11:53 AM
Intex - You can change the width of the tables in the index template. Thanks for pointing out the broken URL for the mini-hack, I'll update the first post in just a second. As for the calendar thing, you should be able to fix that by looking for this code in your myvbindex.php file:
if ($showcalendar) {
And replace that with:
if ($showcalendar AND $bbuserinfo[bbshowcalendar]) {
If that doesn't work though let me know.


Bison - In online.php look for:
case 'search':
$userinfo[where] = "Searching Forums";
break;
Right Above that Add:
case 'home':
$userinfo[where] = "$hometitle <a href='/index.php?s=$session[sessionhash]'>Main Index</a>";
break;
Then look for:
case '':
Right Below that Add:
case '/':
$userinfo[activity] = 'home';
break;

Intex
05-24-2003, 02:32 PM
TIgga - thx for that - the code you mentioned wasn't there so I added it, but this still doesn't allow me to change the option to know in the UserCP - Edit Options.

Would you mind telling me where in the myvbindex.php file I change the width. I thought this was taken from the main forum settings, which in my case is 75%. For the myvbindex page I would like this to be 100% but the forum width remain at 75%.

Thanks :).

Tigga
05-24-2003, 03:52 PM
Intex - Sorry about the calendar thing. That mini-hack is pretty old and apparently I had a small mistake in the html code. If you look in your modifyoptions template for "homecalendar" and replace that with "bbshowcalendar" it should fix the problem.

The code to change the main width of your index page is in the index_header template, at the very bottom.

Intex
05-24-2003, 03:59 PM
Yep worked a treat Tigga for the calendar option - thx.

I see what you mean abou changing the width in the index_header (currently using the tablewidth variable - however, having seen that template its now apparent that changing that won't help me as I changed the original coding so that it used my standard header and footer for the forums, as mine was heavily modified. I guess therefore there isn't a way for me to control this for that page (myvbindex) individually?

Cloudrunner
05-24-2003, 04:01 PM
I am curious as to whether or not the weather module install problem of this has been addressed / fixed?

I'm obviously not the only one to have had this problem from reading in the posts, and mine is the same as the others. When I try to do the install of the weather module, I get a "This page cannot be displayed" error. Here's the shot. Everything uploaded fine in ASCII and all is well with everything else, just no weather. it's annoying me.

I have my .htaccess redirecting any 404 errors to the index page as well, so it's somehow bypassing that as well.

Any help?

jarvis
05-24-2003, 04:05 PM
05-15-03 at 12:25 PM Tigga said this in Post #1239 (https://vborg.vbsupport.ru/showthread.php?postid=395506#post395506)
[B]jarvis - That's odd... Was it giving you problems before you changed the newsforumid part? You could try changing that query to something like this:
WHERE isnews='Y' AND forumid=41 OR forumid=42 OR forumid=39 OR forumid=47
If that doesn't work let me know.

Tigga,

I tried the query change, and still am having some problems. The test link is www.mhogaming.com/myvbindex.php and the active link, which is old 3.0 stuff, is at www.mhogaming.com .

Do I need to reset all the news posts, like some trigger?

Thanks in advance!

Tigga
05-24-2003, 04:26 PM
Intex - About the only way you could really fix that would be to go back to using the index_header template for your homepage instead.

Cloudrunner - A few people have reported problems like that... The last person that reported that problem allowed me to log into their site to test some things out, and the only thing I can figure out is your host has a problem with executing PHP files that are that large. On their site, I tried taking out the part which inserts the cities, countries, and etc into the database (the bulk of the code) and was then able to load up the file without a probelm. The best thing I can suggest for you would be to download JJR512's original hack here (https://vborg.vbsupport.ru/showthread.php?s=&threadid=41842&highlight=weather). In there he has 7 or so files with the queries you can run through phpMyAdmin to add all the cities and such. After you do that, download the file I have attached here and go to it in your browser (it's the same as the regular weather install file, but without the queries for the cities and etc).

jarvis - Check your PMs. :)

ivanmcp
05-25-2003, 10:11 AM
Hi all,

After some further work, I would like to invite everyone to have a look at mYvBindex in action on my personal web site. Purpose of this is to share with you my implementation of mYvBindex and to hopefully get some feedback or answer any questions that you/I may have.

www.ivansville.com (http://www.ivansville.com)

Why did I choose mYvBindex? Well, it has some nice features that are usefull on any personal web site. It allows me to run a 'blogg' style news on my home page. I can have a quick weather report for my city (London), but also any other city in the world.
Mini calendar reminds me of upcoming events, and pulling this information from vBulletin, shows me private as well as public events.
Last ten posts show me the latest forum activity at a glance, without the need to go to the forum itself, and it pulls site visitors to it.
Displaying poll on the home page adds some valuable content and lets visitors get involved further.
These are only a few features that I use at the moment, but many more are to be found in the mYvBindex hack.

But some of the greatest advantages for me are:

- the ability to back up the whole thing in one go
- the ability to update my home page from anywhere in the world with no need for FTP access.

I am trying to find a way to integrate my other (non vB) pages into the vBulletin (like my 'about.html (http://www.ivansville.com/about.html)' page, so that whole site is inside mysql database, meaning easy backup and restore, as well the ability to update any page within the admin cp.

I still have long way to go in order to create the site that will cover most of the angles of what I need in the personal web site area. Nor do I 'speak' the word of PHP, which I must start to learn, in order to achieve some of my goals. But hats-off to people like Tigga and others who give large ammounts of their time to us, in order to help and resolve any problems we may have.

Cloudrunner
05-25-2003, 10:13 AM
Sweet Tigga! Thanks, I'll get on that tomorrow when I wake up.

I'll give that a shot and see how it goes, it does make sense however with the size constraints.

Cloudrunner
05-25-2003, 10:45 AM
Couldn't sleep....

It workied!!!! Thank you Tigga!

Thank you kindly!

Harley D
05-25-2003, 04:19 PM
First off, Thansk for the hack and taking the time to help.

I have read up to 1140 posts, I have repaired most problems doing so.
Most Eveything is working correctly now,
Yet I am unable to fix 1 thing.

1) when a person has to login from myvbindex.php "which has been renamed index.php" they are directed to a blank page due to the /forums/ missing from the address. example (http://streambandits.com/member.php) It should be (http://streambandits.com/forums/member.php)
Now my client has VB version 2.3.0 with very few mods, I have changed the URL to "chdir('/usr/local/etc/httpd/vhosts/streambandits/forums');"
and have added this from a post I saw in hopes that even a unregesterd guest would be able to view the page thus getting rid of the login from myvbindex.php all together.

require('./global.php');
if ($bbuserinfo['userid']==0) {
$bbuserinfo[bbshowonline]=1;
$bbuserinfo[bbshowonline]=1;
$bbuserinfo[bbshowstats]=1;
$bbuserinfo[bbshowpoll]=1;
$bbuserinfo[bbshowsearch]=1;
$bbuserinfo[bbshowcustom1]=1;
$bbuserinfo[bbshowcustom2]=1;
}


I have also added $bburl in front of the member.php in the forumhome_loggedinuser template, I also tried using the full address there as well (<a href="http://www.streambandits.com/forums/member.php?s=$session[sessionhash]&action=getinfo&userid=$userid">$username</a>$invisibleuser).

In addition, my cookie Domain is set to .streambandits.com, and the path is / .

My client is waiting for me to get this page working before he can open to the public. "No pressure there LOL"

Can this be corrected?

Thank you in advance.

Harley D (spiritrt@htc.net)

Tigga
05-25-2003, 08:52 PM
ivanmcp - Wow, thank you for the nice review there. :) There is a way to turn this hack into more of a "portal" script, so that you would be able to have more of your pages powered by vBulletin. In fact, if you take a look at my website you'll see that EVERY page there is completely integrated with and powered by vBulletin. I've thought of what should be a pretty easy way to allow people to create a portal system and be able to create a new page simply by creating a new template and linking to a specific url. I think I'll go ahead and try to make this sometime this week if I get the time. I'm not sure if I'll just release it as an add-on for myvbindex, or a seperate hack... Either way if you check back here next week hopefully I'll have it done. :)

Cloudrunner - Glad everything's working ok for you.

Harley D - If you'll look in your error_nopermission_loggedout template, that's where you'll need to make some changes. You should be able to simple add $bburl in front of the url in the form tag there, and in the 2 links there.

Yuber
05-25-2003, 11:27 PM
Is there anyway to make it so that when you post an announcement, it will go on the homepage instead of Threads within a new forum?

Harley D
05-26-2003, 02:43 AM
Thanks Tigga :) But still not working correctly.

The $bburl/ didn't work, but adding "forums/" did, but caused other linking problems.

I have also noticed that if I log off, and then log in from the Myvbindex.php home page, I will be redirected to the forums/index.php rather than the Myvbindex.php page. I would prefer that they be directed to my homepage, not the forums main page.

Thanks again.

Harley D
05-26-2003, 02:19 PM
I managed to fix the problem of the redirect after login, now it points back to the index.php not the forums/index.php.

BUT, When logging in from the home page, it will redirect you to http://www.mysite.com/member.php, when it should be redirecting to http://www.mysite.com/forums/member.php.

I have added $bburl to the error_nopermission_loggedout template. like this (<table border="0" bgcolor="#0A293E" cellpadding="4" cellspacing="1" align="center">
<form action="$bburl/member.php" method="post"><input type="hidden" name="s" value="$session[sessionhash]">
$logincode
</table>) But it doesn't work. it still will redirect you to http://www.mysite.com/member.php!

I have tried to replace the $bburl with forums/, but that will cause the login to redirect you to http://www.mysite.com/forums/forums/member.php when you login from the forums/ and not the homepage.

Why doesn't the $bburl work?, did I use it correctly?

We could fix this by...
When a person is in the FOURMS/, and is not logged in, We could figure out a way to redirect them to the homepage login instead of the Forums/ login, this would allow me to use "FORUMS/ instead of the non working $bburl in the Zrror_nopermission_loggedout template.

Am I making any sence? :ermm: Do you know how this redirect could be done, without effecting the Homepage login?

Tigga
05-26-2003, 04:09 PM
Yuber - I'm sure that's possible... I'll try to look into it when I get some more time.

Harley D - Have you tried using /fourms/ in front of the links and form? Also, if you modified your member.php file as instructed in the readme file then you will be redirected to whereever you logged out from instead of the forum's index page.

ivanmcp
05-26-2003, 06:17 PM
Tigga,

Your other pages are stored in the vB db! Cool, that is exactly what I want. I can't wait for your solution, as I feel this is going to be the ultimate tool in order to place all our web eggs in one basket, ermmm....

Couple of questions:

1. Does this mean that other -non vB pages will be searchable using vB search box? At the moment, I see the need for two search boxes: forum one and rest of the site (Atomz...).

2. Would these non vB pages be indexed by the search engines (Google...) ?

Ivan

Tigga
05-26-2003, 07:53 PM
ivanmcp - I'm actually glad you asked those questions. I hadn't really though about those, but I think both would be possible. The way the hack will work to create new pages will be a pretty simple concept really... You would make a new template with a specific suffix, add your content (in which you'll be able to use most global variables such as $header, $footer, $bbuserinfo, etc) and then you would simply link to something like http://yoursite.com/index.php?action=aboutus. I also plan on tying it in with mYvBindex so that you could choose to display the left, right, or both columns on those pages (similar to the way my site is with the left column on most every page).
I don't think it would be too hard to make a simple search engine that would only search the templates with that specified suffix. I don't think it would be too difficult to make the new pages so they were able to be spidered by Google as well. I've never cared too much about my pages being spidered (I can't afford the extra bandwith anyways ;)), but I'll definitely look into what would need to be done to make sure those pages can be spidered. I can't guarantee that both of those features will be in the first version of the hack, but I will try to see if I can impiment those before I release it, and if not I should at least be able to add them in the 2nd version or so. :)

Yuber
05-26-2003, 08:35 PM
Thankyou Tigga I really appreciate it.

Harley D
05-26-2003, 10:14 PM
Thanks alot Tigga!

The /FORUMS/ did the trick :)

Harley D
05-27-2003, 03:19 AM
Well Tigga, looks like I'm not out of the woods yet:(

My header menu buttons, on my myvbindex home page, work correctly. But when instde the forums, ALL header menu links have an extra forums/ in them = www.mysite.com/forums/forums/anypage.php.

I've edited myself into a state of confusion. I'm at your mercy once more.

Tigga
05-27-2003, 03:21 AM
Sounds like you added forums/ in front of each link in your normal header template. Edit your header template and either remove the forums/ in front of each link, or add a / in front of forums/.

Harley D
05-27-2003, 03:23 AM
ok, I'll try that. Man your fast !

Yep, I did add FORUMS/ to the links in my header template some time ago, Adding the / in front of the FORUMS/ fixed it.



Thanks once again!

Bison
05-27-2003, 03:51 PM
05-24-03 at 08:53 AM Tigga said this in Post #1300 (https://vborg.vbsupport.ru/showthread.php?postid=399337#post399337)
Intex - You can change the width of the tables in the index template. Thanks for pointing out the broken URL for the mini-hack, I'll update the first post in just a second. As for the calendar thing, you should be able to fix that by looking for this code in your myvbindex.php file:
if ($showcalendar) {
And replace that with:
if ($showcalendar AND $bbuserinfo[bbshowcalendar]) {
If that doesn't work though let me know.


Bison - In online.php look for:
case 'search':
$userinfo[where] = "Searching Forums";
break;
Right Above that Add:
case 'home':
$userinfo[where] = "$hometitle <a href='/index.php?s=$session[sessionhash]'>Main Index</a>";
break;
Then look for:
case '':
Right Below that Add:
case '/':
$userinfo[activity] = 'home';
break;

Thanks Tigga!

frankenberrie
05-27-2003, 04:33 PM
Thank you tigga.. I must say this is the BEST mod ever!

Harley D
05-28-2003, 03:06 PM
Tigga,

I'm having a problem with the ADMIN thread titles showing up on my myvbindex under the Latest Forum Topics for registered users. It is my understanding that this works off the users PERMISSIONS.
I have tried changing some usergroups permissions with all NO's and the ADMIN thread titles still show when I'm logged in as a regular member. They can't read them, but I don't want them visable at all unless they are logged in as a admin.

What do I need to do? please detail, I'm a nuub @ PHP, My main talent is moding graphics/skins, html and flash. but have been forced to learn php as my clients want me to do more and more :)

Thanks in advance

Tigga
05-28-2003, 03:40 PM
Bison & frankenberrie - No problem. :)

Harley D - Check that your forum permissions for your private forums are set not to allow registered users, guests, or any other groups to view threads, and make sure that the "Use custom settings" button at the top of the permissions pages is set to yes (that seems to be something that is very often overlooked). As long as all the permissions are set correctly then users will only see threads that they have permission to see.

Harley D
05-28-2003, 04:43 PM
Yep, I forgot to make the changes custom, seems so easy when you know the answer, lol.

Thanks once more :)

Tigga
05-28-2003, 05:09 PM
Well if it makes you feel any better, a few weeks ago I noticed that I had forgotten to make sure that was checked on couple of my private forums... This being after I had already told people to check for that at least a few dozen times. ;)

Harley D
05-29-2003, 05:49 AM
An intersting find.

In my mYvBindex Templates, I noticed that I have 2 of every template! Is this normal, or should I delete the 2nd one of each template?

Tigga
05-29-2003, 03:07 PM
Nope, you should only have one of every template. The best way to delete them would probably be through phpMyAdmin (or you could put your board in debug mode and delete them that way).

AKUFC
05-29-2003, 05:55 PM
How do I uninstall this? Is there a script that does this for me?

Tigga
05-29-2003, 05:58 PM
Yep. There's a link on the myvb_install.php file to uninstall.

WitchyT
05-29-2003, 11:15 PM
Does anyone have any idea why sometimes when users log out on the board I installed this hack, they still remain logged in. And at times when someone clicks a new thread, they are automatically logged out? Any help would be great. I'm certain it's not a computer related problem because I've tested this on various machines. :)

Tigga
05-29-2003, 11:19 PM
Did you set your cookie domain as instructed in the readme file? What do you have set as your cookie domain and your path to save cookies?

WitchyT
05-29-2003, 11:21 PM
I set it as blank. I tried one time and used .smallville-torch.com but it didn't work.

Tigga
05-30-2003, 01:43 AM
Try setting it back to .smallville-torch.com, log out, manually clear your cookies, and then test it. If that doesn't work let me know, and let me know what you have your "Path to save cookies" option set to.

arracing
05-30-2003, 06:17 AM
02-19-03 at 05:28 PM Tigga said this in Post #722 (https://vborg.vbsupport.ru/showthread.php?postid=356090#post356090)
arracing - Ok, this should work for you... I have 2 files attached here (one in this post, one in the next... sorry, I'm being lazy and doing it this way rather than zipping them ;)) that should help allow you to turn myvbindex into more of a portal rather than just a homepage script. Since the only things you'll be using for the left side of the page are the poll, custom templates, and search, those are the only parts I put in the "portal" part. If you ever decide you need to add something else to that side let me know and I can tell you how to change it.

I would like to add a new box to the very left most column. I tried doing it myself but couldnt get it to show. I basically tried doing the same thing that the custom1 box did and edited the include file for the new template called rotm and i also put the $rotm in the inlcude template and index template. It still didnt show. I also emailed you about this.

Thanks for helping.

Tigga
05-30-2003, 06:29 AM
If you check the first mini-hack in the first post it will tell you how to add more custom templates. ;)

By the way... The song that plays on your homepage, who is that? :)

ivanmcp
05-30-2003, 05:00 PM
Tigga,

I hope that you will include little post in here to inform us when you release your 'magic' hack, as discussed earlier.

Also, I noticed on your site a 'newsletter subscribe/unsubscribe' box. What did you use for that?

Soz, one more thing about mYvB. When registered user votes in the poll on the front page, he/she will see poll results every time they return to the site. If unregistered users are allowed to vote, and they do make a vote, they will not see the poll results on the site's home page. In other words, every time they return to the site's home page, they will still see radio buttons, even tho they can not cast another vote. I am not sure if this is how vB handles guest votes, or is something to do with mYvB.
You might want to try casting the vote on my site at www.ivansville.com (http://www.ivansville.com) , as guests are allowed to vote. When you return to the home page, you will not see poll results.
Any thoughts on this?

Regards

Ivan

Tigga
05-30-2003, 05:23 PM
Yes, once the hack (which I think will be called vBadvanced (lite)) is done then I will post here about it, and you'll also see it in this forum. I've made a little progress on it, but not quite as much as I would have liked to by now... Been a really busy week.
The Newsletter thing you see on my site is just a simple cgi mailing list script that I've been using forever. It's not tied in with vBulletin in any way other than I use $bbuserinfo['email'] to automatically put the user's email address in the text box. ;)
You're right about the poll thing... It should be checking for a cookie on the users computer to see if they've voted, but apparently it's not. I'll look into that and try to fix it in the next couple of minutes... I guess v3.2.3 is on it's way. ;)

Tigga
05-30-2003, 05:48 PM
Well you've gotta love it when you make a dumb, simple little mistake. If you'll look in your myvbindex.php file for $pollid and replace that with $pollinfo['pollid'] it should fix the problem.

ivanmcp
05-30-2003, 05:53 PM
Lol, thanks for that, I will try it in a minute. I guess you could only see my hands on my webcam, I would have liked to say hello :) .

Also very excited about your new hack - vBadvanced (lite), and can't wait for a pro version :classic:. I appreciate all the time that you put into these things, so no hurry (but make it quick, hehe).

Ivan

arracing
05-30-2003, 09:14 PM
thanks tigga, that music is live streaming audio from C-Dance Radio station in Belgium.

arracing
05-30-2003, 09:47 PM
12-04-02 at 01:29 AM Tigga said this in Post #196 (https://vborg.vbsupport.ru/showthread.php?postid=327859#post327859)
alkatraz - No, that wouldn't be hard at all. At the very bottom of the myvbindex.php file look inbetween the following lines:

if ($showcustom2) {
$getbgrow=getrowcolor();
eval("\$custom2 = \"".gettemplate('index_custom2')."\";");
}
And:
$getbgrow=getrowcolor();
eval("dooutput(\"".gettemplate('index')."\");");

?>

In that space you can add code for it to call more custom templates. You would just add something like the following:

eval("\$custom3 = \"".gettemplate('index_custom3')."\";");

The variable $custom3 there can be called whatever you would like and would be what you would use in the index template to call that template. Then the part index_custom3 should be renamed to whatever you are calling your new template. Also, if you would like to be able to use the $getbgrow function in that template to alternate between your firstaltcolor & secondaltcolor, you should add the following above that code as it is with the others.

$getbgrow=getrowcolor();


That is in my include.php file not myvbinde file. also you need to include $custom3 in the index template as well where you want the table to show up.

Tigga
05-30-2003, 10:29 PM
Ahh, I forgot you had turned yours into somewhat of a portal, so yes, it would be in your include.php file instead of your index file.

The variable $custom3 there can be called whatever you would like and would be what you would use in the index template to call that template. ;)

Intex
06-01-2003, 12:07 PM
Tigga - here's an interesting one. I noticed on the calendar section this morning the date was out. This month should be starting on Sunday, but its starting on a Monday and throwing the table out it seems.

My normal vB calendar is fine btw.

Tigga
06-01-2003, 01:03 PM
That's odd... I just tried changing the "Start of the week" option to Monday on my site and it's doing the same thing. It's fine with any other day selected, but not Monday. I did some quick testing and it appears that parts of the calendar are going by the server's time and not using the time offset that is set in the Admin CP, while others are using the time offset. I'm not sure yet if that's also what's causing the problem with the dates being messed up, but it may be. Either way I'll see if I can figure out what's wrong and post a fix as soon as I do. The original calendar hack was written by wajones for vBportal, so I may just end up re-writing it myself.

ivanmcp
06-03-2003, 05:32 AM
hehe, i noticed the same issue with my calendar, but decided to wait for the next month.

Tigga
06-03-2003, 05:53 AM
Grrr... Well I was hoping it wouldnt be that big of an issue and would work properly after the 1st of June. Apparently that's not the case though... It looks like I'm just going to have to re-write the calendar part from scratch. It will probably be a few days before I have the time to do that, but I will try to get to it asap.

reismarktq2
06-03-2003, 05:58 PM
New problem for you, Tigga: My users are reporting that when they access the front page and they get a pop-up indicating they have a PM, the pop-up redirects them to an error message (specifically, to a private.php at the root that doesn't exist). However, if they click on the PM link in the user CP template, there are no problems. Hmm?

Tigga
06-03-2003, 08:24 PM
Find your "head_newpm" template and find (In 2 places):
private.php

Replace with:
$bburl/private.php

That was left out of the readme file for earlier versions, so that's probably why it's not working. If you make that change though it should fix the problem.

ivanmcp
06-03-2003, 10:54 PM
Tigga,

For some reason, my calendar is being displayed properly again.

Harley D
06-04-2003, 06:31 AM
05-29-03 at 11:07 AM Tigga said this in Post #1330 (https://vborg.vbsupport.ru/showthread.php?postid=401564#post401564)
Nope, you should only have one of every template. The best way to delete them would probably be through phpMyAdmin (or you could put your board in debug mode and delete them that way).

I need alittle more instructions, I cannot figure out how to delete the duplicate templates :ermm: I'm afraid to click on "Click here to uninstall mYvBindex" in fear I will delete all my templates related to myvBindex. Would you mind giving me a bit of detail.


Also when I use MySql front, its shows me :
Connection established with host "mysite.com" on port 0
? Server: 3.23.54
? Client: 3.23.52
? Protocol-Version: 10
? Uptime: 1766626
? Threads: 8
? Questions: 2217168
? Slow queries: 6
? Opens: 8337
? Flush tables: 1
? Open tables: 64 Queries per second avg: 1.255

This seems way to high, and the site is a bit slow, could the extra templates be causing this as well?


Thanks

Huron
06-04-2003, 07:26 AM
Hey Tigga-

Thanks for a great hack and for supporting it as well as you have.

My question relates to the install directions in the readme (which in itself is very well put together btw). It states to install the myvbindex.php file into the root directory. Many of my users choose to logout and when they go to login via www.mysite.com they get the 404 error since the member.php it's looking for is not in the current directory. I tried some of the things you suggested in other posts (putting /forum in front of member.php and editing bburl) relating to this issue but I still get the 404 error. Any suggestions to get this to work or should I just move it into the forum directory? Thanks...

Tigga
06-04-2003, 05:48 PM
HarleyD - Well there are a couple of ways you could go about deleting the duplicate templates. If you haven't edited any of the index templates, you could simply delete them all by running this query in phpMyAdmin:
DELETE FROM template WHERE title LIKE 'index%';
Then you could use the install script and select the option to Only Install the Templates, and that will reinstall all the original ones again.
That would be the quickest and easiest way to remove them. If you have made some modifications to them that you don't want to lose, then you could log in through phpMyAdmin, browse your template table, and then change the order they are sorted in by clicking the "templateid" link twice. This should show you all your templates, orderded by the time they were created (newest first). You could delete each duplicate template one at a time there, or if you look to find where the first duplicate template is, you could check the templateid of that one and run a query like this:
DELETE FROM template WHERE templateid>='XXXX' AND title LIKE 'index%';
(Replace XXXX there with the templateid of the first duplicate).
And lastly, you could put your board in debug mode by adding $debug='1'; at the bottom of your admin/config.php file. After you do that, when you go to edit your templates you will see a new "global" template set. The global set is all of your default templates, and there will be an option next to each to remove it.
Oh, and the queries you're showing shouldn't be from the myvbindex file... Even with all the options turned on, it only performes 29 queries at max.

Huron - It should already direct them to the location of your member.php file... The best thing I can suggest would be to edit your "index_logincode" template and look for this code:
<form action="$bburl/member.php" method="post">
Change $bburl there to /forum (assuming your forum's directory is called forum). It should work just fine with $bburl there instead since that's a global variable, but I do seem to remember one other person having a problem with the $bburl variable working for them. If for some reason that doesn't work though let me know.

ivanmcp
06-04-2003, 10:44 PM
Hi Tigga,

I hope I am not going to be pain in the butt, but I was wondering how easy this would be to set up, using code from mYvBindex poll section. In essence, I would like to use poll on other non-vB pages, but be able to specify 'threadid', so each non-vB page has different (prespecified) poll.

Scenario (example):

You want to place information on your site about five music venues in your city. Each venue occupies one whole page to itself. So venue 1 has venue1.php page, venue 2 has venue2.php etc.

You want to allow visitors to your pages to vote (rate) any venue and possibly leave and read comments from previous visitors.

Question:

You set up a 'venue' sub-forum in vB, with five threads within, called 'venue 1', 'venue 2' etc. You set up poll in each thread for visitors to vote (rate) particular venue.
But then, you want to allow users to vote directly from venue's non-vB page (e.g. 'venue1.php...) like in mYvBindex page poll, so each non-vB page poll is linked to corresponding thread in the forum.

This could be hack in its own right, and for some reason I believe that only small adjustments are needed in order to make it work, as mYvBindex already has a working example, although it only displays last thread (poll) in specified 'Poll' forum.

Any thoughts on this?

Harley D
06-05-2003, 05:58 AM
Thanks sooo much!!!!!!!!!

What I just learned is priceless, Its people like you that pass there knowlege down so people like me can do the same.

the site is alot faster, after removing the duplicate templates, I'm still showing 64 queries and need to figure out why, but I know its not related to your hack.

Have a nice day! I know I am, I just love it when I learn something new, its like a new toy to play with, I know I'll break it a few times, put it back together, and learn something in the process. :) :) :)

Tigga
06-05-2003, 06:03 AM
ivanmcp - That shouldn't be too hard to do. I'll see if I can put something together for you and release it when I get a chance.

Harley D - No problem at all. As for the queries, if you have that many on your myvbindex page, they're most likely coming from your forum/global.php file or your admin/functions.php file, assuming you haven't modified the myvbindex.php file. ;)

bobII
06-05-2003, 01:19 PM
12-04-02 at 01:29 AM Tigga said this in Post #196 (https://vborg.vbsupport.ru/showthread.php?postid=327859#post327859)
alkatraz - No, that wouldn't be hard at all. At the very bottom of the myvbindex.php file look inbetween the following lines:

if ($showcustom2) {
$getbgrow=getrowcolor();
eval("\$custom2 = \"".gettemplate('index_custom2')."\";");
}
And:
$getbgrow=getrowcolor();
eval("dooutput(\"".gettemplate('index')."\");");

?>

In that space you can add code for it to call more custom templates. You would just add something like the following:

eval("\$custom3 = \"".gettemplate('index_custom3')."\";");

The variable $custom3 there can be called whatever you would like and would be what you would use in the index template to call that template. Then the part index_custom3 should be renamed to whatever you are calling your new template. Also, if you would like to be able to use the $getbgrow function in that template to alternate between your firstaltcolor & secondaltcolor, you should add the following above that code as it is with the others.

$getbgrow=getrowcolor();

I followed the steps listed above and they worked great on my index page. But, when I tried calling the $custom3 and $custom4 templates on the usercp pages and other forum pages, for whatever reason, the templates did not show up. Any suggestions?

Thanks in advance - bobII

Tigga
06-05-2003, 02:45 PM
You would have to put that code in your usercp.php & forumdisplay.php (or global.php if you're planning on using the template in more places).

bobII
06-05-2003, 02:50 PM
Thanks for the speedy reply. Does it matter where I place the code in global.php?

Tigga
06-05-2003, 02:57 PM
Yes, there are some places you could put the code where it would not work. I'd recommend placing it right below this code:
eval("\$footer = \"".gettemplate('footer')."\";");
Then if you look about 20 lines above that, you'll see a $templatesused section. You should be sure to add the name of your new template to that section as well to avoid having an unnecessary query on those pages. ;)

bobII
06-05-2003, 03:28 PM
Today at 11:57 AM Tigga said this in Post #1362 (https://vborg.vbsupport.ru/showthread.php?postid=404777#post404777)
Yes, there are some places you could put the code where it would not work. I'd recommend placing it right below this code:
eval("\$footer = \"".gettemplate('footer')."\";");
Then if you look about 20 lines above that, you'll see a $templatesused section. You should be sure to add the name of your new template to that section as well to avoid having an unnecessary query on those pages. ;)

Thanks, I'll give that a try! :classic:

reismarktq2
06-06-2003, 04:36 PM
Tigga:

I have the Store Hack and the Country Flag hack installed on my site. I'd like to be able to display the user's points total (from the Store hack) and the user's chosen flag (from the Country Flag hack) on my website. What code do I need to add to myvbindex.php to do this? (Merely adding the variables to the templates doesn't work.)

Tigga
06-06-2003, 04:45 PM
reismarktq2 - Adding $bbuserinfo[storep] to one of the templates should display the users current store points. I did a quick search for "Country Flag", but found 3 different hacks. If you can post a link to the one you're using I'll take a look and see if I can tell you what would need to be added for that one.

reismarktq2
06-06-2003, 05:04 PM
AJR's Country Flag Hack - https://vborg.vbsupport.ru/showthread.php?s=&threadid=27485

One more thing that I can't find in the thread: I want to edit the threadbit so that it displays the name of the last user to post in a thread instead of the name of the creator of a thread. What's the code for that? (I know it's just a template change...)

Tigga
06-06-2003, 06:14 PM
I haven't tested this, but I'm pretty sure it should work... In your myvbindex.php file look for:
// Show Avatar

Above that Add:
// Country Hack
if (!$bbuserinfo['country']) {
$flag = "";
} else {
$Country=$bbuserinfo['country'];
$Countryalt = str_replace("%20"," ",$Country);
$flag = "<img src=\"images/flags/$Country.gif\" alt=\"$Countryalt\" align=\"absmiddle\" border=\"0\">";
}
// Country Hack End
Then you would just use $flag whereever you would like their flag to appear.

For the latest threads part, if you look in your index_threadbit template you will see this code in the link to the thread:
title="Last post at $lastposttime by $thread[lastposter]"
That's what shows the last post time and last poster, so you would just move that to whereever you would like it to display. ;)

reismarktq2
06-06-2003, 06:52 PM
One minor problem with that code: The flag doesn't display because the %20 is still showing up in the image URL. I tried to change $Country to $Countryalt in the IMG SRC to get around it, but that didn't work...

ivanmcp
06-06-2003, 07:25 PM
Tigga,

Check your pm and reply :)

ivanmcp
06-08-2003, 06:57 AM
Lol, calendar has gone weird again. 8th of June does not belong anywhere. :confused:

spick
06-08-2003, 05:02 PM
um why does it show images from my image folder

when i did a replacement for it do get images from elsewhere.?

Tigga
06-09-2003, 01:00 AM
reismarktq2 - I'm really not sure why that wouldn't work... Most of the code there was taken from the postbit section for the flags hack, so it should work. I checked one of the flags in your postbit section and it was working fine and did contain %20 in the url, so perhaps it's something else? If you can't figure it out, if you could post the url that the image is pointing to I will try to help you figure out the problem.

ivanmcp - Checked and replied. ;) I'll try to re-write the calendar section for the hack as soon as I get the time. It does at least work properly if someone hasn't changed their "Start of the week" in their profile, so at least it shouldn't affect too many people. Re-writing the calendar part will require a bit of work and these last couple of weeks have been very busy for me. Hopefully though the next couple won't be quite as bad and I'll have the time to re-write the calendar, but unfortunatly I can't make any promises.

spick - I'm assuming you mean the URL for your header images and such is pointing to /images/ instead of /forum/images? If so then you need to modify your images path for each style you have as instructed in the install file.

scotty
06-09-2003, 11:13 AM
Yesterday at 09:57 AM ivanmcp said this in Post #1370 (https://vborg.vbsupport.ru/showthread.php?postid=405992#post405992)
Lol, calendar has gone weird again. 8th of June does not belong anywhere. :confused:

hm - I changed (beside of the daynames) two lines and it is now working for me:

first
find:$today = vbdate('m-d',time());
replace:$today = vbdate('d-m-Y',time());(this is my date-format, as entered in the CP and I have the "today"-hack installed...)

second
find: if (!$bbuserinfo['startofweek']) {
$bbuserinfo['startofweek'] = '1';
}
replace: if (!$bbuserinfo['startofweek']) {
$bbuserinfo['startofweek'] = '2';
}
Now the start of the weeks is monday, as used in germany.
and the calculation of the weeks is working now.

reismarktq2
06-09-2003, 07:43 PM
Figured it out, Tigga - $bburl should have preceded images in the img SRC. Working now. :)

Skipsoutdoors
06-09-2003, 09:24 PM
I have it installed, but haven't made it my home page just yet. Probably will shortly. I like the calendar atatchment. I have been using home lite but really wanted my calendar included.

Anyhow, I have a few other things I'm wanting to do.

There are 2 custom templates included with the program which I have utilized. 1 is going to be my navigation setup, the other will probably be some links. I would like to figure out how to add other custom templates to the set up that could be turned on and off from the Admin panel and used in a similar manner. Is this possible?

I also want to eventually build pages that break out the individual forums from the board. Example: I run an outdoor site and have included a separate Forum for each of the lakes in this area. I want to build pages for the lakes that have specific lake information other than the reports from the board as well as advertising for those local businesses. Somewhere in that page, I want to put its forum. I haven't yet figured out how to do that. I'm no programmer, just trying to figure out how to get this system to do what I want it to do. I notice that with the index template, you use something like this to include other templates in it $calendar. How could you include other templates not in group of myVbindix. Example $forumid135 or $home_quicklinks. Maybe you have to add the other templates to the myVbindex group. If so, how do you do that?

Skip

jdmuniverse
06-10-2003, 12:13 AM
It says this on my index page...

Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site30/fst/var/www/html/index.php:6) in /home/virtual/site30/fst/var/www/html/forums/admin/functions.php on line 1614

This happened when I changed from an HTML index page to myvBindex as my index page. The funny thing is it doesn't do it ALL the time.

Any help, ideas??

Thanks in advance!

Tigga
06-10-2003, 01:42 AM
reismarktq2 - Glad you figured out the problem. :)

Skipsoutdoors - If you'll refer to this post (https://vborg.vbsupport.ru/showthread.php?postid=327859#post327859) I have updated the instructions there to include options to turn these new templates on/off. If you are trying to include other templates on your homepage, you would have to follow the same instructions there, except you would change the name of the custom template to the name of your current template.

jdmuniverse - Have you modified your original myvbindex.php file in any way? Can you post here or PM me with a link to your site?

Skipsoutdoors
06-10-2003, 02:53 AM
That should help. This is a really nice hack, and I appreciate your taking the time to help people like me who are constantly having troubles.

Skip

Intex
06-10-2003, 06:16 PM
Tigga - another quickie if you don't mind :). Today my homepage is taking an eternity to display. I used the old ?explain=1 at the end of the link to see what queries / times were being executed. It produced the following:


Query: SELECT * FROM weather_userdata WHERE userid='1'
Time before: 0.22496795654297
Time after: 0.22560501098633

table type possible_keys key key_len ref rows Extra
weather_userdata const PRIMARY PRIMARY 4 const 1


--------------------------------------------------------------------------------

Query: SELECT findword,replaceword FROM replacement WHERE replacementsetid IN(-1,'14') ORDER BY replacementsetid DESC,replacementid DESC
Time before: 20.499752998352
Time after: 20.501306056976

table type possible_keys key key_len ref rows Extra
replacement ALL replacementsetid 120 where used; Using filesort


--------------------------------------------------------------------------------

Page generated in 20.499583959579 seconds with 33 queries,
spending 0.098888039588928 doing MySQL queries and 20.400695919991 doing PHP things.
Query: UPDATE session SET lastactivity=1055272282,location='/myvbindex/index.php?explain=1',styleid=11 WHERE sessionhash='c7402ff04c96a36383b780512e15ad35' Time before: 20.525825977325 Time after: 20.526376008987
--------------------------------------------------------------------------------
Query: UPDATE user SET lastactivity=1055272282,inforum='0' WHERE userid='1' Time before: 20.526528000832 Time after: 20.526996970177


Its taking anywhere between 20-30 seconds to produce the main page for some reason today. It pauses in the weather area as you can see above. Is this due to a really bad connection problem to the website providing the weather? Nothing else has changed really and it used to be very quick.

Thx. for any advice.


Update

I've just turned off the weather display and the page loads fine. So I guess it must be down to the website providing the weather. As this is out of our control and would produce a timeout after 30 seconds for php execution, would it be possible to incorporate some sort of time limit on display of the weather and if it doesn't display in that time then don't display it? Otherwise we're all at the mercy of an independently run site.

ivanmcp
06-11-2003, 04:58 PM
Thanx scotty :)

Skipsoutdoors
06-11-2003, 10:14 PM
I inserted the code as per the previous post. Still I need some more help.

I didn't manage to make the options to turn it off and on show up in the Admin panel. Any suggestions as to what I did wrong?

Skip

Tigga
06-11-2003, 10:40 PM
Intex - Unfortunatly that's something that can happen when the server that provides the weather is down. I'm planning on re-writing that part of the hack to work a slightly different way which won't require the updates as much, but with vB3 being released on Friday I'm not sure when I'll have the time to do that.

Skipsoutdoors - Did you run the queries in those instructions through phpMyAdmin. If you did that there's no reason I can think of that the options shouldn't show up...

Yuber
06-12-2003, 07:03 PM
Any ideas yet Tigga on how to get to show announcements?

WitchyT
06-12-2003, 09:55 PM
Just letting you know the log out thing works wonderfully now. Thanks. One other question, though.

In the news forum, within a thread I posted, this image -> http://www.smallville-torch.com/forum/images/smilies/yw/cool.gif looks fine within that thread. But when you view it in the main index it shows it as: http://smallville-torch.com/images/smilies/yw/cool.gif

Goat Boy
06-13-2003, 01:31 AM
05-20-03 at 06:10 PM Tigga said this in Post #1263 (https://vborg.vbsupport.ru/showthread.php?postid=397894#post397894)
Was this (https://vborg.vbsupport.ru/showthread.php?s=&threadid=32386) the hack you used to allow mods to see invisible users? I didn't see anything in the code for that hack that could affect anything... Did you double check that your moderator usergroup still has an id of 5?


The only time the moderate will show up bold on Portal is when I change him to Super Moderator status, in the forums he shows up bold when he is in Moderator status.

and yes that is the hack I used above to view invisable users.

csidlernet
06-13-2003, 07:06 AM
If you want i can help importing/translating/converting it to vb3..

Intex
06-13-2003, 07:40 AM
Thx for the confirmation anyway Tigga :).


Yesterday at 12:40 AM Tigga said this in Post #1382 (https://vborg.vbsupport.ru/showthread.php?postid=407779#post407779)
Intex - Unfortunatly that's something that can happen when the server that provides the weather is down. I'm planning on re-writing that part of the hack to work a slightly different way which won't require the updates as much, but with vB3 being released on Friday I'm not sure when I'll have the time to do that.

Skipsoutdoors - Did you run the queries in those instructions through phpMyAdmin. If you did that there's no reason I can think of that the options shouldn't show up...

csidlernet
06-13-2003, 07:42 AM
Intex you could propably try and obtain a copy of the weather program the site uses and upload it to your own server and run it.. I may be able to get it up and give you guys the file modifications so it can link to it on my server that way it has fast download times (server has 100mbps connection)

Exero
06-13-2003, 09:08 AM
i get this error when i go to my forums dir..


Database error in vBulletin:

Invalid SQL: SELECT userid,username
FROM user
WHERE userid<>
AND (usergroupid=5
OR usergroupid=6
OR usergroupid=7
OR usergroupid=2)
ORDER BY RAND()
LIMIT 1
mysql error: You have an error in your SQL syntax near 'AND (usergroupid=5
OR usergroupid=6
' at line 4

mysql error number: 1064

Date: Friday 13th of June 2003 08:04:21 PM
Script: http://localhost/myvbindex/forum/myvbindex/forum/index.php?
Referer:

DigitalDesktops
06-14-2003, 12:28 PM
Guys, I need help with this.

I have done all the install instructions but when I go to view the portal I get:

Warning: chdir(): No such file or directory (errno 2) in /home/virtual/site44/fst/var/www/html/index.php on line 8

Warning: main(./global.php): failed to open stream: No such file or directory in /home/virtual/site44/fst/var/www/html/index.php on line 19

in the PHP file the lines it is reffering to look like this:
chdir('/home/virtual/site44/fst/var/www/html/forums/ ');

// No Further Editing Necessary

$templatesused = 'index,index_header,index_footer,headinclude,index _welcometext,index_logincode,index_buddy,index_bud dylist,index_buddypmlink,forumhome_loggedinuser,in dex_online,index_search,index_welcometext_avatar,i ndex_calendar,index_calendar_todaysevents,index_we ather,index_custom1,index_custom2,index_stats,inde x_birthdaybits,index_threadbit,';
$templatesused .= 'index_newsbits,index_news_adminopts,index_news_co mments,index_news_commentnull,index_news_readmore, index_newsbits_rating,index_newsbits_signature,ind ex_newsbits_avatar,index_newsbits_sendtofriend,ind ex_newsbits_printable,showthread_ratingdisplay,';
$templatesused .= 'index_pollresult,index_polloption_multiple,index_ polloption,index_polloptions,index_pollresults_vot ed,index_pollresults_closed,index_pollreview,index _pollresults,index_polldiscuss,index_polledit,';

$loadmaxusers = '1';
$loadbirthdays = '1';

require('./global.php');

Tigga
06-14-2003, 04:55 PM
Yuber - I'll try to get to that as soon as I can. With the release of vB3 though I'm going to be very busy trying to get everything on my site to work with it.

WitchyT - Did you change the url of each of your smilies to the full url (ex /forum/images/smilies) as instructed in the readme file?

Goat Boy - The code for the online users bit is pretty much the same as the code in your forum/index.php, so they should behave in the same way. What is the usergroup id of your moderators group?

csidlernet - Thanks for the offer, but I'm pretty much finished with the vB3 version of this hack. I still have a couple of things to do, but it is finished for the most part.

Intex - No problem. I should be able to start working on the new method to pull the weather info for the vB3 version of this hack soon, so I should be able to port it over for a final release of the vB2 version. ;)

Exero - That wouldn't be anything to do with this script. It looks like it's having a problem trying to select a random user on your forum's homepage.

DigitalDesktops - Try removing the final trailing slash from the path to your forums. ;)

ivanmcp
06-14-2003, 09:48 PM
I'm pretty much finished with the vB3 version of this hack. I still have a couple of things to do, but it is finished for the most part.

Tigga means business!!! :confused:

XtReMaTriX
06-15-2003, 12:31 AM
Hey Tigga, I just setup the new version 3.2.2 and i dont see any difference from 3.1

The page doesnt load any faster. Is there some other things that I am not seeing?

Here are the two URLs:
http://www.xtremods.com/index.php (3.1)
http://www.xtremods.com/myvbindex.php (3.2.2)

I have it so it tells you how fast the page wasgenerated at the bottom...

The page actally uses an extra query and takes longer to load...

BTW, this is a great hack and you have done a great job...! I am just wondering if i am missing something...

Thanks!

Kyle_TX
06-15-2003, 12:47 AM
csidlernet - Thanks for the offer, but I'm pretty much finished with the vB3 version of this hack. I still have a couple of things to do, but it is finished for the most part.

Any chance we can get a sneak peak of the vb3 version of this hack? not, official, of course :)

Lacrosse Boy
06-15-2003, 01:41 AM
Today at 12:55 PM Tigga said this in Post #1391 (https://vborg.vbsupport.ru/showthread.php?postid=408964#post408964)
Thanks for the offer, but I'm pretty much finished with the vB3 version of this hack. I still have a couple of things to do, but it is finished for the most part.

I don't want to sound rude or mean or anything, it's not meant this way at all. I am just wondering when the version for vB3 will be out, and since VB3 hacks will not be posted yet, will you upload it somewhere else until they are allowed?

I am wondering because my site is a business site, and the slowest time of the year is during the summer, so I want to be able to do this all in the upcoming few weeks, or ASAP to have the site down for as little time as possible (some people will still be checking it out for next year's registration, etc.)

Just curious. :)

Tigga
06-15-2003, 04:04 AM
XtReMaTriX - The 2 pages seemed to be loading at about the same speed for me, and both had 19 queries. The main change in the new version is the way forum permisions are done and people with larger forums (over 100,000 posts) are the ones that would notice the biggest difference. The pages do seem to be loading a little slow though, so if you'd like to put your server in debug mode, do an explain=1 on the page, and post the results here I'll be glad to take a look and see if anything can be done to speed it up.

Kyle_TX - So far the new version is pretty much the same as the old one, except it will use less queries (thanks to vB3 and some of it's features ;)) and less templates since I'll be taking full advantage of the new "if conditions". I'm not sure how many more options I will add to the first vB3 version... It's going to be quite a bit of work for me to upgrade my entire site to work with vB3, so the first version will most likely be the same as the current one for vB2 until I have time to add new features.

Lacrosse Boy - I know a few people will be waiting on this before they can upgrade their boards (I'm in the same boat, but with a lot more than an index page to recode :p) so I'm planning on asking one of the mods if it would be ok to email or PM the script to others per request once it's finished.

XtReMaTriX
06-15-2003, 04:16 AM
Thanks Tagga, I will give it a shot, have never used Debug Mode so I will have to try and figure it out...

Tigga
06-15-2003, 04:20 AM
Just add
$debug='1';
Right before the ?> at the end of your admin/config.php file. Then go to the url http://www.xtremods.com/myvbindex.php?explain=1 and that will list all the queries and how long each one took. ;)

XtReMaTriX
06-15-2003, 04:25 AM
Here are the results to the debug mode... (had to zip up the HTML file...)

Thanks again!

Tigga
06-15-2003, 06:02 PM
Check your PMs. :)

Kyle_TX
06-15-2003, 06:58 PM
Today at 08:02 PM Tigga said this in Post #1400 (https://vborg.vbsupport.ru/showthread.php?postid=409314#post409314)
Check your PMs. :)


Can I get a sneak peek? Well that is if you are talking about the v3 ;)

BTW I just started using your hack recently, and it is amazing. Your work is very much appreciated.

Yuber
06-15-2003, 09:37 PM
Actually, with vB3 out now, i'll just wait for your vB3 release. Maybe youcanfigure out the announcement part for your vB3 version.

ivanmcp
06-15-2003, 11:22 PM
Check your PMs.
I had a look but nothing is there, that is if you are talking about what I think you are talking about...about...about... :cool:

Yuber
06-17-2003, 09:36 PM
*bump*

Tigga
06-18-2003, 04:54 PM
LOL... When I said "Check your PMs", I was talking to XtReMaTriX and it had nothing to do with the vB3 version of this hack.

Ivan - Did you get the PM I sent you about the venue hack you needed help with?

Yuber
06-18-2003, 08:44 PM
Do you know you will be releasing a vB3 version?

Tigga
06-18-2003, 08:46 PM
Right after we're allowed to release vB3 hacks. ;)

Yuber
06-18-2003, 09:07 PM
Today at 05:46 PM Tigga said this in Post #1407 (https://vborg.vbsupport.ru/showthread.php?postid=410498#post410498)
Right after we're allowed to release vB3 hacks. ;)

Thanks for the info

ivanmcp
06-18-2003, 09:54 PM
Tigga,

I did, and after some time trying to make sense of it all, I have finally managed to make it work. It does not like 2.30 version, but after some downgrade malarkey, it is working a treat. To see working sample, check this link:

http://www.surfnewquay.co.uk/venue.php?name=watergate

I am working on the redesign of the site, and front page of the site, http://www.surfnewquay.co.uk/ is now utilising mYvBindex, but at a very basic level at the moment. I am using last 10 threads and login box only, but will expand this over the coming weekend, as current page is only the temporary one. I will also implement 'venue' :) hack on all the relevant pages - around 30 in all :cross-eyed: .

Thanks for the time taken to write that extra bit of code, which integrates other pages with the forum, and adds nice functionality for users.

Ivan

Cloudrunner
06-20-2003, 01:10 PM
Tigga--

Haven't had a problem since I installed this awhile back. I've been using it exclusively for my users, and they love it, it has everything that they screamed at me to get ;)

One thing. Is there anyway to make the index use the cookies properly when the cookie domain path is set to /forum?

The reason I ask is that I've two boards running and the main board (the one with the "higher" level cookie access, also the one that uses vbindex) is overriding the other one. Is there anyway I can "force" vbindex to use the path /forum for the cookie domain path? If I set the path to /forum then the users are NEVER logged in on the index.

I've stepped through your code briefly, but have little time anymore to try to reinvent the wheel, so I'm hoping that the developer has a workaround for me.

:D Puhleeese!? :D

Thanks!

P.s. I don't mind spending time adjusting code...just don't have time to hunt ;)

Tigga
06-20-2003, 04:08 PM
Yuber - No problem. :)

ivanmcp - Looks good so far. Glad the venue thing is working well for ya.

Cloudrunner - Nothing with the cookies is actually handled in the myvbindex file - Everything is done in your forum/global.php file, so your index page should function the same way as your fourm's pages. Does everything work properly on both of your forums with the exception of your index page? What do you have your "Cookie Domain" set to in your admin options?

Cloudrunner
06-20-2003, 06:05 PM
with cookies domain set to ".noblepagan.com", and the main site set to: "/forum" and the other board set to "/vbtest" (figure it out yet? lol), then both boards function perfectly, but the users are NEVER logged in on the vbindex page. Even after they login to the site via the vbindex.

If I change the main site cookie path to "/" then the main site functions as it should, but the secondary forum (the tester) has it's cookies overridden by the "higher" access board, the main site due to the higher level in the path.

Tigga
06-20-2003, 06:42 PM
I'm starting to wonder if there's something up with the way vB3 handles cookies... I tried a bunch of different combinations to get my test board and my live board to work, and finally ended up completely locking myself out of my test board. Then I ran a script that changed the options so I could get back in, and it's worked perfectly ever since (go figure). The only difference from my original settings is the cookie domain was blank. On my live board, I have my cookie domain set to ".plurplanet.com" and cookie path set to "/". Then on my test forum I have the cookie domain blank, and the path set to "/". That seems to work perfectly for me, so maybe that will work for you? If not let me know and I'll try to think of something else that will work. :)

Cloudrunner
06-20-2003, 08:01 PM
Tried that... even rand the fix_login.php script which fixed the adminCP probs ;)

The only thing that comes close to working for me via tester on vb3 and the live forum is the way I've mentioned. and that effectively logges users out whenever going into the vbindex page....

I've kept it this way(.noblepagan.com, /forum, /vbtest), hopefully my users won't notice lol! At least til I can find a fix for it.

QCumber
06-20-2003, 08:18 PM
I've just installed this hack on my vB 2.3 installation on a Windows 2000 server. I've double checked and I can't see where I screwed up any steps. Trying to bring up:

http://10.100.136.15/myvbindex.php

...results in this error:

Parse error: parse error, unexpected T_STRING in D:\www\devforum.kmc.hhgroup.com\myvbindex.php on line 12

Has anyone run across this before?

Regards,

Sean McCormick
---
Hudson Highland Group, Inc.
Knowledge Management Centre
Edmonton AB Canada

Cloudrunner
06-20-2003, 09:09 PM
Can you quote the chdir(''); line that's around line ~8 for us please?

Sounds to me like you left off the semi-colon, or forgot the quotations.

Cloudrunner
06-20-2003, 09:10 PM
Back to the cookies, The temporary workaround til I or tigga figures it out is to simply set all users to runwithout cookies for now, cus that works!

any further ideas tigga?

Tigga
06-20-2003, 09:41 PM
Cloudrunner - I just signed up on your board and it was doing about the same thing for me. It worked fine when I turned my cookies off, but of course it didn't when I was using cookies. The way cookies work is one field I'm not very educated in, but if you would like to make me a temporary admin of your forum I'll be glad to try some things and see if I can get it to work. I'm not going to promise anything, but I'd be glad to try. On a side note, that's the first time I've looked at your site. Nice site and blessed be. ;)

QCumber - What did you set for your path to your forums? I don't see why that would give an error on line 12, but (as long as you haven't made any modifications to your myvbindex file) then that should be the only thing that would produce an error like that.

Cloudrunner
06-20-2003, 10:41 PM
Thank you

Intex
06-22-2003, 12:01 PM
Tigger - couple of quick questions.

If I want to produce a fixed width for the three main columns on the homepage where do I do this. I've tried adjusting some and it produces some unexpected results.

The weather seems to update at rather strange times, how does this work and can it be changed. The force update doesn't appear to work either, just produces a blank page.

Thx. for any help.

ivanmcp
06-22-2003, 06:40 PM
Intex,

Any adjustements to the way your home page (mYvBindex) looks is in your vBulletin admin section. Go to the Templates > Modify, and than find 'mYvBindex Templates', click on the [expand], and first template is 'index'. Click on 'edit' and this is where you control the look of your home page.

You can create your page in Dreamweaver and copy all of the html code into the 'index' template. So, let's say you created page with three equal width columns and you want to place poll in the middle column. To do this, you just place $currentpoll in html code where poll is to appear. Same goes to all the other bits, like $currentweather, $calendar, $search etc.

I found this feature (vB template) to be of great help, as now I can be anywhere in the world, and can still change home page, as long as I can find a computer connected to the net, and some html knowledge.

Intex
06-22-2003, 07:44 PM
Thx. for the info ivanmcp.

silverlex02
06-22-2003, 11:04 PM
I have a quick question. Everything worked fine for me, but when you load my site it goes straight to the forum unless I rename the vbindex file to index. Then If I do that I can't access the forum it won't take me to the page with all the forum theads and so on. What do I have to do to get the vbindex file to pull up when you load my url and then how could I access the forum?

silverlex02
06-22-2003, 11:14 PM
Check this out http://host53.hrwebservices.net/~oforums/index2.php what do I have to do to change the top left corner so it's the same as the rest?

QCumber
06-23-2003, 02:18 PM
Can you quote the chdir(''); line that's around line ~8 for us please?

QCumber - What did you set for your path to your forums? I don't see why that would give an error on line 12, but (as long as you haven't made any modifications to your myvbindex file) then that should be the only thing that would produce an error like that.

Cloudrunner and Tigga, here's what I put into line 8 of myvbindex.php:

chdir('d:\www\vbulletin\');

I have vBulletin running on its own virtual server under IIS5.

Regards,

Sean McCormick
---
Hudson Highland Group, Inc.
Knowledge Management Centre
Edmonton AB Canada

certify
06-23-2003, 04:26 PM
I'm using v3.2

How to exclude certain forums from showing in Latest Forum Topics?

Cloudrunner
06-23-2003, 07:10 PM
One thing to try is to use the correct address...according to your error you are running the system in: D:\www\devforum.kmc.hhgroup.com\ but have your chdir set to: D:\www\vbulletin, try making the vbulletin the right directory for your forums, or, I may be wrong in this, but simply try removing the "d:" from the chdir...I've not yet run PHP under IIS so I may be wrong, I'll defer this to Tigga.

Intex
06-23-2003, 07:19 PM
Tigga - how do you display flash on the homepage?

QCumber
06-23-2003, 08:02 PM
One thing to try is to use the correct address...according to your error you are running the system in: D:\www\devforum.kmc.hhgroup.com\ but have your chdir set to: D:\www\vbulletin, try making the vbulletin the right directory for your forums, or, I may be wrong in this, but simply try removing the "d:" from the chdir...I've not yet run PHP under IIS so I may be wrong, I'll defer this to Tigga.

Ergh - I think I'm starting to lose it from trying to do too many things at once.

I've got the problem fixed. It turned out to be the trailing slash. I was experimenting with renaming the directory when I discovered the problem. Apologies for not posting my followup sooner. The correct path was:

d:\www\vbulletin

The path that produced the error was:

d:\www\vbulletin\

Thx very much for the help all the same and my apologies for the messed up reply I posted this morning. I really shouldn't touch a computer until I've had my first pot of coffee of the day.

Tigga, if you're reading this, my compliments to you on the hack. It's very easy to modify and it hardly places any strain on my server. :)

Tigga
06-23-2003, 09:08 PM
Intex - I'm not quite sure if the "Force Update" link is working properly with the weather part of this hack or not. I'll be rewriting it so that it will function much better, but I'm not sure when I'll be able to get around to it. As for putting flash on your homepage, you would just put the HTML code in your index template just as you would a normal page.

silverlex - The file is generally placed in your root folder and serves as you main index page. If you want the page somewhere else (like in your forums directory) you would have to rename the file.

QCumber - Glad you got everything worked out and thanks for the compliment. :)

certify - If you open your myvbindex.php file and look for:
$forums=$DB_site->query('SELECT forumid,parentid,displayorder FROM forum WHERE displayorder<>0 ORDER BY parentid,displayorder');
Change that to something like:
$forums=$DB_site->query('SELECT forumid,parentid,displayorder FROM forum WHERE forumid != XX AND forumid != YY AND displayorder<>0 ORDER BY parentid,displayorder');
Then change XX and YY in that code to the forums you wish to exclude.

Intex
06-24-2003, 07:27 AM
Tigga - I've tried that and it doesn't work. Could this be because its in the News Section which is essentially pulled from the news forum? Even if this is the case, I've turned on HTML codes for that forum. It parses other codes, like < a href=, <H2> etc. etc. but no joy with flash.

This looks like an issue with vB, because if I turn on HTML for any forum, it doesn't work there either. I have a hack installed that shows flash files if they are attached and that works fine, so fundamentally flash does show.

If you look quickly at the post in the forum where I put all the flash code, it shows a little white box with a dot in it, indicating a missing graphic or something. There is nothing wrong with the flash code as I've tried calling it on another webpage outside the forum and it works fine.

Not sure where to look now :confused:.


P.S. This is the code I was using (I've tried using different relative and absolute paths):


<object classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="406" height="197">
<param name=movie value="/forum/launch/test.swf">
<param name=quality value=high>
<embed src="/forum/launch/test.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="406" height="197">
</embed>
</object>

Tigga
06-24-2003, 01:58 PM
Intex - Double check that you didn't have "Automatically parse URLs" checked when you posted the message. If you had that checked, it would add the [url tag around to parts of the message and result in a white box like you are describing.

Intex
06-24-2003, 05:25 PM
Good thinking Tigga, but unfortunately even though I didn't have that unchecked it doesn't have the tags around it. I just went to the news forum and edit the post and the code inside is thus:


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="406" height="197">
<param name=movie value="/forum/home/launch/test.swf">
<param name=quality value=high>
<embed src="/forum/home/launch/test.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="406" height="197">
</embed>
</object>


So it must be something else :confused:.

Intex
06-24-2003, 05:30 PM
I've tried this in any forum and it produces the same result. I had a screengrabbing utilitiy that captured lots of frames, so I managed to get hold of it just as the little box flashed up and then disappeared when initially viewing the post.

Tigga
06-24-2003, 05:48 PM
Hmmm... I'm really not sure why it wouldn't work then. I tried posting some flash on my site and it worked fine. The best thing I could suggest would be to post on vB.com and ask them why the flash isn't showing up.

Intex
06-24-2003, 05:52 PM
Yep. I'd done that just after posting my other one above, as its not really your problem anyway :). Thx. for the help regardless :).

CK2003
06-24-2003, 09:54 PM
slight problem , i currently installed myvbindex into my forum, when i go to it(www.dimensionforums.com/myvbindex.php )
it shows the following error :

Fatal error : Call to undefined function: convert_temp() in /home/dimensio/public_html/myvbindex.php on line 680

on line 680 in myvbindex.php the following code is shown:
$weatherdata['temp'] = convert_temp($weather['temp'],$usersettings['tpc']);

above it :
// Current Conditions


This problem occured after resorting to your frequently asked questions within the readme, by performing solution #1 on the frequently asked questions .

Aswell i cannot get my forum and post ID because my forum is not set to i.e : sit/forum/ it is just set to www.dimensionforums.com

Any way possible to fix this? Your help is very much appritiated :)

Tigga
06-24-2003, 11:36 PM
CK2003 - You missed the 3rd file modification to your admin/functions.php file. If you modified that file correctly then you shouldn't have any problems.

CK2003
06-25-2003, 12:20 AM
thanks so much man, it works now, only problem i have is, how can i somehow set up an image to go with the other buttons on my forum leading it to vbindex? also how can i make it so that vbindex has a direct link to my forums?

and i have one more problem(hope this doesnt ++++ you off...)
but as you can see:

www.dimensionforums.com/main.php the header does not construct itself like in the forum for the other left half...:(

maybe you have a fix for these?

P.S- does anyone have any updated hacks for this? The ones listed dont seem to work because the lines of code in which to look for are incorrect...

Symbonia
06-26-2003, 12:22 AM
How would I go about adding more pages other then index.php. Such as screenshots.php and such.

Ive been trying to figure this out on my own, but with no luck. Thanks, Symbonia

Tigga
06-26-2003, 02:57 PM
CK2003 - You'll need to edit your index_header template to add the button and to make it look more like your normal header template. As far as the hacks, most of the ones listed should still work. The coding may have changed since the hack was made, but it shouldn't be too hard to figure out what code to look for. If you have problems with a specific one let me know and I will try to help out.

Symbonia - If you'll read through the thread a little the question has been answered many times. ;)

Intex
06-28-2003, 07:23 AM
Hey Tigga

Thought it might be a good idea to have the latest gallery photo show on the myvbindex homepage for users that have photopost installed. Someone else has already done this for vBhome here (https://vborg.vbsupport.ru/showthread.php?threadid=53539&perpage=15&highlight=myvbindex&display=&pagenumber=1).

I've just installed it and it would be a really nice addition.

Mr. Brian
07-01-2003, 10:57 AM
Something similar as what I?ve encountered while using Vbindex2.1 (by NTRLD), but I've forgotten how I solved this problem.

Warning: main(./global.php) create stream: No such file or directory in /home/xxx/xxx/xxx.php on line 19

I'm not sure this had been asked? I tried searching for it, but a thread with more then 90 over + post.. I. doubt... :dead:

Any help will be much appreciated..


Thanks in advance.. :paranoid:

Mr. Brian
07-01-2003, 11:32 AM
I think I've got it fixed.

Niceone Bv the way. :knockedout:

Today at 08:57 PM Matthew Lam said this in Post #1443 (https://vborg.vbsupport.ru/showthread.php?postid=414447#post414447)
Something similar as what I?ve encountered while using Vbindex2.1 (by NTRLD), but I've forgotten how I solved this problem.

Warning: main(./global.php) create stream: No such file or directory in /home/xxx/xxx/xxx.php on line 19

I'm not sure this had been asked? I tried searching for it, but a thread with more then 90 over + post.. I. doubt... :dead:

Any help will be much appreciated..


Thanks in advance.. :paranoid:

Importhookup
07-02-2003, 12:09 PM
Hello guys,

Thanks for the hack and all the help. I just tried setting up this hack but when i go to www.importhookup.com/myvbindex.php all it shows is a blank page. Does anyone know what I might have done wrong? I have VB version 2.3.0.

Thanks,

CodeDawg
07-03-2003, 06:11 AM
Has anyone tried this with the new vB3 betas? I am curious as to what will need to be changed to make it work.

Intex
07-03-2003, 09:39 AM
Tigga - I'm just about to launch my homepage but would like the myvbindex file (which I've named home.php) one directory out of my forums, i.e. in the web root. If I simply move the home.php file out of the forum directory to the root it produces an error after login as it can't find member.php.

I would therefore imaging the code is always searching for the member.php file in the current directory. How do I change it so that I can put the home.php file one level up?

Thanks :).

Tigga
07-03-2003, 03:50 PM
Importhookup - Did you run the install file and were all of the templates installed?

CodeDawg - There are MANY changes that have to be made for this to work with vB3. The vB3 version is just about done and will be released publicly once we are allowed to release vB3 hacks here.

Intex - It *should* already work perfectly in your root directory as that's where it's designed to be placed. If you look in your index_logincode template for this code:
<form action="$bburl/member.php" method="post">
Change $bburl there to the full path to your forums and that should fix the problem. It *should* already work with $bburl there assuming you have the URL to your forums set correctly in your Admin CP, but I guess computers can be weird like that at times. ;)

CodeDawg
07-04-2003, 12:21 AM
Man I hope it is soon that you can release, I have a test forum up and will not move to vB3 unless your hack works with it. Would love to test it for you if ya need.

goldfarbm
07-04-2003, 02:33 AM
Parse error: parse error, unexpected T_STRING in /home/evoforum/public_html/index.php on line 12

I get that error. Anyone know what's up? And I renamed myvbindex.php to index.php.

Intex
07-04-2003, 10:16 AM
Tigga - unfortunately this doesn't seem to affect it at all. I can change that setting to anything I like and it doesn't use it. For example if I changed it to:

<smallfont><form action="/forum/anything-i-like/member.php"

it will still use http://mysite.com. I've checked my vB options and they all look ok. 'URL' is set to http://mysite.com/forum and 'URL of Homepage' is set to http://mysite.com.

When visiting the homepage all links on the login box (register, forgot password etc. all point to my main site root, i.e. http://mysite.com and it tries to find the member.php as http://mysite.com/member.php. As my forum is http://mysite.com/forum it doesn't work. If I go to the forum and logout there and hover over any of the links, they are all correct, i.e. http://mysite.com/forum/register.php etc. Its only if I do this from the myvbindex page there is an issue, i.e. http://mysite.com/home.php.

BTW: If I move my home.php page from the webroot into /forum then it works fine, but I guess that's obvious because that's where member.php is.

Thx.




Intex - It *should* already work perfectly in your root directory as that's where it's designed to be placed. If you look in your index_logincode template for this code:
<form action="$bburl/member.php" method="post">
Change $bburl there to the full path to your forums and that should fix the problem. It *should* already work with $bburl there assuming you have the URL to your forums set correctly in your Admin CP, but I guess computers can be weird like that at times. ;) [/B]

Tigga
07-04-2003, 02:29 PM
CodeDawg - If I can get the install/upgrade script and the install instructions finished up soon I'll contact you. ;)

goldfarbm - What did you set for the path to your forum? My best guess would be that you have a trailing slash after the path which is causing that error...

Intex - I think I may have misunderstood you. Do your users have to be logged in before they are able to view the index page? If so, then you'll need to edit your error_nopermission_loggedout template and change a few things in there. You *should* be able to just add $bburl/ in front of the action part of the form, and before each of the links in that template. If for some reason $bburl/ doesn't work then just use the full url to your forum instead. You can also edit your regular header template and add $bburl/ in front of each link there so that all the buttons will point to the right place as well.

Intex
07-05-2003, 01:09 PM
Tigga that worked a treat - thx :).

Another question for you then I believe I'm finished with my homepage and ready to release.

There is a hack here (https://vborg.vbsupport.ru/showthread.php?s=&threadid=53539&highlight=photopost) on vB.org which allows you to display a random image from photopost on the vbhome hack. Is this relatively easy to implement? It would be a very nice addition for those people who use Photopost which I believe many do.

Tigga
07-05-2003, 05:40 PM
Intex - If you use the same instructions and apply them to your index page and templates instead it should still work.

Zachery
07-05-2003, 09:45 PM
Tigga, im not moving to vb3 untill i can have some type of front page, would you be able to send it to me as well?

i would be most thankfull :D the hack rocks for 2.x :D

croft
07-06-2003, 08:32 AM
Im having a problem here mates.
I have installed this hack and it works great accept for one thing.
Users cant log out anymore ?
How can i fix this.
Mayby it will affect the users that are trying to log in to and cant ?

http://www.dab-online.net/index.php welcome.

Zachery
07-06-2003, 07:21 PM
have them clear their cookies, close all browser windows, then they should be good :)


or have them delete your cookies specifically :\ thats abit harder to tell them how to do considering browser/os things that you wouldnt know

mbowers
07-08-2003, 05:13 AM
Is there a way to prevent the posts in the designated News forum from showing up on the Latest Threads list? I've got it set to private and news posts are still showing up on the home page.

Thanks

mbowers
07-08-2003, 06:31 AM
Also, is there a way to link the title of the news post to the post ( send it to the same place that the "... (read more)" link does?

Thanks,
Mbowers

Edit:

Nevermind, I got it :glasses:

<a href="$bburl/showthread.php?s=$session[sessionhash]&threadid=$news[threadid]">
<normalfont><b>$news[title]</b></normalfont>
</a>

Did text formatting by hand as you can see, but it's late and I'm a noob...

Yuber
07-08-2003, 08:11 PM
Do you have vB3 version made but are waiting for vB3 hacks to be allowed so you can release it?

Tigga
07-09-2003, 12:17 AM
croft - Did you change your cookie settings as instructed in the install file?

mbowers - If your news forum is private, then the posts should only show up for people who have permission to view them. If you want to exclude the forum all together though, you can look in your myvbindex.php file for:
$forums=$DB_site->query('SELECT forumid,parentid,displayorder FROM forum WHERE displayorder<>0 ORDER BY parentid,displayorder');
Replace that with:
$forums=$DB_site->query('SELECT forumid,parentid,displayorder FROM forum WHERE forumid!=XX AND displayorder<>0 ORDER BY parentid,displayorder');
(Change XX there to the forum id of your news forum)

Yuber - I have the majority of the script working on my test site. I haven't added the poll or weather features yet since I don't use them, but the rest of the script is done. I also have to make an upgrade script that will install the templates and etc, plus write up some install instructions. Other than those few things though, the majority of the work is done. I've been extremely busy these last few weeks, so I haven't had much time to finish off those last few things. *Hopefully* I'll have a little more free time over these next couple of weeks.

CodeDawg
07-09-2003, 12:38 AM
Again, I would be more than willing to test it on my test site. I love this hack and will not move to vB3 until you have this ready to go so anything can do to help with testing I will.

Zachery
07-09-2003, 04:39 AM
Yesterday at 02:13 AM mbowers said this in Post #1458 (https://vborg.vbsupport.ru/showthread.php?postid=416121#post416121)
Is there a way to prevent the posts in the designated News forum from showing up on the Latest Threads list? I've got it set to private and news posts are still showing up on the home page.

Thanks


as far as i know you will see it but not others

croft
07-09-2003, 07:37 AM
Yeah i fixed the cookie thingie =) thanks.

Some other questions tho.

1: How do i make it on the myvbindex page where latest forum topic is. I want it to show the last poster and not the starter of the post ?

2: Is there any way to add a link page or something to this script ?

3: is it possible to add some sort of download hack for this script ? Like where we can post all our downloads ?

Zachery
07-09-2003, 11:58 AM
Today at 04:37 AM croft said this in Post #1464 (https://vborg.vbsupport.ru/showthread.php?postid=416366#post416366)
Yeah i fixed the cookie thingie =) thanks.

Some other questions tho.

1: How do i make it on the myvbindex page where latest forum topic is. I want it to show the last poster and not the starter of the post ?

2: Is there any way to add a link page or something to this script ?

3: is it possible to add some sort of download hack for this script ? Like where we can post all our downloads ?


1. no idea


2. there are two custom templates that appear on each side that you can add to it.

3. i think your refering to something more along the lines of php nuke or post nuke.

Tigga
07-09-2003, 03:30 PM
1. Modify your index_threadbits template. The code is already there. ;)

2. Something like this? - https://vborg.vbsupport.ru/showthread.php?s=&threadid=49156

3. Something like this? - https://vborg.vbsupport.ru/showthread.php?s=&threadid=45454

Zachery
07-09-2003, 03:53 PM
how does the arcive make for a downloads system?

Tigga
07-09-2003, 04:23 PM
Oops... I guess I copied the wrong link. Just fixed it. :)

Lacrosse Boy
07-09-2003, 09:57 PM
I really hate to be rude or annoying, but I am truly in need of a vB3 portal -- my boss wants it! :eek:

I'd be even happy to test it out for you so that you can also see how it works on other boards.

PLEASE! I am desparate!!!

Thanks

CodeDawg
07-10-2003, 02:04 AM
Today at 02:37 AM croft said this in Post #1464 (https://vborg.vbsupport.ru/showthread.php?postid=416366#post416366)
Yeah i fixed the cookie thingie =) thanks.

Some other questions tho.

1: How do i make it on the myvbindex page where latest forum topic is. I want it to show the last poster and not the starter of the post ?




I did exactly that after my members complained:

I replaced the index_threadbit with

<tr><td bgcolor="$getbgrow">$thread[icon]<normalfont><a href="$bburl/showthread.php?s=$session[sessionhash]&threadid=$thread[threadid]" title="Last post at $lastposttime by $thread[lastposter]"><b>$title</b></a></normalfont><br>
<smallfont color="#666686">$lastposttime</smallfont><br>
<smallfont> by <a href="member.php?s=$session[sessionhash]&action=getinfo&find=lastposter&forumid=$forum[forumid]"><b>$thread[lastposter]</b></a><br>
Replies: $thread[replycount] | Views: $thread[views]</smallfont></td></tr>


This will display the last poster and last post time in the latests threads box. I am going to make it so that the link goes to the last post as well...just haven't yet.

mbowers
07-10-2003, 02:06 AM
Okay, so now that I've got everything working on my test server, I made a fresh install of vb on my live server. First hack I installed was myvbindex, which worked fine, except that weather_install.php is not running. Keep getting a "page cannot be displayed" error... :rolleyes:

Any ideas? The rest of the board and the myvbindex page are working. The weather_install.php file is in /forums/admin/, and is untouched - straight from the zip file...

With an earlier file I experimented with putting in different urls for the 'require global.php' statement, and at one point I got a blank screen instead of the 'page cannot be displayed error'. But that's the extent of my progress so far.

Thanks
mbowers

PS Forgot to mention - the page is definately there. I changed the extension to .txt at one point and was able to bring it up in the browser (i just wanted to make sure I wasn't making some stupid URL typo). Since then I've uploaded a fresh copy...

Tigga
07-10-2003, 02:56 PM
mbowers - A couple of people have had this same problem before... The only thing I can guess is that your server can't handle a file that big (it's about 1mb). The best thing I can suggest would be to download JJR512's original hack here (https://vborg.vbsupport.ru/showthread.php?s=&threadid=41842). In there he has 7 or so files with the queries you can run through phpMyAdmin to add all the cities and such. Then you can upload the file attached to this post and run it to install the templates and add the option to turn the weather on/off.

mbowers
07-10-2003, 07:51 PM
Great, thanks for the quick reply Tigga. I'll try that.

I've got to get a new hosting provider... :disappointed:

Lacrosse Boy
07-10-2003, 09:59 PM
I recently installed this on a fresh 2.3.0 board, and i have a problem. I can log into the Admin CP, but after I change a setting, it makes me log back in again. I noticed thta prat of the URL was wrong form before I installed this hack. It showed up as: vb/admin/? (I removed the first part of the path)

What do I do to correct this so that I don't have to log in so much?

One other question: How do I change the default city to Minneapolis or Saint Paul on the weather box? The instructions on the help file don't make sense.

Thanks

Zachery
07-11-2003, 01:57 AM
your going to need to clear your cookies, if you changed the domain to .yoursite.com

Lacrosse Boy
07-11-2003, 02:07 AM
Ahh, I see. Was the address always so funny looking for the adminCP? I never remember it looking like that.

But with the cookies cleared, it works like it should.

But, I still don't understand how to change the default city to Minneapolis or Saint Paul. The readme instructions don't make any sense. :ermm:

Zachery
07-11-2003, 12:26 PM
change your home city to that, refresh the mian page and make sure its there, then veiw source i think. you should be able to see your city id some where. then you take it and change the default city id

You will then want to change the setting for userid #0 to your cities "accid" using phpMyAdmin.

i think

Intex
07-13-2003, 05:20 PM
Tigga - another quickie (hopefully ;)).

I have a poll forum, but I have a particular poll that I'd always like to appear on the forum homepage, or at least until I specify. You could do this with news by making it a sticky thread, but there were alterations to the code (provided by yourself) that made this work.

Can I do the same thing with a poll, i.e. make them sticky and it will always be the one that shows on the homepage? If so, could you give me the snippet of code :).

Thx.

Heffe2000
07-13-2003, 10:56 PM
Anybody have a mod for this that allows you to put a picture of the day thumbnail in one of the custom boxes?

RS25com
07-14-2003, 02:02 AM
Just an FYI...

I recently installed this on a Windows 2000 Server with IIS 5.0 and it works great. Install worked great, worked the first time (after I re-read the directions... :laugh: ) and I love it.

However, I noticed one problem. I had some test posts in the forum I chose, and I deleted the threads, and it appears that the threads were deleted, but the posts remained. So, they appeared on my home page, even though the didn't really exist.

SOLUTION: Using PhpMyAdmin, I searched the Posts table using the following:

SELECT * From POSTS WHERE isnews = 'Y'

Then, I simply deleted the offending posts manually.

So, overall, it works great!

RS25com
07-14-2003, 04:47 AM
I've got an idea, and I would like to know if it would be easy to implement either in a hack or future release.

Simply - if I sticky something in my news forum, I'd like to sticky it on the home page as well - so it displays at the top.

Whadda ya think?

Tigga
07-14-2003, 04:52 PM
Intex - If you'll look for this line of code:
$pollquery = "WHERE forumid='$pollsforum' AND thread.pollid!='0' ORDER BY poll.pollid DESC LIMIT 1";
And change it to:
$pollquery = "WHERE forumid='$pollsforum' AND thread.pollid!='0' ORDER BY thread.sticky DESC, poll.pollid DESC LIMIT 1";
That should work, but if you have any problems let me know.

Heffe2000 - Um... You'll have to be a little more specific. How exactly is the "picture of the day" determined? Where would it come from?

RS25com - If you'll look for this bit of code:
ORDER BY thread.threadid DESC $newsmax");
And change it to:
ORDER BY thread.sticky DESC, thread.threadid DESC $newsmax");
That should do the trick. :)

lalo landa
07-14-2003, 05:33 PM
Little bug....

in myvbindex.php find:

,thread.dateline,views,thread.iconid,votenum,votet otal,postid,

and remplace for this:

,thread.dateline,thread.views,thread.iconid,votenu m,votetotal,postid,

miss the "views" alias.

I have problems with the poll...

Work fine when i chose RAND but... if i chose a forum id... the myvbindex.php gets null

Why?

RS25com
07-14-2003, 05:38 PM
Hey, thanks for the Sticky Code - it works GREAT!

Man, your hack is the best. I tried to install that "other" one and it didn't work at all, and I couldn't get suport.

YOU ROCK.

Thanks!

-James

Tigga
07-14-2003, 05:41 PM
lalo landa - I'm not sure what you mean by the little bug... And the poll part should work fine if you haven't changed any of the code.

RS25com - "that other one" LOL! ;)

RS25com
07-14-2003, 05:51 PM
You know it!

BTW, if you want to see the fruits of your labor, go to www.rs25.com and enjoy. :)

BTW, your "Troubleshooting/FAQ" section in your install file is EXCELLENT. You addressed every issue I had.

lalo landa
07-14-2003, 05:58 PM
Ops!!.. with RAND i have the problem too.. some times...

I think this problem is with data from the polls...

Intex
07-14-2003, 07:19 PM
Tigga - Thx for that worked a treat. I guess I should have been able to work that one out for myself after looking back at how to make news threads stay at the top :(.

Anyway thx. again - you're a star :).

pixelpunk
07-14-2003, 11:25 PM
How can I put the frontpage poll where the new threads show up and remove the new threads completely?

Tigga
07-14-2003, 11:29 PM
RS25com - Nice site and thanks for the compliments. :)

Intex - Thanks. :)

pixelpunk - I have no idea what you're trying to say...

pixelpunk
07-15-2003, 01:21 AM
Tigga, on the front page I'd like to move the poll over to the right hand side, replacing the most recent threads on the portal page.

ie I don't want the most recent threads on the main page at all... the only reason i want to move the poll over is so everything's more compact.

CodeDawg
07-15-2003, 03:07 AM
Pixel, you can simply edit the index template under the mYvBindex templates.

Add/remove what ever you want

CodeDawg
07-15-2003, 03:08 AM
OK, working on converting my site to myvb and need to know if there is a way to have the front page show 1 post from 4-5 different forums?

I am goign to start reading the 100 pages of post, but hopefully somone can point me to a way to do this.

Thanks

Intex
07-15-2003, 04:30 AM
CodeDawg - I'm pretty sure I remember seeing this request in there and Tigga's response. I just can't remember where :).

Don't forget the search this thread feature. Always comes in handy when threads are long ;).

CodeDawg
07-15-2003, 04:56 AM
I have searched, just finished reading...and all I can find is how to have multiple "index.php" pages...which I need as well, but I would like to be able to pull the most recent posts from 5 forums and display them on the front page and have those link to the respective forums.

It seems easy enough to do, but something is not clicking with me.

Any help will be appreciated...I am loving this hack, just need to get this one thing going and I can move my sites to the new server.

Tigga
07-15-2003, 02:24 PM
CodeDawg - Simply change your News Forum ID in your Admin CP to something like...
XX OR forumid = YY OR forumid = ZZ
(Replace XX, YY, & ZZ with the forum id's)

CodeDawg
07-15-2003, 03:20 PM
Hmmm...did that and now not sure how to say, pull 1 article/post from each forum

proxyMX
07-15-2003, 03:33 PM
will this use whatever template style set i want?

I uninstalled VBhome because it didnt

Tigga
07-15-2003, 04:21 PM
CodeDawg - Itwill pull threads from the specified forums, but there's not an easy way to make it pull only 1 thread from each forum.

proxyMX - The index templates will be added to your global template set, therefore will be in every style you have. By default, it will use whatever style is selected by your users. IIRC, if you wanted it to set a default style that will override a users selected style, there is a fairly easy way to do that as well.

pixelpunk
07-15-2003, 04:40 PM
Thanks CD...

Another question for Tigga.

How can I list the top 5 posters instead of only the first?