
10-13-2010, 01:25 AM
|
 |
|
|
Join Date: Dec 2009
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by Globe
i found a way.
go to the template newthread
search for
Code:
{vb:raw messagearea}
add after:
Code:
<!-- imagehost -->
<fieldset id="vbimghostbox" title="{vb:phrase vbimghost_title}">
<legend>{vb:phrase vbimghost_myphotos}</legend>
<div id="vbimghostlinks">[<a href="#" onclick="window.open('vbimghost.php?do=popup&ed={vb:raw editorid}','vbimghost1','scrollbars=yes,resizable=yes,width=550,height=500'); return false" title="Pick">{vb:phrase open}</a>] [<a href="#" onclick="window.open('vbimghost.php?do=popupload&ed={vb:raw editorid}','vbimghost2','scrollbars=yes,resizable=yes,width=562,height=97'); return false" title="Upload">{vb:phrase vbimghost_quickup}]</a></div>
</fieldset>
<!-- /imagehost-->
the find the template vbimghost_editor
and delete the code its the same you filled in to nethread. optionaly you can add this to newreply
|
Quote:
Originally Posted by roadrunna
Fixed it
Find the plugin "My Photo post bit".
Change the plugin code to :-
PHP Code:
$rec = vB::$db->query_read(" SELECT count(*) mark FROM ".TABLE_PREFIX."vbimghost WHERE userid='".$post['userid']."' and imgprivate='0' "); $row = vB::$db->fetch_array($rec); $post['vbimghost']=$row['mark'];
Basically the "$vbulletin->" is replaced with "vB::$"
|
Thanks gents! That worked great!!  :up:
|