vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Respond To Rep (https://vborg.vbsupport.ru/showthread.php?t=93108)

.Tim 07-28-2005 10:00 PM

Respond To Rep
 
This hack puts a 'Respond To Rep' link at the end of each rep line and opens up a new pm window for the user. Nothing major but I'm sure some might find it useful.


Step 1:

In the 'usercp_reputationbits' template

Find:

PHP Code:

</if>
    <
td class="$reputationbgclasswidth="50%"><span class="smallfont">$reputation[reason]</span></td


Change It To (change the url to the path to your site):

PHP Code:

<td class="$reputationbgclasswidth="50%"><span class="smallfont">$reputation[reason]</span></td>
<
td class="alt2" nowrap="nowrap"><span class="smallfont"><a href="http://www.yoursite.com/private.php?do=newpm&u=$reputation[whoadded]target="_blank">Respond To Rep</td>
</if> 


Step 2:

In the 'USERCP' template.

Find:

PHP Code:

<td class="tcat" colspan="$reputationcolspan"


To:


PHP Code:

<td class="tcat" colspan="6"


Then find:

PHP Code:

td class="thead">$vbphrase[comment]</td


And after it add:


PHP Code:

<td class="thead">Respond</td



This may not have been the best way to do the hack or the cleanest way but it works. I'm open to suggestions, this is my first hack and I'm not THAT familiar with all this yet. Hope yall like it and find it usefull though. :D



I'd like to be able to make it quote the rep in the response but I haven't figured that out yet.

theArchitect 07-29-2005 05:24 AM

Simple yes, but also a very good idea.

Tony G 07-29-2005 01:12 PM

It is very useful, thank you for sharing. :)

.Tim 07-29-2005 06:39 PM

Thanks, glad you both like it. :D

Brinnie 08-04-2005 01:49 AM

and it it was anonymous rep?

.Tim 08-04-2005 02:18 AM

hmm, I don't have anonymous rep at my board so I don't know

Brinnie 08-04-2005 02:33 AM

brilliant.


All times are GMT. The time now is 04:59 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.01041 seconds
  • Memory Usage 1,735KB
  • 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
  • (6)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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