vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   v3 Articles 1.0.1 - [vB 3.0.1] (https://vborg.vbsupport.ru/showthread.php?t=65934)

Paul M 01-04-2005 11:57 AM

It's really not that hard to follow;

If you had 1.0.1 installed before the security patch was issued you can either apply the fixes as detailed in the fix document, or you can download v1.0.2 and just replace the article.php. If you are installing from scratch then just download 1.0.2 - this has the security fixes aplied to it already.

There are more patches & addons in the vb3 addon's forum that you can apply if you wish.

GoTTi 01-04-2005 03:38 PM

what about the attachment file and all the other files in the zip??

should i just upload that and overwrite the thing and run the upgrade.php?

GoTTi 01-04-2005 05:13 PM

is there a way to have things posted in the articles section to be shown on the forum category it belongs to? instead of it just having 2 -'s in it.

mello_mike 01-04-2005 09:26 PM

Quote:

Originally Posted by TRStealth
Hi,

I'm trying to get the 'Featured Article' thing to show up on the index page, but I'm having trouble.

I got the featured_article template to show, but the actual featured article won't.

I've added the following to the index.php page:

PHP Code:

$globaltemplates = array(
    
'FORUMHOME',
    
'forumhome_event',
    
'forumhome_forumbit_level1_nopost',
    
'forumhome_forumbit_level1_post',
    
'forumhome_forumbit_level2_nopost',
    
'forumhome_forumbit_level2_post',
    
'forumhome_lastpostby',
    
'forumhome_loggedinuser',
    
'forumhome_moderator',
    
'forumhome_pmloggedin',
    
'forumhome_subforumbit_nopost',
    
'forumhome_subforumbit_post',
    
'forumhome_subforumseparator_nopost',
    
'forumhome_subforumseparator_post',
    
'article_featured'
); 

then

PHP Code:

require_once('./includes/functions_articles.php'); 

And finally

PHP Code:

// ### Start Articles

        
$featuredarticle unserialize($datastore['featuredarticle']);
        if (
$featuredarticle['id'])
        {
            
$feature $DB_site->query_first("SELECT article.*, articlepost.*, articlecategory.options AS options FROM " TABLE_PREFIX "article AS article
            INNER JOIN " 
TABLE_PREFIX "articlepost AS articlepost ON (articlepost.postid = article.firstpostid)
            INNER JOIN " 
TABLE_PREFIX "articlecategory AS articlecategory ON (articlecategory.categoryid = article.categoryid)
            WHERE article.articleid=
$featuredarticle[id]");
        }
        if (!empty(
$feature['title']))
        {
        
            
// do html
            
if ($feature['options'] & 256)
            {
                
$dohtml 1;
            }
            
            if (
$feature['options'] & 512)
            {
                
$dosmilies 1;
            }
            
            
// get an attachment, if there's one with a thumnail
            
$attachment $DB_site->query_first("SELECT attachmentid FROM " TABLE_PREFIX "articleattachment WHERE articleid=$featuredarticle[id] AND thumbnail_dateline>1 ORDER BY RAND() LIMIT 0,1");
            if (!empty(
$attachment['attachmentid']))
            {
                
$GLOBALS['isattachment'] = true;
            }            
            
            require_once(
'./includes/functions_bbcodeparse.php');
            
$feature['postbody'] = truncate_text($feature['postbody'], $vboptions['featuredlength'], 1);
            
$feature['postbody'] = parse_bbcode2($feature['postbody'], $dohtml0$dosmilies1);
    
            eval(
'$articlecontent .= "' fetch_template('article_featured') . '";');
        }
        
// ### End Articles


// ### ALL DONE! SPIT OUT THE HTML AND LET'S GET OUTA HERE... ###
eval('$articlecontent .= "' fetch_template('article_featured') . '";');
eval(
'$navbar = "' fetch_template('navbar') . '";');
eval(
'print_output("' fetch_template('FORUMHOME') . '");'); 

However, this only displays the template, like I said. It doesn't show the featured article.

Hey I figured out how to add the featured article to the Forum Home...

You basically do everything you just did... plus

add $articlecontent to your FORUMHOME template

also in your index.php file

change
PHP Code:

$specialtemplates = array(
    
'userstats',
    
'birthdaycache',
    
'maxloggedin',
    
'iconcache',
    
'eventcache',
    
'mailqueue' 


to
PHP Code:

$specialtemplates = array(
    
'userstats',
    
'birthdaycache',
    
'maxloggedin',
    
'iconcache',
    
'eventcache',
    
'mailqueue',
    
'featuredarticle'
); 

Now whenever you feature an article it will also show on the Forum home... hope that helps.

mello_mike 01-04-2005 09:33 PM

OH I Just noticed something.. there's a change that have to be made in order to get the featured article from showing up twice on the forum home.

in your Index.php file Change

PHP Code:

// ### ALL DONE! SPIT OUT THE HTML AND LET'S GET OUTA HERE... ###
eval('$articlecontent .= "' fetch_template('article_featured') . '";');
eval(
'$navbar = "' fetch_template('navbar') . '";');
eval(
'print_output("' fetch_template('FORUMHOME') . '");'); 

to
PHP Code:

// ### ALL DONE! SPIT OUT THE HTML AND LET'S GET OUTA HERE... ###
eval('$navbar = "' fetch_template('navbar') . '";');
eval(
'print_output("' fetch_template('FORUMHOME') . '");'); 


GoTTi 01-04-2005 11:08 PM

.........

nathanaus 01-05-2005 10:49 AM

This is going to sound dumb - please don't laugh.

i installed this script/hack. Uhhh how do I actually write an article? In the forum proper you have buttons "new thread" in this hack I see no means in which to write an article.

I visited the vb3articles.com site, and again (as a guest user) saw no ability to write an article. I then registered on that site, and couldn't get back to the article page - because as a registered user I didn't have permission to view the article page, logging out though I did have permission. So as a registered user I couldn't see if there was a new article button or soething there to allow me to actually write the article.

What did I miss there?

Also (I'm new to VB) why are there a whole other set of "add ons" fo this? Has development on this stopped and moved to someone else?

SoloX 01-06-2005 01:08 AM

I have installed the latest security patch as given out.
I have set the moderate articles on, If I go to the Article category, the article does not appear, but it does appear in the categories list under the 'latest article' column and people can view it (without us approving it first).

How can I make so that the un-approved articles dont appear at all anywhere in the system?

Thanks

Paul M 01-06-2005 01:24 AM

Quote:

Originally Posted by SoloX
I have installed the latest security patch as given out.
I have set the moderate articles on, If I go to the Article category, the article does not appear, but it does appear in the categories list under the 'latest article' column and people can view it (without us approving it first).

How can I make so that the un-approved articles dont appear at all anywhere in the system?

Thanks

The fact people can view unapproved articles is another bug I fixed when I first installed and tested our version. The fact that they appear in the list at all is a more complicated problem to fix and I didn't bother fixing for us - since people could no longer view the article anyway.

I'm off to bed now so I'll dig the first fix out for you tomorrow. :)

dina 01-06-2005 01:38 PM

Something weird is going on with this mod. I just upgraded to 3.0.4 and just reinstalled the mod in the files and it worked fine. Then suddently today I got this e-mail:

Quote:

Database error in vBulletin 3.0.4:

Invalid SQL:
SELECT * FROM articlepost
WHERE type=2 AND articleid=5 AND valid=1
ORDER BY postdateline ASC
LIMIT 0,

mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 4
I try entering the articles and get the same error again. Before this happened I could view every article and even see the "preview" of one of the articles on top of the page.
Now I can't even view the settings for the articles in vBulletin Options (can view the other settings in admincp though).

I've tried running the install script again, but of course it fails when it tries to add new tables, because the tables are already there.

I don't want to remove the tables from the database and reinstall completely, as I'll lose over a hundred articles.

And yes, I have checked the file changes at least 10 times.

lanc3lot 01-07-2005 11:14 PM

Paul M have u updated your Articles hack to 3.0.5 version of Vb? Is it still working?

I say this, as in the first install of this hack, it has some changes for the init.php file...

Anybody else knows if its combatible?

Paul M 01-07-2005 11:22 PM

Quote:

Originally Posted by lanc3lot
Paul M have u updated your Articles hack to 3.0.5 version of Vb? Is it still working?

No, we are remaiing on 3.0.3 and just implementing the new init.php file (what I call 3.0.3+ ;)).

lanc3lot 01-07-2005 11:27 PM

Yep i will do the same as u, but the question is, if u do that...is the articles run ok?

As the new init.php file, will overwrite the old one and as u can see, the articles hack uses init.php file

:)

Paul M 01-07-2005 11:30 PM

Quote:

Originally Posted by lanc3lot
Yep i will do the same as u, but the question is, if u do that...is the articles run ok?

As the new init.php file, will overwrite the old one and as u can see, the articles hack uses init.php file

:)

