PDA

View Full Version : Geek Article System 3 - RC1


The Geek
02-04-2005, 10:00 PM
HowdA All.

The GAS3 system is a comprehensive article system that completely integrates into vB3.

History

Originally, I looked into other article systems to integrate with my forums but just got irritated over and over again as I found the other offering out there very limiting for my needs. I wanted to use my members usergroup permissions, the search facility (so when someone did a search for bob both articles AND threads appeared on one page), I also wanted wysiwyg editing and vBs attachment system. Well, I accomplished 99% of my needs with the Geek Article System 2.0
Why 3.0? While the 2.0 was fine for my needs, many users began asking for a far more complex system that took the beauty of 2.0 and added popular features in the other article systems.

Here are the features in a nutshell:

Integrates 100% into vB. No importing forums or creating special groups. Simply mark forum as an 'Article' forum and instantly all threads become articles. Dont like it anymore? Simply remove the ID and the therads and forums go back to normal.
Whatever you can do in a thread or post, you can do with the GAS3 system (uploading attachments, smiles, BBcode, various editors, yadayadayada)
Create multiple pages in your post by simply putting anywhere in your post.
[b]The first thumbnail in an article substitutes the posters avatar (switchable via admincp)
Integrated article byline.
Article sidebar that shows the article rating, your rating, the rating form, article tools, and article attachments (all toggable via admincp)
Special thanks goes to rlamego (https://vborg.vbsupport.ru/member.php?u=69667) and to peterska2 (https://vborg.vbsupport.ru/member.php?u=43427) for private Beta testing this for me. Couldnt of happened without them!

Planned work:

I have integrated an attachment description modification, but so far I dont have an interface for the newattachment.php yet. I will do this as an add on (though the backend work is already in place)
Known issues:

none that I am currently aware of.
Demos: (note that I have a custom skin, so your results will be ever so slightly different)
http://www.thenailgeek.com/showthread.php?t=11287
http://www.thenailgeek.com/showthread.php?t=8801 - pages of comments


Difficulty - Medium
Time - about 15 minutes
File modifications? a few

Instructions

Click install. Especially as a beta, the package could get important updates that you need to be aware of. Also, as soon as it goes live, I may do the gold release outside of this thread as I dont want to bog down the gold release thread with any beta issues (if there are any). You will need to be aware of when that happens (so click install darnit!)
Download the package and unzip.
Follow the GAS3_README file to the letter!
There is an install script that does most of the work for you. There are several file edits that you will have to do yourself though.
When done, go into your admncp, open vBulletin settings, open Geek Articles 3 settings (in the big list where you turn your VB on and off).

Troubleshooting:

No phrases after install? This happens a lot with many installers for some bizzare reason. All you have to do is do a phrase search for GAS_ , edit the phrase (dont change it), then save it. Bingo - all your phrases appear.
Settings not taking? Your settings need to be saved in your adminco in order to take effect.
Also:

For the love of Pete - this is a BETA hack. I would therefore backup your DB, your styles, and any of the files the README asks you to change.

nJoy

The Geek
02-05-2005, 06:38 PM
I would appreciate feedback on the installation process ASAP I am sure it is fine, but I have only been able to test on my system.

Thanks

tormodg
02-05-2005, 08:12 PM
I would appreciate feedback on the installation process ASAP I am sure it is fine, but I have only been able to test on my system.

Thanks
Sweeeeeeeeeeet. I'll give this a run ASAP. I am *still* waiting to try out your Gallery plugin because I'm going through a serious work overload recovery...but my dev team will love to try out this little RC thingy.

The Geek
02-05-2005, 08:31 PM
Sweeeeeeeeeeet. I'll give this a run ASAP. I am *still* waiting to try out your Gallery plugin because I'm going through a serious work overload recovery...but my dev team will love to try out this little RC thingy.
Cool! I still have yet to find the magic mozilla pastehtml command for it though!

Anyway - let me know how you get on with the install.


Note:

I have just updated the readme as instruction 5.18 said Below, add and it needed to be Replace with. Package is updated.

H2k
02-05-2005, 09:01 PM
Cool! I still have yet to find the magic mozilla pastehtml command for it though!

Anyway - let me know how you get on with the install.


Note:

I have just updated the readme as instruction 5.18 said Below, add and it needed to be Replace with. Package is updated.
wooooow thankyou for released it fast i was waiting for this MOD iwill install it right away :)

