The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#31
|
||||
|
||||
No honestly that should not matter, the fetch_template call has not worked at all in vB4 as far as I know. That is one of the reasons most of the mods for vB3 will not work in vB4. That was replaced by rendering templates and registering variables.
|
#32
|
||||
|
||||
Humor me a minute...
Open your memberinfo_block_ministats template Find: Code:
</vb:if> </vb:comment> Add below: Code:
<!-- Report Profile Start --> <vb:if condition="$userinfo['userid'] = $bbuserinfo['userid']"> <else /> <script language="Javascript"> function Success(){ ss.innerHTML="Thank you for your submission"; setTimeout("kk()",1000); } function kk(){ document.forms[0].submit(); } </script> <form action="private.php?do=insertpm&pmid=={vb:raw pm.pmid}"=$bbuserinfo" method="post"name="vbform" onsubmit="return vB_Editor['{vb:raw editorid}'].prepare_submit(this.title.value, 0)"> <div style="display: none;"> $pm[recipients] </div> <div id="pmrecips" style="display: none"><textarea id="pmrecips_txt" name="recipients" rows="2" cols="50" tabindex="1">blind-eddie; </textarea></div> <div> <input type="hidden" name="title" value="Reporting Suspect Info" maxlength="85" style="width:60%" tabindex="1" /> <div style="display: none;"><textarea name="message" rows="2" cols="20" style="width:100%; height:100px" tabindex="1" class="tarea">Please check the Profile page of {vb:raw userinfo.username} as it may contain offensive material.</textarea></div> <div> <input type="hidden" name="do" value="insertpm" /> <input type="hidden" name="pmid" value="{vb:raw pm.pmid}" /> <input type="hidden" name="forward" value="{vb:raw pm.forward}" /> <input type="hidden" name="receipt" value="1" /> <input type="hidden" name="s" value="{vb:raw session.sessionhash}" /> <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" /> <input type="submit" class="button" name="sbutton" value="Report This Info" accesskey="s" onClick="Success()" tabindex="1" /> </div> </div> </form> </vb:if> <!-- Report Profile End --> |
#33
|
||||
|
||||
Yes it works, cause you added the code directly to the template, instead of relying on the plugin to add it.
|
#34
|
||||
|
||||
So that should make the plugin work?
|
#35
|
|||
|
|||
If this is the way you done it Eddie without using the plugin, then this is why it is working for you. Maybe someone can recode this for 4.2.2
|
#36
|
||||
|
||||
No, remove the plugin & follow instructions I posted above to add the code to the template without the need for a plugin.
|
#37
|
|||
|
|||
Would rather have it as a working plugin
|
#38
|
||||
|
||||
Quote:
I will give you access if you would like. I just added the template code so others could use it for now, until it is re-written. I would rather hard code then use plugins anyday..... how else will you learn how it all works..... I learn everyday. |
Благодарность от: | ||
ForceHSS |
#39
|
||||
|
||||
It is good, but was really hoping for the form you could file. Meh, I'll have to make do with another way I guess for now.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|