The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
Bah. I tried to make a product out of it, but I just couldn't get it to work right.
Install the attached plugin first. Then make this template edit. You may edit it as you like... In USERCP, add this at the very top: HTML Code:
<!-- ############## AVATAR / SIGNATURE ############## --> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat"> $bbuserinfo[username]</span> </td> </tr> <tr> <td class="thead"> Avatar </td> </tr> <tr> <td class="alt2"> <img src="$bbuserinfo[avatarurl]" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /> </td> </tr> <tr> <td class="thead"> Signature </td> </tr> <tr> <td class="alt2"> $bbuserinfo[signature] </td> </tr> </table> <br /> <!-- ############## END AVATAR / SIGNATURE ############## --> |
#12
|
|||
|
|||
i'm getting a database error while i am importing the plugin:
Invalid SQL: ### INSERT QUERY GENERATED BY fetch_query_sql() ### INSERT INTO vb_plugin (`active`, `executionorder`, `product`, `title`, `hookname`, `phpcode`) VALUES ('1', '5', 'vbulletin', 'Avatar & Signature', 'usercp_start', '// AVATAR\r\n$avatarurl = fetch_avatar_url($vbulletin->userinfo[\'userid\']);\r\n\r\nif ($avatarurl == \'\' OR !$vbulletin->options[\'avatarenabled\'])\r\n{\r\n $show[\'avatar\'] = false;\r\n}\r\nelse\r\n{\r\n $show[\'avatar\'] = true;\r\n $vbulletin->userinfo[\'avatarsize\'] = $avatarurl[1];\r\n $vbulletin->userinfo[\'avatarurl\'] = $avatarurl[0];\r\n}\r\n\r\n// ****************************************\r\n// SIGNATURE\r\nif ($vbulletin->userinfo[\'signature\'])\r\n{\r\n require_once(DIR . \'/includes/class_bbcode.php\');\r\n $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());\r\n $vbulletin->userinfo[\'signature\'] = $bbcode_parser->parse($vbulletin->userinfo[\'signature\'], 0, true);\r\n\r\n $show[\'signature\'] = true;\r\n}\r\nelse\r\n{\r\n $show[\'signature\'] = false;\r\n}'); MySQL-Error : Unknown column 'executionorder' in 'field list' |
#13
|
||||
|
||||
Try this new attached plugin. If the attached plugin does not work, try creating a plugin.
Plugins & Products > Add New Plugin Product: vBulletin Hook Location: usercp_start Title: Avatar & Signature Execution Order: 5 PHP Code: Code:
// AVATAR $avatarurl = fetch_avatar_url($vbulletin->userinfo['userid']); if ($avatarurl == '' OR !$vbulletin->options['avatarenabled']) { $show['avatar'] = false; } else { $show['avatar'] = true; $vbulletin->userinfo['avatarsize'] = $avatarurl[1]; $vbulletin->userinfo['avatarurl'] = $avatarurl[0]; } // **************************************** // SIGNATURE if ($vbulletin->userinfo['signature']) { require_once(DIR . '/includes/class_bbcode.php'); $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list()); $vbulletin->userinfo['signature'] = $bbcode_parser->parse($vbulletin->userinfo['signature'], 0, true); $show['signature'] = true; } else { $show['signature'] = false; } Alas, I am off to bed now though. If you still have problems, hopefully someone else can help you out until I get on tomorrow. I really hope that one works for ya. =D Goodnight and best of luck! |
#14
|
|||
|
|||
hey your second plugin works great .. thanks for your advanced help!!!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|