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 12-29-2002 12:24 AM

No problem. Sorry the install script wasn't working for you.

Tony DiMera 12-29-2002 12:40 AM

That's ok, I did it by doing the queries in the phpmyadmin. thankyou for the vbindex and for helping me with the news and other problems, and for trying to help with the install script. BTW, I know this is most likely a little early, but what new stuff do you plan on adding in future versions?

WSB 12-29-2002 03:40 AM

PlurPlanet, thanks for your help; I got it working fine.

Is there anyway to put the first XX characters of the actual post in the latest threads section? Also, I want to be able to put "latest reply by X" in addition to "thread started by X". Thanks.

Tigga 12-29-2002 04:29 AM

WSB - Adding the last poster is pretty simple. Just open your myvbindex file and look for:
PHP Code:

$threads=$DB_site->query("SELECT threadid,title,replycount,postusername,postuserid,dateline,views".iif($showthreadicon,   ',thread.iconid','')." FROM thread WHERE open='1' AND open<>10 $iforumperms ORDER BY lastpost DESC LIMIT $maxlatethreads"); 

Replace that with:
PHP Code:

$threads=$DB_site->query("SELECT threadid,title,replycount,postusername,postuserid,dateline,views".iif($showthreadicon,   ',thread.iconid','').",lastposter FROM thread WHERE open='1' AND open<>10 $iforumperms ORDER BY lastpost DESC LIMIT $maxlatethreads"); 

Then you would add this code in your index_threadbit template where you want the last poster's name to appear:

<a href="$bburl/member.php?action=getinfo&find=lastposter&threadid =$thread[threadid]">$thread[lastposter]</a>


Putting the first XX characters of the post would require a bit of hacking and some database changes. I may be able to tell you how to do that a little later.

jarvis 12-29-2002 06:01 AM

Plur,

I implemented the changes to support multiple myvbidex calls. Things work like a charm. I am relaunching our gaming website using this method. Things are not done, but you can get a sense of how I'm using the multiple calls based on the site links.

The website is www.mhogaming.com

Works great! Great Help! Overall, top notch... thanks for the effort, and can't wait to see what else you come up with. Maybe it will be the temperature bug fix. ;)

Tigga 12-29-2002 06:13 AM

Looks good so far, though I didn't see links anywhere to the other copies of myvbindex. Did I miss something, or are they just not linked yet? :confused:

And I wish I could find a fix for the temperature in the weather part too, or at least another site to get the stats from. It works ok on my site, but I've seen too many people that it doesn't work for. :(

jarvis 12-29-2002 06:21 AM

Quote:

though I didn't see links anywhere to the other copies of myvbindex
In the site links area, there is a Counter Strike section that has a link to "Main Page". This is the reference to my second instance of myvbindex. I will follow the same format for each area I add.

Thanks again, and I'll be patient for the weather thing. :nervous:

Tigga 12-29-2002 06:26 AM

Ahhh ok. Looking very nice indeed. Hope you and your members enjoy the hack. :)

jeffj 12-29-2002 02:07 PM

I found what's causing myvbindex to hang on polls.

it's that call to get_bbarraycookie

I'm running 2.2.5 and that function does not exist in 2.2.5...

any ideas???

====================================

never mind folks. I downloaded 2.9 and grabbed the function from functions.php. The function is isolated and has little effect on any other modules, so I was able to just paste it into 2.2.5 and polls work properly now..

:)

MartynJ 12-29-2002 03:36 PM

There's something up with vB.org and I can't actually reply to this thread directly. So after editing the file manually on my own computer and trying it, I hope this actually uploads...


All times are GMT. The time now is 02:23 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.01894 seconds
  • Memory Usage 1,745KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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