Well yes, obviously you have to re-add the permissions array to the new init.php, otherwise it won't work .... :glasses:

SVTOA 01-07-2005 11:32 PM

Works fine for me with the 3.0.5 init.php and Paul's update to article.php

lanc3lot 01-07-2005 11:50 PM

Thanks:)

Paul M 01-09-2005 01:58 AM

I bit the bullet and upgraded our forum to 3.0.5 tonight. The vB upgrade script nicely wiped out all the articles templates. :rolleyes:

This is because they are installed as Master templates, and the upgrade script wipes and replaces all the master templates. Therefore i had to restore the templates from the backup I took (you do all backup before upgrading don't you ;)).

Alternatively, I believe the articles install script has the option to install the templates only. Now that the templates are restored it seems to be functioning okay. :)

steven s 01-09-2005 03:15 AM

After updating to 3.0.5 articles.php? showed be a blank page.
I ran the install script for templates only. That restored everything.
I didn't loose my articles.

GoTTi 01-09-2005 06:49 PM

happens when i run the arcade.php?do=challenges

Database error in vBulletin 3.0.0:

Invalid SQL:
SELECT user.avatarid, user.avatarrevision, avatarpath, NOT ISNULL(avatardata) AS hascustom, customavatar.dateline
FROM user AS user
LEFT JOIN avatar AS avatar ON avatar.avatarid = user.avatarid
LEFT JOIN customavatar AS customavatar ON customavatar.userid = user.userid
WHERE user.userid =
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 5