The Geek
02-05-2005, 09:08 PM
Just updated the package to 2-02 to address the following:


1- the instruction in 5.18 (as was mentioned in eariler post)
2- Incorrect addition in phrasegroup in instruction 4.2 (included the geek_popup phrasegroup which is for another mod of mine!) - so I removed that from the readme
3- updated teh functions_geekarticles.php as the threadrate select statement was missing some table prefixes which was causing an error with prefixed boards.

Thanks again goed to rlamego (https://vborg.vbsupport.ru/member.php?u=69667) for spotting those!

nexialys
02-05-2005, 10:09 PM
your bug regarding the phrases not showing in some situation is related to your phrases included...

in function insert_phrase, you add the phrases in the languageid #0 ... put them in -1 if you want them to work, because #0 is a unknown language... -1 is the default . and your build_language(-1) tells it... ;)

...always add your phrases in the languageid #-1 ... to make them defaults.. like the templates...

eva01_
02-05-2005, 10:51 PM
from just looking at the links, it looks like it works on Mac OS X Safari, and Firefox 1.0 for OS X.

this is in response to your post that you made in the other thread that you closed ^^

more coders need to get Mac people to look at things before they release them -_- it annoys me to no end when a site looks like crap on my computer

nexialys
02-05-2005, 11:14 PM
hum... i myself usually comment when a script look bad on a Mac, i'm a Mac coder... but it's rare to see that kind of script look odd...!!

Kesomir
02-05-2005, 11:14 PM
appears you're missing a table start in the GAS_forumdisplay template which shows up on my site with a sidebar since the table is malformed.

my fix was to;

FIND

$announcebits

ABOVE, ADD

<table class="tborder" cellpadding="5" cellspacing="1" border="0" width="100%" align="center">

The Geek
02-05-2005, 11:22 PM
Sweet guys.

I fixed the announcebit error pointed out by Kesomir as well as the phrasegroup bug pointed out by nexialys which is a freaking godsend as I have been bashing my head about with that one with ALL of my install scripts. Now Ill have to go by and update them. Thanks man ;)

Package updated to 2-03.

Changes:
GAS_forumdisplay template
insert_phrase change. If you can see your phrases than this change means diddly squat to you ;)

The Geek
02-05-2005, 11:32 PM
from just looking at the links, it looks like it works on Mac OS X Safari, and Firefox 1.0 for OS X.

this is in response to your post that you made in the other thread that you closed ^^

more coders need to get Mac people to look at things before they release them -_- it annoys me to no end when a site looks like crap on my computer
Thanks eva.

I could really use a safari emulator to help with some of these projects.

nexialys
02-05-2005, 11:37 PM
I could really use a safari emulator to help with some of these projects.
just use FireFox... ;) that will do the trick!

rlamego
02-05-2005, 11:47 PM
Well.. I have been keeping the mac thing under control although I haven't dig deep into the template thing.

trackpads
02-05-2005, 11:50 PM
Or buy a pc... Just Kidding!!! :nervous:

(Trackpads ducks under desk and awaits verbal abuse :) )

Seriously though, is there a way to import the V3 Articles Hack into this one? This is VERY nice and I would like to use it instead.

Thanks!

-Jason

eva01_
02-06-2005, 12:01 AM
Thanks eva.

I could really use a safari emulator to help with some of these projects.

heck if you want you can just send me a PM or IM when you need help with mac things

and nexialys the firefox for Mac is compilied differently than the firefox for windows, i know of a site that doesn't work on firefox for Mac but does for windows

coming along really nicely

too bad i am intergrating my reviews and everything to my main site.

The Geek
02-06-2005, 12:07 AM
too bad i am intergrating my reviews and everything to my main site.

Kind offer. I may take you up on it.

What does the above quote mean? If anything I thought this was about the single best approach to integration?!?

The Geek
02-06-2005, 12:10 AM
Or buy a pc... Just Kidding!!! :nervous:

(Trackpads ducks under desk and awaits verbal abuse :) )

Seriously though, is there a way to import the V3 Articles Hack into this one? This is VERY nice and I would like to use it instead.

Thanks!

-Jason
Im with you all the way ;)

