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)

350Chevy 12-07-2002 01:08 AM

Quote:

Originally posted by mv540


ok i really dont understand this, in the INDEX template of myvbindex i dont see // custom boxes...

Sorry, guess I should've been a little more clear. ;)

350Chevy 12-07-2002 06:39 AM

Quote:

Originally posted by PlurPlanet
That's not hard to do at all and won't affect the queries one way or another. Just open up your myvbindex.php file and look for:
PHP Code:

$threads=$DB_site->query("SELECT thread.threadid,thread.title,thread.replycount,thread.postusername 

You would just replace "thread.postusername" at the end of that with "thread.lastposter". Then you would want to edit your index_threadbit template and replace this:

by <a href="$bburl/member.php?s=$session[sessionhash]&action=getinfo&userid=$thread[postuserid]">$thread[postusername]</a>

with this:

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

Since I have the last user who posted would it be hard to also slow the last date and time posted instead of the date and time the thread started? :D

Tigga 12-07-2002 05:03 PM

Tony - I would think that the cookie domain should still be set to .yoursite.com, but I don't know that much about the way cookies and subdomains work. You may want to search vb.com or here for something like "cookie domian subdomain" and you can probably find a better answer.

350Chevy - I knew I should have mentioned how to do that too since it makes more sense to do it that way... All you'd do is look for this line in the threads section:
PHP Code:

  if ($showthreaddate) {
      
$thread['time'] = vbdate($timeformat$thread['dateline']);
      
$thread['date'] = date("m-d-y"$thread['dateline']); 

You would just change 'dateline' at the end of both of those lines to 'lastpost'.

350Chevy 12-07-2002 08:07 PM

LOL.. I was looking and looking and knew it was something simple. I can't believe I passed that up. Thanks once again. You da man!

And I'd have to say that this one is 10x's better than ANY other portal Pay or Free! It looks nice, runs nice, and has all the options needed!

Tony DiMera 12-07-2002 10:48 PM

Thanks Plur

Graphics 12-13-2002 01:53 PM

i got the error Warning: ChDir: No such file or directory (errno 2) in /home/virtual/site139/fst/home/da_real_rpg/public_html/myvbindex.php on line 21
but i entered my forum

could you please say exactly what i should put there is my url to my forum is host.com/~[myname]/forum

please help

Tigga 12-13-2002 08:45 PM

Thanks for the compliment Chevy. Glad you're enjoying the hack. :)

Graphics - The path should be /home/virtual/site139/fst/home/da_real_rpg/public_html/forum

RavenBeauty 12-14-2002 02:52 AM

I marvel at how hateful some reply's are to certain things that are done here. How are people to learn if they don't experiament? Is there not a nice way to ask a question or make a comment without being catty and insulting? I don't care what you think someone has done right or wrong, there is no cause for what I see on these helps and how to boards.

PlurPlanet I do need some help of course.. I wonder what would happen if I EVER did any of these hacks right the first time :(

I have done all but do not see this new created page anywhere... it has not replaced my home page nor has it replaced the index of the forum which Im glad of..but anyway can you help me? or somebody ... anybody?

and guys.. lifes too short to be anything but kind to one another :)

350Chevy 12-14-2002 04:40 AM

Quote:

Originally posted by RavenBeauty
I marvel at how hateful some reply's are to certain things that are done here. How are people to learn if they don't experiament? Is there not a nice way to ask a question or make a comment without being catty and insulting? I don't care what you think someone has done right or wrong, there is no cause for what I see on these helps and how to boards.
Who's being rude? :)

Quote:

Originally posted by RavenBeauty
I have done all but do not see this new created page anywhere... it has not replaced my home page nor has it replaced the index of the forum which Im glad of..but anyway can you help me? or somebody ... anybody?
You need to upload the myvbindex.php to the root of your site. Once you have it working the way you wish just rename your old index to something like index.bak and rename myvbindex.php to index.php. :)

350Chevy 12-14-2002 04:42 AM

Plur,

Seems a friend of mine has stumbled upon something. He's testing this mod out on his site and he noticed if you place text in the search box then press search it just takes you to the search.php page without atcually performing the search.

I've tested this on my site with the same results but see nothing wrong with the code. Are we missing something? TIA

:D


All times are GMT. The time now is 08:57 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.01841 seconds
  • Memory Usage 1,746KB
  • 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
  • (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