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)
-   -   Geek Article System 2.0 (lite) (https://vborg.vbsupport.ru/showthread.php?t=72825)

The Geek 01-03-2005 08:18 PM

I updated the package to version 2.0

Whats different?

1- Carrid the 'article' theme through to the rest of showthread.php and even forumdisplay.php by adding 2 more templates. Granted, these changes are only subtle when compared to the first yet I felt it needed to be done for completeness.
2- Grouped phrases into their own lot
3- Added a couple of buttons

To upgrade, download the latest release and follow the upgrade instructions (they are pretty straight forward).

nJoy

The Geek 01-03-2005 08:20 PM

Quote:

Originally Posted by TCB
Although V3articles has very nice features and more options to pull data from it (like showing 'last x articles', 'x most popular articles', and 'featured article') that can be displayed on the forum or homepage (vbadvanced) this one has the advantages that it's easy and that it's nested in the forum tree.

Will install it tonight :D

A vBadvanced module block would be a piece o cake to do (essentially just latest topics for pre defined forums).

Ill look into it as it could be a cool addition.

cclaerhout 01-03-2005 09:31 PM

Very nice update. I've just seen a little problem under Firefox : when you want to vote for an article, little stars don't show, where as they do with the normal templates. And again congratulations !

The Geek 01-03-2005 09:56 PM

Thanks for that. I forgot a phrase in the install package (though in my firfox, it showed the stars but not the title of the drop down).

I have updated the install file, however you can quickly fix yours by adding a new phrase:
Phrasegroup: GeekArticles
variable: geek_articles_rate_this_article
Text: Rate this Article

Thanks again!

nJoy

cclaerhout 01-03-2005 11:27 PM

Here's a little translation for French users :-)
(only the visible phrases translated).

The Geek 01-04-2005 07:34 AM

Quote:

Originally Posted by cclaerhout
Here's a little translation for French users :-)
(only the visible phrases translated).

Sweet! Ill fold that into the next update as an option to install.

TCB 01-04-2005 11:15 AM

I got various layout problems with this hack.

The top:
http://www.tcb-files.com/temp/541da952e5525c.jpg
1. There are no 'Article Tools', 'Search This Article' or 'Rate article' links
2. The foldout menu's do work however, but give empty boxes (like under admin tools there are only empty boxes)
3. There's no dark line under that table (where the article tools, search this article and rate this article links should be). It also have a different outline compared to the article table and the comments tables.

The bottom:
http://www.tcb-files.com/temp/541da955b67193.jpg
1. the two tables where 'comments' (first row) and the 'Make a comment on this article' textlink (second row) doesn't feature any text.
3. There are no 'Previous Article | Next Article' textlinks, only the << and >> signs.


It seems like it has to do something with the language. But I only have the default language and the default template installed. I have checked for the phrases, and they are installed. The alignment problem doesn't exist in the normal showthread.

I also see links to images like 'background="images/dp/skin_images/forumbox_top_tile.gif' in the templates. Those files are meant for your skin, but aren't working for people having a different skin.

The Geek 01-04-2005 11:20 AM

Looks like much (if not all) of your phrases did not install.

Can you PM me a link and also do a quick phrase search for the variable geek_articles_next_article

Did you get any errors running the install script?

Cheers

TCB 01-04-2005 11:31 AM

All phrases have been installed (already checked). I will run through all lines that I have to edit again :D

agiacosa 01-04-2005 11:41 AM

Sorry if this is a stupid question, but... Can articles have inline images in them?

Thanks.

Art

P.S. Excellent work by the way.

TCB 01-04-2005 11:53 AM

Quote:

Originally Posted by the nail geek
Looks like much (if not all) of your phrases did not install.

Can you PM me a link and also do a quick phrase search for the variable geek_articles_next_article

Did you get any errors running the install script?

Cheers


https://vborg.vbsupport.ru/

And I have also checked that the geek_articles phrases are loaded in the php files, like in showthread.php:
PHP Code:

$phrasegroups = array('forumdisplay','geek_articles'); 

So the phrases are there, the geek_articles is added to the phrasegroups, and still the language doesn't show up :ermm:

The Geek 01-04-2005 11:53 AM

Quote:

Originally Posted by TCB
I also see links to images like 'background="images/dp/skin_images/forumbox_top_tile.gif' in the templates. Those files are meant for your skin, but aren't working for people having a different skin.

Must have been asleep last night to have missed that!
That is most likely why your layout went funked. However, you are still missing all of the phrases that I can see. The only thing I can think of is that you didnt add geek_articles to your phrasegroups.

I have updated the package to remove those instance of my style 'additions' (that I found). I also integrated cclaerhout's french phrases (cheers) into the install package. Before it installs the phrases it gives you the option to install in english or french.

Thanks all!

The Geek 01-04-2005 11:55 AM

Quote:

Originally Posted by TCB
So the phrases are there, the geek_articles is added to the phrasegroups, and still the language doesn't show up :ermm:

so your showthreads.php phrasegroup line looks like this:
PHP Code:

$phrasegroups = array('posting''postbit''showthread','geek_articles'); 


The Geek 01-04-2005 11:56 AM

Quote:

Originally Posted by agiacosa
Sorry if this is a stupid question, but... Can articles have inline images in them?

Thanks.

Art

P.S. Excellent work by the way.

yup.

Thanks ;)

