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)

FleaBag 02-25-2003 03:47 AM

For some reason, my index templates aren't grouped after upgrading to 2.3.0... I made the file changes necessary - any ideas?

Tigga 02-25-2003 03:58 AM

When upgrading vBulletin it deletes any templates that aren't original vBulletin templates and haven't been customized (look at your homepage, you'll see that you're missing a few ;)). If you upload the install file and go to this url it should fix the problem - http://yoursite.com/forums/admin/myvb_install.php?step=3

FleaBag 02-25-2003 04:25 AM

Ah now I understand. Everything seems to be in tip top shape now I re-applied the templates. Thanks again mate, working great with 2.3.0. :)

arracing 02-25-2003 04:41 AM

so in other words if I have a poll that was moved to another forum that poll will not show up in the main index since it was moved?

FleaBag 02-25-2003 04:55 AM

PlurPlanet... Sorry to be a pain, but wondered if you could help me out here. All of my news posts use one of two icons - I was just wondering why this is the case?

Latest threads are also assigned random icons when they don't even have icons selected by their creators.

For an example see www.dragonninja.co.uk - thanks!

FleaBag 02-25-2003 05:15 AM

Sorry, just realised I had my BB turned off, it's back on now.

Tigga 02-25-2003 05:19 AM

arracing - Sorry, I guess I should have been a little more specific... That just checks for threads that have been closed or have been moved and had a redirect left in the previous forum. Threads that have a value of 10 in the open field are simply there as redirects, so there's no point in pulling those. ;)

GamerForums - Check your PM's.

FleaBag 02-25-2003 06:17 AM

OK some more questions, sorry!

The "most ever users on-line" feature of your hack says the most users on-line in a day ever is 26 [see here] - but the "Who was on-line today" hack that I previously installed [see here] says the most ever is 97. Is there a way I can make the hack I already have installed run with the number on my forum index, and save the queries in that file?

Also... I use the following hack found here to hide which users are admins on Who's On-line - how can I do this for the list of names on MyVbIndex page too?

Thanks in advance PlurPlanet.

arracing 02-25-2003 12:00 PM

ok i got another interesting thing for ya. Lets say you have a poll that is kinda out of date and you want to close the poll and not have it show up on the main index. By closing the poll I mean the actual voting not the thread. Does the code you gave me still pull closed polls? And just so I am understand you right, as of now it is not pulling closed poll threads correct?

Lacrosse Boy 02-25-2003 12:07 PM

Quote:

Originally posted by PlurPlanet
Lacrosse Boy - Do you happen to have "Show Latest Thread Icon" turned off in your Admin CP? If so, try turning that on and see if it helps. There's a small typo in the coding that could result in the threads not being displayed if that's turned off, so that could be the reason. If that doesn't help let me know.
Thanks PlurPlanet -- Now they are showing. But I have one question . . . why does it show PostIcons that were never selected for any threads? :confused: It is rather annoying for me to see smilies that were not ever intended to be there. Check it out to see what I mean: http://www.metrodancecenter.com/myvbindex.php

MartynJ 02-25-2003 12:39 PM

Hi, me again and sorry to bother you :p

Um, I'm sure this can be done... adding below the news, the forums themselves? I mean, I can see it in my head where you have to eval the forumhome template, but can't for the life of me figure it out, get it down into code.

I've attached a screenshot to show what I mean. Anyone know how? :(

Um, I actually can't find the screenshot. But basically, what I want is to have the templates at the side eg, login, calendar etc... then three news posts centred, and just below them, the forums themselves.

MartynJ 02-25-2003 12:50 PM

Ok, here's the screenshot!

HarryBO 02-25-2003 01:40 PM

@ Plur Planet: Here is the Link to the Top 10 Statistics (https://vborg.vbsupport.ru/showthrea...ighlight=top10)!

Kamui Shirou 02-25-2003 05:04 PM

muss ich bei diesem hack was in der newreply.php verändern?

HarryBO 02-25-2003 06:27 PM

In welchem?

XtReMaTriX 02-26-2003 02:10 AM

Hey PlurPlanet, just wanted to say thanks one more time... I added a hidden forum on my board and when I posted it, only the people who have the right to see it can see it on the Latest Forum Topics... Very Nice!!! Keep up the good work!!!

Zachery 02-26-2003 02:12 AM

evil language barrier

where is my gf when i need her

FleaBag 02-26-2003 02:20 AM

Where is my PlurPlanet when I need him? ;)