Macs are pretty - and beat the pants off PC's in audio and image packages... but man - what apain otherwise ;) (Im hiding with track)

Anyhooo...

No way to import from vB articles other than a happy cut and paste job. Remember, this simply transforms your pre selected forums into articles. If they are not already threads in a forum... you wont get them there without a poop load of more work!

Sorry :(

still... thanks for the compliment (thats how I will take it anyway!)

eva01_
02-06-2005, 12:11 AM
my main site that we are working on is not a portal, we are not intergrating it into vB. it is on a different database

sorry for the confusion, shouldn't have used the word intergration

rlamego
02-06-2005, 12:47 AM
Anyone tried to install 03 on a brand new vB installation?
Tell me that I'm not crazy because I'm getting always the same error installing phrases (duplicate entry) and I have gone through 3 brand spanking new vB installs.

Thanks =)

rlamego
02-06-2005, 01:19 AM
Ok, last report of the evening before I'm off to the couch for some serious Battlestar Galactica new series marathon =)

My apologies if I'm posting something you already said it's broken but I kinda lost track of the bugs status.
1 - BREAK tag is case sensitive.;
2 - "Edit Article" from the Article Tools pull-down menu "doesn't work" (because no changes were made to the postings.php page)
3 - "Show the article sidebar" setting is ignored by the other options, so if it's set to NO and any of the others is set to YES, sidebar appears on the article pages.

And finally, one for the "things to do before releasing" list, remove or hide the break tag from the printthread.php version of the article.

TheComputerGuy
02-06-2005, 02:28 AM
Database error in vBulletin 3.0.6:

Invalid SQL: INSERT INTO phrase (phraseid, languageid, varname, text, phrasetypeid) VALUES (NULL, '-1', 'geek_articles_article_tools', 'Article Tools', '582')
mysql error: Duplicate entry 'geek_articles_article_tools--1-582' for key 2

mysql error number: 1062

Date: Saturday 05th of February 2005 08:27:22 PM
Script: http://www.runaked.com/forums/admincp/gas3_install.php?do=installphrases
Referer: http://www.runaked.com/forums/admincp/gas3_install.php?do=installdb
Username: TheComputerGuy

I get that when I try to install the phrases...

Killean
02-06-2005, 03:45 AM
/forum/admincp/gas3_install.php

Line 74 there is a duplicate entry in the phrases array (entry number 18 is a duplicate of 2).
I removed the #18 line and decremented the array numbers.

If you have already gone through the process and got stopped by the error then do an uninstall and install again after you have made that correction in the file. ;)

TheComputerGuy
02-06-2005, 04:55 AM
Installed Successfully....

http://www.runaked.com/forums/showthread.php?t=5061

Only problems were fixed with help from others.

The Geek
02-06-2005, 08:59 AM
Updated package to 2-04

Fixed case sensitive pagebreak
Fixed a couple of layout problems in mozilla sidebars
Found a rogue phrase and fixed it
Fixed duplicate phrase in install
I will sort printthread later (fingers crossed - today)
Im not sure what is wrong with the edit article function - can anyone else elaborate?

To upgrade from previous packages:
Replace your functions_geekarticles file with the new one.
Run the install and uninstall the phrases and the templates
Run the install and install the phrases and templates.
Edit your show thread and find:

$GAS_page_array = explode($GAS_page_break_code, $post['pagetext']);

Replace with

$GAS_page_array = explode($GAS_page_break_code, prep_for_breaks(&$post['pagetext']));



nJoy (And thanks for everyones help!)

The Geek
02-06-2005, 09:04 AM
Can everyone who has installed click INSTALL please? Otherwise you wont get notified of the updates.

Thanks

The Geek
02-06-2005, 10:51 AM
update to 2.06

This version is to support printthread.
In the readme, there are printthread changes and there is a new template added 'GAS_printthreadbit'

To upgrade from 2-05:
Uninstall the templates, then re-install them
Do the canges in step 8 of the readme.

Only known issue to me at this stage is:

If comment count>0 but comment count<the preview count, the post number is a negative. This came up in private beta testing and I thought I had fixed it. Ill see if I can sort it this afternoon or tonight (its a pretty insignificant bug in the scheme of things)

Thanks

