vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   install hack (https://vborg.vbsupport.ru/showthread.php?t=46985)

a43079 12-25-2002 05:10 PM

install hack
 
does anyone know where i can find the install hack like on this site if you install a hack you can click the install button...thx

Steve Machol 12-25-2002 05:24 PM

That doesn't really 'install' the hack for you. It merely adds you to the database of people who have installed the hack.

Chris M 12-25-2002 06:31 PM

@a43079 - All it is is just an "if/else" statement to show the "install" button in certain forums, and then a redirect to a page which sends a query to the database to update a certain field...

It's pretty simple enough to figure out:)

Satan

a43079 12-27-2002 08:13 AM

does anyone have a sample

Chris M 12-27-2002 01:14 PM

Of the if statement?

I can't remember what the variable for the "new thread" button is, so i am going to use "$newthreadbutton";)

Code:

if ($thread[forumid]=="X") {
$newthreadbutton="<img src=\"images/installbutton.gif\">";
}else{
$newthreadbutton="<img src=\"images/newthread.gif\">";
}

Satan

NTLDR 12-27-2002 01:15 PM

The hack consists of a thread subscription type system with the edit hellsatan mentioned above.

DrkFusion 12-27-2002 01:54 PM

I actually managed to do this, but different type way, to offer the users to be able to pick a thread as there favourite, and when they pick another one, it overrides the current one, and it also shows how many picked the thread as there favourite, and shows the top threads with the most people having it as there fav :) Also in the admin panel you get to specifiy in which forums you want it to have the ability for the user to pick the thread as favourite :)


All times are GMT. The time now is 10:07 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.01066 seconds
  • Memory Usage 1,717KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete