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 12-12-2004 10:00 PM

Geek Article System 2.0 (lite)
 
This hack is a simple and effective (but lighter) version of the very popular Geek Article System 3.0 .
This is actually the first Geek Article System which I still support as it offers people who dont need all the whistles and bells of the larger version (multipage, sidebar, bylines) in a far simpler nutshell.

The key reason for me crating GAS was that I wanted my articles (I also use them as tutorials) to be searchable and reside within the Froums. So I made this simple hack. It may not be all singing and dancing, but I think it can moonwalk with the best of them.

Difficulty to install: A cinch
Time to install: ~5 minutes (if that)
Installer: yup

UPDATE v.2c (17/01/2004)
Fixed rouge phrase that didnt install right.

UPDATE v.2 (04/01/2004)
Removed some left over html in geek_postbit_article that was for my style. The extra HTML that was in there may wack out your layout a touch.
Added a missing phrase (geek_articles_rate_this_article)
Installs either English or French phrases (thanks to cclaerhout)

UPDATE V. 2 (03/01/2004)
Added 2 more templates: showthread and forumdisplay variants (though these are much more subtle... mostly phrase changes
Added a couple of buttons (comments and new article)
Grouped phrases into their own lot

UPDATE V. 1.5 (14/12/2004)
Creted a Zip file with installer and ReadMe
Phrased the postbit.
Thats about it.


nJoy

Snow 12-13-2004 06:57 AM

Great hack! I don't suppose there's a way to copy existing articles from vb3 articles or do the authors have to re-post them in the new forum? Also, can this hack be applied to an existing forum instead of creating a new forum?

The Geek 12-13-2004 07:48 AM

Quote:

Originally Posted by Snow
Great hack! I don't suppose there's a way to copy existing articles from vb3 articles or do the authors have to re-post them in the new forum? Also, can this hack be applied to an existing forum instead of creating a new forum?

Thanks Snow!
Sadly, there is no import facility from vB3 Articles.

And yes, you can apply this to any existing forum. You do not have to create a new forum ;)

nJoy

Snatch 12-13-2004 07:51 AM

Warning: Invalid argument supplied for foreach() in /var/www/html/includes/sessions.php on line 476

Unable to add cookies, header already sent.
File: /var/www/html/includes/sessions.php
Line: 476

*G* Cool Demo hihi

The Geek 12-13-2004 07:54 AM

Quote:

Originally Posted by Snatch
Warning: Invalid argument supplied for foreach() in /var/www/html/includes/sessions.php on line 476



Unable to add cookies, header already sent.
File: /var/www/html/includes/sessions.php
Line: 476

*G* Cool Demo hihi

? where are you getting that error ? There is no way this could produce that error!

mcyates 12-13-2004 09:40 AM

Quote:

Originally Posted by the nail geek
? where are you getting that error ? There is no way this could produce that error!

can the articles be transformed to rss or xml?

Snow 12-13-2004 10:32 AM

Quote:

Originally Posted by Snatch
Warning: Invalid argument supplied for foreach() in /var/www/html/includes/sessions.php on line 476



Unable to add cookies, header already sent.
File: /var/www/html/includes/sessions.php
Line: 476

*G* Cool Demo hihi

Did you use the cPanel editor to edit the files? It sometimes adds extra spaces at the end of the file which can cause that "unable to add cookies" error.

Snow 12-13-2004 10:43 AM

Quote:

Originally Posted by the nail geek
Thanks Snow!
Sadly, there is no import facility from vB3 Articles.

And yes, you can apply this to any existing forum. You do not have to create a new forum ;)

nJoy

Thanks :) I've got it working fine. I've just got a very minor problem which hopefully you could help me with. Because the background of the article title is dark and the usernames are using the colours defined for the usergroups, the usernames aren't showing up very well (see first screenshot). I tried adding color: #FFFFFF; to the span tag but a second span tag is being added with the username e.g.
HTML Code:

Written by <a href="member.php?u=5"><span style="color:#9900FF">SatCam</span></a>
. Is there a way to get the username in white text as in the vb3 articles hack (2nd screenshot)?

The Geek 12-13-2004 11:00 AM

Mycates: Just as much as any other forum can be (all it is is just a standard show thread with a substitute postbit to change the layout).

Snow: Huh, that table inherits the thead class from an encapulating <td> a few lines above. It looks like your thead css is that purple colour. You can either wrap your <span> in a new or different class, or the TD that the table resides in.

Not sure if this helps?!?

reteep 12-13-2004 11:02 AM

Would it be possible to convert existing (regular) Threads?

The Geek 12-13-2004 11:10 AM

Quote:

Originally Posted by stormblast
Would it be possible to convert existing (regular) Threads?

You dont need to convert anything. You can apply this to any existing forum (or a new one) without any type of conversion. When you put the forum #'s in the phpinclude_start function, it will swap the standard layout of showthread to the article version. Dont like it on that forum? Just take the forum # out of the phpinclude_start and it goes back to normal.

Hope this helps!

Snow 12-13-2004 11:16 AM

Quote:

Originally Posted by stormblast
Would it be possible to convert existing (regular) Threads?

It worked fine on my existing forums and the threads within. It just converts the first post into the article and the replies into comments, e.g.this article was a regular thread prior to installing this hack.


Quote:

Snow: Huh, that table inherits the thead class from an encapulating <td> a few lines above. It looks like your thead css is that purple colour. You can either wrap your <span> in a new or different class, or the TD that the table resides in.

Not sure if this helps?!?
Thanks I'll play around with the styles a bit to see if I can sort this out. :)

reteep 12-13-2004 11:22 AM

Hey very nice, thanks for your answers.

mcyates 12-13-2004 12:37 PM

Some of my members are getting this error:

Code:

Warning: in_array(): Wrong datatype for second argument in /usr/home/yates238/public_html/showthread.php on line 1186
But i'm not?

The Geek 12-13-2004 12:52 PM

Quote:

Originally Posted by mcyates
Some of my members are getting this error:

Code:

Warning: in_array(): Wrong datatype for second argument in /usr/home/yates238/public_html/showthread.php on line 1186
But i'm not?

whats your phpinclude_start addition say? i.e. $geek_article_forums = array(x,y,z)

mcyates 12-13-2004 01:03 PM

nope it says
Code:

$geek_article_forums = array(122);

mcyates 12-13-2004 01:07 PM

oh, its ok, this one guy was using the wrong style. Its only installed on one style. I should have removed the old style. Thanks

cclaerhout 12-13-2004 01:15 PM

What a nice and clever hacks : looks like V3articles but much easier to install and to use ! Congratulations and thank you. :up: :banana:

Polo 12-13-2004 02:24 PM

Thanks for sharing... I have tons of articles on v3articles... I wish I could bring them to this system... have a great day...

Lionel 12-13-2004 02:31 PM

Quote:

Originally Posted by the nail geek
? where are you getting that error ? There is no way this could produce that error!

I am getting the same too.

The Geek 12-13-2004 02:32 PM

Quote:

Originally Posted by Lionel
I am getting the same too.

can you give me a link?

Lionel 12-13-2004 02:35 PM

Quote:

Originally Posted by the nail geek
can you give me a link?

sorry, I uninstalled it

The Geek 12-13-2004 02:38 PM

Quote:

Originally Posted by Lionel
sorry, I uninstalled it

crap, am curious to see how an array check in showthread.php would wig out sessions.php?

Did you see this post? ->https://vborg.vbsupport.ru/showpost....76&postcount=7 it seems to make the most sense to me.

Lionel 12-13-2004 02:44 PM

Quote:

Originally Posted by the nail geek
crap, am curious to see how an array check in showthread.php would wig out sessions.php?

Did you see this post? ->https://vborg.vbsupport.ru/showpost....76&postcount=7 it seems to make the most sense to me.

I am not using cpanel. I was having the error on all showthread pages.

pjdaley 12-13-2004 03:20 PM

are you using a mac to edit your files?

Lionel 12-13-2004 03:32 PM

I am using notepad

Holidazed 12-13-2004 04:17 PM

I don't see how this is any different than the exiting postbit (Other than the "Written By"). Can you spell it out for me? When posting a new article, do we get the option to put in the Article's author (in case we are posting somebody elses article)???

The Geek 12-13-2004 04:57 PM

Quote:

Originally Posted by bitg
I don't see how this is any different than the exiting postbit (Other than the "Written By"). Can you spell it out for me? When posting a new article, do we get the option to put in the Article's author (in case we are posting somebody elses article)???

See the demo-> http://www.thenailgeek.com/showthread.php?t=8801

The first post and subsequent posts are all changed. No, you can't put in someone elses name. All this does is substitute the postbits for first and susequent posts in forums you specify in phpinclude_start

vau7 12-13-2004 05:08 PM

I cant see the Demo:

Quote:

Warning: Invalid argument supplied for foreach() in /var/www/html/includes/sessions.php on line 476



