vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   mYvBindex v3.1 (https://vborg.vbsupport.ru/showthread.php?t=44691)

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
Quote:

<?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 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.



Quote:

Today at 05:41 PM Tigga said this in Post #1277
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 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
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:
PHP Code:

if ($showcalendar) { 

And replace that with:
PHP Code:

if ($showcalendar AND $bbuserinfo[bbshowcalendar]) { 

If that doesn't work though let me know.


Bison - In online.php look for:
PHP Code:

    case 'search':
      
$userinfo[where] = "Searching Forums";
      break; 

Right Above that Add:
PHP Code:

    case 'home':
      
$userinfo[where] = "$hometitle <a href='/index.php?s=$session[sessionhash]'>Main Index</a>";
      break; 

Then look for:
PHP Code:

  case ''

Right Below that Add:
PHP Code:

  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

Quote:

05-15-03 at 12:25 PM Tigga said this in Post #1239
[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:
PHP Code:

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. 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

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' 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.

Quote:

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

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.


All times are GMT. The time now is 05:26 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03065 seconds
  • Memory Usage 1,871KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete