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)
-   -   vbHome (lite) - your vBulletin(powered) main homepage (https://vborg.vbsupport.ru/showthread.php?t=36756)

supreemball 10-01-2002 09:45 PM

would like a password for vbhome zipfile.. www.somethingleet.com/forum is my site.

TECK 10-01-2002 09:55 PM

check your pm's supreem, thanks for installing my hack.

PIMPY 10-01-2002 09:55 PM

TECK, it possible to auto reparse that forum? and maybe delete news items?

for example on my page how its not showing the articles, maybe make it so i can do something through the admin CP where it re-checks the current forum.. AND for if you install it and you ahve say 5-6 threads already in a NEWS forum, and you want those to show up.

and deleteing could go along with having a admin type control, where if we are admins we can have quick access to editing, deleting, and so on to the news.

TECK 10-01-2002 09:58 PM

all functions are based on vBulletin ones. if you can do it from the cp an operation, then you can also do it in vbHL.
i will not write extra functions because that's not my goal. my goal is to have vbulletin everywhere on my site.

about your question, rephrase it because i didnt understend what you want to do, be more specific.

Erwin 10-01-2002 10:00 PM

Quote:

Originally posted by TECK
thanks for your offer but i dont accept money.
all i ask in return for my work is to have 2 links displayed as they are, intact. is not alot for the features you get in the package.

This kind of attitude is admirable in such a hard-working vB hacker. :) TECK deserves the recognition he gets.

PIMPY 10-01-2002 11:15 PM

well if the question you are refering to is the admin type control, then imagine this.. Next to the title or down at the bottom or anywhere around the news item shown on the index page, there is a few links that are only viewbale to admins. Such as Edit, Delete, and so on. Just so its a little easier. Not doing much i know, just may be more easier for some people.

And for the reparsing, well i'm not to sure myself how this could go, but is there not some wort of way you don't need to do anythign except to find all the contents of the NEWS forum DB, and then check for the first 5-10 or what ever? Like when the forum first loads, it checks the DB for all the threads and such, can you not make the page do that?

TECK 10-01-2002 11:59 PM

i understand now.. just edit your file yourself is really realllllly easy this.. something like that:
Code:

$article[editthread] = '';
if (ismoderator($article['forumid']) or $getperms['canopenclose'] or $getperms['candeletethread'] or $getperms['canmove']) {
  $article[editthread] = '<a href="' . $bburl . '/postings.php?s=' . $session[sessionhash] . '&threadid=' . $article[threadid] . '&action=editthread">Edit Thread</a>';
}

however this is just terrible for the performance because of this:
the ismoderator() function performs a query to check and see if you have actually perms to edit the thread. if you place a link like that in the articlebit template, for every article you display it will add a query. so if you display 10 articles you will have 10 queries extra.
it's called query in a loop, the worst thing a coder can do. you can mess a server easy if you have a busy site.

if you want to ruin your page doing what i typed me above, dont come and complain the sever is really slow... :)
--------------
now for the second part related to parsing, i have no idea what you are trying to do or say... sorry.
you want to display an event from a group of forums on a single page? do an array, something like that:
Code:

if (in_array($article['forumid'], array(2, 15, 48))) {
  return true;
} else {
  return false;
}

or you want to run a query?? to grab them from those forums... ? let me know...

bouncer18 10-02-2002 02:11 AM

hmmm well... seems the Poll option is not working for me..

I uninstalled via your php script, and then reinstalled.. but i failed to delete templates first.

Could this be the problem?

TECK 10-02-2002 02:16 AM

first you cannot delete the templates if they are customized. you have to revert them to original.. is written in big red letters... bouncer. i recommend you to save the ones you edited to files, then revert them to default.

be aware there are 9 new templates in 3.2 also there is a new procedure that inserts the options.. so from now on i will be able to make just upgrades, due to the new code.
i need you to send me the old installer you have. i will make an uninstaller for you. SEND it through PM. thanks.

also before you download the new file, delete all your temporary files from internet explorer.

TECK 10-02-2002 02:22 AM

i worked really hard on the new release, 3.2. is optimised for easy upgrades, since i saw i release a new version every 2 weeks :)

from now on it will be an easy life for everyone, i promise.


All times are GMT. The time now is 10:56 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.03277 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_code_printable
  • (1)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