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)

Fluke667 03-21-2012 11:37 PM

Add Report Button in User Profile
 
I want Add the Report Button to User Profiles... (member.php)

Any1 got a idea howto do this?

blind-eddie 03-22-2012 02:39 AM

There is nothing like this that I am aware of for just the profile page itself.
You can always add a link for members to send you a pm and name it Report Profile or set up ez forms on your board and add a link to the form that members can fill out. You can get pm'd or a new post made about the reported profile or both.

Fluke667 03-22-2012 03:22 AM

i want report button cause so much users register with porn or other forbidden avatar in my family forum

blind-eddie 03-22-2012 03:37 AM

Set your permissions to not allow avatars without a set post count.
Moderate your new members....

Link below is to stop spammers from joining your site, though its for 3.6 vbulletin, it will work for all vbulletin up to 4.0(not confirmed, I don't use 4.0)

https://vborg.vbsupport.ru/showthread.php?t=176481

Fluke667 03-23-2012 01:18 AM

Im unhappy with this... its not only the pornographic avatar they use bad nicknames profile image too or they write crap in the "about me" Tab in Profile ...

Moderate new Members not Help me ...

I want the Report Button, there is no other way

blind-eddie 03-23-2012 01:46 AM

I have searched around quite a bit with no luck.
I can help you set up a link in your MEMBERINFO template for members to send you a pm when they come across profiles as you stated. Or I can help you add 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.

But, none of this will stop anyone from doing what you stated, it only reports it.
If you set your permissions correctly, you should not have this problem.

You can also make a request in the Requests For Paid Services or in the Modification Requests/Questions (Unpaid) forums.

I do understand your frustrations, but It is up to you to stop it, not vbulletins. You can stop all that you stated with ease with default vbulletin & a couple addons.
I have 4 vbulletin sites & get little to no spam what so ever & never do I get what you stated you are getting.....Good luck

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

This is what you are after?

https://vborg.vbsupport.ru/

Simon Lloyd 03-23-2012 12:12 PM

Right, here goes' replace ALL of your memberinfo_block_aboutme with this
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>
<form action="private.php?do=insertpm&amp;pmid=$pm[pmid]" method="post" name="vbform" onsubmit="doubleSubmit(this)">
$pm[recipients]
<div id="pmrecips" style="display: none"><textarea id="pmrecips_txt" name="recipients" rows="2" cols="50" tabindex="1">Simon Lloyd;</textarea></div>
<div>

<input type="hidden" name="title" value="Reporting Suspect Info" maxlength="85" style="width:60%" tabindex="1" />

<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 [url=$vboptions[bburl]/members/$userinfo[username].html]$userinfo[username]'s profile[/url] as it contains suspect material</textarea>
<div>
<input type="hidden" name="s" value="$session[sessionhash]" />
<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="hidden" name="receipt" value="0" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="submit" class="button" name="sbutton" value="Report This Info" accesskey="s" tabindex="1" />
</div>
</div>
</form>
</div>
This will put a button at the bottom of the info and when pressed will pm the person you set in the code (the bold Red area that has my name, change that :)

I used quote tags because i wanted to keep the formatting

blind-eddie 03-23-2012 02:37 PM

If you do not use .html or a folder for users, (Unless 3.8.7 is different)change the URL in the textarea section above to the following.

HTML Code:

[url=$vboptions[bburl]/member.php?$session[sessionurl]u=$bbuserinfo[userid]"]$userinfo[username][/url]
Forget my edit, it wont work, it shows your user id on all members pages.

Simon Lloyd 03-23-2012 03:21 PM

Tim, the .html is the vbulletin standard the url i show
HTML Code:

[url=$vboptions[bburl]/members/$userinfo[username].html]$userinfo[username]'s profile[/url]
should be fine in at least all vb3.8 and it's simply a link to the users profile :)

blind-eddie 03-23-2012 03:42 PM

I get a 404 using your code.
Everything I try only shows my user ID in all members pages.
What you posted shows you have a members folder & .html to member pages, which I don't have & have never seen one in any version of vbulletin I have used since 3.5 that I can remember.

I like the idea of adding the report button as I am sure Fluke667 will as well. Thank you.
I just can't get it to work with your code nor any I try regarding a link to other users profiles...

Simon Lloyd 03-23-2012 06: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 02:01 AM

Nope...that wont work, pm sent.

Simon Lloyd 03-24-2012 08:35 AM

Fixed in your test forum :)

blind-eddie 03-24-2012 01: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 02: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 02: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 09: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 01:43 PM

lets check this out :)

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

Simon Lloyd 03-25-2012 04: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 05: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

Simon Lloyd 03-25-2012 05:34 PM

Quote:

Originally Posted by blind-eddie (Post 2313188)
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.



http://blind-eddie.com/forum/imageho...bdc4c1677b.jpg

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

Lol, wasn't that you're advice on the previous page? :)

blind-eddie 03-25-2012 06:20 PM

Yep.... didn't think he saw it when he ask his question...lol


All times are GMT. The time now is 08:17 PM.

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.01404 seconds
  • Memory Usage 1,804KB
  • 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
  • (2)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (22)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