TCB 01-04-2005 12:11 PM

I have uninstalled the hack (using the install script) and then re-installed the latest version (with the english/french option). And now it works :D

The Geek 01-04-2005 12:15 PM

sweet. (was getting nervous for a minute ;) )

acrimony 01-04-2005 01:31 PM

Grrr! Just after I started entering the phrases manually :rolleyes:

cclaerhout 01-04-2005 02:08 PM

Yesterday i saw the size problem between boxes, but i was too tired to tell you lol
I've installed again with your new installation file, and it rocks both in english and french ! Thanks to have integrated my translation. And again congratulations for your hack, your humour inside it (;-) ) and the support you give us.

peterska2 01-04-2005 06:00 PM

Typical. I install yesterday then you release an update today.

Oh well it's still good work. :D

[high]* peterska2 clicks install[/high]

nathanaus 01-05-2005 01:39 PM

Nice hack - I think :) Errr I'm confused. Followed instructions to the letter. I go to the forum that I speicifed to be the article forum and well.... nothing.

There are no buttons to click to write an article with. I know it's something I've done wrong but I have no idea what. I'm new to VB so be gentle :)

Attached image of what I'm seeing. Any ideas?

The Geek 01-05-2005 02:21 PM

Quote:

Originally Posted by nathanaus
Nice hack - I think :) Errr I'm confused. Followed instructions to the letter. I go to the forum that I speicifed to be the article forum and well.... nothing.

There are no buttons to click to write an article with. I know it's something I've done wrong but I have no idea what. I'm new to VB so be gentle :)

Attached image of what I'm seeing. Any ideas?

Hey there naathanus. Are there any threads in there? Also, did you upload the newarticle.gif button to your images/buttons folder?

Since you are running a modified skin, you may need to copy it to wherever that skin looks to for its buttons. In all reality though, you may need to create a button called newarticle.gif that would look better on your skin (same thing for comment.gif)

Hope this helps ;)

The Geek 01-05-2005 02:36 PM

Just as an FYI, I created a 'Latest articles' module for vBadvanced found here. Those using vBadvanced CMPS should give it a whirl.

The Geek 01-05-2005 07:12 PM

Due to popular request, I have also released a Featured/Random Article module for vBaCMPS here->https://vborg.vbsupport.ru/showthread.php?t=73836

SamirDarji 01-05-2005 07:47 PM

Wow, nice modules!

cclaerhout 01-05-2005 08:27 PM

Thanks for theses modules. I'm going to use one of them for sure :)

nathanaus 01-05-2005 08:56 PM

Quote:

Originally Posted by the nail geek
Hey there naathanus. Are there any threads in there? Also, did you upload the newarticle.gif button to your images/buttons folder?

Since you are running a modified skin, you may need to copy it to wherever that skin looks to for its buttons. In all reality though, you may need to create a button called newarticle.gif that would look better on your skin (same thing for comment.gif)

Hope this helps ;)

