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)

restless 11-19-2004 05:06 PM

Quote:

Originally Posted by TheMusicMan
I had to modify the code to allow Moderators to be able to Moderate Articles and any comments submitted about them...

can you let me know how you did this?

TheMusicMan 11-19-2004 05:27 PM

Quote:

Originally Posted by restless
can you let me know how you did this?

Sure... I asked Colin F if he could do it for me... and he did.... hehe

Jason McConnell 11-22-2004 03:30 AM

Quote:

Originally Posted by welo
Well, I started writing a bugfix document for this by starting at the beginning of this thread and going all the way through, and most of the problems I see people having are not due to the fault of the script. I won't be recompiling the documentation like I originally thought, but for the newcomers (who probably won't read this post anyway once it drifts back one page), here are the relevant issues:I think that's about it.


Awesome!!! Thanks for compiling this list... only question I have now is: Is there a way to un-Feature an article once it's been featured?

TCattitude 11-25-2004 02:49 AM

Any official update to this hack?
(Bugs fixes and new features)

Or it being forgotten by the author? :(

bendigo-tech 11-25-2004 03:02 AM

Quote:

Originally Posted by TCattitude
Or it being forgotten by the author? :(

Seem a little forgotten if you ask me.

welo 11-25-2004 03:26 AM

I contacted John recently and offered to coordinate an effort to generate some funding for upgrades and he didn't bite, so I assume it's more a time factor for him than money. This hack has a lot of potential. Hopefully one day he'll be able to get back to it :).

lanc3lot 11-27-2004 03:26 PM

Hello...

Samir did u remember me?:)

I have a question, maybe u have already solved:

How can i make this hack, to when i write a new article, to can upload more than one images in the same time?

I had put in my VB Option, to have 5 for example uploads of attachments, but it didnt "Worked" for V3 Articles...Anybody knows anything about that?

Thanks a lot:)

SamirDarji 11-27-2004 04:33 PM

Yes, I remember. :)

I haven't been working too much with articles after I played with it on my test server. There are just too many issues to install it on my live server right now.

But I know that the attachment system used by the articles hack is different than vb's built-in system and that's why a lot of the attachment related problems exist. The only way that you can upload mulitple images is to change the articles code to allow it. Unfortunately, I don't even know where to look. :(

Sorry I couldn't be of more help.

tteal 11-27-2004 08:46 PM

Unable to add cookies, header already sent. <---- that is the error I get with this script.

Qwest 11-28-2004 06:23 AM

Anyone figured out how to get this hack to allow adsense code in the articles?

I want to allow my users to ad adsense ads to the article aor have it auto submit ads in the article body.

dnoyeb2002 11-28-2004 10:07 PM

Great Mod!

Just one question, if someone would be willing to help me. . .

I am looking to order the articles in order of title, as opposed to id # . . . could someone possibly help me figure out where I would need the ORDER BY title ASC line to go please . . . thanks!

Thanks In Advance

JustAskJulie 11-29-2004 11:29 PM

Quote:

Originally Posted by Qwest
Anyone figured out how to get this hack to allow adsense code in the articles?

I want to allow my users to ad adsense ads to the article aor have it auto submit ads in the article body.

While I don't know if you could add the code into the actual article body (ie. allow the user who submitted the article to add the code), you could add the code to the template and it would show up on every article.

For that matter, what type of code does Adsense use? is it not just HTML? If so, then you should be able to just allow HTML in the articles and then users could submit the code if they chose to.

bendigo-tech 11-29-2004 11:41 PM

Quote:

Originally Posted by JustAskJulie
For that matter, what type of code does Adsense use? is it not just HTML? If so, then you should be able to just allow HTML in the articles and then users could submit the code if they chose to.

Seems to me like you have just answered your own question. :)

smdani 11-30-2004 07:33 AM

Good hack, but it is very buggy and standalone is not a good idea. I unistall and wait for next release. THANKS A LOT!!!!

