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)

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

Quote:

05-24-03 at 08:53 AM Tigga said this in Post #1300
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; 


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

Quote:

02-19-03 at 05:28 PM Tigga said this in Post #722
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 , 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

Quote:

12-04-02 at 01:29 AM Tigga said this in Post #196
alkatraz - No, that wouldn't be hard at all. At the very bottom of the myvbindex.php file look inbetween the following lines:

PHP Code:

if ($showcustom2) {
  
$getbgrow=getrowcolor();
  eval(
"\$custom2 = \"".gettemplate('index_custom2')."\";");


And:
PHP Code:

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

PHP Code:

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

Quote:

05-29-03 at 11:07 AM Tigga said this in Post #1330
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

Quote:

12-04-02 at 01:29 AM Tigga said this in Post #196
alkatraz - No, that wouldn't be hard at all. At the very bottom of the myvbindex.php file look inbetween the following lines:

PHP Code:

if ($showcustom2) {
  
$getbgrow=getrowcolor();
  eval(
"\$custom2 = \"".gettemplate('index_custom2')."\";");


And:
PHP Code:

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

PHP Code:

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


All times are GMT. The time now is 12:19 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.03610 seconds
  • Memory Usage 1,872KB
  • 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
  • (12)bbcode_php_printable
  • (5)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