vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   DeviantArt button (https://vborg.vbsupport.ru/showthread.php?t=124226)

Bratz-Designs 08-16-2006 10:00 PM

DeviantArt button
 
Hey all,

This small modification will add a small button to your postbit. DeviantArt is one of the biggest Art communities. This small modifications will put a button in the postbit to the deviantart page of the user.

Bratzer

1. Make a profile field
Profile field type = Single-line text box
Title: DeviantArt account
Description: Type your deviantArt username.
You can leave the rest to default.

**Note down the number of the field! Example: field16. You need to replace the X in the next code with the number!**


2. Template changes - In postbit_lecacy

Find:
Code:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]
After ad:
Code:

<!-- Deviantart start -->
<if condition="$post[fieldX] != ''"><a href="http://$post[fieldX].deviantart.com" alt="View my profile" target="_blank">
<img src="images/misc/DA.gif" border="0"></a>
</if>
<!-- Deviantart end -->

3. Button upload

Rename the button you want to use to: to DA.gif
Upload it in your: images/misc folder!

Bratzer
http://www.bratz-designs.com

Kirk Y 08-17-2006 06:40 PM

Good idea. I think I'll install this one.

Just a note, for people using the Default Postbit -- you'll want to edit the "postbit" template instead of "postbit_legacy".

You could also change:
Code:

<if condition="$post[fieldX] != ''">
To just:
Code:

<if condition="$post[fieldX]">

Bratz-Designs 08-18-2006 07:31 AM

Quote:

Originally Posted by acidburn0520
Good idea. I think I'll install this one.

Just a note, for people using the Default Postbit -- you'll want to edit the "postbit" template instead of "postbit_legacy".

You could also change:
Code:

<if condition="$post[fieldX] != ''">
To just:
Code:

<if condition="$post[fieldX]">

Yes thank you :)

chkdgate 08-19-2006 07:30 AM

I really like this idea but do you think that this can be modded to be an IMDb button as well? Or anything for that matter right?

Snake 08-19-2006 10:26 AM

Thanks!

Bratz-Designs 08-19-2006 01:26 PM

Quote:

Originally Posted by chkdgate
I really like this idea but do you think that this can be modded to be an IMDB button as well? Or anything for that matter right?

Sure, this is very possible :)

y2krazy 08-21-2006 01:14 AM

Could you please attach the mod as a txt file for the Installation instructions? Much easier for people to use that way (at least it always is for me). Thank you very much! ;)

Bratz-Designs 08-21-2006 07:00 AM

Quote:

Originally Posted by y2krazy
Could you please attach the mod as a txt file for the Installation instructions? Much easier for people to use that way (at least it always is for me). Thank you very much! ;)

Sure, done :)

y2krazy 08-21-2006 08:56 PM

Thank you very much!

Installed. ^^

chkdgate 11-05-2006 07:34 AM

Hey, I installed this mod but as an IMDb version. Everything works awesome! The only questions I have are:

1. How can I add alternative text when a user's mouse hovers over the icon?

2. Is it possible for this to appear on the Member List and in a member's public profile just like the icq, aim, msn and yahoo icons?

3. Can you set permissions to where everyone can see it but only paying members are allowed to use this feature?

4. How do I link it back to my site instead of opening up in a new window?

Btw, this is a really awesome hack. It can be used to suit whatever site. I think the implications are virtually endless!


All times are GMT. The time now is 08:33 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.01927 seconds
  • Memory Usage 1,737KB
  • 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
  • (6)bbcode_code_printable
  • (3)bbcode_quote_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