joeboo 02-26-2003 04:58 AM

can this work if your forums is on a different server from your site?

MartynJ 02-26-2003 12:39 PM

Quote:

Originally posted by joeboo
can this work if your forums is on a different server from your site?
Yes, so long as it has access to the same database.

Tigga 02-26-2003 02:19 PM

I apologize that I don't had much time to help everyone right now... Things have been very busy with my business this week and I haven't had much time to help people customize things. If anyone is having an actual problem with the script I will still try to help, but most customizations will have to wait until I have some more free time.

Gamerforums - I'm not sure how good you are with PHP, but if you make similar changes to your myvbindex file as you did to your index file then you can add the most users in a day. If you can't figure it out let me know and I'll have a look in a day or two.

arracing - If you add AND poll.active=1 in the WHERE clause of the poll query then that will keep polls that are closed from being displayed. And you are correct, right now it will not pull a poll where the thread has been closed.

Lacrosse Boy - Right now it is set to display a default icon if none is selected with the thread. I will be releasing v3.1.1 in a couple of days that will fix a couple of small bugs and will change this to go by what you have selected in your forums options, so if you have that turned off for your regular forums, it will work the same way for your index page.

MartynJ - That shouldn't be too hard to do... I will see if I can post instructions for you once I have the time.

HarryBO - I think if you applied the instructions there to your myvbindex.php file instead of your forums/index.php file then it should work. One or two parts of the code may be slightly different, but it shouldn't be too hard to figure out.

Kamui Shirou - Sorry, but the only word I understood there was newreply.php... Could somebody maybe translate that?

XtReMaTriX - Glad you're enjoying the hack. :)

joeboo - I don't think it can unless that server has access to the same database. There *may* be a way to have it pull the info from the other server if it doesn't have access to the database, but I've never tried that and I'm not sure if it would even work or not. I can try to look into making a "mini-hack" if I can get that to work when I have some more time though.

MartynJ 02-26-2003 03:49 PM

Quote:

Originally posted by PlurPlanet
joeboo - I don't think it can unless that server has access to the same database. There *may* be a way to have it pull the info from the other server if it doesn't have access to the database, but I've never tried that and I'm not sure if it would even work or not. I can try to look into making a "mini-hack" if I can get that to work when I have some more time though.
I'm sure you can. It all has to do with the name of the database server in admin/config.php

For example, the myvbindex.php file is on Server A and the forums are on Server B.

You would need to mimic certain files such as global.php etc on the Server A, and then on server B in admin/config.php don't put "localhost" as teh servername. Hmm, actually, this is getting more complex as I think about it. In order to be included, the admin/config.php would need to be on the same server also as the myvbindex.php -

Hmm, I think then that you'd need to have it so that on Server A you had myvbindex.php, global.php and then all the contents of the admin folder. In the admin folder on Server A you'd specify the IP or full hostname of the MySQL server on Server B. Server B you would leave intact as a normal forum and use the term "localhost" in your admin/config.php

The problem though may be a question of "What constitutes two uses of one licence?"

