vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   v3 Articles 1.0.1 - [vB 3.0.1] (https://vborg.vbsupport.ru/showthread.php?t=65934)

DWard 06-09-2004 07:44 PM

Managed to skin it moderately, works very well :)

DWard 06-09-2004 07:53 PM

Also, managed to separate the article categories, like I have done with my forums :D

Pitman 06-09-2004 08:53 PM

When editing an article, if you preview the changes and then save it, it saves the original. When you click preview, it enters the original text in the textbox.

John 06-09-2004 08:58 PM

Quote:

Originally Posted by xQuEeNzNaZcHox
HTL compatible?

Nope.

ap0c 06-10-2004 12:49 AM

installed, nice job on the install.php adding the templates to all themes!

Reeve of shinra 06-10-2004 02:30 AM

Installed on RC4 without no real problems... I had to actually change a vboption and then save to get it to work though.


Quote:

How does this look if legacy postbit is used?
You can take a look here -- I have to edit the templates a bit but I think thats more to do with my style than the hack or anything.

http://www.shinraonline.com/board/article.php?a=1

designstylez 06-10-2004 02:39 AM

Really nice...

Can someone please tell me how to integrate this hack with vbIndex?

Thanks =0)

+d-cipher 06-10-2004 06:47 AM

Small modifications (working for me)

Whos Online:

Find in /includes/functions_online.php:
PHP Code:

case 'showgroups':
                        
$userinfo['action'] = $vbphrase['viewing_forum_leaders'];
                        break; 

under it add:
PHP Code:

case 'article':
                        
$userinfo['action'] = $vbphrase['viewing_articles'];
                        break; 

Still in includes/functions_online.php find:
PHP Code:

case 'showgroups.php':
                
$userinfo['activity'] = 'showgroups';
                break; 

Under it add:
PHP Code:

case 'article.php':
                
$userinfo['activity'] = 'article';
                break; 

Then add the following phrases:

Code:

Who's Online
Var: viewing_articles
Text: Viewing Articles

Admin Quick Stats Addition:

I plan on moderating all new articles so this is handy for me.

In ..admincp/index.php find:
PHP Code:

$newthreads $DB_site->query_first("SELECT COUNT(*) AS count FROM " TABLE_PREFIX "thread WHERE dateline >= $starttime"); 

Under it add:
PHP Code:

$newarticles $DB_site->query_first("SELECT COUNT(*) AS count FROM " TABLE_PREFIX "article WHERE dateline >= $starttime"); 

Still in ..admincp/index.php find:
PHP Code:

print_cells_row(array(
                
$vbphrase['new_threads_today'], vb_number_format($newthreads['count']),
                
$vbphrase['threads_awaiting_moderation'] . construct_link_code($vbphrase['view'], "../$modcpdir/moderate.php?$session[sessionurl]do=posts"), vb_number_format($threadcount['count']),
        ), 
00, -4'top'1); 

Under it add:
PHP Code:

print_cells_row(array(
                
$vbphrase['new_articles_today'], vb_number_format($newarticles['count']),
                
$vbphrase['articles_awaiting_moderation'] . construct_link_code($vbphrase['view'], "article.php?do=modarticles"), vb_number_format($articlecount['count']),
        ), 
00, -4'top'1); 

Add the following phrases:
Code:

Control Panel Home Pages
var: articles
text: Articles

Control Panel Home Pages
var: new_articles_today
text: New Articles Today

Control Panel Home Pages
var: articles_awaiting_moderation
text: Articles Awaiting Moderation


Mone' 06-10-2004 10:40 AM

Quote:

Originally Posted by +d-cipher
Small modifications (working for me)

Whos Online:

Find in /includes/functions_online.php:
PHP Code:

case 'showgroups':
                        
$userinfo['action'] = $vbphrase['viewing_forum_leaders'];
                        break; 

under it add:
PHP Code:

case 'article':
                        
$userinfo['action'] = $vbphrase['viewing_articles'];
                        break; 

Still in includes/functions_online.php find:
PHP Code:

case 'showgroups.php':
                
$userinfo['activity'] = 'showgroups';
                break; 

Under it add:
PHP Code:

case 'article.php':
                
$userinfo['activity'] = 'article';
                break; 

Then add the following phrases:

Code:

Who's Online
Var: viewing_articles
Text: Viewing Articles

Admin Quick Stats Addition:

I plan on moderating all new articles so this is handy for me.

In ..admincp/index.php find:
PHP Code:

$newthreads $DB_site->query_first("SELECT COUNT(*) AS count FROM " TABLE_PREFIX "thread WHERE dateline >= $starttime"); 

Under it add:
PHP Code:

$newarticles $DB_site->query_first("SELECT COUNT(*) AS count FROM " TABLE_PREFIX "article WHERE dateline >= $starttime"); 

Still in ..admincp/index.php find:
PHP Code:

print_cells_row(array(
                
$vbphrase['new_threads_today'], vb_number_format($newthreads['count']),
                
$vbphrase['threads_awaiting_moderation'] . construct_link_code($vbphrase['view'], "../$modcpdir/moderate.php?$session[sessionurl]do=posts"), vb_number_format($threadcount['count']),
        ), 
00, -4'top'1); 

Under it add:
PHP Code:

print_cells_row(array(
                
$vbphrase['new_articles_today'], vb_number_format($newarticles['count']),
                
$vbphrase['articles_awaiting_moderation'] . construct_link_code($vbphrase['view'], "article.php?do=modarticles"), vb_number_format($articlecount['count']),
        ), 
00, -4'top'1); 

Add the following phrases:
Code:

Control Panel Home Pages
var: articles
text: Articles

Control Panel Home Pages
var: new_articles_today
text: New Articles Today

Control Panel Home Pages
var: articles_awaiting_moderation
text: Articles Awaiting Moderation



well done very nice add-on :)

animate 06-10-2004 10:42 AM

great hack John thanks,

does search function work ? in usergroup permission i can se "Can Search for Articles" but when i would like to search result is "not found"

greets seiya


All times are GMT. The time now is 08:12 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.01919 seconds
  • Memory Usage 1,808KB
  • 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
  • (16)bbcode_php_printable
  • (3)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