vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   vbArticles v0.4 -- For your repository of Articles/Tutorials/FAQs etc. (https://vborg.vbsupport.ru/showthread.php?t=54331)

AuthorZone.Com 06-28-2003 10:24 PM

Also, can you fix it so READERS can rate the articles/reviews please?

BTW, how do I add icons?

97cobracpe 06-29-2003 12:33 AM

Quote:

Today at 04:59 PM AuthorZone.Com said this in Post #80
THANK YOU SOOOOOOOOO MUCH!
I am going to try it now.

I plan to use it for a book review site and I will add users to a Reviewer's group and only they should be able to post in it and the admins...

Can you tell me how to do this?

Max

I noticed you asked the same thing in the links directory thread. This hack was based on it, so the code is pretty much the same. Here is the snippet of code to search for:
PHP Code:

// #################### Add Article ####################
if ($action=="addarticle") {
  if (
$bbuserinfo[usergroupid]=="1" or $bbuserinfo[usergroupid]=="3" or $bbuserinfo[usergroupid]=="4" or $bbuserinfo[usergroupid]=="0") {
      eval(
"dooutput(\"".gettemplate('vbArticles_error1')."\");");
      }else{ 

Follow the same concept I posted in the links directory thread on how to exclude usergroups.

I'm not a coding expert, but adding ratings to this hack seems like it would be rather difficult. Maybe someone more experienced will be able to help you out. For the time being, I'll look into it, as that seems like a cool feature.

AuthorZone.Com 06-29-2003 01:31 AM

How does the Validate Articles/Links system work?
How do I know when I have to validate them?
How do I know when there are new articles/links submitted?

Thanks

Max

cinq 06-29-2003 02:24 AM

Quote:

Yesterday at 11:09 PM 97cobracpe said this in Post #78
At first, I got this error too. I found 2 typo's in the vbArticles_install.php file. On line 269 and 291 there is no \ in front of an '.

Thanks 97cobracpe, have updated the download.

cinq 06-29-2003 02:35 AM

Quote:

Today at 01:15 AM 97cobracpe said this in Post #79

Two php commands:
addslashes() and htmlspecialchars() were not used correctly with the intent of this hack. I noticed the same thing in the vbLink hack as well (which this was based off of).

I figured I help you out by posting my findings.


97cobracpe, thanks once again :)
Dont worry about stepping on my toes or anything, in fact I feel glad that some of you have stepped forward to help me along. I am very new to php and vb in general, nosedived into this hack purely cos i need something on this on my site and could not find any avail here yet.

For myself I too have removed all user submission code in my own installation at my site.
I prefer to have my own editorial team send me the stuff and i will load it up via admincp myself.
But personal preference I guess, at least this hack allows for more flexibility for those who prefer automated user submissions ( and via validation process )

cinq 06-29-2003 02:40 AM

Quote:

Today at 08:24 AM AuthorZone.Com said this in Post #81
Also, can you fix it so READERS can rate the articles/reviews please?
Kars10 is working on the ratings bit. Got to wait out for it in future versions.

Quote:

Today at 11:31 AM AuthorZone.Com said this in Post #83
How does the Validate Articles/Links system work?
How do I know when I have to validate them?
How do I know when there are new articles/links submitted?

You either enable or disable this option in your AdminCP under vbulletin options.
When a user submits an article, if enabled, will require your validation b4 it is displayed in your articles section.
To validate, click on the 'Validate new articles' link in your admin cp.
You have to check regularly if you have enabled the validation option as currently the hack does not inform you of any new user submissions.

If any one can help do an add-on to the existing code such that it will email admin ( like notification ) on any new user submissions, i will be most grateful.

Braindg 06-29-2003 12:16 PM

how would one go about adding permissions to this? as per normal forums? i would like to deny non-members to the articles section..

AuthorZone.Com 06-29-2003 12:51 PM

PROBLEM!

Ok I tried to validate 3 articles and it sent the server into a tail spin.

The server load overloaded and it will not come down....

Me thinks this hack need alot of fixing... :(

cinq 06-30-2003 02:31 AM

Braindg, here's what you can do:

In articles.php :
Find
PHP Code:

if ($action=="viewarticle") { 

After that, add the following
PHP Code:

if ($bbuserinfo[usergroupid]=="1" or $bbuserinfo[usergroupid]=="3" or $bbuserinfo[usergroupid]=="4" or $bbuserinfo[usergroupid]=="0") {
      eval(
"dooutput(\"".gettemplate('vbArticles_error3')."\");");
      }else{ 

In the same articles.php file , Find
PHP Code:

eval("dooutput(\"".gettemplate('vbArticles_articleview')."\");"); 

After that, add the following
PHP Code:



Next, add the following attached template.

All done, viewing of articles is now nonviewable by those awaiting confirmation, Coppa users and Unregistered/Not logged in users.
( those usergroup ids - 1 , 3 , 4 )
If you wish to add more usergroups to deny them viewing of articles, simply add in their usergroup ids accordingly.

cinq 06-30-2003 02:33 AM

Quote:

Yesterday at 10:51 PM AuthorZone.Com said this in Post #88

Ok I tried to validate 3 articles and it sent the server into a tail spin.
The server load overloaded and it will not come down....
Me thinks this hack need alot of fixing... :(

Me thinks it may not be the hack as I cannot replicate this error.
Anyone else facing this problem ?


All times are GMT. The time now is 10:17 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.01323 seconds
  • Memory Usage 1,760KB
  • 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
  • (5)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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