Hi
Sorry for the delay in getting back to you - I fell asleep at the computer :(
There are no threads - I'm testing this and all mods - on a test forum. I created the thread especially for this mod. Ith as an ID of 3 so could then go add 3 to the php_start option.
I uploaded the buttons but I'm thinking I may have added them to the default image folder not the modified skin's foler.
Ultimately I'll change the buttons but for now as it's on a test forum it doesn't matter :)

I'll try the button moving and let you know

nathanaus 01-05-2005 09:05 PM

Yep okay when I uploaded the images to the correct diectory I suddenly had an option to make a new article (amazing huh?). However I still have the issue where, in the title bar of where the articles are listed it shows up as
Quote:

: articles
In the normal forum section, that area would be:
Quote:

Thread / Thread Starter
In your demo you link to that section on your forum says:
Quote:

Article / Written by
Another question, in your demo link you have at the top of the article:
Quote:

Auctioning your values
Written by The Nail Geek
Is there an extra step to get the "Written by" part to show up?
Thanks :)

The Geek 01-05-2005 09:09 PM

Quote:

Originally Posted by nathanaus
Yep okay when I uploaded the images to the correct diectory I suddenly had an option to make a new article (amazing huh?). However I still have the issue where, in the title bar of where the articles are listed it shows up as

In the normal forum section, that area would be:
In your demo you link to that section on your forum says:

Another question, in your demo link you have at the top of the article:

Is there an extra step to get the "Written by" part to show up?
Thanks :)

PM or post me a link. It sounds like your phrases arent installed correctly

memobug 01-05-2005 11:54 PM

MMMMMultiplepages :)

but they'll be asking for the PrinterFriendly template to go with!

Some article software I have used elsewhere lets you insert a pagebreak tag to create the breaks. Were you thinking along those lines, or perhaps would separate posts by the author be separate pages?

Regards,

Matt

rlamego 01-06-2005 01:41 AM

Nathanaus: I had exactly the same issue as yourself and it was solved after a second uninstall -> install.

Nail Geek, I was looking at the files and reviewing the install and it just occurred to me that maybe the installation procedure depends on the changes made to the 2 php files. If so, that would explain why I need to do a second install to get it to display properly.

nathanaus 01-06-2005 02:47 AM

Quote:

Originally Posted by rlamego
Nathanaus: I had exactly the same issue as yourself and it was solved after a second uninstall -> install.

Nail Geek, I was looking at the files and reviewing the install and it just occurred to me that maybe the installation procedure depends on the changes made to the 2 php files. If so, that would explain why I need to do a second install to get it to display properly.

Yep that fixed it. Uninstall then re-install. I'm thinking the mod's need to be done to the files before running the installer. Thanks very much rlamego for the tip :)

So I think if people are planning on adding this great hack, they should do step 2 then step 1 of the insturctions. :)

Great hack :) *clicks install*

The Geek 01-06-2005 05:58 AM

I think TCB had a similar install problem however I cant see for the life of me how the PHP files would do have anything to do with the installation of phrases.
I think it has more to do with the creation of the phrasetype. Ill review the install file... maybe during installation the language isnt rebuilt, but during the uninstall it is.

Anyway... Im glad everyone digs it.

memobug: Yea, I was eyeing the printthread template with a little disdain. I think that will be the next job to tackle.
As far as multipages... that is a little harder. I have managed to work out additional code to do the pagination to keep the articles seperated from the comments (harder than you would think) but it also requires more showthread modifications, a new table added, and some newreply modifications to enter data into that table.
Im away next week and when I get back I will look at cleaning up the pagination routine and look at adding the newreply modifications. Hopefully I may have something in a few weeks.

memobug 01-06-2005 06:34 AM

Oops I had to retype this.

I had two comments and a possible bug for you. Everything installed okay with just these notes

1. It would probably help a lot to number the instruction steps in each of the php script mods. Since you need to switch screens to cut & paste to install this, it is easy to lose track. I think it was some 5 in the first file and 3 in the second

2. As usual, when I installed this one the language changes didn't "take" right away. I had to go into the language admin and pretend to alter one of the terms to give it the kickstart it needed to go. I just searched on GEEK and "edited" the Article Ratings term by clicking OK, then all the terms snapped in. Happens all the time and most probably has nothing to do with you, but worth mentioning in case someone else has a similar problem. (I see now that two posters above did have that behavior!)

3. The bug (I think it is a bug) is related to missing Author icon on relocated articles. I understand that this template is designed to show the Author's avatar in the first post and subsequent posts don't have it, and are treated as comments, right? That is how it behaved when I created a new article. But when using the Thread Move tool, I move old articles that people have written months ago into my new "articles" forum, these articles shows up without any Author avatar and no spiffy Article title or byline next to it. (I tried moving a couple of articles with the same result) When the articles are moved back to their origins, the post title and avatar return.

