vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Miscellaneous Images (https://vborg.vbsupport.ru/forumdisplay.php?f=125)
-   -   CMS Misc Site Icons (https://vborg.vbsupport.ru/showthread.php?t=297533)

Action-N 04-23-2013 10:00 PM

CMS Misc Site Icons
 
1 Attachment(s)
I have some site icons I made to use with the default cms style included with 4.2.0. Most mod or hacks expected us to use the generic php or html icon included an that didn't work for me. So for making what I needed are a media icon for use with vbtube or similar. A wrench that will work for vbgarage an a calendar for upcoming events widget. Any others you can think of post here an I'll see what I can come up with.

tbworld 04-24-2013 03:36 AM

Thanks for sharing :)

goxy63 05-14-2013 08:02 AM

1 Attachment(s)
I know this may be a dumb question but how did you change icons on each widget, must be in templates but where?

Nice icons, thank you

Action-N 05-19-2013 05:23 PM

Hi, when you create a new widget it will use the default template at first. So you'll be making a custom template just for the purpose of changing the icon as that is where they're defined.

Example default is "vbcms_widget_execphp_page" so to customize it I change the last part to whatever it's for like "vbcms_widget_execphp_video". Changing that at the widgets configure box.

Then going to your templates under "vBulletin CMS Templates" scroll down till you see the default template first used when you created it. Open it up an select to copy everything there, then go back to "add new template" from your style dropdown menu. Make a new template with your customized template name "vbcms_widget_execphp_video" then paste the contents of the original inside that one. What you'll then be editing to make it use the custom icon is where you see the "php.png" as in this example. Changing it to video.png save an as long as you uploaded to your site icon image folder your all set.

Code:

<div class="cms_widget">
<div class="block">
<div class="cms_widget_header widget_header">
        <h3><img src="{vb:stylevar imgdir_siteicons}/php.png" alt="" /> {vb:raw title}</h3>
</div>
<div class="cms_widget_content widget_content">
{vb:raw output}
</div>
</div>
</div>



All times are GMT. The time now is 03:41 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.01083 seconds
  • Memory Usage 1,713KB
  • 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
  • (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