vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Statistics Modifications - Cyb - Advanced Forum Statistics (https://vborg.vbsupport.ru/showthread.php?t=201274)

EvilSeph 01-12-2009 12:54 PM

Quote:

Originally Posted by fragov (Post 1709630)
Rat1972
Edit: cyb_topstats_newposts, replace all with:
PHP Code:

    <tr class="$cybstats_alt1valign="top" onmouseover="this.className='$cybstats_alt2'" onmouseout="this.className='$cybstats_alt1'">
        <
td class="$cybstats_alt2width="1%" align="center" valign="middle"><if condition="$get_new_posts[newpost]">$newpostprefix<else />$oldpostprefix</if></td>
        <
td align="$stylevar[left]width="50%" nowrap="nowrap" class="smallfont" title="$get_new_posts[fullthreadtitle]"><a href="$vboptions[bburl]/showthread.php?$session[sessionurl]p=$get_new_posts[lastpostid]#post$get_new_posts[lastpostid]">$get_new_posts[titletrimmed]</a></td>
        <
td align="center" nowrap="nowrap" class="smallfont" title="$vbphrase[posted_by] <if condition="!$get_new_posts[musername]">$vbphrase[guest]<else />$get_new_posts[fullusername]</if>"><if condition="!$get_new_posts[musername]"><div style="cursor:pointer;">$vbphrase[n_a]</div><else /><a href="$vboptions[bburl]/member.php?$session[sessionurl]u=$get_new_posts[userid]">$get_new_posts[musername]</a></if></td>
        <
td align="center" nowrap="nowrap" class="smallfont" title="$vbphrase[date]/$vbphrase[time]"><if condition="$get_new_posts[newpost]">$get_new_postdate$get_new_posttime<else /><span class="time">$get_new_postdate$get_new_posttime</span></if></td>
        <
td align="center" nowrap="nowrap" class="smallfont" title="<phrase 1="$get_new_posts[title]">$vbphrase[cybstats_jump_to_post_in_x]</phrase>"><a href="$vboptions[bburl]/showthread.php?$session[sessionurl]t=$get_new_posts[threadid]style="text-decoration:none" title="<phrase 1="$get_new_posts[title]">$vbphrase[cybstats_jump_to_post_in_x]</phrase>"><font face="arial">&#9660;</font></a></td>
        
<td align="$stylevar[right]nowrap="nowrap" class="smallfont" title="$get_new_posts[fullforumtitle]"><a href="$vboptions[bburl]/forumdisplay.php?$session[sessionurl]f=$get_new_posts[forumid]">$get_new_posts[forumtitle]</a>&nbsp;</td>
    </
tr


As far as I can see, yours just directs to the thread and not to a specific post...? Please correct me if I'm wrong.

Edit the template cyb_topstats_newposts and find:
PHP Code:

<td align="center" nowrap="nowrap" class="smallfont" title="<phrase 1="$get_new_posts[title]">$vbphrase[cybstats_jump_to_post_in_x]</phrase>"><a href="$vboptions[bburl]/showthread.php?$session[sessionurl]p=$get_new_posts[lastpostid]#post$get_new_posts[lastpostid]style="text-decoration:none" title="<phrase 1="$get_new_posts[title]">$vbphrase[cybstats_jump_to_post_in_x]</phrase>"><font face="arial">&#9660;</font></a></td> 

Replace that with something like:
PHP Code:

<td align="center" nowrap="nowrap" class="smallfont" title="<phrase 1="$get_new_posts[title]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><a href="$vboptions[bburl]/showthread.php?$session[sessionurl]goto=newpost&amp;t=$get_new_posts[threadid]style="text-decoration:none" title="<phrase 1="$get_new_posts[title]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><font face="arial">&#9660;</font></a></td> 

That should achieve what you want - for the down arrow to direct your users to the first unread post in the thread.

Rat1972 01-12-2009 01:45 PM

Quote:

Originally Posted by EvilSeph (Post 1709672)
As far as I can see, yours just directs to the thread and not to a specific post...? Please correct me if I'm wrong.

Edit the template cyb_topstats_newposts and find:
PHP Code:

<td align="center" nowrap="nowrap" class="smallfont" title="<phrase 1="$get_new_posts[title]">$vbphrase[cybstats_jump_to_post_in_x]</phrase>"><a href="$vboptions[bburl]/showthread.php?$session[sessionurl]p=$get_new_posts[lastpostid]#post$get_new_posts[lastpostid]style="text-decoration:none" title="<phrase 1="$get_new_posts[title]">$vbphrase[cybstats_jump_to_post_in_x]</phrase>"><font face="arial">&#9660;</font></a></td> 

Replace that with something like:
PHP Code:

<td align="center" nowrap="nowrap" class="smallfont" title="<phrase 1="$get_new_posts[title]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><a href="$vboptions[bburl]/showthread.php?$session[sessionurl]goto=newpost&amp;t=$get_new_posts[threadid]style="text-decoration:none" title="<phrase 1="$get_new_posts[title]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><font face="arial">&#9660;</font></a></td> 

That should achieve what you want - for the down arrow to direct your users to the first unread post in the thread.


Thank mate, your code helped me. I have chanced it a little, now the link and the arrow goes to the first unread post when you visited the topic again.

@fragov
Also thanks for your help!

Rat1972 01-12-2009 01:58 PM

for the people that also want to have it, just like my board. (Link and arrow goes to the last unread post. Go to template cyb_topstats_newposts and replace the code with this code:



PHP Code:

    <tr class="$cybstats_alt1valign="top" onmouseover="this.className='$cybstats_alt2'" onmouseout="this.className='$cybstats_alt1'">
        <
td class="$cybstats_alt2width="1%" align="center" valign="middle"><if condition="$get_new_posts[newpost]">$newpostprefix<else />$oldpostprefix</if></td>
        <
td align="$stylevar[left]width="50%" nowrap="nowrap" class="smallfont" title="$get_new_posts[fullthreadtitle]"><a href="$vboptions[bburl]/showthread.php?$session[sessionurl]goto=newpost&amp;t=$get_new_posts[threadid]">$get_new_posts[titletrimmed]</a></td>
        <
td align="center" nowrap="nowrap" class="smallfont" title="$vbphrase[posted_by] <if condition="!$get_new_posts[musername]">$vbphrase[guest]<else />$get_new_posts[fullusername]</if>"><if condition="!$get_new_posts[musername]"><div style="cursor:pointer;">$vbphrase[n_a]</div><else /><a href="$vboptions[bburl]/member.php?$session[sessionurl]u=$get_new_posts[userid]">$get_new_posts[musername]</a></if></td>
        <
td align="center" nowrap="nowrap" class="smallfont" title="$vbphrase[date]/$vbphrase[time]"><if condition="$get_new_posts[newpost]">$get_new_postdate$get_new_posttime<else /><span class="time">$get_new_postdate$get_new_posttime</span></if></td>
        <
td align="center" nowrap="nowrap" class="smallfont" title="<phrase 1="$get_new_posts[title]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><a href="$vboptions[bburl]/showthread.php?$session[sessionurl]goto=newpost&amp;t=$get_new_posts[threadid]style="text-decoration:none" title="<phrase 1="$get_new_posts[title]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><font face="arial">&#9660;</font></a></td> 
        
<td align="$stylevar[right]nowrap="nowrap" class="smallfont" title="$get_new_posts[fullforumtitle]"><a href="$vboptions[bburl]/forumdisplay.php?$session[sessionurl]f=$get_new_posts[forumid]">$get_new_posts[forumtitle]</a>&nbsp;</td>
    </
tr


furst 01-12-2009 04:43 PM

Isn't there a way to set Forum Stat to show on page load to Latest Posts?

I want to have Top Posters and Top Reputations on the left side and Latest Posts on the right. How can I do this?

jacx 01-12-2009 05:18 PM

To the people whining about the layout new layout....why don't you donate and maybe he can edit his "FREE" module more to your tastes.

I liked the old setup too, however I had to remove it about a month ago as it kept crashing our forums due to the load. Now this new version runs perfect without crashing.

Thus I say, thank you Cybernetic for this new version...i was sad to remove the original one and so were my users, this ajax version is perfect loadwise.

And thanks Rat1972, that code edit helps!

Valter 01-12-2009 07:23 PM

In a few minutes I'll post version 6.2 where known issues are fixed, and some new options added.

In the meantime I would suggest some users to check options before reporting 'bugs'. It's not bug if you set disabled item to load on startup, is it? Also it is not bug if you enable "Forum News" without putting proper forum ID in "Latest News Forum" setting field. It is also not bug if you enable random mode without any stats enabled. etc etc

PLEASE ensure that hack options are properly set before reporting 'bugs'. Thanks.

rizelim 01-12-2009 07:26 PM

1 Attachment(s)
my forums vbseo optimize but Advanced Forum Statistics random bugs.

Valter 01-12-2009 07:40 PM

v6.2 - Jan 12. 2009.
-Fixed CSS validation issues
-Latest Posts: Added link to first unread post in thread
-Latest Posts: Option to disable source forum
-New: Bad admin error (shows when setup is wrong)
-Fixed some bugs in templates

Upgrade Instructions:
-Import product XML, allow overwrite
-Revert hack templates if modified before
-Check product options, update if needed

Note:
If you get any error messages in hack options, or experience some other unexpected problems, try with uninstalling/re-installing hack, then update settings. And please ensure setup is ok before reporting 'bugs', especially part where you enable/disable individual stats, News Forum setting, and startup items menus.

Stoebi 01-12-2009 08:10 PM

Great *installed* :)

Wish:
AJAX - Preview for new written posts


Regards, Stoebi

samuelss 01-12-2009 09:04 PM

Updated. Many thanks for your great efforts. God Bless.


All times are GMT. The time now is 09:15 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.01734 seconds
  • Memory Usage 1,836KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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