mysql error number: 1064

Paul M 01-09-2005 07:42 PM

Um, this is the articles hack thread, not arcade ??

GoTTi 01-09-2005 10:14 PM

lol sh!t...

/me slaps himself

dapence 01-10-2005 07:36 AM

Let me add another "Great 'hack' dude!!!"

I thought I'd contribute a 'New Article' button in the vB 3.0 format (default colors) just for symmetry.

Thanks again ...

Paul M 01-10-2005 10:29 AM

Hey, thanks for the button, I will give it a try. :)

Amavisca 01-10-2005 04:51 PM

I need some help. I did some customize with this hac, everything is running fine but yesterday I upgrade the forum to v 3.05 , the article hack is still running ok but when I click on edit article, it went to blank page. Anybody know what is wrong???

Paul M 01-10-2005 06:12 PM

You need to re-install the original templates.

mholtum 01-10-2005 06:21 PM

I reinstalled the tempalates and everything works great except my attatchments are not showing as thumbnails. I seem to remember a patch? Can someone point me in the right direction?

Amavisca 01-10-2005 06:40 PM

Quote:

Originally Posted by Paul M
You need to re-install the original templates.


Got it done. Thnx u very much Paul

mholtum 01-10-2005 10:26 PM

bump ~ anyone know where I can get the patch so my thumbs will dispplay correctly?

mholtum 01-10-2005 11:55 PM

Nobody knows why I am not showing a thumbnail and only a text link?

mholtum 01-11-2005 03:40 PM

figured it out myself.

valentine 01-11-2005 06:55 PM

What extra mods might be required to get this to run "fully" with CMPS?

I've installed it and everything works just fine - but I dont have any admin functions in AdminCP - ie, all my links are there for admin functions on CMPS, vbChat, etc - but nothing that says "Articles" on it. I know its working correctly because if I go to www.domain.com/articles.php the page is there.

EDIT:that probably isnt very clear is it? What I mean is there is no "Articles" section appearing in the left column of the AdminCP.

Thankyou for any help.



Val

valentine 01-12-2005 04:10 PM

Does anyone know the answer to this?

If its already been posted, I'm sorry for asking it again, but to go through 50-odd threads and find it - nightmare.

j_86 01-12-2005 04:33 PM

Brand new article system, working fully with 3.0.5 and with numerous features: https://vborg.vbsupport.ru/showthrea...9&goto=newpost

Paul M 01-12-2005 08:53 PM

Quote:

Originally Posted by rossored
Does anyone know the answer to this?

If its already been posted, I'm sorry for asking it again, but to go through 50-odd threads and find it - nightmare.

Have you actually done the edit to the admincp index file ?

crd 01-12-2005 08:59 PM

When I look the live demo and I click the comments column it is the same thing as the article column. also when I sign up as forum member now I am restricted from seeing the page but when I just come in as a guest it let s me see it. So I am cofused.

valentine 01-13-2005 06:48 AM

Quote:

Originally Posted by Paul M
Have you actually done the edit to the admincp index file ?

Hmm.

Like a jerk, I'd done it but hadnt uploaded it... :rolleyes: All works.

Thanks for that. Will remember to engage brain before asking next time.

Val

lanc3lot 01-15-2005 01:10 AM

hmm, it seems john will not post the new version he talked about..maybe he havent found time...its pity:(

Anyway, anybody knows, how can i uninstall this? Have to just undo whatever i have done during install or is there some script?

Thanks again, its pity john didnt continue this hack, could have been something very usefull:)

KTBleeding 01-15-2005 01:14 AM

Quote:

Originally Posted by lanc3lot
hmm, it seems john will not post the new version he talked about..maybe he havent found time...its pity:(

Anyway, anybody knows, how can i uninstall this? Have to just undo whatever i have done during install or is there some script?

Thanks again, its pity john didnt continue this hack, could have been something very usefull:)

Well, you can reverse all the file edits in the instructions, and remove the article files, but that still leaves the database tables in you mysql. :)

lanc3lot 01-15-2005 01:24 AM

Is there any script to run, so i can erase them as well?

John 01-15-2005 01:30 AM

Quote:

Originally Posted by lanc3lot
hmm, it seems john will not post the new version he talked about..maybe he havent found time...its pity:(

Anyway, anybody knows, how can i uninstall this? Have to just undo whatever i have done during install or is there some script?

Thanks again, its pity john didnt continue this hack, could have been something very usefull:)

Sorry, I haven't had the time to release and support it. If I can find the time I will, but I can't promise anything.


All times are GMT. The time now is 06:29 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.02322 seconds
  • Memory Usage 1,871KB
  • 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
  • (7)bbcode_php_printable
  • (10)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
  • (40)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