Some Bugs found:
- If you [ Feature This Article ] you can not undo.
- When I attach an image I can only see a X where image must be loaded
Thumbnails work fine on my forum. The article thumbnails are not working.
- I have just see at your articles site that someone hacked your articles system, maybe there is a way of editing articles without permissions
- Last user who made a comment isnt linked to his profile (linkvalue is empty
- Questionmarks wont be parsed (it shows the HTML-Code instead)
- When editing an article, if you preview the changes and then save it, it saves the original. When you click preview, it enters the original text in the textbox.

Some suggestions for the future
- set permissions on each category
- vbulletin Search system index articles - Integrated with vBulletin Search
- Guests can write comments
- Printable Version for Articles
- New Articles Shown in Bold
- Ability to Move Articles to Different Categories
- Listing in Who's Online
* Viewing Article
* Article Title (with link to specific article)
- External Javascript feed to show last articles anywhere on the website
- A "Byline" field to be displayed next to the article. Too often I will upload an article but it was actually written by somebody else.
- integrate this into the forum itself, so that articles automatically become threads and comments are replies

intrigue 12-01-2004 07:19 PM

hey i cant seem to find the place where to post new articles and also is the featured article hack a seperate thing?
.matt

Pitman 12-02-2004 02:57 AM

Quote:

Originally Posted by smdani
- I have just see at your articles site that someone hacked your articles system, maybe there is a way of editing articles without permissions

In article.php, Search For:

Code:

        $article = $DB_site->query_first("
        SELECT article.*, articlepost.postbody AS content, article.articlehash FROM " . TABLE_PREFIX . "article AS article
        INNER JOIN " . TABLE_PREFIX . "articlepost AS articlepost ON(articlepost.postid = article.firstpostid)
        WHERE article.articleid=$articleid");

Just after it, add this:

Code:

        if ($article['articleuserid'] !== $bbuserinfo['userid'])
        {
                if (!($permissions['articlepermissions'] & CANEDOTHART))
                {
                        print_no_permission();
                }
        }
        else
        {
                if (!($permissions['articlepermissions'] & CANEDOWNART))
                {
                        print_no_permission();
                }
        }

That should fix it :)

SilentK 12-02-2004 03:01 AM

I am having some trouble getting this to work.
Quote:

Invalid SQL: SELECT * FROM article
WHERE categoryid=1 AND (articleuserid=485 OR open IN (0,1)) ORDER BY dateline DESC 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 2

mysql error number: 1064
What am I missing? I thought I got everything.

smdani 12-02-2004 05:26 AM

Thnaks a lot Pitman! Now works like a charm.
Do you know how can i unfeatured and article, and how can I let guests write comments?
Really thanks!!!
smdani

Pitman 12-02-2004 02:05 PM

Quote:

Originally Posted by smdani
Thnaks a lot Pitman! Now works like a charm.
Do you know how can i unfeatured and article, and how can I let guests write comments?
Really thanks!!!
smdani

Well, the only way to unfeature an article is to feature another one. If you don't want any article to be featured, ever, you can just remove the HTML from the templates.

As for the guests to be able to post comments, there are permissions for that, but they don't work. I never noticed that, but if I get time to figure it out, I'll let you know. :)

Pitman 12-02-2004 07:04 PM

It was only showing the comment parts of an article to users with a userid and then taking permissions into account. This should fix it:

In the template article_display, Search for AND Remove:

HTML Code:

<if condition="$bbuserinfo['userid'] != 0">
Search for:

HTML Code:

<div class="vbmenu_popup" id="articletools_menu" style="display:none">
Above it, you should see:

HTML Code:

</if></if>
Replace that with:

HTML Code:

</if>
Then save the template ;)

smdani 12-02-2004 07:49 PM

Really really thanks Pit!!!
You looks like the creator of V3Article!!
Thanks again!

Paul M 12-02-2004 09:13 PM

Quote:

Originally Posted by Pitman
As for the guests to be able to post comments, there are permissions for that, but they don't work. I never noticed that, but if I get time to figure it out, I'll let you know. :)

