vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - Recent Thanks for [AJAX] Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?t=280109)

Adam H 04-01-2012 11:51 AM

Quote:

Originally Posted by Hippy (Post 2315679)
there is enough work just feeking it working like it should
please if you made improvements
pot them so we can add them..
poke the link in my sig to see what was done to date

Its not a matter of making improvements its a matter of creating something that is good enough for people to customise , currently the design aspects are less than standard VB layout. Its not eye catching , if there was just a simple blank unique class added which you could then style from it would make it much better. 90% of modifications are not built with design in mind, more of functionality.

For example if there was a unique div class wrapping the blockbody it would then allow the entire page to be styled in a much nicer for each forum owner to style if they need too.

Its easy enough to edit the plugins template our selves and do it but it could potentially mean redoing it if there is template edit in future versions where as if there was an existing class the only thing we would need to edit is the additional.css which is what its designed for.

Just a thought

Great mod though.

Scandal 04-03-2012 12:06 PM

Recent Thanks for [AJAX] Post Thank You Hack is now on the poll for MOTM April 2012. Thanks to all for their choice! ;)

Hippy 04-03-2012 03:25 PM

Quote:

Originally Posted by Scandal (Post 2316341)
Recent Thanks for [AJAX] Post Thank You Hack is now on the poll for MOTM April 2012. Thanks to all for their choice! ;)

back @ you..

thanks for the great mod for abe1's mod .. helps keep it alive:up:

SeeLand 04-04-2012 07:23 PM

Great addon, works fine in vbulletin 4.1.11

sadiq6210 04-05-2012 05:09 AM

Voted. :up:

sivaganeshk 04-07-2012 01:51 PM

Can I change the phrase to LIKE ?

Scandal 04-07-2012 02:12 PM

Quote:

Originally Posted by sivaganeshk (Post 2317752)
Can I change the phrase to LIKE ?

Of course, this product uses the vbulletin phrases system, so you can change the relative phrase to "Likes". ;)

cashcash 04-08-2012 04:06 PM

1 Attachment(s)
this hack cause me a problem with the general setting in the usercp see pic attach
i also see a warning before:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in [path]/profile.php(2087) : eval()'d code on line 3

i use vb4.1.10

Emeralda 04-08-2012 06:34 PM

Quote:

Originally Posted by Scandal (Post 2317758)
Of course, this product uses the vbulletin phrases system, so you can change the relative phrase to "Likes". ;)

I was looking before in phrases for this: http://prntscr.com/7wavx but I couldn't find it >.<

Scandal 04-10-2012 01:01 PM

Quote:

Originally Posted by cashcash (Post 2318045)
this hack cause me a problem with the general setting in the usercp see pic attach
i also see a warning before:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in [path]/profile.php(2087) : eval()'d code on line 3

i use vb4.1.10

Go to admincp > Plugins & Products > Plugin Manager, open the plugin "Recent Thanks - UserCP Field Part2" and replace its contents with:
PHP Code:

if ($vbulletin->options['recent_thanks_notif'] AND $vbulletin->options['recent_thanks_on_off']){
    
$quer "SELECT recent_thankact FROM " TABLE_PREFIX "user WHERE userid = ".$vbulletin->userinfo['userid']." AND recent_thankact=1";
    
$temp $db->query_read($quer) or die("Error: "mysql_error(). " with query "$quer);
    
$isthere mysql_num_rows($temp);
    if(
$isthere){
    
$recent_thankact_checked 'checked="checked"';
    }
    else {
$recent_thankact_checked='';
    }

       
$templater vB_Template::create('recent_thanks_ufield');    
   
$templater->register('recent_thankact_checked'$recent_thankact_checked);
$templater->register_page_templates();  
   
$template_hook[usercp_options_messaging] .= $templater->render();



.. and post here the message you receive now on the usercp.

Quote:

Originally Posted by Emeralda (Post 2318097)
I was looking before in phrases for this: http://prntscr.com/7wavx but I couldn't find it >.<

wow you are right, this phrase in inside the file recent_thanks.php.
Open it and change the phrase Recent Thanks on the line:
PHP Code:

$navbits construct_navbits(array('' => 'Recent Thanks')); 

with that you want.


All times are GMT. The time now is 08:00 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.01304 seconds
  • Memory Usage 1,754KB
  • 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_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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