EDIT
Oh, it gets worse. While securing a MySQL server I'm running at home, I found out that you also have to specify from which hosts any given user can access the server. I'm betting 100% of Hosting Co's will just have this set to "localhost" purely for security reasons. That means that no matter what, you'll not be able to *directly* connect to the remote database from another server unless it is specifically enabled (maybe a second MySQL account would allow it, but you'd need to speak to your host)

PKRWUD 02-27-2003 09:05 AM

Greetings,
After upgrading to 2.3.0, I lost the weather. Can you tell me specifically what to reinstall?

Thanks Brian!

Take care,
~Chris

Tigga 02-27-2003 03:24 PM

Hmm... Are you sure you only lost the weather templates Chris? Normally when upgrading to a new version of vB it will delete any templates that haven't been customized. I'm not quite sure why it does that when many people will have new templates from hacks, but I guess it's easier for them to delete all that haven't been customized rather than listing them all out. There should be 37 index templates, not including the 4 for the weather. You may want to double check that you have all of them. If you are missing any you can upload the myvb_install.php file to your admin folder and go to http://yoursite.com/forums/admin/myvb_install.php?step=3. You don't have to worry about it overwriting any custom templates or anything as those should still be there, so it may be a good idea to do that anyways just to be sure. As for the weather... If you'll upload your weather_install.php file to your admin folder, go to that page in your browser, and only continue to the 2nd step, that will restore your weather templates. You shouldn't have any problems with that, but if you do let me know.


Oh, and incase anyone is wondering, Chen was kind enough to change my name to Tigga for me. ;)

PKRWUD 02-27-2003 03:36 PM

Thank you, that's just what I needed to know! I ran your install page 3 for the other missing templates, but I no longer had a weather install file, and was thinking those templates were packaged with the others. I will get the weather install file, and give it a go again. Thanks so much for taking the time to follow up!

Take care,
~Chris

Tigga 02-27-2003 10:22 PM

MartynJ - Attached are instructions on how to add your fourms to your index page. :)

Tigga 02-27-2003 10:29 PM

Well nevermind... Apparently attachments aren't working on here right now for some reason so I'll just post it.

In your myvbindex.php file look for:

// vbPortal mini calendar - by wajones

Right Above that Add:

PHP Code:

function makeforumbit($forumid,$depth=1,$permissions='') {
  global 

$DB_site,$bbuserinfo,$iforumcache,$ipermcache,$imodcache,$session,$accesscache,$usergroupde

f
,$noperms;
  global 

$showlocks,$hideprivateforums,$showforumdescription,$forumhomedepth,$dateformat,$timeformat

,$enableaccess;

  if ( !isset(
$iforumcache["$forumid"]) ) {
    return;
  }

  
$forumbits 

'';

  while ( list(
$key1,$val1)=each($iforumcache["$forumid"]) ) {
    while ( 

list(
$key2,$forum)=each($val1) ) {

      
// Permissions
      
if ( $enableaccess and 

is_array($accesscache["$forum[forumid]"]) ) {
        if 

(
$accesscache["$forum[forumid]"]['accessmask']==1) {
          
$forumperms 

$usergroupdef;
        } else {
          
$forumperms $noperms;
        }
      } else if 

is_array($ipermcache["$forum[forumid]"]) ) {
        
$forumperms 

$ipermcache["$forum[forumid]"];
      } else {
        
$forumperms $permissions;
      

}

      if (!
$hideprivateforums) {
        
$forumperms['canview']=1;
      }

      if 

(!
$forumperms['canview']) {
        continue;
      } else {
        
$forumshown=1;

       

 
// do light bulb
        
if ($bbuserinfo['lastvisitdate']=='Never') {
          

$forum['onoff']='on';
        } else {
                    if ((
$fview 

get_bbarraycookie('forumview'$forum['forumid'])) > $bbuserinfo['lastvisit']) {
        

                
$userlastvisit=$fview;
                    } 

else {
                        
$userlastvisit=$bbuserinfo['lastvisit'];
    

                }
          if (
$userlastvisit<$forum['lastpost']) {
       

     
$forum['onoff']='on';
          } else {
            
$forum['onoff']='off';
          

}
        }

        if ((!
$forumperms['canpostnew'] and $showlocks) or 

$forum['allowposting']==0) {
          
$forum['onoff'].='lock';
        }

        
// 

prepare template vars
        
if (!$showforumdescription) {
          

$forum['description']='';
        }

        
// dates
        
if ($forum['lastpost']>0) {
  

        
$forum['lastpostdate']=vbdate($dateformat,$forum['lastpost']);
          

$forum['lastposttime']=vbdate($timeformat,$forum['lastpost']);
          

eval(
"\$forum['lastpostinfo'] = \"".gettemplate('forumhome_lastpostby')."\";");
        } 

else {
          
$forum['lastpostinfo']='Never';
        }

        

$listexploded=explode(","$forum['parentlist']);
        while ( 

list(
$mkey1,$mval1)=each($listexploded) ) {
          if ( !isset(
$imodcache["$mval1"]) ) 

{
            continue;
          }
          
reset($imodcache["$mval1"]);
          while 

( list(
$mkey2,$moderator)=each($imodcache["$mval1"]) ) {
            if ( 

!isset(
$forum['moderators']) ) {
              eval(
"\$forum['moderators'] = 

\""
.gettemplate('forumhome_moderator')."\";");
            } else {
              

eval(
"\$forum['moderators'] .= \", ".gettemplate('forumhome_moderator')."\";");
            

}
          }
        }

        if ( !isset(
$forum['moderators']) ) {
          

$forum['moderators'] = '&nbsp;';
        }

        if (
$forum['cancontainthreads']==1) {
  

        
$tempext '_post';
        } else {
          
$tempext '_nopost';
        }

    

    eval(
"\$forumbits .= 

\""
.gettemplate("forumhome_forumbit_level$depth$tempext")."\";");

        if 

(
$depth<$forumhomedepth) {
          

$forumbits.=makeforumbit($forum['forumid'],$depth+1,$forumperms);
        }
      } 
// END 

if can view
    
// END while ( list($key2,$forum)=each($val1) ) {
  
// END while ( 

list($key1,$val1)=each($iforumcache["$forumid"]) ) {

  unset(
$iforumcache["$forumid"]);
  

return 
$forumbits;
}

if (!isset(
$forumid) or $forumid==or $forumid=='') {
  

$forumid=-1;
} else {
  
// need to get permissions for this specific forum
  

$permissions=getpermissions(intval($forumid));
}
$forumbits=makeforumbit(intval($forumid), 

1$permissions); 


In your index template, look for:

$newsbits

Right after that Add:

PHP Code:

<br><table cellpadding="{ tableouterborderwidth}" cellspacing="0" border="0" 

bgcolor="{ tablebordercolor}" tableouterextrawidth="{ contenttablewidth}" 

align="center"><tr><td>
<
table cellpadding="4" cellspacing="{ tableinnerborderwidth}" border="0" tableinnerextra

width="100%">
<
tr align="center">
  <
td bgcolor="{ tableheadbgcolor}"><smallfont>&nbsp;</smallfont></td>
  <
td bgcolor="{ tableheadbgcolor}" width="80%" align="left"><smallfont 

color
="{ tableheadtextcolor}"><b>Forum</b></smallfont></td>
  <
td bgcolor="{ tableheadbgcolor}"><smallfont 

color
="{ tableheadtextcolor}"><b>Posts</b></smallfont></td>
  <
td bgcolor="{ tableheadbgcolor}"><smallfont 

color
="{tableheadtextcolor}"><b>Threads</b></smallfont></td>
  <
td bgcolor="{ tableheadbgcolor}" nowrap><smallfont color="{ tableheadtextcolor}"><b>Last 

Post
</b></smallfont></td>
  <
td bgcolor="{ tableheadbgcolor}" width="20%"><smallfont 

color
="{ tableheadtextcolor}"><b>Moderator</b></smallfont></td>
</
tr>
$forumbits
</td></table></td></tr></table></td

Be sure to remove the space after the { in each of those replacement colors. Sorry to do it that way, but that's the only way I could since I can't attach a text file.

PKRWUD 02-28-2003 12:10 AM

Just wanted to update you, and tell you that running the weather install file through step two was the trick. All is well again, and everyone gets to see that it's a freezing 59 degrees here right now. ;)

Thanks again Brian.

Take care,
~Chris

arracing 02-28-2003 01:12 AM

Quote:

arracing - If you add AND poll.active=1 in the WHERE clause of the poll query then that will keep polls that are closed from being displayed. And you are correct, right now it will not pull a poll where the thread has been closed.
That didnt work. It is still pulling up polls that have been closed. I dont want to have to close the whole thread only the poll and have it now show up in the index. So can you tell me what is wrong?

ElenaBB 02-28-2003 09:12 AM

You excuse my bad English

My problem is the to associate the graphics of my forum to the portal!
How can I do for making him/it equal to the forum?

GIF PORTAL

GIF FORUM

Tigga 02-28-2003 10:14 PM

arracing - That should have worked... Any polls that have been closed have a value of 0, and any that are open have a value of 1. You could try changing that to poll.active!=0. It should work either way, but maybe that will help. If not let me know, and also do me a favor and post exactly what you have for that query so I can test it out if that doesn't work.

ElenaBB - You didn't follow the instructions in the readme file.
Next find the Styles section near the bottom left frame in your Admin CP. Click on "Modify" under Styles, then click on the [fonts/colors/etc] link. Near the bottom of this page you will see a section for Image Paths. Set the "Image folder path" and the "Title image path" to the full URL for your images folder inside your forums (ex - /forum/images or http://yoursite.com/forum/images). You must do this for each of your styles, otherwise your images will not show up.

ElenaBB 03-01-2003 08:16 AM

The problem I am not the images but Header!!!
Don't create the same Header of the forum!!!

Strider Xero 03-01-2003 11:28 AM

Yeah you have to go into the myvbindex templates and edit the header template yourself.

As for me, do you HAVE to create a new News forum? Because I put in the id # for my pre-existing News forum, but nothing is showing up for some reason. Also, when I choose 'No' in "Show Latest Threads Icon?", the latest threads don't show up at all. Everything else is either fine, or i figured out how to work around the errors that I got.

Tigga 03-01-2003 05:20 PM

ElenaBB - It pulls a different header than your forums header since not everyone wants it to be the same. You should be able to edit that to match your forums header though.

Strider Xero - No, you can use an existing news forum, but either way the script will only recognize posts that were made after the script was installed. A new field was added to the post table during the installation to determine if the post is the first in the thread. Without this it would sometimes pull random posts for some reason. If you need to update those existing posts, here is a link explaining the best way to do that - https://vborg.vbsupport.ru/showthrea...648#post334648
The latest threads icon thing is caused by a small typo which results in the threads not being displayed if that is turned off. I'll be releasing a new version this week that will fix that and add a couple of other small things options. For now I would suggest just leaving that on and editing the index_threadbit template to remove the icon from there.

mcyates 03-01-2003 06:11 PM

I'm trying to add the last reply by (username)

why does this work on forumdisplaybit template:

$thread[lastposter]

But not on the index_threadbit template?

Im using the myvbindex

Please help me

http://www.myfootballforum.com

(you will see it just says Last reply by, (and no username))

MartynJ 03-02-2003 04:30 PM

Tigga, did you get my email?

Tigga 03-02-2003 05:47 PM

mcyates - Search this thread for "lastposter". I'm sure you'll find the answer. ;)

MartynJ - Sorry, I did get your email but this weekend has been very busy and I completely forgot about it. I'm attaching the text file here incase others would like to do the same, so hopefully the attach option will work this time. :)

Dean C 03-02-2003 05:59 PM

Hi Tigga,

I've decided to use your script instead of vbhome lite because of a few little addons you have listed which enable me to do this work easier for a client of mine currently. The only thing this lacks is a top 10 posters side block. If you could intigrate that or make a little addon for it i'd be most grateful.

Regards

- miSt

Tigga 03-02-2003 09:47 PM

Hey Mist, if you'll check this post I already explained how to go about doing that for someone else. I guess I should update the "mini-hacks" section on the first post since there's quite a few kinda scattered throughout the thread. ;)

klunderj 03-02-2003 09:48 PM

I got this hack to install, and somewhat work, however I cant see anything new on my admin cp. I dont see any options for vbindex.

I have had this problem with other hacks- vbhomelite, etc.

What am I doing wrong that my admin cp doesnt get these new options?


All times are GMT. The time now is 09:14 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.06300 seconds
  • Memory Usage 1,918KB
  • 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
  • (2)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