vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Add Report Button in User Profile (https://vborg.vbsupport.ru/showthread.php?t=280479)

Simon Lloyd 03-23-2012 05:05 PM

What version do you have because that code is directly out of vb3.8.6 and i haven't added any folders for members..etc

Want to give me access so i can give it a whirl? pm me if you do :)

--------------- Added [DATE]1332526095[/DATE] at [TIME]1332526095[/TIME] ---------------

its working in my "About me" here http://www.thecodecage.com/forumz/me...mon-lloyd.html

--------------- Added [DATE]1332526271[/DATE] at [TIME]1332526271[/TIME] ---------------

Maybe replace the url stuff in the text area with this [url=$vboptions[bburl]/members.php?u=$userinfo[userid].html]$userinfo[username]'s profile[/url]

blind-eddie 03-24-2012 01:01 AM

Nope...that wont work, pm sent.

Simon Lloyd 03-24-2012 07:35 AM

Fixed in your test forum :)

blind-eddie 03-24-2012 12:54 PM

Thanks...You did get link working right for me but, any member that has info filled in the about me tab, their page is all messed up & the message area is not showing at all.... lol
Look at my profile which has the about me tab & here is your profile on my test site without About me info filled in.

I think I may add your code to its own popup page & have it say "This Profile has been Reported" and add a close window button or a timed close on the popup.

I will pm you there the info you requested.

Simon Lloyd 03-24-2012 01:21 PM

I checked both, both looked ok, i clicked the report button in yours and it was reported to me, i clicked mine and it was reported to me, checking back at profile about me tabs they still looked ok can you screenshot me please?

--------------- Added [DATE]1332600051[/DATE] at [TIME]1332600051[/TIME] ---------------

All fixed now as i found what you mean, i have also edited your post in your mods forum to reflect the new code :)

blind-eddie 03-25-2012 01:19 AM

Thank you Simon, hopefully this is what Fluke667 is looking for.

Link to demo.
http://blind-eddie.com/forum/member.php?u=1

Guest can see button but get a no permission error when clicked.
Basicly, it just sends you a pm when a member reports a member profile.

Use Simon's code posted above for 3.8.7 to replace your memberinfo_block_aboutme template.

Those that use 3.8.4 and some below can use Simons code below to replace your memberinfo_block_aboutme template.

Quote:

<div class="alt1 block_row">
<if condition="$show['simple_link']">
<div id="simple_aboutme_link"><a class="smallfont" href="member.php?$session[sessionurl]u=$bbuserinfo[userid]&amp;tab=aboutme&amp;simple=1">$vbphrase[view_your_about_me]</a></div>
</if>
<if condition="$show['edit_link']">
<div id="simple_aboutme_link"><a class="smallfont" href="member.php?$session[sessionurl]u=$bbuserinfo[userid]&amp;tab=aboutme">$vbphrase[edit_your_about_me]</a></div>
</if>
<ul class="list_no_decoration">
$block_data[fields]
<if condition="$prepared['signature']">
<li class="profilefield_category">
$vbphrase[signature]
<dl class="list_no_decoration profilefield_list"><dd id="signature">$prepared[signature]</dd></dl>
</li>
</if>
</ul>
<if condition="$userinfo['userid'] == $bbuserinfo['userid']">
<else />
<form action="private.php?do=insertpm&amp;pmid=$pm[pmid]" method="post" name="vbform"<if condition="!is_browser('webtv')"> onsubmit="return vB_Editor['$editorid'].prepare_submit(this.title.value, 0)"</if>>


<textarea style="display: none;" id="pmrecips_txt" name="recipients" rows="1">Add your username here</textarea>

<input type="hidden" class="bginput" name="title" value="Suspect Info" size="50" maxlength="85" tabindex="1" /> <!-- message area -->
<div style="display: none;">$messagearea = <textarea name="message" rows="2" cols="20" style="width:100%; height:100px" tabindex="1" class="tarea">Please check the "About Me" in the user profile of /member.php?u=$userinfo[userid]]$userinfo[username]'s profile
as it contains suspect material</textarea></div>
$messagearea
<!-- / message area -->

<div style="margin-top:$stylevar[cellpadding]px">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="posthash" value="$posthash" />
<input type="hidden" name="poststarttime" value="$poststarttime" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="do" value="insertpm" />
<input type="hidden" name="pmid" value="$pm[pmid]" />
<input type="hidden" name="forward" value="$pm[forward]" />
<input type="submit" class="button" name="sbutton" id="{$editorid}_save" value="Report This Info" accesskey="s" tabindex="1" />
</div>
</td>
</tr>
</table>
</form>
</if>
</div>

Simon Lloyd 03-25-2012 08:38 AM

Doh!, i forgot to add unregistered to the conditional! but it wont be hard for people to edit that :)

Fluke667 03-25-2012 12:43 PM

lets check this out :)

But its PM? Can this be a thread in a forum/subforum?

Simon Lloyd 03-25-2012 03:55 PM

For it to be a thread it would have to be a plugin, it would be easier (and better because of customistation) if you had easy forms installed and the button opened a specific form which they'd fill in and when submit is clicked you can choose whether it is sent as an email, pm'd or new thread :)

blind-eddie 03-25-2012 04:08 PM

Easy Forms(3.8) or Easy Forms(4.0) and create your own report form with a link named Report profile added to the MEMBERINFO template for members to click, fill out & submit to either a pm to you on, an existing thread or create a new thread in a forum you pick.

You can add the Report link as shown in the image below or wherever you want it to show, when using easy forms.



https://vborg.vbsupport.ru/

Didn't see you post Simon, sorry. I was afk when I started writting my post


All times are GMT. The time now is 12:45 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.01796 seconds
  • Memory Usage 1,745KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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