The bug/problem is the same for all permission tests in arcade.php - he uses a NOT ("!") and "&" test - but does not enclose the test in brackets - for example ;

if (!$permissions['articlepermissions'] & CANFEATURE)

which should be

if (!($permissions['articlepermissions'] & CANFEATURE))

to work properly (anyone can make an article featured atm).

I just spent an hour or so fixing all these permission holes

:tired:

Pitman 12-02-2004 10:31 PM

Quote:

Originally Posted by Paul M
The bug/problem is the same for all permission tests in arcade.php - he uses a NOT ("!") and "&" test - but does not enclose the test in brackets - for example ;

if (!$permissions['articlepermissions'] & CANFEATURE)

which should be

if (!($permissions['articlepermissions'] & CANFEATURE))

to work properly (anyone can make an article featured atm).

I just spent an hour or so fixing all these permission holes

:tired:

Yeah Paul, I noticed that most of them are like if (!$permissions['articlepermissions'] & CANFEATURE)

There are a few in there that are right though, hopefully he will release a new version soon. :)

Qwest 12-03-2004 12:00 PM

OK for all those who answered my question (or tried to) No you cannot simply insert the Adsense code into the article because:

#1 It's Javascript, so for obvious reasons you don't want users able to submit JavaScript in the article body.

#2 It would also take some HTML tweaking that not all users would be familiar with trying to get the articles to show where they want them.

Soooo...

Since revenue sharing (IMO) will become the new "it" thing for webmasters I decided to allow my members to make money off of articles they write for my site.

See an example of how the articles look here

Basically what I've done is modified v3articles to insert members' Google Adsense ID into the google code displayed along with their article. Whenever a user writes an article their Adsense ID (an optional custom profile field) is inserted along with their channel ID in case they want to track the performance of their adds on my site. I don't do the 50/50 thing. They make ALL of teh money generated by clicks from their article. I make money with ads on other parts of the site and my own articles.

So what do you think?

Qwest 12-03-2004 12:04 PM

Suggestion: Will someone please recompile this download with the bug fixes in place?
I'd do it but I'm busy securing other parts of my site as well.

Oh yeah and I'm wondering why I never got an email alert from the AUTHOR notifying me of such a huge vulnerablity?

Because of all the bugs that are suddenly popping up I'm thinking of recoding this thing from the ground up using the code for snippets only.

flstreetscene 12-04-2004 02:31 AM

How do I remove this last part from the vBulletin Options page in the Admin CP after uninstallation;

http://www.floridastreetscene.com/up...zeno/trace.gif

It's all the way in the bottom.

Thanks.

deathemperor 12-04-2004 06:33 AM

Quote:

Originally Posted by Qwest
Suggestion: Will someone please recompile this download with the bug fixes in place?
I'd do it but I'm busy securing other parts of my site as well.

Oh yeah and I'm wondering why I never got an email alert from the AUTHOR notifying me of such a huge vulnerablity?

Because of all the bugs that are suddenly popping up I'm thinking of recoding this thing from the ground up using the code for snippets only.


well why don't you just edit it like the instrucstion ? isn't it very simple ?

I don't think John knows this already, if yes he should have given a official fix.

or maybe we should email him.

Guy G 12-04-2004 02:24 PM

Will thos work on 3.0.3?

pingme 12-04-2004 04:39 PM

Quote:

Originally Posted by Zorobz
Will thos work on 3.0.3?


Yes, I am using it with 303 :)

Guy G 12-04-2004 04:43 PM

thanks pingme :)
any side notes? fixes i would need for it?

bold 12-04-2004 04:46 PM

Quote:

Originally Posted by Zorobz
thanks pingme :)
any side notes? fixes i would need for it?

