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)
-   -   Mini Mods - Users posts (https://vborg.vbsupport.ru/showthread.php?t=133636)

becafuel 12-18-2006 06:12 AM

Quote:

Originally Posted by Mike-D (Post 1139935)
becafuel: You know what? Right now I got an idea...

Do you know the hack Top Posters In Month X from Cybernetec? I got the idea to integrate your code with this one. What do you think? Is that possible? I'm goin to start tomorrow to try it. Would you please so kind to help me? Whenever you have time of course. No need to rush ;) -Mike

It's not a bad idea, but I think you should contact Cybernetec before...

Btw, I will help you as much as I can, of course.


Quote:

Originally Posted by yingzhou (Post 1140361)
I like it! :D Sound very interest. Will wait to try your mod. :D Thank becafuel, I did it. But can I place the menu into ACP? No need to show it in the ModCP.

It's a matter of choice ;) I think its place is in ModCP, that's why I've put it there. I will post the XML file ASAP for the ACP.

becafuel 12-18-2006 10:52 AM

New version v1.2

Most noticeable change : forums are now correctly ordered. That is : same order than your layout.

It also shows forum with 0 (zero) messages.

A new variable that you should modify in the above source code : $phrase_percentage. This is the translation for french "Par rapport au total", which could be "Compared to total number of messages" in english.
As I didn't want to create a vbphrase only for this one, I've kept it in a variable.

Next version change will add the option to include or not forum with no messages.

I hope you find this mod useful ;)

yingzhou 12-18-2006 11:18 PM

How can I Upgrade this Mod?

becafuel 12-19-2006 05:39 AM

Quote:

Originally Posted by yingzhou (Post 1141281)
How can I Upgrade this Mod?

Simply paste the php code into the usermess.php file in the modcp dir.

ragtek 12-19-2006 09:09 AM

Quote:

Originally Posted by ragtek (Post 1140250)
why the menucode is:
construct_nav_spacer();
construct_nav_option('Number of messages', 'usermess.php?');
construct_nav_group('Menu title');

1. the links
2. the "menu"
or doesnt it matter?

does someone know that?

and is it faster then the xml file in the includes/xml ?

becafuel 12-19-2006 09:31 AM

I don't know why it is done this way.

For the second question, it's not a matter of speed, IMHO. XML method requires vbphrases to be created for your options & menu title in admincp, not with modcp menus.
Although you can work without vbphrases in admincp, options and titles will be displayed like *[your_text]*, meaning you missed some vbphrases. See attached screenshot.
This is one of the two reasons why I've put this mod in the modcp section. I didn't want to play with xml and phrases for only one option in a menu. In a way, we can say it's faster to code for me, but code is not faster either way ;)

ragtek 12-19-2006 10:06 AM

no it doesnt need phrases
<text>your link</text> works too ;)

becafuel 12-19-2006 10:30 AM

Damn ! You're right ! Why the hell did I focus on <phrase>some text</phrase> ?!
Thx a lot ;)

becafuel 12-19-2006 11:56 AM

Then we will talk about this via PMs ;)

Spikeman 12-20-2006 04:02 PM

I like this, although I put mine in ACP

/me installs


All times are GMT. The time now is 02:12 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.01204 seconds
  • Memory Usage 1,739KB
  • 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_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