vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How to make an automatically default icone on a specific forum threads ? (https://vborg.vbsupport.ru/showthread.php?t=290644)

scorpss 11-13-2012 10:29 PM

How to make an automatically default icone on a specific forum threads ?
 
Hello dear ,

i wich to know how i can make this icone to appear automatically in all thread created by users on the presentation forum :

http://image.noelshack.com/fichiers/...sans-titre.png

any idea ?

scorpss 11-15-2012 05:57 AM

up....

scorpss 11-20-2012 08:24 PM

up !! :(

Lynne 11-20-2012 09:24 PM

Have you tried modifying the templates to always have that icon show?

To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. (Sometimes the template is the one mentioned at the very top of the page source.)

scorpss 11-21-2012 01:01 PM

thanks for helping but i dont really understand how to do it :(

i want a default icone in this forum :

http://www.gamerzunivers.eu/forumdis...28Feedbacks%29

now , what i have to do exactly ? (am a very ad coder :( ) ^^

Lynne 11-21-2012 04:00 PM

Well, probably the easiest way is just a plugin. Use the threadbit_display hook and add in something like:

PHP Code:

if ($thread['forumid'] == xx) {
$show['threadicon'] = true;
$thread['threadiconpath'] = 'images/icons/thumb_up.png';
$thread['threadicontitle'] = 'Vouch';


Change xx to the forumid and then set the path and title correctly.

scorpss 11-21-2012 05:52 PM

i dont understand nothing .... i have to add this in that template ? Oo

THANKS

Lynne 11-22-2012 12:00 AM

It's a plugin. http://www.vbulletin.com/docs/html/p...rsion=40200603

scorpss 11-22-2012 12:37 PM

euh ok and how i can active it ? oO or install ...
where i can download it ?

thanks

Lynne 11-22-2012 03:05 PM

Did you read the pages in the manual? You need to create a plugin and enter that code. I'd suggest you try this out on your test site so you can see what happens.


All times are GMT. The time now is 03:36 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.02264 seconds
  • Memory Usage 1,728KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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