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)

dontpanic 07-12-2003 01:27 AM

Quote:

Today at 10:12 PM cinq said this in Post #130
Updated the hack with fixes from post 126 and 127.

Thanks a million, dontpanic for pointing them out and providing the fixes :)

As for post 128, without the change, your users cannot submit HTML content ?

You mean post 129?

Before that fix, you could submit HTML from the public page (articles.php?action=addarticle) all you wanted...you just lost the formatting when saved. That fix preserves HTML so that when you go to validate it later, its still good.

I have it all tweaked out and running like a champ right now at MCSE World. I am going to also be integrating an HTML editor into the submission page as well...unforunately that's a commerical product, so I won't be releasing that mod to your hack. :tired:

Thanks again!

cinq 07-12-2003 01:55 AM

Right, will throw that in as well , thanks for the clarification :D

HTML editor ? That sounds interesting, where can more info about it be found ? ( ie. purchased from ? )

You have integrated this hack into your infocenter really nicely.
Will put your site up as another live demo , hope you do not mind :)

cinq 07-12-2003 02:03 AM

Ok updated the hack download.

For those who installed it prior to 12-07-2003 ( today ) , please refer to posts 126, 127, 129 for fixes.

dontpanic 07-12-2003 02:03 AM

Thanks for all your hard work on this, I couldn't have gotten this far without!

As for adding the site as a live demo, please do...I'll never turn away more traffic. ;)

As for the HTML editor, I'm working with htmlEditbox 2.0. Haven't had the chance to start integrating it, but I'll let you know how it goes.

dontpanic 07-12-2003 02:05 AM

Sorry, just found this one. This affects editing categories from within the CP.

In vbArticlesadmin.php, find:
PHP Code:

// ############################# Edit Category #########################
if ($action=="editcat") {
$sql "SELECT * FROM vbArticles_cat WHERE artcatid=$artcatid"

Replace it with:
PHP Code:

// ############################# Edit Category #########################
if ($action=="editcat") {
$sql "SELECT * FROM vbArticles_cat WHERE artcatid=$catid"

I am really putting this hack through it's paces. Thanks again! :D

cinq 07-12-2003 02:06 AM

I was actually glancing through this hack here

Wonder if it can somehow be integrated.

cinq 07-12-2003 02:10 AM

And what does post 135 change ?

dontpanic 07-12-2003 02:22 AM

Quote:

Today at 11:10 PM cinq said this in Post #137
And what does post 135 change ?
Sorry, sometimes I forget to explain it all.

If you went to edit a category from within your AdminCP, you would get a fetch error. This corrects that. :)

As for that WYSIWYG editor...dunno, I didn't even see that when I looked earlier...but that's how it always is! If that can be integrated, and it's free, so much the better! :rambo:

Russ_T 07-12-2003 03:28 PM

cinq - Just to say thanks for giving me the hack and it installed fine.

One little change I made in index.php in /forum/admin I changed
Quote:

makenavselect("vbArticles","<br>");
for
Quote:

makenavselect("vbArticles");
as the gap was too big for me.

The edit page also says Byline and not Description :)

I get the error like others when editing and removing wont work for me either?

Quote:

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/www/zclubnieW/forum/admin/vbArticlesadmin.php on line 234
A couple ideas that might have already been mentioned,

Is it possible to turn on full URL usage for the category image incase we don't want an image from the images folder?

Maybe an e-mail this article to a friend feature one day?

E-mail to the validater saying "New article to validate" with corresponding email option?

Thanks for the hack though, very good stuff, I like! If you would like me to help out or implement something for you just say.

Thanks again! :D I'm a happy bunny now, look at http://www.zclub.net/forum/articles....rticle&artid=2 :D

I'm now busy trying to chase down my vbArticlesadmin.php 234 error :D

Russ_T 07-12-2003 04:16 PM

Ok found it

in vbArticlesadmin.php

Quote:

$result = $DB_site->query("SELECT * FROM vbArticles_content WHERE Categoryid=$catid");
if ($myrow = $DB_site->num_rows($result)) {
while ($myrow=$DB_site->fetch_array($result)) {
$hasattach=1;
$articleid=$myrow["artid"];
should be

Quote:

$result = $DB_site->query("SELECT * FROM vbArticles_content WHERE Categoryid=$catid");
if ($myrow = $DB_site->num_rows($result)) {
while ($myrow=$DB_site->fetch_array($result)) {
$hasattach=1;
$artid=$myrow["artid"];
Last line changes as the $artid reference is used... not $articleid... :D

I haven't checked that fixes it but I'm sure it will.

Cheers


All times are GMT. The time now is 04:05 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.03042 seconds
  • Memory Usage 1,751KB
  • 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
  • (2)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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