too many. :( i just uninstalled mine.

Guy G 12-04-2004 05:18 PM

Quote:

Originally Posted by bold
too many. :( i just uninstalled mine.

:(:( but this is critical for meh...
why did u uninstall it? what bugs ect was there that it was so unbareable?

bold 12-04-2004 07:13 PM

Quote:

Originally Posted by Zorobz
:(:( but this is critical for meh...
why did u uninstall it? what bugs ect was there that it was so unbareable?

they list them in this thread. :) i just found it easier making a new forum and posting articles there.

Guy G 12-04-2004 07:29 PM

but than i loose many featurs of the hack... did u use 3.0.3 btw?

Qwest 12-04-2004 11:23 PM

Quote:

Originally Posted by deathemperor
well why don't you just edit it like the instrucstion ? isn't it very simple ?

I don't think John knows this already, if yes he should have given a official fix.

or maybe we should email him.

Sounds good. Let's just leave it like this for others to download and get their boards hacked too.

Great idea...

deathemperor 12-05-2004 04:11 AM

Quote:

Originally Posted by Qwest
Sounds good. Let's just leave it like this for others to download and get their boards hacked too.

Great idea...

don't tell me that you can't see the fix note, eh ?
you think that someone is able to re-release the package that only John can ?
no, no one can, mate

Paul M 12-05-2004 10:17 AM

Quote:

Originally Posted by deathemperor
don't tell me that you can't see the fix note, eh ?
you think that someone is able to re-release the package that only John can ?
no, no one can, mate

The "fix" note only addresses one small part of the problem, it requires a number of changes to plug all the holes.

deathemperor 12-07-2004 04:48 AM

Quote:

Originally Posted by Pitman
if (!$permissions['articlepermissions'] & CANFEATURE)

There are a few in there that are right though, hopefully he will release a new version soon. :)


WRONG, if it's only if (!$permissions['articlepermissions'] & CANFEATURE) then this is totally incorrect, it is never going to work, it MUST be: if (!($permissions['articlepermissions'] & CANFEATURE))

I've spent half a day to fix all issues by myself and fortunately yet disappointedly I found alot of bugs. It looks like this hack was coded very carelessly and uncompleted. and I wonder why this could be a HoTM (!?!)

this is a fix done by me, I don't know if there're still any but without these any board installed this can terribly be hacked I believe.

KTBleeding 12-07-2004 01:32 PM

Quote:

Originally Posted by deathemperor
WRONG, if it's only if (!$permissions['articlepermissions'] & CANFEATURE) then this is totally incorrect, it is never going to work, it MUST be: if (!($permissions['articlepermissions'] & CANFEATURE))

I've spent half a day to fix all issues by myself and fortunately yet disappointedly I found alot of bugs. It looks like this hack was coded very carelessly and uncompleted. and I wonder why this could be a HoTM (!?!)

this is a fix done by me, I don't know if there're still any but without these any board installed this can terribly be hacked I believe.

Awesome!

One problem though. I can't find this at all:

Code:

FIND IN article_display:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
<if condition="(($article['articleuserid'] == $bbuserinfo['userid']) AND ($permissions['articlepermissions'] & CANEDOWNART)) OR (($article['articleuserid'] != $bbuserinfo['userid']) AND ($permissions['articlepermissions'] & CANEDOTHART))">
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

This is the closest one to it I could find:
Code:

<if condition="(($article['articleuserid'] == $bbuserinfo['userid']) AND ($permissions['articlepermissions'] & CANEDOWNART)) OR ($permissions['articlepermissions'] & CANEDOTHART)
Is that the one you're talking about?

PS: Thanks for updating us with a more secure script.

Guy G 12-07-2004 02:32 PM

Code:

Database error in vBulletin 3.0.3:

Invalid SQL: SELECT articlepost.*, article.categoryid FROM vb3_articlepost
                                                                          INNER JOIN vb3_article AS article ON (article.articleid = articlepost.articleid)
                                                                          WHERE articlepost.postid=17
mysql error: Unknown table 'articlepost'

mysql error number: 1051


getting error when trying to edit a comment... any ideas pleasE?


All times are GMT. The time now is 07:44 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.02969 seconds
  • Memory Usage 1,862KB
  • 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
  • (5)bbcode_code_printable
  • (4)bbcode_html_printable
  • (21)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