Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vbArticles v0.4 -- For your repository of Articles/Tutorials/FAQs etc. Details »»
vbArticles v0.4 -- For your repository of Articles/Tutorials/FAQs etc.
Version: 1.00, by cinq cinq is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 06-13-2003 Last Update: Never Installs: 48
Is in Beta Stage  
No support by the author.

UPDATES
version 0.4 is out

- Now allows for basic VBCODE input.
- Fixed somemore bugs.


Background
Required a section on my site to display articles/tutorials
No such hack in the Hacks Database
Decided to try my hand at it


ACKNOWLEDGEMENTS
This hack uses a lot of code from Arunan Sridharan's vB Links Directory v2.0
I use that hack too and was inspired to code something around that
A big thank-you must go out to him for coding the Links Directory in the first place (I merely modified much of the code to suit my needs for this hack)

Appreciation also goes out to Kars10 for aiding me in this hack
He coded the portion in version 0.3 on number of articles count as well as article hits count
He also suggested several template changes which have been incoporated into version 0.3
A great big special shout out to TheComputerGuy, 97cobracpe, dontpanic for stamping out the bugs with your fixes. Thanks guys


WHATS IT DO ?
This hack allows you to have a database of articles/tutorials etc on your site/forums.

FEATURES

AdminCP
Installer script

Admin options

View Categories
Edit Categories
Add Categories ( category name, category icon, category order, category description )
Delete Categories
Add new article ( title, description, author, date, content )
Edit article
Delete article
View ALL articles in database
Option in vB options to turn validation of articles on/off
Fully template based as to how you wish to display the articles,categories and main article home page.
Addition of articles accepts basic VBcodes

Member options

View Categories
Browse Categories
View articles
Submit new article
Submission of articles accepts basic VBcodes


INSTALLATION & UPGRADING
This Hack should work on ALL 2.2.x versions and v2.3.0
Please read the install_readme.txt file in the package for fresh installation instructions
IMPT: If you installed a previous version pls read the upgrade_readme.txt file carefully for upgrade instructions


HACK DOWNLOAD

Version 0.4 of this hack can be downloaded here


ADD-ONS
i) Add-on for vbHome
ii) Add-on for ForumHome
iii) Add-on to enable only registered members to be able to view the article section


DEMO SITES
http://www.runaked.com/forums/articles.php ( running v0.4 ) - TheComputerGuy's site

http://www.mcseworld.com/forums/infocenter.php ( running v0.3 ) - dontpanic's site


Feel free to submit your sites if u installed this hack so it can be listed as another live demo site


SUPPORT
I cannot promise any support on this as i am pretty new to this but I will try my best.
If you are using this hack , pls click the INSTALL button
to be kept in the loop of any bug reports, add-ons and hack version updates.

Thanks everyone

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #142  
Old 07-12-2003, 05:16 PM
Russ_T Russ_T is offline
 
Join Date: Jun 2003
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found a new problem

When a user submits from the website and it needs to be validated everything goes fine until the admin validates, when this is done Title and Author get overwritten with the data from Date. I believe it's to do with the line

Quote:
$DB_site->query("UPDATE vbArticles_content SET valid='$val',title='".addslashes(htmlspecialchars( $name[$key]))."',byline='".addslashes(htmlspecialchars($desc[$key]))."',author='".addslashes(htmlspecialchars($name[$key]))."',date='".addslashes(htmlspecialchars($name[$key]))."',content='".addslashes(htmlspecialchars($des c[$key]))."' WHERE artid='$key'");
from line 190 vbArticlesAdmin.php where a lot of things have author=...$name, date=...$name, title=...$name. There seems to be a mix up with $name[$key] holding the date and being used in too many places.

I could be wrong as I haven't looked into it much.

Thanks
Reply With Quote
  #143  
Old 07-13-2003, 05:34 AM
PurpleCow PurpleCow is offline
 
Join Date: Mar 2003
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a suggestion for the coming up version :

Right now the hack has an option of making the articles viewable only for registered members.

How about giving an option to admin....using which...individual permission can be given for viewable by registered members only.

What i mean, it should be possible to make certain articles viewable by all ( members/guests and other ), while certain articles will be viewable by only Registered members after logging in.

Within a category, few articles can be viewable by all, while others will be viewable by only registered members.
The articles which are viewable by only registered members will be marked with a small icon indicating the same.

Would u like to introduce this feature cinq ??

Thanks much
Reply With Quote
  #144  
Old 07-13-2003, 07:00 AM
cleck673 cleck673 is offline
 