I tried editing and saving the first post too, but that didn't help. I moved three articles with the same result. All had good avatars and titles. One was my own.

Any ideas?

AN IDEA ABOUT HTML:

This article thing has me really going, and I would like to be able to have HTML in the article posts so I can run the articles in two columns (tried it and it looks cool) and embed images inline, but not have the server risks of enabling HTML in the comments. What do you think about making it so the first post could display HTML but it would strip HTML in subsequent posts?

Regards,

Matt

The Geek 01-06-2005 08:02 AM

Great feedback and suggestions.

Quote:

Originally Posted by memobug
1. It would probably help a lot to number the instruction steps in each of the php script mods. Since you need to switch screens to cut & paste to install this, it is easy to lose track. I think it was some 5 in the first file and 3 in the second

I agree and will try to re-sort this for my next release. Nice suggestion

Quote:

2. As usual, when I installed this one the language changes didn't "take" right away. I had to go into the language admin and pretend to alter one of the terms to give it the kickstart it needed to go. I just searched on GEEK and "edited" the Article Ratings term by clicking OK, then all the terms snapped in. Happens all the time and most probably has nothing to do with you, but worth mentioning in case someone else has a similar problem. (I see now that two posters above did have that behavior!)
Hmm... I am now almost 100% positive that this has something to do with inserting a new phrasetype. I will have to investigate why the language isnt rebuilt correctly after it is added.

Quote:

3. The bug (I think it is a bug) is related to missing Author icon on relocated articles. I understand that this template is designed to show the Author's avatar in the first post and subsequent posts don't have it, and are treated as comments, right? That is how it behaved when I created a new article. But when using the Thread Move tool, I move old articles that people have written months ago into my new "articles" forum, these articles shows up without any Author avatar and no spiffy Article title or byline next to it. (I tried moving a couple of articles with the same result) When the articles are moved back to their origins, the post title and avatar return.
This one is really odd. Are you saying that after the move the threads look just like normal ones? Can you send me a link with a moved article so I can take a peek?

Quote:


AN IDEA ABOUT HTML:

This article thing has me really going, and I would like to be able to have HTML in the article posts so I can run the articles in two columns (tried it and it looks cool) and embed images inline, but not have the server risks of enabling HTML in the comments. What do you think about making it so the first post could display HTML but it would strip HTML in subsequent posts?
Couldnt some bbcode be done to signal a new column?

[column]blahblahblah[/column]
[column]asdfsdfasd[/column]

make the BBcode translations simply add <td>blahblah</td>

I am just speaking off the cuff here so cut me some slack ;)

memobug 01-06-2005 08:49 AM

Hi TNG, here you go

link to an article created in the articles Forum
link to an article moved to the Articles Forum
Link to a two column article for fun (also moved to this forum)

Yes I think you could make some table tags. I saw a posts recently for creating some table tags using special BBCODE. I am thinking of doing all sorts of things in the articles. Everything from including graphics and recommend-it and probably including just a brief intro blurb and IFRAMING content from another Content Management System I have that does multipage stuff, print format and the like. Links to articles by the same author, on a related subject, etc, etc.

Regards,

Matt

P.S. Get some plants in that nailshop to deal with the free radicals and nasty solvents. Dracaena is supposed to be very good. We need you around for future upgrades to this hack ;)

Quote:

Another effective and relatively inexpensive method receiving increasing attention is the use of plants. Plants have two mechanisms for cleaning indoor air. Their leaves absorb toxins, which are transmitted to the roots. The plant then uses them as food. Plants also emit water vapors which act like a pump to pull dirty air toward the roots where it can again be converted into food. Plants can help reduce molds and mildews, too. However, since the soil can release these allergens, it is recommended that gravel be placed over the soil to promote quick drying and minimal airborne particles. Research has shown that filling a room with plants can cut airborne mold and bacteria by 50% to 60%. Some plants are general air purifiers, while other specialize (by reducing formaldehyde in the air, for example).
http://www.brown.edu/Departments/Bro...ects/wats4198/


The Geek 01-06-2005 09:37 AM

