vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   req: Message Icons (https://vborg.vbsupport.ru/showthread.php?t=44509)

spaceb 10-11-2002 01:33 PM

req: Message Icons
 
hmm i want two things:

1. i want to add some icons that only the admins and the mods will see them and will be able to use them.

2. automatic icons 2 icons one for sticky thread the second for locked thread when i will stick some message it will put to it automatic icon and the same with locked thread.
(i dont want regular users to be able to use them only when i stick the thread or locked them the icon will be puted near the message like in DCforum)

spaceb 10-17-2002 01:51 PM

bump

Xenon 10-17-2002 07:48 PM

1.you have to add a field to icon table for example restricted standart '0'

then you have to change the icon.php so you can change the value of this field. then in forumdisplay.php you have to change the chooseicon function to just get unrestricted icons if the user is a normal one...

2. first do step 1 so users can't use the icons..
then you have to change postings.php
this line
PHP Code:

  $DB_site->query("UPDATE thread SET open=$threadinfo[open],notes='".addslashes($threadinfo[notes])."' WHERE threadid='$threadid'"); 

into this:
PHP Code:

  $DB_site->query("UPDATE thread SET ".iif($threadinfo[open]==0,"iconid=XX,","")."open=$threadinfo[open],notes='".addslashes($threadinfo[notes])."' WHERE threadid='$threadid'"); 

replace the xx with the iconid of your closed thread icon..

then for stickies (nearly the same):
find
PHP Code:

  $DB_site->query("UPDATE thread SET sticky=$threadinfo[sticky],notes='".addslashes($threadinfo[notes])."' WHERE threadid='$threadid'"); 

change it to
PHP Code:

  $DB_site->query("UPDATE thread SET ".iif($threadinfo[sticky]==1,"iconid=XX,","")."sticky=$threadinfo[sticky],notes='".addslashes($threadinfo[notes])."' WHERE threadid='$threadid'"); 


spaceb 10-17-2002 11:07 PM

hmm thanx for the help but i'm noob in hacking i didnt understod what to do here
then you have to change the icon.php so you can change the value of this field. then in forumdisplay.php you have to change the chooseicon function to just get unrestricted icons if the user is a normal one...


All times are GMT. The time now is 11:11 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.00983 seconds
  • Memory Usage 1,723KB
  • 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
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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