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 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 11:40 PM.

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.02365 seconds
  • Memory Usage 1,763KB
  • 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
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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