rlamego
02-06-2005, 02:09 PM
Here's another issue with last package (which I believe is 6 but seems wrongly dubbed as 5).
In the vB options, setting "Show comments on last page?" to no, doesn't change a thing.
From what I can understand from the description (Do you want a 'preview' of comments on the last page of the articles?) this should remove all comments from the article's last page and put them in the comments page if set to "no", or show x number of comments in the last page of the article.

rlamego
02-06-2005, 02:26 PM
As for the Edit Article bug, forget it. It was a template issue not related to GA.

xmitchx
02-06-2005, 02:28 PM
Hi,

First off I'd like to tip my hat off to such a great hack :) Second, I found a typo

Step 8.6:

// === GEEK ARTICLES step 8.6 ===
if ($GAS_is_article){
$post['pagetext'] = remove_all_breaks($post['pagetext']);
$template="GAS_printthreadbit";
}else{
$tempalte="printthreadbit";
}
// === /GEEK ARTICLES ===


The bold part should be $template :)

The Geek
02-06-2005, 03:40 PM
Hi,

First off I'd like to tip my hat off to such a great hack :) Second, I found a typo

Step 8.6:


The bold part should be $template :)

Nice one! Thanks for that.

I updated the package to 2-06 with this typo fixed.

rlamego -> Forgot that option is not wired up all the way yet. I really only put it in for hockeyfan. I'll wire it up most likely tomorrow. What it should do is toggle x amount of comments on all pages OR just the last page (if you remember everyone wanted them on last page only and he wanted the option).

Thanks again.

rlamego
02-06-2005, 04:37 PM
Oh, ok. That's what I recall from the early dev stages but wasn't sure you changed it.

hockyfan
02-06-2005, 07:57 PM
rlamego -> Forgot that option is not wiredupallthe way yet. I really only put it in for hockeyfan. I'll wire itupmostlikely tomorrow. What it should do is toggle x amount ofcommentson allpages OR just the last page (if you remember everyonewantedthem on lastpage only and he wanted the option).

Thanks again.
Ahh, you didn't have to do all that just for me! I do appreciate it though. :D

I'm not a very talented coder, so I'm just waiting until this is donewith the beta testing to install. A big thank you to all those who aredoing such a great job with that as well! Can't wait to install this,muchthanks! :up:


h

xmitchx
02-06-2005, 08:58 PM
Another bug. The article byline is not grabbed for editpost.

Fix:

Find in editpost.php:
if ($edit['title'] != '')
{
$title = htmlspecialchars_uni($edit['title']);
}
else
{
$title = $postinfo['title'];
}

Add BELOW:
// === GEEK ARTICLES START ===
if ($edit['articlebyline'] != '')
{
$articlebyline = htmlspecialchars_uni($edit['articlebyline']);
}
else
{
$articleinfo = getArticleInfo($postinfo['threadid']);
$articlebyline = $articleinfo['byline'];
unset($articleinfo);
}
// === GEEK ARTICLES END ===

xmitchx
02-06-2005, 09:09 PM
Another problem, this time with templates. In the GAS_article_pb template, the message/title section of the article is not vertical aligned to the top, so if the article is smaller than the sidebar, it is centered, which is not very article-like. To fix, open up GAS_article_pb and find:


<td class="alt1">
<!-- message, attachments, sig -->

Replace with:

<td class="alt1" valign="top">
<!-- message, attachments, sig -->

xmitchx
02-06-2005, 09:14 PM
Bug on installation step 8.7/8.8. Find should either include the "}" in the end, or step 8.8 should get rid of the "}" in the end so it should look like this:

// === GEEK ARTICLES step 8.6 ===
// WAS:
//eval('$postbits .= "' . fetch_template('printthreadbit') . '";');
// NOW:
eval('$postbits .= "' . fetch_template($template) . '";');
// === /GEEK ARTICLES ===

:) I think the latter is a better choice.

The Geek
02-06-2005, 09:16 PM
Another problem, this time with templates. In the GAS_article_pb template, the message/title section of the article is not vertical aligned to the top, so if the article is smaller than the sidebar, it is centered, which is not very article-like. To fix, open up GAS_article_pb and find:


<td class="alt1">
<!-- message, attachments, sig -->

Replace with:

<td class="alt1" valign="top">
<!-- message, attachments, sig -->
Yea, just noticed the valign problem.

