vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Statistics Modifications - vB Weekly Stats (https://vborg.vbsupport.ru/showthread.php?t=132061)

Greek Wizard 12-04-2006 02:55 AM

This is a nice hack, but I have a problem with it.

When you get the e-mail, it lists the new users on the bottom.

When you click on one of them, I assume their profile is supposed to load up, but insteasd you get an error:

vBulletin Message
This user has not registered and therefore does not have a profile to view.


The problem IMO is that the link goes to:

Code:

http://www.xxxxxxxx.com/forums/member.php?find=lastposter&f=4701
When it should be:

Code:

http://www.xxxxxxxx.com/forums/member.php?u=4701
lastposter&f=4701 would be the last post on Forum ID 4701, not user 4701

Anyways, I am sure it's an easy fix, I have not had a chance to look at it and see what needs to be changed, but I thought you should know.

Greek Wizard 12-04-2006 03:01 AM

Like i said, I naver had a chance to look.. but I knew it was easy to fix:

Open includes\cron\weeklystats.php

Find:

Code:

// Create a user list from $getregs
while ($reg = $vbulletin->db->fetch_array($getregs)) {
        $user_display .= " <A HREF=\"" .
                $forum_url .
                "/member.php?find=lastposter&f=" . $reg['userid'] .
                "\">" . $reg['username'] . "</A> | ";
}

Replace with:

Code:

// Create a user list from $getregs
while ($reg = $vbulletin->db->fetch_array($getregs)) {
        $user_display .= " <A HREF=\"" .
                $forum_url .
                "/member.php?u=" . $reg['userid'] .
                "\">" . $reg['username'] . "</A> | ";
}

Not tested, but should work

Jd19 12-06-2006 02:41 PM

Thanks, I'll include this in the next update!

Omranic 12-08-2006 03:58 PM

nice work

I have a problem with it: Style Replacement Variables are proccessed so some style features (customized style) doesn't appear & make the page disturbed.

Suggession: it's not hard to make this hack depends totally on templates & not to include designing code within prog. code, also it's will be nicer if it becomes fully phrased, also make the hack depends on forum encoding when sending mails, finally you can use vbmail instead of php mail function to get advannce of its features.

we can help any where.
note: don't forget the first problem.

thanks

Jd19 12-11-2006 02:00 PM

UPDATED Version: Fixed Link for above problem

SolidSnake, Please post a link to your stats so I can see what you mean about the template. I'm assuming the vbmail function doesn't support HTML so I've used my own. Does it? I started with the intention of using the template in the email but disregarded it for several reasons. I particularly like the way it looks right now without a lot of extra information to look at.

DementedMindz 12-12-2006 03:02 PM

very nice mod would be nice to see the html removed from the php file and the html code cleaned up a bit This page is not Valid XHTML 1.0 Transitional! Failed validation, 202 errors :surprised: im cleaning my php file up now of alot of the errors but there is alot. also mods like microstats dont work with this well

also is you look at the html code you have

<title>CodeCall Programming Forum - Weekly Stats</title>

that needs to be changed also

Jd19 12-12-2006 03:21 PM

How are you testing the HTML and I will correct the code? What is microstats???

DementedMindz 12-12-2006 03:24 PM

Quote:

Originally Posted by Jd19 (Post 1137154)
How are you testing the HTML and I will correct the code? What is microstats???


you can check all your html code on this page

http://validator.w3.org/

I have removed alot of errors so far im down to Failed validation, 32 errors so its not to bad so far. as for microstats its right here

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

Omranic 12-13-2006 03:25 AM

Jd19
Have a look here: http://www.phpkd.com/vb/index.php
& then have a look here: http://www.phpkd.com/vb/weeklystats.php

Understand me? :)

Allan 12-13-2006 09:43 PM

French language ;)

Translator: Sofia


All times are GMT. The time now is 07:01 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.01377 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)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
  • (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