vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   BB Code Enhancements - LiveJournal user code (https://vborg.vbsupport.ru/showthread.php?t=166846)

Free-D 01-02-2008 10:00 PM

LiveJournal user code
 
Everybody knows LiveJournal - the most famous blog service. I've made BBCode which inserts lj-user icon (with link to lj-user profile) and lj-user name (with link to lj-user's blog)... like <lj user> tag

So, go to AdminCP > Custom BB Codes > Add New BB Code and type

Title: LJ-user
Tag: lj
Replacement:
Code:

<a href="http://livejournal.com/userinfo.bml?user={param}"><img src="images/editor/ljuser.gif" widht="17" height="17" border="0"></a><a href="http://{param}.livejournal.com/"><font size="2"><b>{param}</b></font></a>
Example: [lj]dimon-prodigy[/lj]
Button Image (Optional): images/editor/ljuser.gif (in attach ;))

Also you must upload ljuser.gif to images/editor directory

All must look like

http://img89.imageshack.us/img89/6345/11388920dl2.png

http://img186.imageshack.us/img186/1449/57301785hb3.png

-----
If you want to remove underline just go to AdminCP > Styles & Templates > choose style > All style options > in Additional CSS Definitions add
Code:

.not_underline {
text-decoration: none;
}

and click Save

Then all in Replacement: field replace with
Code:

<a href="http://livejournal.com/userinfo.bml?user={param}"><img src="images/editor/ljuser.gif" widht="17" height="17" border="0"></a><a href="http://{param}.livejournal.com/" class="not_underline"><font size="2"><b>{param}</b></font></a>
http://img530.imageshack.us/img530/4619/78739375ef1.png



gforce75 01-03-2008 04:38 PM

first post! woot!

ran_iu_Conan 01-03-2008 10:13 PM

thanks for share.
i like it

FreshFroot 01-04-2008 12:10 AM

This will be a great addon, thanks! :D

Devid_jj 01-05-2008 06:33 AM

Not the big addition:) If you would want that the opportunity of an insert of a code was in "Quick Reply" that:
In showthread_quickreply Find:
Code:

<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_quote"><img src="$stylevar[imgdir_editor]/quote.gif" width="21" height="20" alt="$vbphrase[wrap_quote_tags]" /></div></td>
and after that add
Code:

<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_lj"><img src="$stylevar[imgdir_editor]/ljuser.gif" width="17" height="17" alt="" /></div></td>

And if want, can do too most with a pattern quik editing messages (postbit_quickedit)


All times are GMT. The time now is 06:47 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.01413 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
  • (5)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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