vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - Activity Modification (https://vborg.vbsupport.ru/showthread.php?t=177366)

Cocko 11-01-2008 08:44 AM

Thanx for answering.

GARS = Geek Article and Review System (GARS) LITE changes the template of first
posts in forums where it's active so the activity modification won't be shown even
it's set to active.

Your approach sounds good. In if clause I need to add s.th. like
&& or WHERE forumID == 4,21,xx". What is it exactly?

Cocko 11-01-2008 10:22 AM

This replacement of activity_postbit_epilogue works fine ;)
forumid 108 can be changed to whatever fits to GARS forums.

Code:

<if condition="$post[postcount]>1" && $forumid!=108>
<script type="text/javascript">
<!--
WWU002Post('$post[postid]');
//-->
</script>
</if>

Thanx again.

Onone 11-01-2008 03:33 PM

Thanks, installed :)

edit:
After i installed the hack i get a error. the error is:

Database error in vBulletin 3.7.3:

Invalid SQL:
ALTER TABLE `user` ADD `wwu002activity` INT UNSIGNED NOT NULL ,
ADD `wwu002activitydate` INT UNSIGNED NOT NULL ,
ADD `wwu002memberlevel` TINYINT UNSIGNED DEFAULT "1" NOT NULL ,
ADD `wwu002fullmemberdate` INT UNSIGNED NOT NULL ,
ADD `wwu002lastvisit` INT UNSIGNED NOT NULL;

MySQL Error : Duplicate column name 'wwu002activity'
Error Number : 1060
Request Date : Saturday, November 1st 2008 @ 06:29:41 PM
Error Date : Saturday, November 1st 2008 @ 06:29:41 PM
Script : *******
Referrer : **********
IP Address : *******
Username : *********
Classname : vb_database
MySQL Version : 4.1.22-standard

what to do?

WetWired 11-02-2008 06:44 AM

That means that it was already partially installed. Have you ever installed this mod before or did you have a different error during a prior install?

If you have phpmyadmin, check your user table and see what columns it has that start with wwu002. Also check to see if you have a wwu002visitlog table.

Onone 11-02-2008 12:42 PM

Yes, i have install this mod before. how do i fix it?

WetWired 11-03-2008 03:32 AM

Do you have phpmyadmin to check the fields? Or do you know what version you installed?

BigJohnny 11-05-2008 10:31 PM

I dont have it installed yet as im working on a couple of other small changes to my board first, but I'm wondering, you say there are no template edits now, but are there still variables to use?

Im making my 3.7 memberinfo page duplicate some aspects of my 3.6 memberinfo, and one of the things I had was the activity mod visible in a users profile..... basically the profile was very similar to the postbit.

Is there still a way to put the activity stats/titles etc in the memberinfo template?

WetWired 11-06-2008 11:17 AM

Yes, the variables are still there (though the names are slightly different in some cases) and automatic modifications are easily disabled.

Onone 11-06-2008 02:16 PM

Quote:

Originally Posted by WetWired (Post 1658296)
Do you have phpmyadmin to check the fields? Or do you know what version you installed?

yes, i have phpmyadmin how do i check the fields?

i think the version was 3.00 beta 2.

BigJohnny 11-06-2008 08:25 PM

go to phpmyadmin, select the database that vbulletin is using, then "browse" the user table, and look for the columns mentioned above.


All times are GMT. The time now is 01:56 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.01413 seconds
  • Memory Usage 1,736KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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