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)

4Square 10-23-2003 07:42 PM

I have a question about the vbhome hack for the articles addon. Right now, the hack just shows the catagory names and descriptions. I'm trying to make it so that it shows the number of articles in each catagory as well as the most recent articles (I haven't started on that part yet though).

Anyways for showing the number of articles, I found the code in articles.php which does the actual pulling from the db...

Code:

// count
$tutcount = $DB_site->query_first("SELECT COUNT(*) AS artid FROM vbArticles_content WHERE categoryid=$catid and valid='1'");
$totaltuts = number_format($tutcount['artid']);
// count

and of course $totaltuts being the variable used to show the actual number pulled.

Now, I've tried a few different placements in index.php file for vbhome, but have not been able to figure out how to add it to the code which is already in there for the article bit. Basiclly I keep getting mysql errors where ever I put it. Any ideas on how I could get this working?

cinq 10-25-2003 02:42 PM

Quote:

Originally Posted by FleaBag
Looking great. Really looking forward to an update. Cinq, if you would consider it, when this hack is completed - I'd be willing to pay for a vB3 conversion. This hack and the Link Database hack is all that's holding me back - not that I mind as all is working well! :)

Thanks again.

I'm still some way off from finishing this for a Full Release for vb2.
When that's done, then we'll talk vb3 version :D

sabret00the 10-25-2003 04:02 PM

i've not managed to get this to work :(

cinq 10-27-2003 04:58 AM

Will be scraping the idea of using vbcode for this hack.
No point since a WYSIWYG editor will be offered to the user as well as the admin who is submitting the article.

Anyways, more screenies on the progress :

1) View All articles
2) View All categories
3) Add new article

FleaBag 10-27-2003 07:00 AM

I dunno if it's such a good idea to get rid of the support altogether, some people don't like WYSIWYG.

gmarik 10-27-2003 11:31 AM

Cinq, how about my editor, not good enough?!

cinq 10-27-2003 11:16 PM

Looks like you never can please everyone, can you.

Give them a blank content box, they want more.
Give them vbcode, they want more.
Give them WYSIWYG, they want more.

geez..

maybe I'll just stick to blank content boxes and let users learn to code in HTML and don't be lazy. :p

cinq 10-27-2003 11:17 PM

Quote:

Originally Posted by gmarik
Cinq, how about my editor, not good enough?!

I don't understand how it works. In fact, i don't even know what format that is ?! lol :p

gmarik 10-29-2003 10:56 AM

An IE5.5 and up format.
You can just read about it in google.com ...

DiscussAnything 10-29-2003 06:17 PM

cinq, is it possible to provide the bugfix for the dash problem? I see it's fixed in 0.5, but its really bugging me and if it can be resolved while we all wait for 0.5, that'd be great.

So far great hack :)

thanks

-------
Update: Prob fixed, thanks cinq


All times are GMT. The time now is 03:22 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.01306 seconds
  • Memory Usage 1,736KB
  • 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_code_printable
  • (2)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