Odd about the editpost. Thought I did that. Ill fold in your changes tomorrow into a new release.

Thanks a lot! (Keep em coming!)

The Geek
02-06-2005, 09:20 PM
xmitchx : Can you verify the editpost problem again? Mines is working fine here. Anyone else? I may have missed something in the install... Ill go back over it.

xmitchx
02-06-2005, 09:21 PM
xmitchx vbmenu_register("postmenu_608280", true); : Can you verify the editpost problem again? Mines is working fine here. Anyone else? I may have missed something in the install... Ill go back over it.
I already verified it by posting a few articles and reading over the editpost.php section of the install. I believe you may have forgotten it there :)

winky6
02-06-2005, 09:25 PM
The directions for the printhread edits are off a bit -


Find :
eval('$postbits .= "' . fetch_template($template) . '";');

8.8 REPLACE with: // === GEEK ARTICLES step 8.6 ===
// === GEEK ARTICLES step 8.6 ===
// WAS:
//eval('$postbits .= "' . fetch_template('printthreadbit') . '";');
// NOW:
eval('$postbits .= "' . fetch_template($template) . '";');
}
// === /GEEK ARTICLES ===


It should be -


Find :
eval('$postbits .= "' . fetch_template('printthreadbit') . '";');

xmitchx
02-06-2005, 09:29 PM
The directions for the printhread edits are off a bit


I already stated this in reply #36:

https://vborg.vbsupport.ru/showpost.php?p=608288&postcount=36

The Geek
02-06-2005, 09:35 PM
Thanks guys.

Just released b2-07

Fixes typos in step 8.7 and 8.8 of the readme
Addresses article valigning to middle when text is less than the height of the sidebar.

The editpost thing should be fine (I have not made any changes there). The functions_geekarticles retrieves the article byline (round about line 127) and the changes in 3.6 will save it.

Thanks guys!

winky6
02-06-2005, 10:22 PM
No, you stated -
Find should either include the "}" in the end, or step 8.8 should get rid of the "}" in the end so it should look like this:

My note had to do with the actual line that needed to be found -

In the directions, it says to find -

eval('$postbits .= "' . fetch_template($template) . '";');

fetch_template($template) is the part that is wrong.....

it should be -
Find : eval('$postbits .= "' . fetch_template('printthreadbit') . '";');

Notice the bold :rolleyes:

xmitchx
02-06-2005, 11:12 PM
Oh right, im sorry.

Nick0r
02-07-2005, 10:15 AM
nice thenailgeek,

any support for cscgals(daniwebs) mod_rewrite hack planned?

The Geek
02-07-2005, 10:50 AM
nice thenailgeek,

any support for cscgals(daniwebs) mod_rewrite hack planned?
Thanks Nick0r, honestly - no. I really dont know anything about that hack other than it rewrites the output as html files?!?

Anyway... not sure what support I would have to add. Doesnt applying that hack suffice?

The Geek
02-07-2005, 11:00 AM
HowdA all,

I have just updated the package to sort out the following:

Fixed the negative post# on comments appearing on article with only 1 page
Fixed bug where editing a comment showed byline edit
Fixed $GAS_comments_only_lastpage so that it works. Setting option to no gives you preview comments on all pages. Setting to yes gives you the comments only on last page.

To upgrade:

download package
replace functions_geekarticles.php with new one
Reinstall templates
Redo step 5.16 and 5.22 from the README as there were a couple of amends there

This squashes all known issues (unless someone comes up with any more).

What else needs to be done for a full release?

hockyfan
02-07-2005, 12:27 PM
Fixed $GAS_comments_only_lastpage so thatit works. Setting option to no gives you preview comments on all pages.Setting to yes gives you the comments only on last page.
Cheers - thanks! :cool:


h

The Geek
02-07-2005, 01:38 PM
[/list]Cheers - thanks! :cool:


h
No problem ;)

BTW guys - where would this go?
Major Additions? (Thats my bet)

Can anyone verify the latest install? It should be the final unless anyone can come up with any bugs.

The Geek
02-07-2005, 05:56 PM
Shes alive.

over at https://vborg.vbsupport.ru/showthread.php?t=75916

So I am closing this thread. Everyone who has installed this as Beta... Big thanks. Make sure you go and install the new version as it fixes a couple of minor issues.