Unable to add cookies, header already sent.
File: /var/www/html/includes/sessions.php
Line: 476

The Geek 12-13-2004 05:28 PM

Quote:

Originally Posted by vau7
I cant see the Demo:

duh. Sorry bout that guys.

I noticed that the 3 people who got this error were from Germany. When I looked into it I just installed this language detecting hack-> https://vborg.vbsupport.ru/showthread.php?t=59564 but didnt put in the correct language ID for german. :(

Anyway... apologies... should work now. http://www.thenailgeek.com/showthread.php?t=8801

Lionel 12-13-2004 05:49 PM

I am in america...

Holidazed 12-13-2004 05:53 PM

OK, I looked at the demo again. I still fail to see why this is better than the way the postbit is now. If I use this mod, it will imply that all articles that I post were written by me. This is not always the case.

The Geek 12-13-2004 06:02 PM

Quote:

Originally Posted by bitg
OK, I looked at the demo again. I still fail to see why this is better than the way the postbit is now. If I use this mod, it will imply that all articles that I post were written by me. This is not always the case.

Very true bitg. It is more of a cosmetic thing I suppose. Saying that, isnt there some hack around here that lets you post as another user? If so... there you go. Marry the two together and live happily ever after ;)

Have you tried vbarticles? Not sure but that may do what you are after.

Holidazed 12-13-2004 06:07 PM

vb3articles is the same problem. Yours is much better. I just want another field that a user has to fill out when posting an article. The field is "Article Author". That is it. Then your modification would be perfect for me.

Then when the article is displayed, it would say "Article contributor" (which is the person uploading it) and "Article Author" (which is the person who wrote it). Granted, I could add this manually to the top of each article, but it would be nice if it were part of the system.

Snow 12-13-2004 06:13 PM

Quote:

Originally Posted by bitg
OK, I looked at the demo again. I still fail to see why this is better than the way the postbit is now.

It distinguishes the official articles/tutorials from the standard threads.
Quote:

If I use this mod, it will imply that all articles that I post were written by me. This is not always the case.
on my forum at least, the "written by" states the article author not me. :confused:

The Geek 12-13-2004 06:18 PM

Quote:

Originally Posted by bitg
vb3articles is the same problem. Yours is much better. I just want another field that a user has to fill out when posting an article. The field is "Article Author". That is it. Then your modification would be perfect for me.

Then when the article is displayed, it would say "Article contributor" (which is the person uploading it) and "Article Author" (which is the person who wrote it). Granted, I could add this manually to the top of each article, but it would be nice if it were part of the system.

Ah, I see what you mean. I will look into it however off the top of my head it means either altering the threads table to add another column (ugly IMO) or adding another table with this info (much better and easier). It then means either selecting from that table or changing the SQL that pulls the posts to join and include this outside table.

The other thing of course would be that newpost.php would have to be tweaked to accomidate.

Its all doable... but I dont know when I would have the time to do it.

Just as a thought: could this do the trick? I just browsed through it and it looks like it adds a text field to a new thread. If thats the case, it should be super easy to simply use that as the text field your after.

Sorry it isnt as perfect of a solution. Let me know how you crack on with it.

The Geek 12-13-2004 06:28 PM

Quote:

Originally Posted by Lionel
I am in america...

eh? Im going to get a large dent in the centre of my forehead over this. The seesions.php error is in regards to the 'auto selecting language' hack I put on the other day. Are you certain it still isnt working?

What about if you look at Snows? http://www.aboho.com/forum/showthread.php?t=2433

(hope you dont mind me posting the URL Snow). Can you see that Lionel. If so, then it is that other hack I installed recently (going to have to find a way tofix it). However if you CANT see it and get the same error, then there is a veryvery freaky bug hanging about in vB3 as a whole!

My Maney is on the language hack I did ;)

Let me know Lionel.

Cheers

Snow 12-13-2004 07:25 PM

Quote:

Originally Posted by the nail geek
(hope you dont mind me posting the URL Snow).

no prob. ;)

auveeb 12-13-2004 08:01 PM

Hello,

Can somebody explain what this hack does? Thanks

Nordinho 12-13-2004 08:03 PM

Quote:

Originally Posted by auveeb
Hello,

Can somebody explain what this hack does? Thanks

It turns the threads of a chosen forum into articles...

Nailgeek: thanks a lot!! flawless install!! Great hack!!


All times are GMT. The time now is 04:53 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.01569 seconds
  • Memory Usage 1,839KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_html_printable
  • (24)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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