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)

iggy123 06-27-2003 07:01 PM

Ok i have installed it and it works fine in a way - i am still having issues that it does show paragraphs- or accept html - do i need to use bbcode?

cinq 06-28-2003 12:05 AM

iggy , i do not quite understand you.
Care to elaborate more on the bit about showing paragraphs ?

Nope pure html should work, not bbcodes.

cinq 06-28-2003 12:38 AM

Ok would like for those who installed this hack to try this :

Create an article in a category.
Try to make it a reasonably lengthy one with HTML.

Once done , try to edit this article with that of another lengthy one with HTML.

Go view the article. Does it get updated ?

If it does, repeat the above procedure, does it get reupdated when a new article is overwritten again ?

Would appreciate some feed back on this.

iggy123 06-28-2003 05:59 AM

Quote:

Today at 02:05 AM cinq said this in Post #72
iggy , i do not quite understand you.
Care to elaborate more on the bit about showing paragraphs ?

Nope pure html should work, not bbcodes.

If you go to my site and check out the articles section you can see what i mean.

http://clanantivirus.com/forums/arti...rticle&artid=7

when i try to edit it via the admin panel i get the following error message
PHP Code:

Warningmysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/unklem/public_html/forums/admin/vbArticlesadmin.php on line 234 

So, I dunno - it could be just me LOL

97cobracpe 06-28-2003 08:25 AM

Quote:

Yesterday at 08:38 PM cinq said this in Post #73
Ok would like for those who installed this hack to try this :

Create an article in a category.
Try to make it a reasonably lengthy one with HTML.

Once done , try to edit this article with that of another lengthy one with HTML.

Go view the article. Does it get updated ?

If it does, repeat the above procedure, does it get reupdated when a new article is overwritten again ?

Would appreciate some feed back on this.

OK, after messing with it, I have encountered problems with this hack. Depending on the code I put it, it'll either display everything correctly, or just display everything word for word including all the html code. I'm gonna due some further tests and try to find out what works and what doesn't work. I'm using small parts of the code one at a time for testing to find out what parts do and don't work.

My first finding. This hack doesn't like apostrophies ( ' ). Enter text and it'll save and edit correctly. Throw in some apostrophies and you can kissing editing goodbye.

It's really late and I'm tired, so when I wake up tomorrow, I'll test as extensively as possible and report the bugs here.

Take care.
John

AuthorZone.Com 06-28-2003 09:18 AM

When I bring up the install script in the browser I get:
Quote:

Parse error: parse error, unexpected T_STRING in /home/authorz/public_html/forums/admin/vbArticles_install.php on line 269
I am using 2.2.8

On another site I just get a white page...

Please help?

Max

AuthorZone.Com 06-28-2003 09:27 AM

Also, once I get it working, can you tell me if I can make it so only users I adfd to a certain group can post articles?

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?

97cobracpe 06-28-2003 01:09 PM

Quote:

Parse error: parse error, unexpected T_STRING in /home/authorz/public_html/forums/admin/vbArticles_install.php on line 269
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 '.

Here's is the fixed version.

cinq, you should update your first post with this updated installer script I attached. The one in the download does not work.

97cobracpe 06-28-2003 03:15 PM

OK, I found the bug with the ' problem. There was also a big problem with some html code when adding a new article, and when editing.

When adding new, I would not pass some of the html code, and when editing, it would not update. This only happened when using certain html code.

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).

cinq,
I have corrected the html code issue as far as I know (This hack is working for me curently without flaws. Also, being able to post html code of user forms is a big security risk. I would suggest that everyone either turn on validation (so you can check the code before approving it), although I think it's safe this way, I'm not positive or to disable user submitions all together. I'm disabling it on my site all together. I'd rather have users email me an html file (that I can check locally) before posting it on my site for security reasons.

Not trying to step on any toes or anything, but I like this hack, and want to use it as quickly as possible, so I figured I help you out by posting my findings.

I'm attaching an updated vbArticlesadmin.php below.

AuthorZone.Com 06-28-2003 08:59 PM

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


All times are GMT. The time now is 11:03 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.01268 seconds
  • Memory Usage 1,747KB
  • 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
  • (1)bbcode_php_printable
  • (4)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