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)

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


All times are GMT. The time now is 11:13 AM.

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.02181 seconds
  • Memory Usage 1,756KB
  • 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_code_printable
  • (4)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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