hmmm... Have you done any modifications to the template? (just checking ;) )
Can you put this in the first line of your GEEK_POSTBIT_ARTICLE template:
<-- the firstpostid: $thread[firstpostid] -->
(just above <!-- post #$post[postid] --> )

It is failing that test on the articles you have linked to and hence the reson why it thinks its a comment instead of the article. I have moved some articles about on my site and havent had a problem.
Are any of these threads split by chance?

[offtopic]
Thanks for your concern regading the solvents ;)
However, the amount of harmful vapour in a busy salonis about 100-200 times below safety thresholds meaning you are in a much more dangerous arena driving to the plant store to get a new one ;)
Sadly, some solvents simply smell really strong in very low (and very safe) concentrations. However I may just go and get a new plant anyway :)
[/offtopic]

nJoy

Nick0r 01-06-2005 10:56 AM

Great update, someone should made a mod for this to work with daniweb (cscgal)'s SEO hack, so that we can have just for the forum of the articles...

article<ID>-title-title.html instead of post<id>-title-title.html

memobug 01-06-2005 07:18 PM

Quote:

Originally Posted by the nail geek
hmmm... Have you done any modifications to the template? (just checking ;) )
Can you put this in the first line of your GEEK_POSTBIT_ARTICLE template:
<-- the firstpostid: $thread[firstpostid] -->
(just above <!-- post #$post[postid] --> )

It is failing that test on the articles you have linked to and hence the reson why it thinks its a comment instead of the article. I have moved some articles about on my site and havent had a problem.
Are any of these threads split by chance?

Hi, TNG,

1. I made the template change requested.
2. I also tried a simple test of creating, splitting, and moving posts into the article forums and both split pieces behaved correctly as you designed with avatars on the first post.
3. To answer your question, I am not sure if the problem threads were split threads. That was a common way of creating articles on our forum. Someone posts a question and someone else answers with a long, "article-like" reply, so I split it out and they flesh it out a bit more into an article.

However, I am thinking that the problem seems to be with older posts. I believe both the ones I moved with problems were created under vbulletin 2.3.5. The tattler comment you asked me to insert reveals that those problem threads have a firstpost=0... So maybe that firstpost thing is new for 3.0.3?
4. Would I have to change each firstpost field in the database to make it correct, or is there some other way of rebuilding them?


Another topic:

Article ownership:

It seems like it might be necessary in practice for the moderator/admin to be able to attribute an article to someone else. Quite often people send me stuff and I format, edit and post it for them. It would be great if there were a way to go back and make it appear to be theirs.

Regards,

Matt

peterska2 01-06-2005 07:53 PM

@The Nail Geek: Any chance of those vBa CMPS add'ons being done for vBIndex?

The Geek 01-06-2005 07:59 PM

Quote:

Originally Posted by memobug
However, I am thinking that the problem seems to be with older posts. I believe both the ones I moved with problems were created under vbulletin 2.3.5. The tattler comment you asked me to insert reveals that those problem threads have a firstpost=0... So maybe that firstpost thing is new for 3.0.3?
4. Would I have to change each firstpost field in the database to make it correct, or is there some other way of rebuilding them?

Why not just make a script that selects all threads with a firstpostid=0 and update them? I guess it just depends on your quantity of threads that have this situation that you may want to put in as an article.
I guess you could always test the firstpostid in showthread.php and if it is 0, do a quick select to get the first one.

Anyhooo... those are a couple of things that may help you work around the issue.

Quote:

Article ownership:

It seems like it might be necessary in practice for the moderator/admin to be able to attribute an article to someone else. Quite often people send me stuff and I format, edit and post it for them. It would be great if there were a way to go back and make it appear to be theirs.
This is a feature that was requested several pages back. It is dooable, but a little difficult.
In the design I am working on, I am storing any 'extra' article info in a seperate table (hate changes to existing vb tables) that is pulled when a user is browsing an article.
I was going to store an extra 'author' line there, however that causes problems with the forumdisplay pages. You would really want this extra field to be displayed next to the title in forumdisplay. However, what if its not even a member name? Just display the name? No link or anything? Blech. I hate trying to get my head around these things. Guess Ill have to do the later.

BTW: Not sure if its off topic or not... but the pagination did my head in and I am still not sure if I like the way that it looks. Any feedback guys? (personally Im gunning for it all on 1 line)


All times are GMT. The time now is 04:20 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.01843 seconds
  • Memory Usage 1,894KB
  • 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_php_printable
  • (22)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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