Join Date: Feb 2003
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to intergrate this with vbportal where you can include a left column.
Reply With Quote
  #145  
Old 07-13-2003, 03:36 PM
cleck673 cleck673 is offline
 
Join Date: Feb 2003
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Refering to the previous question, Does anyone else want to know how to? I am close to getting mine setup right. I figured, rather than being lazy - it is something I was, so I am trying to figure it out on my own. Thanks.
Reply With Quote
  #146  
Old 07-13-2003, 09:34 PM
PixelFx PixelFx is offline
 
Join Date: Dec 2002
Posts: 1,117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

to add to this hack, would it be possible to make it so that articles are only viewable by style, and then by group?
Reply With Quote
  #147  
Old 07-17-2003, 12:10 AM
dontpanic dontpanic is offline
 
Join Date: Jun 2003
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
07-12-03 at 02:16 PM Russ_T said this in Post #141
I found a new problem

When a user submits from the website and it needs to be validated everything goes fine until the admin validates, when this is done Title and Author get overwritten with the data from Date. I believe it's to do with the line



from line 190 vbArticlesAdmin.php where a lot of things have author=...$name, date=...$name, title=...$name. There seems to be a mix up with $name[$key] holding the date and being used in too many places.

I could be wrong as I haven't looked into it much.

Thanks
Russ_T, make sure you perform the code fixes I posted in these locations:
https://vborg.vbsupport.ru/showthrea...989#post416989
https://vborg.vbsupport.ru/showthrea...000#post417000
https://vborg.vbsupport.ru/showthrea...031#post417031
https://vborg.vbsupport.ru/showthrea...093#post417093

I've gotten this hack tweaked out and running great with some additional custom mods of my own over at http://www.mcseworld.com/forums/infocenter.php

Best wishes! :smoke:
Reply With Quote
  #148  
Old 07-17-2003, 01:35 AM
cnczone cnczone is offline
 
Join Date: Mar 2003
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks GREAT can you share!!??
Reply With Quote
  #149  
Old 07-17-2003, 01:44 AM
dontpanic dontpanic is offline
 
Join Date: Jun 2003
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just make sure you download the updated version of the hack from the first page of this thread. Check the date...it should include all of the fixes identified in posts 126 and on...the only other thing I did was to integrate an HTML editor, but that's a commerical app. Lemme know if you have any other questions. :rambo:
Reply With Quote
  #150  
Old 07-17-2003, 05:22 AM
morpheusXIIX morpheusXIIX is offline
 
Join Date: Jul 2002
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did a very simple template edit to make it easier for registered users who no nothing about HTML. The mod tells the user how to use the br, p, i, b, and u tags.
Although you could easily modify the hack itself so that BB code would print out html. What I did was.

Open template vbArticles_addnewarticle
find:
PHP Code:
<smallfont>Full content of the article</smallfont
add below it:
PHP Code:
 <P>
<
smallfont>
- Use &
LT;br&GT; for line breaks<br>
- Use &
LT;p&GT; for double line breaks<br>
To make text boldencase it in &LT;b&GT;text&LT;/b&GT; <br>
To make text italicencase it in &LT;i&GT;text&LT;/i&GT; <br>
To make text underlinedencase it in &LT;u&GT;text&LT;/u&GT; <br>
</
smallfont
Do with it what you will.
Reply With Quote
  #151  
Old 07-18-2003, 04:34 PM
Falkware Falkware is offline
 
Join Date: Dec 2001
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Firstly, thanks for a great hack! Working with this beta to hopefully fill a big void on our site. Thanks for taking the time to supply such a nice and needed addon for vbulletin!

Now, I've been keeping tabs with this thread, applying 'fixes' as they come in. I have all the nice updates provided by dontpanic. Thanks mate.

One problem that keeps persisting is the MySQL error on edit bug. Not been able to find a fix for it, and seems there's no fix to the very problem stated by more than me in this thread

The Infamous Error:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /path/to/forums/admin/vbArticlesadmin.php on line 236

I get this error when I click "View all articles" then click "Edit" on and article in the list.

When I hope the link I notice it has "&artid=" at the end, but no representation of the article id.

I don't know if this is the problem, but if anyone can solve this MySQL error for me I'd be most grateful.

Thanks again for a great hack! Keep up the good work... (Here's the scary part... I got lots of ideas for this awesome system!! omg!) :bunny: :bunny: :bunny:
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:45 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.11883 seconds
  • Memory Usage 2,332KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete