View Full Version : Geek Article System 3.52
Lionel
04-14-2005, 03:07 AM
Correct me if I am wrong. Since the current importer and any exporters will be inserting into the same vb fields, that means I got the destination already coded.
All I would have to worry about is altering the article retrieval part from the available importer?
swarangal.com
04-14-2005, 06:35 AM
hi... thanks for the hack its kewl features but while installint i am getin this error
cant find root directory gas
Make sure you have created this in your forum directory
but i made sure there is directory called gas in main directory (forum) i have only forum so with chmoded to 777 also wot am i missin here/
Lizard King
04-14-2005, 06:40 AM
gas folder supposed to inside forum folder. it supposed to be like
public_html/forum/gas/
and you have to chmod everhthing to 777
The Geek
04-14-2005, 07:14 AM
also - read the readme for your answer
Sorry Polo - I missed your eariler post!
Anyhooo... Sounds very strange. You are not the first to use the importer. No one has reported any problems using it (except for 1 who imported before installing GAS).
What happens if you create an article from scratch? Does it look ok?
no, it wont appear...
here is a link, you can take a look at it and see what I mean...
http://www.God180.com/forumdisplay.php?f=168
Lizard King
04-14-2005, 04:38 PM
Polo I think the main problem is your templates are mixed up. Try to revert all the Gas templates and just re install the templates.
Polo I think the main problem is your templates are mixed up. Try to revert all the Gas templates and just re install the templates.
oh ok... I will do that Lizard King... thanks for the tip..
Lionel
04-14-2005, 06:34 PM
Has anyone been able to adapt the excellent thread category hack to this one? I am able to, it creates the article by categories etc... but in gas_forumdisplay template, while I am able to sort by category in the sort line, to display by category in the show articles by etc... I don't see how to add that first left column which states which category the article belongs to.
JustAskJulie
04-14-2005, 09:52 PM
Razz:
When articles are submitted in our geek article system they are shown up as new posts.
Is there a way around this? To keep the new articles from showing up on the new posts list?
JustAskJulie
04-14-2005, 10:03 PM
I'm running into a problem with the import. :( On the drop-down list to choose which forum to import to, it's not giving me the option of the forum I want to put them in. It appears the forums are listed oldest to newest and that some forums that are not visible to everyone are left out... is this a permissions thing?
I'm trying to get everything set up without the forum being visible until I know I want it to be.
SamirDarji
04-15-2005, 03:57 AM
I'm running into a problem with the import. :( On the drop-down list to choose which forum to import to, it's not giving me the option of the forum I want to put them in. It appears the forums are listed oldest to newest and that some forums that are not visible to everyone are left out... is this a permissions thing?
I'm trying to get everything set up without the forum being visible until I know I want it to be.
Definitely sounds like a permissions thing IMO.
Lionel
04-15-2005, 04:59 AM
In case someone wants to know, that works very well with Geek's Articles hack.
All there is to it is edit the gas templates gas_forumdisplay gas_threadbit and gas_threadbitdeleted. Then back up those templates somewhere for whenever Geek issues an upgrade. I got to say those two hacks were made for each other.
The Geek
04-15-2005, 07:57 AM
To get new articles from showing up in new posts - you may need to adjust that forums settings (i.e. make it hidden) or hack search.php to exclude the articles.
One key benefit to this hack is that it means your new articles do get put in new posts and searches which means that your site content is better coupled and more intuitive for users.
As far as your import woe - I agree with Samir - it does sound like a premission problem - however I would have to look into it.
The import process really only takes about 30 seconds. Why not just enable them - run the importer - then hide them again? Seems the quickest solution.
Hey Geek;
Is there a template conditional available that I can use to determine if the SHOWTHREAD is using the GeekArticle stuff or the standard stuff?
I'm using the SaveDrafts hack by Why-Not, and I don't want people trying to save article drafts with it.
Thanks!
The Geek
04-15-2005, 10:22 AM
Hey Geek;
Is there a template conditional available that I can use to determine if the SHOWTHREAD is using the GeekArticle stuff or the standard stuff?
I'm using the SaveDrafts hack by Why-Not, and I don't want people trying to save article drafts with it.
Thanks!
Showthread wont ever be used if you are in an article - only GAS_showthread so I dont think you should have a problem. :)
I mean post-thread, not SHOWTHREAD (doh!).
One other thing; i'm getting this error when trying to upload regular attatchments - CHMOD the includes dir maybe? Or is it something else that you know of?
Warning: move_uploaded_file(./attatch/4b814b26c8b5d30b1713e9d25b700737): failed to open stream: Permission denied in /includes/functions_file.php on line 274
Warning: move_uploaded_file(): Unable to move '/tmp/php1zqb7K' to './attatch/4b814b26c8b5d30b1713e9d25b700737' in /includes/functions_file.php on line 274
Warning: filesize(): Stat failed for ./attatch/4b814b26c8b5d30b1713e9d25b700737 (errno=2 - No such file or directory) in /includes/functions_file.php on line 286
One more problem; no matter what file paths I set in GAS/settings for the article header image, it tries to use the img src="gas/images/ in the forumview bit.
The Geek
04-15-2005, 10:42 AM
One more problem; no matter what file paths I set in GAS/settings for the article header image, it tries to use the img src="gas/images/ in the forumview bit.
Thats because all images should be uploaded to gas/images thats how it was coded. To try and chage where the images are uploaded to may be more hassle than its worth. Why do you want to avoid the gas/images/ folder? That is why you are having the problems you mentioned earlier.
Do you mean postbit? GAS uses GAS_article_pb or GAS_comment_PB instead of postbit.
If you mean newthread or editthread... then test for $GAS_setting[is_article]
Ok Geek, changes to gas/images and it is now working. Maybe it is an idea to offer the option to change the file path if it messes it up later on?
One last question; do the attatchments/header images get deleted when an article is deleted?
The Geek
04-15-2005, 11:12 AM
header images currently do not. This is comething I am eventually planning on doing - but since they end up as small images and it is only a subsection of the forums - I havent gotten to it yet.
KTBleeding
04-15-2005, 01:21 PM
Hey Geek, small question..
How hard would it be to add a short URL feature in? The only issue with this is users may get confused by the URL's.. (showthread.php?p=23424204204)
Is there a way to link it to the article name also? Like, keep the "showthread.php?" thing, but for extra lazy people who want to easily look up articles they've submitted I thought it would be pretty cool to offer the url "/articles/article name" or something?
I dunno.. I thought of it when I was getting ready for work at 5am, so maybe I was just delirious.
The Geek
04-15-2005, 01:50 PM
hmmm.... sounds interesting
actually.... I really dont understand what you mean :)
Hey Geek, small question..
How hard would it be to add a short URL feature in? The only issue with this is users may get confused by the URL's.. (showthread.php?p=23424204204)
Is there a way to link it to the article name also? Like, keep the "showthread.php?" thing, but for extra lazy people who want to easily look up articles they've submitted I thought it would be pretty cool to offer the url "/articles/article name" or something?
I dunno.. I thought of it when I was getting ready for work at 5am, so maybe I was just delirious.you could always use mod rewrite for that :)
Polo I think the main problem is your templates are mixed up. Try to revert all the Gas templates and just re install the templates.
when I select a GAS template the revert button cannot be clicked... why is that? is there another way of deleting the GAS templates?
The Geek
04-15-2005, 02:10 PM
revert button cannot be clicked... why is that? is there another way of deleting the GAS templates?
Polo - Just run the install file, and install ONLY the templates. From there you may need to revert - or it will simply update them
HTH's
The Geek
04-15-2005, 02:10 PM
you could always use mod rewrite for that :)
ahhhhhhhh. Now I know what you mean :)
Need more coffee ;)
Polo - Just run the install file, and install ONLY the templates. From there you may need to revert - or it will simply update them
HTH's
I went into the GAS installer, I Kiss the TrollBeards bums click on "uninstalled templates" then I Ran like a sissy then I Banged the pineapple over the TrollBeards head and click on "install templates" but I'm still having the same problem :ermm: ......
I wonder what could be the problem.... will follow any upcoming advice, thank you
The Geek
04-15-2005, 02:49 PM
Polo - can you check your file edits? Im getting an error when I hit your page.
My thinking is that something is up with one of the file edits. Maybe interferring with an existing hack?
Did you get any errors during install?
Polo - can you check your file edits? Im getting an error when I hit your page.
My thinking is that something is up with one of the file edits. Maybe interferring with an existing hack?
Did you get any errors during install?
ops... sorry The Geek, I was doing some udpates... should work now:
http://www.god180.com/forumdisplay.php?f=168
and no, the install when really smooth...
The Geek
04-15-2005, 05:22 PM
polo - it just struck me that you have a side block there. I can almost guarantee that has something to do with it. Did you have to hack showthread.php and forumdisplay to get the sidebar?
Did you have to change something around the last line of the php files for that? SOmething like $HTML=blahblahblah?
If so, the same thing will need to be applied to the same eval lines at the bottom of showthread and forumdisplay.
yeah.. you were right... since i'm using vba CMPS the showthread.php was not edited correctly by the installer... i went ahead and changed this:
// === GAS step 615 ===
if ($GAS_setting['is_article']){
gas_prepare_showthread();
eval('print_output("' . fetch_template('GAS_showthread') . '");');
}else{
eval('print_output("' . fetch_template('SHOWTHREAD') . '");');
}
// === /GAS step 615 ===
to this // === GAS step 615 ===
if ($GAS_setting['is_article']){
gas_prepare_showthread();
eval('$HTML = "' . fetch_template('GAS_showthread') . '";');
print_portal_output($home, $HTML);
}else{
eval('$HTML = "' . fetch_template('SHOWTHREAD') . '";');
print_portal_output($home, $HTML);
}
// === /GAS step 615 ===
and the showthread is working now... however, I have this in the forum display..
// === GAS step 208 ===
if ($GAS_setting['rt_template']){
eval('print_output("' . fetch_template($GAS_setting['rt_template']) . '");');
}else{
eval('print_output("' . fetch_template('FORUMDISPLAY') . '");');
}
// === /GAS step 209 ===and i changed it to this:
// === GAS step 208 ===
if ($GAS_setting['rt_template']){
eval('$HTML = "' . fetch_template('rt_template') . '";');
print_portal_output($home, $HTML);
}else{
eval('$HTML = "' . fetch_template('FORUMDISPLAY') . '";');
print_portal_output($home, $HTML);
}
// === /GAS step 209 ===
but that part is not working... any ideas why?
The Geek
04-15-2005, 06:47 PM
Your last change needs to be:
// === GAS step 208 ===
if ($GAS_setting['rt_template']){
eval('$HTML = "' . fetch_template('rt_template') . '";');
}else{
eval('$HTML = "' . fetch_template('FORUMDISPLAY') . '";');
}
print_portal_output($home, $HTML);
// === /GAS step 209 ===
JustAskJulie
04-15-2005, 10:51 PM
To get new articles from showing up in new posts - you may need to adjust that forums settings (i.e. make it hidden) or hack search.php to exclude the articles.
One key benefit to this hack is that it means your new articles do get put in new posts and searches which means that your site content is better coupled and more intuitive for users.
As far as your import woe - I agree with Samir - it does sound like a premission problem - however I would have to look into it.
The import process really only takes about 30 seconds. Why not just enable them - run the importer - then hide them again? Seems the quickest solution.
Even making the forum unhidden, it still didn't show up in the import list. :( Not sure what was up with that.
When it comes down to it if I end up using the hack, there would be one forum of actual articles that I would want to show up in New posts and be searchable. But the other forum (and the one that is set up now that I want to import) is not actually articles but stories, and I wouldn't have that forum be searchable, nor do I want those to show up in New Posts.
At any rate, a stupid mistake on my part during the installation screwed up a bunch of other stuff, so I ended up uninstalling it and fixing everything else last night. At some point in the future I will try it again.
ElNino
04-16-2005, 09:07 AM
Hi nail geek,
first of all, a big thanks for that great hack.
i have problems with the latest Firefox Releases 1.0.x while trying to upload images. i click on the 'image' button, a javascript window opens and after that i select the imagefile i want to upload. by clicking the 'upload' button, the javascript window shuts down, without taking the actual image over to the javascript image upload window. so the default avatar-icon is still there.
though the image is actually uploaded to the server, which i can see in the image upload folder with the current user id path ...gas/images/3/2/1/image.jpg
as a result of the failure, the FF javascript debug manager gives me the following alert:
Warnung: assignment to undeclared variable i
Quelldatei: http://foo.bar./forum/GAS_image_upload.php
row: 39
here is the part of the appropriate code.
36. <script>
37. function send_image(imagename,url){
38.
39. opener.document.getElementById('GAS_icon').src=url ;
40. opener.document.getElementById('new_GAS_iconpath') .value=imagename;
41. opener.document.getElementById('GAS_icon_move').va lue='1';
42.
43. window.close();
44. }
45. </script>
in every other well known browser i've tested, like Mozilla 1.72, Opera, IE 5.5Sp2, IE 6.0+ it works fine.
maybe you can help with that variable 'i', cause that is my biggest ;) problem at the moment.
Many greets from Germany
Tom
ps: would you be interested in a german translation file?
The Geek
04-16-2005, 10:46 AM
German translation file sounds cool. If you have time I am more than game for it :)
I have just tested on FF 1.02 and I cant replicate the error. Everything works as expected. Can anyone else verify?
Spinball
04-16-2005, 01:53 PM
Just released an importer for those that wanted to import their articles from the v3articles system.
Awesome. But where is the importer?!!! Can't find it!
Lizard King
04-16-2005, 01:55 PM
Awesome. But where is the importer?!!! Can't find it!
https://vborg.vbsupport.ru/attachment.php?attachmentid=24967
Spinball
04-16-2005, 02:00 PM
Thanks for the quick reply.
A link to it in the first post would be helpful, Mr Geek, Sir :)
Lizard King
04-16-2005, 02:04 PM
A link to it in the first post would be helpful
There is ;)
Lionel
04-16-2005, 03:36 PM
Is it possible to include the page title with the break to display like a linked summary on right box?
[BREAK=My title]
.......
[BREAK=My second page]
Obviously this does not do it. So is there a way to do so, like Cinq's?
The Geek
04-16-2005, 05:15 PM
Is it possible to include the page title with the break to display like a linked summary on right box?
[BREAK=My title]
.......
[BREAK=My second page]
Obviously this does not do it. So is there a way to do so, like Cinq's?
nope. Not yet. There has been a lot of discussion about this in the past - but I have no immediate plans to include it - Ill be looking to add tha along the lines of 4.0
venomx
04-16-2005, 09:34 PM
Ok since the auto install of the auto linker went good I tried this one and all looks good except 2 problems.
When I post an article with an attachment it gives this error when I hit submit and when you try to view the article which it does post.
Invalid SQL:
SELECT filename, filesize, visible, attachmentid, counter, postid, IF(thumbnail_filesize > 0, 1, 0) AS hasthumbnail, thumbnail_filesize, description,
FROM attachment
WHERE postid IN (-1,2100)
ORDER BY dateline
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 'FROM attachment
WHERE postid IN (-1,2100)
ORDER BY date
mysql error number: 1064
The other thing is I have it set to show comments on every page. If theres a comment made it prints Comments at the bottom of the page above the quick reply box. But doesnt list the comment... to see the comment you have to click view comments at the top of the article...
venomx
04-16-2005, 09:39 PM
Gettign the mysql error even posting them to regular threads.. :(
SRozhon
04-16-2005, 10:01 PM
I keep getting this error
Invalid SQL:
SELECT filename, filesize, visible, attachmentid, counter, postid, IF(thumbnail_filesize > 0, 1, 0) AS hasthumbnail, thumbnail_filesize, description
FROM attachment
WHERE postid IN (-1,102,105,106)
ORDER BY dateline
mysql error: Unknown column 'thumbnail_filesize' in 'field list'
mysql error number: 1054
Can you help?
ElNino
04-17-2005, 09:09 AM
Hi,
though the image is actually uploaded to the server, which i can see in the image upload folder with the current user id path ...gas/images/3/2/1/image.jpgproblem fixed! *grrr after >4hours of searching for the 'bug', i?ve checked the FF Javascript settings. #grr ... grrrr ... +#grrr :banana:
i guess i know now what the 'undeclared variable i' is?
i = intelligence ??!
@Geek: the german translation will follow within the next few days.
greets Tom
The Geek
04-17-2005, 09:41 AM
Gettign the mysql error even posting them to regular threads.. :(
venom - there is a mysterious extra , after description here: description,
As for the comments - I think there is a mild bug that will only show them on last page for now. Ill see if I can get it fixed today.
srzohon - Your using an earlier version of vB. I would recommned upgrading to the latest version. However If you wat - you can still use this hack - just revert that particular step.
HTH's
Lizard King
04-17-2005, 09:43 AM
Geek there is something i realized today but i cannot call it as a bug.
If an article has more then 2-3 breaks in it and have like 30-40 reply when you click to last post on forumdisplay there is no way it shows the article. It just shows the posts. Is there a way we can put a link over there or make the article visible?
The Geek
04-17-2005, 09:57 AM
Geek there is something i realized today but i cannot call it as a bug.
If an article has more then 2-3 breaks in it and have like 30-40 reply when you click to last post on forumdisplay there is no way it shows the article. It just shows the posts. Is there a way we can put a link over there or make the article visible?
lizard - can you give me a link as an example. That used to be an error but it should have been fixed yonks ago. I am thinking maybe yours may be left over from a previous version?
Lizard King
04-17-2005, 12:02 PM
<a href="http://forum.ayyas.com/showthread.php?p=103240#post103240" target="_blank">http://forum.ayyas.com/showthread.ph...240#post103240</a>
check in here
The Geek
04-17-2005, 02:36 PM
oh right - I get it.
You are saying that - click on last post takes you to the last comment made and you prefer it to take you to the article?
Wouldnt that be kind of confusing? Or am I not getting you?
Lizard King
04-17-2005, 02:39 PM
I think I couldn't explain :) But i figured out the problem ;) So it's not existed anymore :P
venomx
04-17-2005, 03:00 PM
The Geek I fixed the mysql error I think. I took a fresh showthreads.php and remade all my hack edits by hand, hope I didnt miss any! And all seems to work now except the commens thing.. :)
I did all this last night before you replied because the emails about the error was driving me nuts hehe
Spinball
04-17-2005, 05:11 PM
In my opinion, comments should be just that. No images.
Would it be difficult to disallow people from posting images and attachments with comments?
The Geek
04-17-2005, 06:47 PM
you can turn off most items through the forum manager. As far as attachments g o - you can always just comment out the attachment blocks in GAS_comment_pb and the previews ones in GAS_article_pb
Nick0r
04-17-2005, 09:36 PM
This hack has some compatability issues with dani's mod rewrite hack, it breaks some of the exec_header_redirect's and thus leaving links that lead to 404's it's do with with adding the &conly bit to the end, if that could be avoided, I imagine it would work.
The Geek
04-17-2005, 09:43 PM
This hack has some compatability issues with dani's mod rewrite hack, it breaks some of the exec_header_redirect's and thus leaving links that lead to 404's it's do with with adding the &conly bit to the end, if that could be avoided, I imagine it would work.
I am sure some here have that hack installed. Maybe there is some setting/alteration that would need to be made to that particular hack?
I dont realy forsee a way to get around the conly request variable as it determines the page type (comments or article).
venomx
04-17-2005, 09:58 PM
Whats the mod rewrite hack?
KTBleeding
04-17-2005, 10:12 PM
I have installer GAS 3.51 and I'm having a template error in the artlcle forums (see the screens.)
What'up?
Thanks
I had this problem too. The problem was because I had the templates installed from v2. All I had to do was go to the "admincp/gas3_install.php" file, click on Upgrade, and then "Upgrade Templates" (at the bottom).
When upgrading it said, 'Already to current version' but when I accessed my article forum they looked fine.
KTBleeding
04-17-2005, 10:20 PM
Geek, I've got to say that it's awesome that you included the GAL feature. That's going to be so awesome.
EDIT: I actually can't seem to get the GAL feature to work, is there something I have to do specifically?
EDIT 2: I've also found a bug :(. If I add an attachment when originally posting an article, the attachments don't add. I have to go back and edit the article and add them again before they save.
I have one more small request, and it may be simple to do. I want to put the number of articles submitted by a user.. per forum. So for instance, say I have TWO forum id's set as article forums. We'll say "Movie Reviews" and "Game Reviews". Is there an easy way to add the number of submitted articles and link to them from the number?
For example: (in the users profile or postbit)
Movie Reviews: 5 (the 5 links to all articles by that user in the movie review forum)
Game Reviews: 3 (the 3 links to all articles by that user in the game review forum)
I tried making this easy to understand, but I'm not good at explaining things without confusing people.
The Geek
04-18-2005, 06:13 AM
in the settings. you have to specify to integrate with GAL AND you must put in which user groups can use the gal integration.
The attachemnts should add first post w/o a problem. Double check any file edits.
As for your features query - I dont get you :(
Mr. Brian
04-18-2005, 06:36 AM
Well, let say if I still got chinq's article hack left unimstalled on my forum. Will that affect this installation process?
Lizard King
04-18-2005, 06:40 AM
Well, let say if I still got chinq's article hack left unimstalled on my forum. Will that affect this installation process?
No I have both of them working pretty good in my board.
KTBleeding
04-18-2005, 11:25 AM
in the settings. you have to specify to integrate with GAL AND you must put in which user groups can use the gal integration.
The attachemnts should add first post w/o a problem. Double check any file edits.
As for your features query - I dont get you :(
Oh, I see. I left "blank for all" but I guess that didn't actually work. :)
I just double checked all the file edits and they are fine. I manually installed rather than the auto install, maybe that may be the issue? I don't think it would be in the templates at all cause it works if you edit the article and then add attachments.
As for the features, I basically just want to have a link in the users profile or postbit that will link to the articles they have submitted to the site. But I want it to show per forum id rather than all of them jumbled together.
Nick0r
04-18-2005, 11:33 AM
Whats the mod rewrite hack?
http://www.daniweb.com/tutorials/tutorial12725.html
See this post (http://www.daniweb.com/techtalkforums/showpost.php?p=46721&postcount=24) for where the problem lies, do you have any ideas how we can work around this nailgeek?
Your last change needs to be:
// === GAS step 208 ===
if ($GAS_setting['rt_template']){
eval('$HTML = "' . fetch_template('rt_template') . '";');
}else{
eval('$HTML = "' . fetch_template('FORUMDISPLAY') . '";');
}
print_portal_output($home, $HTML);
// === /GAS step 209 ===
this didnt seem to work Geek... however.... I tried looking for the template "rt_template" in the admincp style manager and it was not there... i think maybe that is the problem... i ran the template installer, but that specific template wont get created....
The Geek
04-18-2005, 12:25 PM
http://www.daniweb.com/tutorials/tutorial12725.html
See this post (http://www.daniweb.com/techtalkforums/showpost.php?p=46721&postcount=24) for where the problem lies, do you have any ideas how we can work around this nailgeek?
hmmm. not really. Doesnt doing that ditch things like search word highlighting and stuff?
Maybe you can do a rewrite for articles and one for comments. Then you could ditch the $conly variable. However to do this is beyond me :)
KTBleeding - can you give me a test account and url and let me give it a whirl?
The Geek
04-18-2005, 12:28 PM
I did this for another guy a little while ago and am now kicking myself for not documenting it.
rt_template stands for run time template. That is changed in functions_geekarticles and the value should be GAS_forumdisplay.
ooops. Just noticed my typo... do this instead:
// === GAS step 208 ===
if ($GAS_setting['rt_template']){
eval('$HTML = "' . fetch_template($GAS_setting['rt_template']) . '";');
}else{
eval('$HTML = "' . fetch_template('FORUMDISPLAY') . '";');
}
print_portal_output($home, $HTML);
// === /GAS step 209 ===
I did this for another guy a little while ago and am now kicking myself for not documenting it.
rt_template stands for run time template. That is changed in functions_geekarticles and the value should be GAS_forumdisplay.
ooops. Just noticed my typo... do this instead:
// === GAS step 208 ===
if ($GAS_setting['rt_template']){
eval('$HTML = "' . fetch_template($GAS_setting['rt_template']) . '";');
}else{
eval('$HTML = "' . fetch_template('FORUMDISPLAY') . '";');
}
print_portal_output($home, $HTML);
// === /GAS step 209 ===
yup, that did it the geek :) thank you very much for all of your help, i appreciate it... i was going to vote for this hack as hack of the month... but as I see, you all already won the award :)
KTBleeding
04-18-2005, 03:03 PM
KTBleeding - can you give me a test account and url and let me give it a whirl?
Sure thing, I'll create it when I get off work and PM you the details. Thanks Geek.
Nick0r
04-18-2005, 07:04 PM
Hmmm... search word highlighting isn't really important... There must be a way to integrate the conly variable with dani's hack..
venomx
04-18-2005, 07:28 PM
To you it isnt....
The Geek
04-18-2005, 07:38 PM
have you tried asking her?
Nick0r
04-18-2005, 09:03 PM
I don't think she supports it anymore, all we need to do it get rid of the need to add &conly= to the url, are sure you can't come up with another solution, like hardcode it into the files rather than requiring it in the URLs?
The Geek
04-18-2005, 09:11 PM
I don't think she supports it anymore, all we need to do it get rid of the need to add &conly= to the url, are sure you can't come up with another solution, like hardcode it into the files rather than requiring it in the URLs?
it is 'hard coded'. It is just as important to navigating the articles as the page variable is. However she works around the page variable, you should be able to apply the same principal.
Nick0r
04-19-2005, 08:21 AM
What do you mean by that? What does she work around, adding variables to the URL?
The Geek
04-19-2005, 09:27 AM
What do you mean by that? What does she work around, adding variables to the URL?
yea. She already must take into consideration the other request variables appended to the url. There is pp (per page), page, highlight, sessionid (if applicable), t (thread), p (post).
Apply the same principlas to conly and you should have yoursefl a solution ;)
Allan
04-19-2005, 01:27 PM
hello has all, here my problem, there are a colone moreover (in forumdisplay.php), lol
Lizard King
04-19-2005, 03:07 PM
Allan what does dernier message means :) just wondering :p
The Geek
04-19-2005, 03:14 PM
hello has all, here my problem, there are a colone moreover (in forumdisplay.php), lol
Hi Allan, Looks like its been modified from its original template.
Try a revert of the template (I would save the current one just in case).
KTBleeding
04-19-2005, 04:33 PM
hello has all, here my problem, there are a colone moreover (in forumdisplay.php), lol
https://vborg.vbsupport.ru/showpost.php?p=642179&postcount=808 ;)
Nick0r
04-19-2005, 05:35 PM
yea. She already must take into consideration the other request variables appended to the url. There is pp (per page), page, highlight, sessionid (if applicable), t (thread), p (post).
Apply the same principlas to conly and you should have yoursefl a solution ;)
Heh, unfortunately I don't code so I'm not quite sure how that's possible.
libertate
04-19-2005, 05:56 PM
Uhh.. I am sorry, but I am lost.
I installed GAS on the latest clean vB w/vBa and I don't see anything changed. Went through all the steps indicated in the install - nothing.
What am I missing/looking for?
KTBleeding
04-19-2005, 06:01 PM
You need to set which forum Id's act as an article forum in the admincp.
Nick0r
04-19-2005, 06:08 PM
Am I right in saying geek articles 2 doesn't require the header_redirect modifications?
The Geek
04-19-2005, 06:17 PM
Am I right in saying geek articles 2 doesn't require the header_redirect modifications?
thats right Nick0r
liberate - also make sure you downloaded the CHANGED files from your gas/changed folder. If you are satisified all changes were made correctly - then upload them to their relative location.
libertate
04-19-2005, 07:08 PM
You need to set which forum Id's act as an article forum in the admincp.
Thanks. Now... where in the admincp is this? I see nothing even remotely labeled for articles, nor do I see anything under forum management, or permissions...
tormodg
04-19-2005, 07:25 PM
Check under vBulletin options -> Geek Article System
libertate
04-19-2005, 07:48 PM
Check under vBulletin options -> Geek Article System
thanks. Still nothing... :disappointed: I expanded all of the VBulleting Options section, and see nothing with Geek or Article...
Allan
04-19-2005, 08:37 PM
https://vborg.vbsupport.ru/showpost.php?p=642179&postcount=808 ;)
veiled, I updated the templates towards version 3.51 and it is similar :(
steadicamop
04-19-2005, 08:46 PM
Seems like a cool hack, but like liberate, nothing is showing on the forum homepage ... even when I add the forum ID's .. and I mean just adding 1,2,3,4 to see what appears ... nothing shows.
Any advice plz?
The Geek
04-19-2005, 09:10 PM
Seems like a cool hack, but like liberate, nothing is showing on the forum homepage ... even when I add the forum ID's .. and I mean just adding 1,2,3,4 to see what appears ... nothing shows.
Any advice plz?
did you guys copy the changed files from gas/changes as outlined in the readme?
steadicamop
04-19-2005, 09:19 PM
Sorry ... I've figured it out, it was me, I was using the forum display order, not the actual ID.... it works fine now, thanks, my goof :speechless:
Jason
Allan
04-19-2005, 09:56 PM
yep, I SOLVED my problem by removing this :
<td class="thead">$vbphrase[posts]</td>
in template "GAS_forumdisplay"
thank Geek ;)
libertate
04-20-2005, 01:23 AM
did you guys copy the changed files from gas/changes as outlined in the readme?
Yes, from forum/gas/changes to each appropriate directory.
Does the install create some sort of a log? Maybe that could tell...
libertate
04-20-2005, 01:50 AM
Yes, from forum/gas/changes to each appropriate directory.
Does the install create some sort of a log? Maybe that could tell...
I have no idea what went wrong. I installed the system second time exactly as the first. Nothing.
I rolled everything back, and installed it the third time, and now it showed up.... Weird.
sv1cec
04-20-2005, 12:04 PM
The Geek,
One question (sounds stupid, but....), could you please tell me which template is used to show the comments at the end of the last page of an article? I thought it would be the GAS_comment_pb, but this seems to affect the comment-only display, not the one below the article.
Rgds
The Geek
04-20-2005, 12:51 PM
The Geek,
One question (sounds stupid, but....), could you please tell me which template is used to show the comments at the end of the last page of an article? I thought it would be the GAS_comment_pb, but this seems to affect the comment-only display, not the one below the article.
Rgds
GAS_article_pb handles the preview comments (comments seen while viewing an article). :)
Nordinho
04-20-2005, 01:11 PM
Hey Geek,
Thanks for the cool installer...which all hacks were like that ;)
Anyways, one of my moderators noticed that last comment (#10) on the first commentpage is repeated at the next commentpage...it only happens with the 10th comment, not the 20th etc...
And one more question. Are attachments supposed to show up in an article??I'm using this hack (https://vborg.vbsupport.ru/showthread.php?t=70142&highlight=attachment+style) to display attachments below and above posts...
sv1cec
04-20-2005, 01:44 PM
Maybe I didn't make myself clear, sorry for that.
What I want, is to change this:
https://vborg.vbsupport.ru/
to look like this:
https://vborg.vbsupport.ru/
But, I can't seem to find the template to do it. The GAS_article_pb, does not seem to include any code for that part of the page.
Maybe I didn't make myself clear, sorry for that.
What I want, is to change this:
But, I can't seem to find the template to do it. The GAS_article_pb, does not seem to include any code for that part of the page.
I'm intersted in this too... looks cleaner and more like the rest of the forums...
The Geek
04-20-2005, 01:47 PM
Maybe I didn't make myself clear, sorry for that.
What I want, is to change this:
http://img.photobucket.com/albums/v323/sv1cec/comment1.jpg
to look like this:
http://img.photobucket.com/albums/v323/sv1cec/comment2.jpg
But, I can't seem to find the template to do it. The GAS_article_pb, does not seem to include any code for that part of the page.
nordino - ill have to check into that.
sv1cec - It is in the GAS_article_pb. There is an if clause around the header. If its an article (firstpost), show the article header. If not, show the comment style header.
:)
HTHs
Slave
04-20-2005, 01:50 PM
Hi Geek .. :)
Great mod and installer! .. I'm having a play and have installed it (3.51) .. and I've come up with a couple of things ..
When I try to upload an image using your uploader I get the following error ..
Warning: move_uploaded_file(/var/www/html/gas/images/1/bob.gif): failed to open stream: No such file or directory in /includes/functions_geekarticles_images.php on line 104
Warning: move_uploaded_file(): Unable to move '/tmp/php4VCvAJ' to '/var/www/html/gas/images/1/bob.gif' in /includes/functions_geekarticles_images.php on line 104
Also .. I've got it set not to show the comment buttons until the last page .. but it's still showing the quick reply box at the bottom of each page
Any ideas?
sv1cec
04-20-2005, 02:00 PM
Thanks, I must be blind!!!!
Done, many thanks!
One more question, if you allow me. I just finished deploying your hack in my board, and I would like to clarify something. When you say "Comments Preview", do you mean that one gets to see only a handful of the comments that have been left for that article?
If yes, I think I found something to play with. I would prefer, if instead of showing the whole comment, one could see just the first 300 (for example) characters of each comment, and then have a "Read More" link, to see the rest. Since the focus of an article is the article itself, and not the comments, one does not need to have a list of 10 comments, in their entity, at the end of the last page.
I am not sure how I'll handle this eventually, but I would say 3-5 "synopsised" comments and then a button to see the rest, would be ideal.
Time for work!
Thanks The Geek, excellent hack. Someday, I'll need your expertise to come up with such a great installer, for my AWS hack, it's getting too complicated to install.
Kind regards
nordino - ill have to check into that.
sv1cec - It is in the GAS_article_pb. There is an if clause around the header. If its an article (firstpost), show the article header. If not, show the comment style header.
:)
HTHs
so do we need to erase this line?
<if condition="$post['postid'] == $thread['firstpostid']"> :nervous:
The Geek
04-20-2005, 02:49 PM
so do we need to erase this line?
<if condition="$post['postid'] == $thread['firstpostid']"> :nervous:
well - you can do - but the problem will be that each reply header will look like the article header.
I would just replace the <else /> result with one nabbed from your postbit.
John - take it if you want. I was prototyping a new installer for GAB and GISH (they are really the same installer) but scrapped the development of it with the immenent release of vb3.1 - I suspect that will make installers obsolete (hurray!)
sv1cec
04-20-2005, 03:34 PM
John - take it if you want. I was prototyping a new installer for GAB and GISH (they are really the same installer) but scrapped the development of it with the immenent release of vb3.1 - I suspect that will make installers obsolete (hurray!)
Hmm, do you have some inside info you could share? I mean why would installers be obsolete? Would it include a specific method for hacking the file etc?
Rgds
KTBleeding
04-20-2005, 03:38 PM
Geek, one quick thing I noticed. If you have the GAL option set to yes and you edit an article, you can not put in GAL settings. They only appear when creating a new article. Is this intentional? I'd love to go back and edit some in if possible.
The Geek
04-20-2005, 05:13 PM
Thats by design. Its a lot of work to rebuild the GAL store so I minimize it as much as possible.
It also prevents users from abusing the autolinking system. Once a GAL is in - you can only add/remove via the GAL admincp
laeth
04-20-2005, 05:25 PM
Heya,
I tried installing this. But when I tried to upload the changed files, and view them all I was getting was a blank white page.
Any ideas?
gldtn
04-20-2005, 05:37 PM
Heya,
I tried installing this. But when I tried to upload the changed files, and view them all I was getting was a blank white page.
Any ideas?
Template problem maybe?
Steph2k
04-20-2005, 09:11 PM
I installed GAS and it seemed to install but I don't see anything in admincp or anywhere else that changed to reflect GAS was installed.
Thanks,
Steph
Lizard King
04-20-2005, 09:13 PM
Did you move your changed files back to their regular folder ? The installer keep the changed files under /forum/gas/ move them to regular folders and then you are ready to go ;)
Steph2k
04-20-2005, 09:27 PM
Did you move your changed files back to their regular folder ? The installer keep the changed files under /forum/gas/ move them to regular folders and then you are ready to go ;)
LOL! DOH! *Facepalm* Yeah that was my problem :o Thanks for the hint. It's working now.
Thanks for the help!
Steph
The Equivocate
04-20-2005, 10:17 PM
How can I set the default "sorted by" option to Title? I've looked all through the Forum Settings and couldn't find it.
The Geek
04-21-2005, 05:52 AM
How can I set the default "sorted by" option to Title? I've looked all through the Forum Settings and couldn't find it.
think we are going to have to do a slight add on or put this in the new release as I think this can only be done with a hack (all be it a very tiny one).
Ill look into it and post the results
Hi,
Got a quick question for you.
I am trying to create an "improved"' feature geek article that will also display the image from the article and will use the synopsis instead of the first X characters.
Now changing to the synopsis was easy, the question is, where do i find the image info. cant seem to find it in the geek table in mysql.
Also,
I wish to change the resize settings of the image upload script (need the images to be a tad larger) how would i go around doing that ?
Thanks a lot
Guy
The Geek
04-21-2005, 10:27 AM
here is the prototype for the version I am using. I havent been able to get the time to finish it so I havent - well - finished it however it does work for the most part.
If you get keen to finish it up - or anything you do to it to clean it up - let me know. I am sure many would benefit from it.
The Geek
04-21-2005, 10:28 AM
oh, the image sizing is in gas settings ;)
The Geek,
first thanks for the quick answer, im about 70% through creating a nice improved latest articles however i have a quick question. how do you handle the pictures ?
are they saved as attachments ? (you have a unique upload system so i assume not but i cant seem to find where the picture info is saved - theres no relevant filed in the geekarticle table),
Thanks again,
Tpr
nordino - ill have to check into that.
sv1cec - It is in the GAS_article_pb. There is an if clause around the header. If its an article (firstpost), show the article header. If not, show the comment style header.
:)
HTHscan someone give me some details step by step instructions on how to do this? i tried myself but i messed everything up I had to put things back to the original setup... i would really appreciate it thanks...
The Geek
04-21-2005, 01:02 PM
The Geek,
first thanks for the quick answer, im about 70% through creating a nice improved latest articles however i have a quick question. how do you handle the pictures ?
are they saved as attachments ? (you have a unique upload system so i assume not but i cant seem to find where the picture info is saved - theres no relevant filed in the geekarticle table),
Thanks again,
Tpr
just use the file above. It gets the article image ;)
polo - ill see if I can give it a go later for you. If not it may be a few days as I will be away
Slave
04-21-2005, 02:44 PM
Hi again Geek :)
err .. did you miss my post?
https://vborg.vbsupport.ru/showpost.php?p=643475&postcount=852
.. or did you not have any help to give? ;)
polo - ill see if I can give it a go later for you. If not it may be a few days as I will be away
oh ok The Geek, dont worry, do it whenever you can and have a chance. I will be around ;)
Hi again Geek :)
err .. did you miss my post?
https://vborg.vbsupport.ru/showpost.php?p=643475&postcount=852
.. or did you not have any help to give? ;)
check the paths... i think that is the problem...
The Geek
04-21-2005, 03:36 PM
Hi again Geek :)
err .. did you miss my post?
https://vborg.vbsupport.ru/showpost.php?p=643475&postcount=852
.. or did you not have any help to give? ;)
Also - make sure that your gas folder is in your forums directory (and as polo mentioned that the paths are correct).
As to the quick reply box - that would have to be removed from GAS_showthread. You can remove the $quickreply variable to make it go away :)
HTH's
Lionel
04-21-2005, 05:30 PM
Geek, I thought I'd let you know so you don't waste your time:
In the template GAS_postbit_attachmentthumbnail, you have $attachment[description] which is not in use and probably placed for later use.
An excellent hack just came out that does exactly what you intended, but for all threads, including yours.
https://vborg.vbsupport.ru/showthread.php?p=644032
Reeve of shinra
04-22-2005, 01:35 AM
I just installed the geek article hack and I was laughing my butt off with the choose your own adventure story. I enjoyed reading every bit of that!
I also have to say that I was very hesitant about using the auto-hacker feature since I have a lot of hacks installed but it worked flawlessly and I am amazed. Wickedly cool!
The Equivocate
04-22-2005, 07:14 PM
think we are going to have to do a slight add on or put this in the new release as I think this can only be done with a hack (all be it a very tiny one).
Ill look into it and post the results
Yes, I figured it couldn't be too much work to edit some files, but I'm not even going to mess with it. Let us know when you can at least release the instructions on how to change this instead of waiting for the new release.
The Geek
04-23-2005, 06:07 AM
try this (havent tested but it should be cool:
in forumdisplay, find:
$sqlsortfield = 'lastpost';
$sortfield = 'lastpost';
replace with:
if ($GAS_settings['is_article']){
$sqlsortfield = 'title';
$sortfield = 'title';
}else{
$sqlsortfield = 'lastpost';
$sortfield = 'lastpost';
}
ANyway - like I said I havent tried it but it should work.
hth's ;)
Shackbase
04-23-2005, 09:31 PM
'cant find root directory gas' but it's right there - and chmodded 777.. :(
my html root is /www/ and gas is in /www/gas/ - what am I missing?
Thanks,
--Tone
Steph2k
04-23-2005, 10:19 PM
This is more of an FYI, cuz I think this happens in Vb in general when you edit the title of the post. It needs to be edited in thread tools as well. When I edited thread title via the edit link (editpost.php), it changes the title when view the full article (showthread.php), but not in the thread/articles display (forumdisplay.php). So, when I edited the thread via admin tools, the title on forums/articles diplay was edited.
I think this happens as well on normal threads outside of the articles system, so its a vB thing. I think its set up like that so only admins can edit titles. Just wanted to post this as an FYI in case anyone comes across the need to edit titles.
Steph
venomx
04-23-2005, 10:23 PM
'cant find root directory gas' but it's right there - and chmodded 777.. :(
my html root is /www/ and gas is in /www/gas/ - what am I missing?
Thanks,
--Tone
Is your forum in the www dir?
Shackbase
04-23-2005, 10:28 PM
yes - no /forum/ - do I need to move it all?
venomx
04-23-2005, 10:48 PM
It needs to be in the forum dir...
Shackbase
04-23-2005, 11:25 PM
ok i moved it all into /forum/ - so it's in.. /www/forum/ - and ofcourse /www/forum/gas/ and I'm still getting 'cant find root directory gas
Make sure you have created this in your forum directory.'. :(
I appreciate your help Venomx, any more words of wisdom? Thanks! :)
--Tone
Shackbase
04-23-2005, 11:36 PM
Actually I am really confused now.. :) I know it's just me..
VB should be installed in root and then GAS should be installed in /forum/ ?
no matter what I do - I cannot get this to work.. I'm being such a noobie.. :(
--Tone
Lizard King
04-24-2005, 03:36 AM
Did you chmod /forum/gas directory to 777 If you you have to do that.
Shackbase
04-24-2005, 03:45 AM
yupp did that.. :(
--Tone
The Geek
04-24-2005, 07:25 AM
Check out the readme. When this happens you need to create the folder structure yourself. I have no clue why it happens on some configurations - it just does ;)
Creating the folder structure yourself always seems to do the trick.
When your done - toggle the ol install button for me :)
The Geek
04-24-2005, 07:26 AM
This is more of an FYI, cuz I think this happens in Vb in general when you edit the title of the post. It needs to be edited in thread tools as well. When I edited thread title via the edit link (editpost.php), it changes the title when view the full article (showthread.php), but not in the thread/articles display (forumdisplay.php). So, when I edited the thread via admin tools, the title on forums/articles diplay was edited.
I think this happens as well on normal threads outside of the articles system, so its a vB thing. I think its set up like that so only admins can edit titles. Just wanted to post this as an FYI in case anyone comes across the need to edit titles.
Steph
GAS doesnt deal with thread/article titles. Personally I think its a bug with vB - but easy enough to fix by clicking thread/article tools - edit thread/article.
Dont ask me why they did it that way. I dont think its very intuitive.
Gastongr
04-24-2005, 01:37 PM
Nice hack!
Does this work for Vb 3.0.1?
Gastongr
04-24-2005, 06:58 PM
It does :) hehe.
I have installed it in www.webmastershelp.com, but in the articles forum in home page it says all the same as in the other ones
" Forum, Last Post ,Threads, Posts,"
is there any way to remove the last post and post count colums only from that "forum" (the one for articles) and to change "threads" for "articles" ?.
Thanks in advance
Shackbase
04-24-2005, 07:03 PM
ok - someone walk me through this like I'm a 3 year old...
/www/ html root directory
should VB be installed in /www/ or /www/forum/
the gas should be uploaded into /www/forum/ right?
the admincp (for the install) is inside the /forum/ directory - I have tried having gas uploaded to both the /www/forum/ and the /www/ directory - but I cannot get it to work at all.
I have made sure /www/gas/ and /www/forum/gas/ has been chmodded 777 and I have manually created the two gas subdirectories in both places, changes and /changed/backup and chmodded them 777 as well.
I am clearly missing a vital step... HELP!
--Tone
Gastongr
04-24-2005, 08:28 PM
Hi Tone,
should VB be installed in /www/ or /www/forum/
You can install vBulletin where ever you want. if the site is only going to be the forum then install it in /www/.
the gas should be uploaded into /www/forum/ right?
The gas folder should be uplaoded to the forum directory, where the index.php file of your board is.
If you install your forum in www/forum/ then the gap folder should be uploaded to www/forum/
Good luck
Gastongr
04-24-2005, 08:54 PM
Please The Geek or someone who knows this hack, I need some litle help. :)
In my site when you call any post in the articles forums like this:
showthread.php?p=1602
A warning about an error appears in the status bar of IE. The error details say it's in line 305.
Here is line 305 of the outputted html page:
<body onload="if (is_ie || is_moz) { fetch_object('currentPost').scrollIntoView(!is_moz ); }">
However if you call the same post like a thread, like this:
showthread.php?t=262
nothing is loaded in the body tag and no error appears.
any ideas about what can be causing this?
Here is an example page where the error appears http://www.webmastershelp.com/showthread.php?p=1602
and here the same post called as thread where error does not appear http://www.webmastershelp.com/showthread.php?t=262
Thanks in advance.
Great hack!
Gastongr
04-24-2005, 09:07 PM
wops, it seems you have the same error
http://www.thenailgeek.com/showthread.php?p=43913
It happens when you call a post that is also thread with "showthread.php?p=postidhere"
Gastongr
04-24-2005, 10:05 PM
I know i'm asking a lot but i have an other problem, when i try to upload an image i get this error.
Warning: move_uploaded_file(/var/www/html/gas/images/1/google1.jpg): failed to open stream: No such file or directory in /includes/functions_geekarticles_images.php on line 104
Warning: move_uploaded_file(): Unable to move '/tmp/php9E2nbm' to '/var/www/html/gas/images/1/google1.jpg' in /includes/functions_geekarticles_images.php on line 104
html/gas/images/1/google1.jpg
google1.jp is the name of my image, 1 is the user id isn't it? the other folders were made by the script, except "html", which doesn't exist.
Any idea? :(
Thanks and sorry for asking so much
emtee
04-25-2005, 04:08 AM
Hello The Geek,
I installed this and it work great! I clicked INSTALL ;)
One small bug though: When you are in forumdisplay of sub forums (level 2), you click on an article on "Last Post" column, and it takes you to the comment. I don't like the way it is setup like that, it makes people confused because they do not see the article. I want to change it so when you click on "Last Post", it will take you to the article, not the comment.
In other words, when clicking on "Last Post" column of a sub forum (article category it is), instead of going to showthread.php?goto=newpost&t=threadid, I want it to go to showthread.php?t=threadid which is the article itself, not the comment.
How do I do this? Thank you for your help.
The Geek
04-25-2005, 06:22 AM
Does it work for 3.0.1?
I think so - however I also think there have been changes to the attachment table since then. That means you may have to revert you attachment steps. There are posts regrading this somewhere in this thread ;)
to remove sorting options - just edit GAS_forumdispaly
shockbase - the gas folder only needs to be in the same directory as your forum. If your url to your forum is www.mysite.com/forum (http://www.mysite.com/forum) then gas should be www.mysite.com/forum/gas (http://www.mysite.com/forum/gas) if the url to your forum is just www.mysite.com/ (http://www.mysite.com/) then your gas folder should be www.mysite.com/gas (http://www.mysite.com/gas)
Here is the post regarding the fix for the javascript error-> https://vborg.vbsupport.ru/showpost.php?p=635215&postcount=633
re: image upload errors - it sounds like your paths in your settings is not correct. DOuble check them.
emtee - edit your GAS_threadbit template and change the link to whatever you need.
nJoy
sonicdriven
04-25-2005, 08:43 AM
Hey what can i say.. from what i can tell awesom Hack. Install was smooth as could be, or at least it seemed. I have setup in admincp/GAS_admin the following forum (16) to be my articles http://oneshotdesign.com/designmarket/forumdisplay.php?f=16 but it still shows as regular forum..
Is there soemthing else i need to do to enable it? I have read through the Readme several times, and am at this point sure that everything is accounted for... any ideas?
<edit>FIXED - I had to move the files from the changes folder back to their homes. :o
Glad it's 3:30am and everybody sleeping - Great Job on this hack bud, thanks for a fun install ;)</edit>
Gastongr
04-25-2005, 01:46 PM
Thanks The Geek,
both things solved, but now as you said i seem to have a problem with the attachment or something. i'll try to find the way to solve it in previous posts.
Is this what you were talking about? http://www.webmastershelp.com/showthread.php?t=228
Thanks so much
Gastongr
04-25-2005, 08:16 PM
It was a problem with step 610, when installing i did that manually, fixed that based in https://vborg.vbsupport.ru/showpost.php?p=626201&postcount=309.
Now the only thing left is to remove the last post and posts count colums from forum homepage
You said to remove sorting options - just edit GAS_forumdispaly
What i need is to remove the columns in the articles forum in home page not the sorting options inside the forum :p.
How can i do that?
Gaston
emtee
04-25-2005, 08:36 PM
emtee - edit your GAS_threadbit template and change the link to whatever you need.
nJoy
Thanks for your tip but it doesn't work. :ermm:
I took a quick look at the codes and the templates. It seems like I have to edit threadbit template to tell it to go to the article itself, not the last comment or the unread comment. So now I want to know the condition for my <if> statement for templates, not for .php files. Do you know what the condition is? Please help, thanks.
I know I can't use <if condition="THIS_SCRIPT == 'showthread'"> because the article use showthread.php to view it. I need the condition somewhat like this: <if forum is marked article> <showthread.php?t=$thread[threadid]"> <else /> <showthread.php?$session[sessionurl]goto=newpost&t=$thread[threadid]"> or <showthread.php?goto=lastpost&t=&t=$thread[threadid]">.
rjordan
04-25-2005, 09:18 PM
I must say, I had overlooked this mod for the longest time... for whatever reason. Now that I have actually read it, I must say I am very hyped because of what it could do for something I am working on.
Rock on!
The Geek
04-26-2005, 06:13 AM
gastongr - I really dont follow what you mean.
emtee - Why would you edit threadbit? If the forum is an article forum - GAS doesnt ever use threadbit - it uses GAS_threadbit
THerefore no condition is needed. If GAS_threadbit is being used then you know you are in an article forum ;)
rJordan - hope you dig ;)
emtee
04-26-2005, 07:02 AM
emtee - Why would you edit threadbit? If the forum is an article forum - GAS doesnt ever use threadbit - it uses GAS_threadbit
THerefore no condition is needed. If GAS_threadbit is being used then you know you are in an article forum ;)
I changed both values: <showthread.php?$session[sessionurl]goto=newpost&t=$thread[threadid]"> and <showthread.php?goto=lastpost&t=&t=$thread[threadid]"> in GAS_threadbit to to force it to go to the article itself ( <showthread.php?$t=$thread[threadid]"> ) but still, when I click on either article icon or the last post icon, it still didn't use the value I changed in GAS_threadbit which is <showthread.php?$t=$thread[threadid]"> , that's why I asked you what condition I need to use in threadbit template to make it work, because I suspect that it didn't use the template GAS_threadbit :ermm:
Thank you very much for your help.
The Geek
04-26-2005, 09:00 AM
I changed both values: <showthread.php?$session[sessionurl]goto=newpost&t=$thread[threadid]"> and <showthread.php?goto=lastpost&t=&t=$thread[threadid]"> in GAS_threadbit to to force it to go to the article itself ( <showthread.php?$t=$thread[threadid]"> ) but still, when I click on either article icon or the last post icon, it still didn't use the value I changed in GAS_threadbit which is <showthread.php?$t=$thread[threadid]"> , that's why I asked you what condition I need to use in threadbit template to make it work, because I suspect that it didn't use the template GAS_threadbit :ermm:
Thank you very much for your help.
if it is an article forum it uses GAS_threadbit.
What you want to get rid of is the goto=newpost and goto=lastpost
if you are trying to prevent users going to last comments.
HTH's
Chris Gwynne
04-26-2005, 01:46 PM
Fairplay, this is one crap hack. No offense. It's pretty poor. Installed it, wasn't what I expected. Tried to un-install it, got half way through that then it starts to take you through the install again. Hmm?
Now I have to go through the Phrases delete them manually, go through file edits manually and whatever else has messed up my board.
Fairplay, this is one crap hack. No offense. It's pretty poor. Installed it, wasn't what I expected. Tried to un-install it, got half way through that then it starts to take you through the install again. Hmm?
Now I have to go through the Phrases delete them manually, go through file edits manually and whatever else has messed up my board.
Just because you didnt find it useful for your needs it doesnt mean this hack is c***... you should have read the first post, the demos and the screenshots...
What you see is what you get..... dont blame the hack just because you didnt read....
The Geek
04-26-2005, 02:22 PM
<div align="center">:ermm:</div>
Are you sure you posted in the right thread? No offence - but not sure who fairplay is, and with 250 installs - not one have had problems like you have mentioned. Could it be the installer or the installer running the installer?
If it was indeed GAS - then why not just revert to your backup files (you did read the readme right?)
All that aside - you should be taken outside and slapped around like an old wet sock for making such a lame comment like that about anyones work.
Gastongr
04-26-2005, 02:34 PM
gastongr - I really dont follow what you mean.
Sorry my english is a bit poor.
I want the homepage part where the forum for articles is, looking like this
http://www.webmastershelp.com/articles.jpg
Instead of like this http://www.webmastershelp.com/articles2.jpg
That is without the posts count column, and with some words changed like "last thread" for "last article". etc
Thanks for your patience and constant support :)
The Geek
04-26-2005, 02:41 PM
Sorry my english is a bit poor.
I want the homepage part where the forum for articles is, looking like this
http://www.webmastershelp.com/articles.jpg
Instead of like this http://www.webmastershelp.com/articles2.jpg
That is without the posts count column, and with some words changed like "last thread" for "last article". etc
Thanks for your patience and constant support :)
no problem - have you tried turning on the legacy forumdisplay setting?
FightRice.com
04-26-2005, 03:31 PM
I also installed this hack, and let me tell you...
it kicks some arse :nervous:
Lionel
04-26-2005, 03:48 PM
This is one of the best hacks ever created. Obviously some people could not install it properly.
Gastongr
04-26-2005, 05:00 PM
no problem - have you tried turning on the legacy forumdisplay setting?
Yes but that changes the way threads are displayed in forumdisplay.php and not what i need.
The Geek
04-26-2005, 05:15 PM
?? But those pics you showed are of forumdisplay ??
Gastongr
04-26-2005, 05:34 PM
They are from home page :p
Lizard King
04-26-2005, 06:25 PM
They are from home page :p
What you want is totally different from this hack. You have to modify your forumdisplay template also level1 and level2 templates and add some if conditon etc...
Gastongr
04-26-2005, 06:42 PM
I suppoused that :(.
Anyways, this hack is what i want but with some things changed :p, great work the geek!
thanks for the support people
theoperative
04-26-2005, 11:42 PM
I get this error when installing
"cant find root directory gas
Make sure you have created this in your forum directory."
I know its there and the path is right, I know I have to do this manually but that is where I am stuck. And the readme is not to clear on this part. Please help me
Lizard King
04-27-2005, 12:20 AM
gas folder supposed to be in your forum folder and you have to chmod it to 777 if not it will not find gas directory ;)
emtee
04-27-2005, 01:30 AM
if it is an article forum it uses GAS_threadbit.
What you want to get rid of is the goto=newpost and goto=lastpost
if you are trying to prevent users going to last comments.
HTH's
Yes, I had edited GAS_threadbitm and that forum was marked as an article forum also, but it also didn't go to showthread.php?t=$thread[threadid], even though after I removed goto=newpost and goto=lastpost from GAS_threadbit. That's why I said I suspect it might be in threadbit template itself.
If you have a test board, can you check this please? Or anyone else who has the same problem, can you verify this? Thank you in advance.
theoperative
04-27-2005, 09:03 AM
gas folder supposed to be in your forum folder and you have to chmod it to 777 if not it will not find gas directory
yes those are the settings I have, I am using vb 3.0.7 could that be the issue?
The Geek
04-27-2005, 10:20 AM
yes those are the settings I have, I am using vb 3.0.7 could that be the issue?
check the readme - you need to manually create the file structure in this situation. After that - the rest is a snap ;)
HTH's
theoperative
04-27-2005, 11:52 AM
check the readme - you need to manually create the file structure in this situation. After that - the rest is a snap ;)
HTH's
I'm sorry for being a pain, but the readme doesn't really elaborate on creating the structure manually could you please explain that a little better. Thanks Much
The Geek
04-27-2005, 12:21 PM
no stress. Your not being a pain - here is the section from the readme.
I hope it helps:
Important!
You must upload all files in package to their respective locations (including the gas folder)
Make sure that the gas folder (and its contents) are chmod'ed to 0777
If your admincp folder has been renamed. I would rename it to admincp until the install is done - then you can revert it back
In a couple of instances, the folder structure in gas/changes doesnt get made. Manually creating it seemed to do the trick so here it is:
gas/changes
admincp
index.php
includes
functions_showthread.php
editpost.php
forumdisplay.php
newthread.php
printthread.php
showthread.php
The backup folder (gas/changes/backup) is the exact same
Each folder also has an index.html file in it. Dont copy those back into the forums folder. That is just to prevent directory browsing
rjordan
04-27-2005, 06:16 PM
I searched the thread and did not see this question asked. I hope I did not miss it!
Anyway, in the following step:
step 610
in showthread.php, replace:
SELECT filename, filesize, visible, attachmentid, counter, postid, IF(thumbnail_filesize > 0, 1, 0) AS hasthumbnail, thumbnail_filesize
with:
SELECT filename, filesize, visible, attachmentid, counter, postid, IF(thumbnail_filesize > 0, 1, 0) AS hasthumbnail, thumbnail_filesize, description
I see 2 instances of the line being searched for. Which do I change?
EDIT:
The same for the following:
step 611
in showthread.php, replace:
$postattach["$attachment[postid]"]["$attachment[attachmentid]"] = $attachment;
with:
$postattach["$attachment[postid]"]["$attachment[attachmentid]"] = $attachment;// === GAS step 611 ===if ($GAS_setting['is_article'] AND $GAS_setting['show_thumb_as_avatar']){ if (!$GAS_setting['rt_thumb_avatar']){ $GAS_setting['rt_thumb_avatar']=gas_getthumbasavatar($attachment['attachmentid'],$attachment['filename']); }}// === /GAS step 611 ===
and
step 612
in showthread.php, replace:
$postbits .= construct_postbit($post, $template);
with:
// === GAS step 612 ===if($GAS_setting['is_article']){ gas_prepare_postbit($post['postid']==$FIRSTPOSTID); if(($post['postid']==$FIRSTPOSTID) OR $GAS_setting['rt_comments_only']){ $articlebits .= construct_postbit($post, $GAS_setting['rt_template']); }else{ $commentsbits .= construct_postbit($post, $GAS_setting['rt_template']); }}else{ $postbits .= construct_postbit($post, $template);}// === /GAS step 612 ===
I had to do this manually as I have a highly modified installation. These three steps are all that I have not completed.
3GNMEDIA
04-27-2005, 08:40 PM
err, I did everything. Do you have any screenshots of the Admin Panel? I don't see any changes in it.
edit: disregard this, i just see it now :)
memobug
04-28-2005, 05:19 AM
Thanks for this!
The install went smoothly. A couple of notes:
1. Regarding The lines in GAS setting
URL to default image can be relative (i.e. gas/images/default.jpg)
Maybe I am misunderstanding something, but there seem to be a couple of problems here. The first is that this setting has a bug that inserts an extra slash in front of the link, making it become:
/http://www.domain.com/forum/gas/images/default.jpg
if you use a relative link it will enter a slash too
I think it has something to do with these "safety checks" in line 163. I had to comment them out to get it to stop inserting that slash:
# if(substr($GAS_setting['default_header_image'],0,1)!='/'){
# $GAS_setting['default_header_image'] = '/' . $GAS_setting['default_header_image'];
# }
#
regardless of what you enter!
I also found that despite the fact that these two parameters say "CAN BE RELATIVE" in fact, the second link, the one to the default image, has to be relative. This is because the two get appended together!
The only way I could get an image out of it was to comment out all the safety checks - in particular this one that strips a slash off the end of the images directory
# if(substr($GAS_setting['url_to_header_images'],-1,1)=='/'){
# $GAS_setting['url_to_header_images'] = substr($GAS_setting['url_to_header_images'],0,strlen($GAS_setting['url_to_header_images'])-1);
#
and then use these settings:
URL to your images folder can be relative (i.e. gas/images) : http://www.mydomain.com/forum/gas/images/
URL to default image can be relative (i.e. gas/images/default.jpg):
default.jpg
Then when GAS appends the two together, I get good links!
A note:
2. I noticed that the path to the buttons was picking up my template path, so the buttons had to be reinstalled in the /buttons folder for the images associated to the template set where they were used.
A suggestion:
3. I think it would be great if a inserted a "[b]Next Page" link right at the bottom of the template beneath the text Without it, it looks like the article is over and the user would think so unless he looked for the fiddly little Page 1 2 > links.
Thanks!
Matt
The Geek
04-28-2005, 07:33 AM
rjordan - are you sure you havent already run the install? It looks to me like those changes have already been done?
memo - Thanks for the info. First anyone has mentioned problems with the safety checks.
You suggestion re: next page is good - Ill keep it in mind. The goal would really be to do a [break=on to page 2!] - but havent quite gotten my head around making it happen yet.
nJoy
memobug
04-28-2005, 08:11 AM
Actually if you mean
[break={title for next section}] that would be great, and being able to insert a
[TOC] table of contents somewhere, (or everywhere!) with links to each of those titles would be da bomb. I actually don't care too much for numbers. They are useful in the navigation, but sometimes a title beats all. You have to "sell" the next page to keep the person reading.
Regards,
Matt
rjordan
04-28-2005, 09:24 AM
rjordan - are you sure you havent already run the install? It looks to me like those changes have already been done?
What I posted is copied straight out of the manual install instructions for steps 610-612. I did run the installer, it ran the template/phrase updates, i went through the manual installation process, and then I ran into multiple instances of the above code.
The Geek
04-28-2005, 09:32 AM
Actually if you mean
[break={title for next section}] that would be great, and being able to insert a
[TOC] table of contents somewhere, (or everywhere!) with links to each of those titles would be da bomb. I actually don't care too much for numbers. They are useful in the navigation, but sometimes a title beats all. You have to "sell" the next page to keep the person reading.
Regards,
Matt
That is what I mean - however I wont be looking to work on the next release until my other projects are completed. In the meantime - just use BBcode to do what you are after (well, at least with the break option ;) )
The Geek
04-28-2005, 09:32 AM
What I posted is copied straight out of the manual install instructions for steps 610-612. I did run the installer, it ran the template/phrase updates, i went through the manual installation process, and then I ran into multiple instances of the above code.
was this an upgrade or a new intall?
rjordan
04-28-2005, 09:35 AM
New install.
Lines 1089-1105 of my showthread.php:
// load attachments
if ($thread['attach'])
{
$attachments = $DB_site->query("
SELECT filename, filesize, visible, attachmentid, counter, postid, IF(thumbnail_filesize > 0, 1, 0) AS hasthumbnail, thumbnail_filesize
FROM " . TABLE_PREFIX . "attachment
WHERE postid IN (-1" . $ids . ")
ORDER BY dateline
");
$postattach = array();
while ($attachment = $DB_site->fetch_array($attachments))
{
$postattach["$attachment[postid]"]["$attachment[attachmentid]"] = $attachment;
}
}
$posts = $DB_site->query("
Lines 1189-1206:
if ($post['isdeleted'])
{
$template = 'postbit_deleted';
}
else
{
$template = 'postbit';
}
$postbits .= construct_postbit($post, $template);
if (!empty($parsed_postcache['text']) AND !$stopsaveparsed)
{
if (!empty($saveparsed))
{
$saveparsed .= ',';
}
$saveparsed .= "($post[postid], " . intval($thread['lastpost']) . ', ' . $parsed_postcache['images'] . ", '" . addslashes($parsed_postcache['text']) . "')";
}
Lines 1388-1402:
if ($thread['attach'])
{
$postattach = array();
$attachments = $DB_site->query("
SELECT filename, filesize, visible, attachmentid, counter, postid, IF(thumbnail_filesize > 0, 1, 0) AS hasthumbnail, thumbnail_filesize
FROM " . TABLE_PREFIX . "attachment
WHERE postid IN (-1$ids)
");
while ($attachment = $DB_site->fetch_array($attachments))
{
$postattach["$attachment[postid]"]["$attachment[attachmentid]"] = $attachment;
}
}
// get list of usernames from post list
Lines 1603-1611:
if ($threadedmode == 2) // hybrid display mode
{
$postbits .= construct_postbit($post, $template);
}
else // threaded display mode
{
$postbit = construct_postbit($post, $template);
if ($curpostid == $post['postid'])
And I wonder if the colored line in the last bit of code should be changed?
The Geek
04-28-2005, 10:06 AM
youve got something wacky going on with your code.
Your attachment fetching means that you are doing the same thing twice. I am not sure why you would have 2 almost identical blocks of code to fetch attachments (I am assuming its from an upgrade or other hack you have done) however it is causing you and additional query per showthread. CHeck against a new showthread to note the difference.
As for the postbits section of code:
If I remember right - you need to search for:
$template = 'postbit';
}
$postbits .= construct_postbit($post, $template);
which means that only the first block would come up with a match - so thats the one you want to replace.
HTHs
rjordan
04-28-2005, 05:09 PM
I have verified that the unmodified showthread.php v3.0.7 has the lines duplicated as well. With that verified, which lines in steps 610-612 do I modify?
The Geek
04-28-2005, 06:26 PM
I have verified that the unmodified showthread.php v3.0.7 has the lines duplicated as well. With that verified, which lines in steps 610-612 do I modify?
ah - gotcha. Your right.
Well - change them all. Thats what the auto installer would do. Technically you only need to change the sections in linear mode as it wont operate in hybrid or threaded mode. In other words you can just change the first instance or both. The second instances wont ever get called though.
hth's
Kriminal
04-30-2005, 01:55 AM
Well, I'm having a problem after install, and I can't be able to find a solution (maybe yo can help me)
I'm working with a fresh installation of vbulletin on localhost, and the first and only hack I've installed is GAS.
After installing, I went to forumshome and everything it's OK (nothing changes). But when I try to go into a forum, a blank page appears.
I looked for somebody having the similar problem, and you talked about reinstalling templates. I did it, but nothing new happens (I still have a blank page in forumdisplay)
Note that this happens at every forum, not just those set as "article forum"
I dont wanna to extends this description with every single step I tried, but believe me that I was trying to solve this by hours before asking; but I can't do it myself. I'm really want to install this hack in my forum, so if you have an idea, please help me.
At last, I want to sorry about my bad english.
Thank so much,
Kriminal
memobug
04-30-2005, 02:28 AM
Hmm. Maybe put the original showthread back temporarily. If that solves the problem, it might narrow down the issue to something in showthread.
Another possibility might be a badly formed forum list for articles in the admincp
Regards,
Matt
PS Your English is very good
The Geek
04-30-2005, 07:35 AM
Have you gone through the file changes by hand? It sounds like the last step in forumdisplay is screwy.
Nordinho
04-30-2005, 12:39 PM
Hey Geek,
I've read througout this thread and changed my file path's a million times and everything is chmodded 777 but I still get this error when I try to change the default image...any other suggestions??
Warning: move_uploaded_file(/hosted/nordinho.com/www/vbull/gas/images/1/godofwar.jpg): failed to open stream: No such file or directory in /includes/functions_geekarticles_images.php on line 104
Warning: move_uploaded_file(): Unable to move '/tmp/phpwaJXFr' to '/hosted/nordinho.com/www/vbull/gas/images/1/godofwar.jpg' in /includes/functions_geekarticles_images.php on line 104
Kaishi
04-30-2005, 05:29 PM
Hey Geek,
I've read througout this thread and changed my file path's a million times and everything is chmodded 777 but I still get this error when I try to change the default image...any other suggestions??
i get that same error as well, mine is
Warning: move_uploaded_file(): open_basedir restriction in effect. File(/var/www/html/gas/images/1/ragpos14si.gif) is not within the allowed path(s): (/home/dtguild/:/usr/lib/php:/usr/local/lib/php:/tmp) in /includes/functions_geekarticles_images.php on line 104
edit: nvm i fixed it. i was stupid and didn't see the path.
edit2: on another note, is it possible to see how many page views an article has? if not, how can i add it?
The Geek
05-01-2005, 12:10 AM
i get that same error as well, mine is
Warning: move_uploaded_file(): open_basedir restriction in effect. File(/var/www/html/gas/images/1/ragpos14si.gif) is not within the allowed path(s): (/home/dtguild/:/usr/lib/php:/usr/local/lib/php:/tmp) in /includes/functions_geekarticles_images.php on line 104
edit: nvm i fixed it. i was stupid and didn't see the path.
edit2: on another note, is it possible to see how many page views an article has? if not, how can i add it?
nordinho - your path looks odd to me. It HAS to be either a path error or your server is locked down in mega safe mode.
Kaishi - you can add the template variable for views/replies by sticking them in GAS_threadbit. Off the top of my head I dont remember what they are - just check out your normal threadbot template to see.
HTH's
Xil Ze
05-01-2005, 03:43 AM
is this CMPS integratable?
The Geek
05-01-2005, 07:45 AM
is this CMPS integratable?
not sure what kind of integration you mean
Nordinho
05-01-2005, 02:40 PM
nordinho - your path looks odd to me. It HAS to be either a path error or your server is locked down in mega safe mode.
Warning: move_uploaded_file(/hosted/nordinho.com/www/vbull/gas/images/1/godofwar.jpg): failed to open stream: No such file or directory in /includes/functions_geekarticles_images.php on line 104
Couldn't it have something to do with capital letters??...the path is /hosted/nordinho.com/WWW/vbull/gas/images/1/godofwar.jpg but for some reason that doesn't get saved...
ChurchMedia
05-01-2005, 04:13 PM
Fantastic hack! I've been looking for an article hack that will integrate completely with VB for searching, etc.
Question: I'm using some of the forums to display products from my online store. I'm not looking for a new online store in the community, but just make them aware of what's in the store (and have products show up in searches). How hard would it be to make a second version of Geek Articles with different phrasing to fit a store?
Here's an example of what I have done:
http://www.churchmedia.net/community/forum/forumdisplay.php?f=89
Xil Ze
05-01-2005, 06:49 PM
not sure what kind of integration you mean
module-wise
Kaishi
05-02-2005, 01:11 AM
module-wise
there's a gas article module hack from geek in the add on forums. it's cool, i have that installed too.
very nice hack,
one question, should it ignore any redirect of "moved" thread?
see attachment for example.
Xil Ze
05-02-2005, 03:20 AM
there's a gas article module hack from geek in the add on forums. it's cool, i have that installed too.
that's for 2 though..ah well i guess i'll wait for the other article hack
thebigboss
05-02-2005, 01:48 PM
They don't validate to very minor stuffs such as a spaced out code "< img" or a missing "alt="text", etc.., I would really not worry about this at all. But if really want this to be fixed I would edit the custom templates that this hack has added to your vB.
I was meaning the 'syntax' errors like
Line 1678, column 4: end tag for element "td" which is not open
Line 1554, column 33: duplicate specification of attribute "class"
Line 1201, column 9: end tag for "font" omitted, but OMITTAG NO was specified
...
Line 849, column 4: end tag for element "td" which is not open
Line 867, column 90: end tag for element "span" which is not open
Line 849, column 4: end tag for element "td" which is not open
Line 816, column 56: end tag for element "span" which is not open
Line 797, column 4: end tag for element "td" which is not open
Line 747, column 4: end tag for element "td" which is not open
...
Line 424, column 4: end tag for "table" omitted, but OMITTAG NO was specified
Line 118, column 7: end tag for "tr" omitted, but OMITTAG NO was specified
as opposed to the xhtml compatible code.
It was just an FYI for the author.
Kriminal
05-02-2005, 05:10 PM
Well, thanks for th answers. (in relation with my problem about having a blank page instead of forumdisplay)
I've looking every modfication that GAS made to forumdisplay.php and when i comment this line
//=== step 203 ===
//require_once('./includes/functions_geekarticles.php'); <-- THIS LINE
if ($GAS_setting['is_article']){
require_once('includes/functions_bbcodeparse.php');
}
forumdisplay.php displays.
So I uncomment the line again, and I went to includes/functions_geekarticles.php
The I comment this line:
function remove_all_breaks(&$text){
global $GAS_setting;
//$text=str_replace($GAS_setting['page_break'],"",prep_for_breaks(&$text)); <--THIS LINE
return $text;
}
and then, all seems to be OK.
But this is no a solution, isn't it? So if you can tell me what thing could be wrong, it'll be appreciated.
Thanks so much again,
The Geek
05-02-2005, 05:22 PM
Well, thanks for th answers. (in relation with my problem about having a blank page instead of forumdisplay)
I've looking every modfication that GAS made to forumdisplay.php and when i comment this line
//=== step 203 ===
//require_once('./includes/functions_geekarticles.php'); <-- THIS LINE
if ($GAS_setting['is_article']){
require_once('includes/functions_bbcodeparse.php');
}
forumdisplay.php displays.
So I uncomment the line again, and I went to includes/functions_geekarticles.php
The I comment this line:
function remove_all_breaks(&$text){
global $GAS_setting;
//$text=str_replace($GAS_setting['page_break'],"",prep_for_breaks(&$text)); <--THIS LINE
return $text;
}
and then, all seems to be OK.
But this is no a solution, isn't it? So if you can tell me what thing could be wrong, it'll be appreciated.
Thanks so much again,
Do you use a side bar with vbacmps?
Commenting as you have done means that the GAS template will never be used. This points to your templates not existing OR another mdification that is conflicting (sidebars with CMPS is the most common reason as you have to modify the template print to get it to work)
Kriminal
05-02-2005, 07:18 PM
Do you use a side bar with vbacmps?
Commenting as you have done means that the GAS template will never be used. This points to your templates not existing OR another mdification that is conflicting (sidebars with CMPS is the most common reason as you have to modify the template print to get it to work)
No, I don't use and didn't install anything else vbulletin 3.07 and GAS3...
That's strange...
The only thing I've added is two side-panels to enclose the forum into a self-made portal system (not vbindex or vbadvance). Those panels are called by phpinclude_start
but they didn't afecct forumdisplay before installing GAS... could be find here the problem?
One of them shows a menu with links, and the other shows an advertising (now only shows an static image)
Thanks for your support!
The Geek
05-02-2005, 08:11 PM
depends on what the eval for forumdisplay is called (or any code that changes it). whats the last eval command in forumdisplay?
Lizard King
05-02-2005, 08:18 PM
Geek today i've faced a problem or maybe a bug.
Check the attached screenshots and attacment thumbnails are creating a problem in Internet Explorer but not in firefox. Is there a way to fix this.
Also i am getting some uncached templates : GAS_postbit_attachmentthumbnail Is there a way to get this template cached also ?
Lionel
05-02-2005, 08:37 PM
try putting a <br />
Lizard King
05-02-2005, 08:51 PM
It is already <br /> in GAS_postbit_attachmentthumbnail template or am i missing something ?
<a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]"><img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&stc=1&thumb=1" border="0" alt="<phrase 1="$attachment[filename]" 2="$attachment[counter]" 3="$attachment[filesize]">$vbphrase[image_larger_version_x_y_z]</phrase>" /></a><if condition="$attachment[description]"><br /><div class="smallfont"><strong>$attachment[description]</strong></div></if></a>
The Geek
05-02-2005, 08:57 PM
hmmm. Thats odd. Maybe a relic from an earlier version?
Try taking the td that holds the article text and adding
width="100%"
to it to make it stretch. That should sort it
As far as the template not getting cached - check that GAS_postbit_attachmentthumbnail is in the templates declaration in showthread.
HTH's
Lizard King
05-02-2005, 09:01 PM
hmmm. Thats odd. Maybe a relic from an earlier version?
Try taking the td that holds the article text and adding
width="100%"
Where will I find it :p
Nordinho
05-02-2005, 09:04 PM
Warning: move_uploaded_file(/hosted/nordinho.com/www/vbull/gas/images/1/godofwar.jpg): failed to open stream: No such file or directory in /includes/functions_geekarticles_images.php on line 104
Couldn't it have something to do with capital letters??...the path is /hosted/nordinho.com/WWW/vbull/gas/images/1/godofwar.jpg but for some reason that doesn't get saved...
Sorry to bug you, but I just can't get the image upload to work...the server is not in megasafe mode and the path is right afaik...except for the capital letters...
Lizard King
05-02-2005, 09:05 PM
As far as the template not getting cached - check that GAS_postbit_attachmentthumbnail is in the templates declaration in showthread.
I didn't have it but now I figured this out.
Lionel
05-02-2005, 09:48 PM
It is already <br /> in GAS_postbit_attachmentthumbnail template or am i missing something ?
<a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]"><img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&stc=1&thumb=1" border="0" alt="<phrase 1="$attachment[filename]" 2="$attachment[counter]" 3="$attachment[filesize]">$vbphrase[image_larger_version_x_y_z]</phrase>" /></a>
here
<if condition="$attachment[description]"><br /><div class="smallfont"><strong>$attachment[description]</strong></div></if></a>
yeah but it is nested in an if statement. Put it where I put 'here'
Kriminal
05-02-2005, 09:57 PM
depends on what the eval for forumdisplay is called (or any code that changes it). whats the last eval command in forumdisplay?
This is the last eval command
// === GAS step 209 ===
if ($GAS_setting['rt_template']){
eval('print_output("' . fetch_template($GAS_setting['rt_template']) . '");');
}else{
eval('print_output("' . fetch_template('FORUMDISPLAY') . '");');
}
// === /GAS step 209 ===
Lizard King
05-02-2005, 10:01 PM
yeah but it is nested in an if statement. Put it where I put 'here'
Thanks it fixed it.
Howdy
05-03-2005, 12:43 AM
Anyone know what is causing my display to show the close tags with x's and it seems I'm missing some of the editing controls. Same thing comes up for me on Vbulletin.org.... Any ideas what is causing this? Thanks!
http://anglerinsider.com/Trouble/Geek.JPG
The Geek
05-03-2005, 06:27 AM
the red x's are part of the design ;) Your browser either does not support wysiwyg editing or it is set to standard or enhanced editors. THis is vb - doesnt have anything to do with gas :)
Kriminal - that looks ok - I suspect maybe another file edit error.
Is it only the forumdisplay of articles that come up blank or was it all forumdisplays that were getting blanked?
JamesB
05-03-2005, 08:10 AM
Howdy, I seem to be having a problem uploading images after installing GAS onto fresh vB. I get this error when uploading an image:
Warning: move_uploaded_file(/var/www/html/gas/images/3/pass_screen.jpg): failed to open stream: No such file or directory in /includes/functions_geekarticles_images.php on line 104
Warning: move_uploaded_file(): Unable to move '/tmp/php1xEqUS' to '/var/www/html/gas/images/3/pass_screen.jpg' in /includes/functions_geekarticles_images.php on line 104
Just wana say thanks for coding this mod. I was hoping to find a hack like this when I wanted to buy vB, and I was over the moon when I found this.
The Geek
05-03-2005, 11:34 AM
Howdy, I seem to be having a problem uploading images after installing GAS onto fresh vB. I get this error when uploading an image:
Warning: move_uploaded_file(/var/www/html/gas/images/3/pass_screen.jpg): failed to open stream: No such file or directory in /includes/functions_geekarticles_images.php on line 104
Warning: move_uploaded_file(): Unable to move '/tmp/php1xEqUS' to '/var/www/html/gas/images/3/pass_screen.jpg' in /includes/functions_geekarticles_images.php on line 104
Just wana say thanks for coding this mod. I was hoping to find a hack like this when I wanted to buy vB, and I was over the moon when I found this.
Hey James.
Your paths are not correct. Sadly I cant tell you what they should be as it is different for each server setup. In the setting for the server path, the description gives you a pretty good guess at what it should be for your server - but its only a guess.
JamesB
05-03-2005, 01:41 PM
Yikes, it seems I overlooked the path edit within the GAS CP. My Bad :nervous: Works like a charm now ;)
Nordinho
05-03-2005, 02:01 PM
Warning: move_uploaded_file(/hosted/nordinho.com/www/vbull/gas/images/1/godofwar.jpg): failed to open stream: No such file or directory in /includes/functions_geekarticles_images.php on line 104
Couldn't it have something to do with capital letters??...the path is /hosted/nordinho.com/WWW/vbull/gas/images/1/godofwar.jpg but for some reason that doesn't get saved...
Sorry to bug you, but I just can't get the image upload to work...the server is not in megasafe mode and the path is right afaik...except for the capital letters...
Oke, I keep on trying...I replaced the $path=$GAS_setting['server_path_to_images'] on line 72 in functions_geekarticles_images.php with the hardcoded path and I deleted the 'strtolower' on line 101 and 103 of the same file...It seems to work now, the new images get uploaded and are displayed...but by doing it this way, I probably ruined something else...
The Geek
05-03-2005, 02:19 PM
Oke, I keep on trying...I replaced the $path=$GAS_setting['server_path_to_images'] on line 72 in functions_geekarticles_images.php with the hardcoded path and I deleted the 'strtolower' on line 101 and 103 of the same file...It seems to work now, the new images get uploaded and are displayed...but by doing it this way, I probably ruined something else...
naaa. If the strtolower worked for you then its fine. Just keep note of it for future upgrades. Not sure off the top of my head why I would force it to lower case... but that is the most likely reason.
Glad its sorted :)
Troy McClure
05-03-2005, 02:25 PM
Hoping someone could help me out here. Installed 3.51 and everything seemed to go fine but when Igo into my admincp it looks like the image attached. On the side navigation the text for GAS and the underlying link do not appear but I can click on it to get to the settings. In the setting, only the actualy control options appear but not the associated text. Any ideas how to fix this?
Thanks,
Troy
Kriminal
05-03-2005, 02:30 PM
Kriminal - that looks ok - I suspect maybe another file edit error.
Is it only the forumdisplay of articles that come up blank or was it all forumdisplays that were getting blanked?
All forumdisplay, articles and regular forums.
Thanks !
The Geek
05-03-2005, 02:33 PM
Hoping someone could help me out here. Installed 3.51 and everything seemed to go fine but when Igo into my admincp it looks like the image attached. On the side navigation the text for GAS and the underlying link do not appear but I can click on it to get to the settings. In the setting, only the actualy control options appear but not the associated text. Any ideas how to fix this?
Thanks,
Troy
search for a GAS_ phrase, edit it and then save it to rebuild them.
The Geek
05-03-2005, 02:35 PM
All forumdisplay, articles and regular forums.
Thanks !
Then there is a file edit error or a conflict with another modification guaranteed.
Why not revert forumdisplay back with the gas/changes/backup/forumdisplay.php and manually go step by step through the file changes.
JamesB
05-03-2005, 02:39 PM
Howdy, sorry to bother you again but the way I access GAS is not through the main Admin CP, but the actual GAS_admin.php file. It doesnt seem to show up probably because I renamed the admincp to something else for security. Do you know what I need edit to get GAS admin cp to show up in the main cp?
The Geek
05-03-2005, 02:42 PM
Howdy, sorry to bother you again but the way I access GAS is not through the main Admin CP, but the actual GAS_admin.php file. It doesnt seem to show up probably because I renamed the admincp to something else for security. Do you know what I need edit to get GAS admin cp to show up in the main cp?
in the readme it recommended renaming your admincp dir back to the default for the install.
However you can simply run the install again, but ONLY CHOOSE the manual file change Link.
THere you will see a list of all file changes needing to be made. Look for the admincp/index step, click on it and follow the directions to manaully edit your admincp/index.php file.
HTH's
JamesB
05-03-2005, 03:08 PM
in the readme it recommended renaming your admincp dir back to the default for the install.
However you can simply run the install again, but ONLY CHOOSE the manual file change Link.
THere you will see a list of all file changes needing to be made. Look for the admincp/index step, click on it and follow the directions to manaully edit your admincp/index.php file.
HTH's
I accidently stuck the code in the wrong place the first time :nervous: above "canadminusers" instead of "canadminstyles".
Thanks.
Troy McClure
05-03-2005, 03:44 PM
Thank you very much Geek, that did the trick. Can't wait to get into it and start using it.
Troy
aloha
05-03-2005, 06:34 PM
Is there a reason why my forum looks like this? :( Hmmm...
Did I miss a step somewhere?
SoloX
05-03-2005, 09:01 PM
I have been using VB for years now and I must say GEEK is prolly the best coder when it comes to support issues. Not only that he has produced an excellent mod but stands by it and provides the lil extra help that is needed in many cases to get a mod suit to your needs. Way to go, GEEK!
KTBleeding
05-03-2005, 09:06 PM
I have been using VB for years now and I must say GEEK is prolly the best coder when it comes to support issues. Not only that he has produced an excellent mod but stands by it and provides the lil extra help that is needed in many cases to get a mod suit to your needs. Way to go, GEEK!
That and his humorous personality. I use every hack he has made except for the GAB system due to me not having a use for it at this time. But, if I ever do decide to implement banners, I'm def going with Geek.
I feel like I owe him so much for providing these excellent hacks, and backing them up with support when he doesn't need to.
The Geek
05-03-2005, 09:42 PM
That and his humorous personality. I use every hack he has made except for the GAB system due to me not having a use for it at this time. But, if I ever do decide to implement banners, I'm def going with Geek.
I feel like I owe him so much for providing these excellent hacks, and backing them up with support when he doesn't need to.
Thanks guys. Buy me a virtual beer ;)
Glad I can be of help and even galdder that it is infrequent that I need to give any :)
On that note ->Aloha... try reverting your GAS_forumdisplay template.
greenhybrid
05-03-2005, 09:55 PM
How does this differ form v3articles, are there any reasons to transfer, and is there a transfer utility?
The Geek
05-03-2005, 10:05 PM
How does this differ form v3articles, are there any reasons to transfer, and is there a transfer utility?
Hey green.
There are several - however the REAL difference for me is that your articles are part of your forum instead of a bolt on. That means when you search - articles are included. Not to mention that anything you can do within a forum/thread/post you can do with this (i.e. usergroups, attachments, bbcode, wysiwyg editing, blahblahblah).
It leaves vb to do the work and it just displays it differently (well, thats kind of an understatement - but in a nutshell, thats it).
I never used v3articles - however I did write an importer for it which is attached to the first post.
If you want integration - this is your best bet - however some like the articles decoupled. If thats the case - stick with v3 or cinqs.
Other users will be able to give you a better viewpoint between the two.
Good luck.
greenhybrid
05-03-2005, 10:08 PM
It would be nice to include the articles in searching, but my website is set up so they're pretty separate: http://www.greenhybrid.com Take a look at the Discuss vs. Learn sections.
The v3articles.com website appears to be down and it doesn't seem there are new developments. You don't think the developer quit, do you?
The Geek
05-03-2005, 10:20 PM
It would be nice to include the articles in searching, but my website is set up so they're pretty separate: http://www.greenhybrid.com Take a look at the Discuss vs. Learn sections.
The v3articles.com website appears to be down and it doesn't seem there are new developments. You don't think the developer quit, do you?
is that cinqs system? I keep getting cinqs and johns mixed up.
I dont know about johns, but I think cinq is making his a paid only hack (dont quote me on that though).
Anyway - as I said - depends on what you want. You can get pretty much the same thing with GAS. The articles homepage you have would be different though.
It just depends on what you want. In the end - if its not broken should you fix it? ;)
I am sure others have their viewpoints on the two systems (I also know of several that use cinqs and mine together).
Good luck ;)
Kriminal
05-04-2005, 03:11 AM
Then there is a file edit error or a conflict with another modification guaranteed.
Why not revert forumdisplay back with the gas/changes/backup/forumdisplay.php and manually go step by step through the file changes.
Yes, I did it and everithing goes ok untill step 203. When calls: require_once('./includes/functions_geekarticles.php');
the blank screen appears.
So I went to functions_geekarticles.php... well, the same story.
Thanks for the support and the time you're spending, really !!
The Geek
05-04-2005, 05:59 AM
Yes, I did it and everithing goes ok untill step 203. When calls: require_once('./includes/functions_geekarticles.php');
the blank screen appears.
So I went to functions_geekarticles.php... well, the same story.
Thanks for the support and the time you're spending, really !!
That line wont cause a blank screen - it will set certain variables for processing,
Why not just pm me admincp access and ftp access and ill look into it for you.
Thanks
dsboyce8624
05-04-2005, 05:29 PM
Okay, so maybe I'm just too new at this. I saw no errors in the install, so I created a new forum for this. In Forum Manager at the top it says (id:30) so in the GAS setup that's the ID I put in. But the forum still shows up as a reagular forum.
Any ideas?
Thanks,
The Geek
05-04-2005, 05:46 PM
Okay, so maybe I'm just too new at this. I saw no errors in the install, so I created a new forum for this. In Forum Manager at the top it says (id:30) so in the GAS setup that's the ID I put in. But the forum still shows up as a reagular forum.
Any ideas?
Thanks,
did you copy the changed files from gas/changed to their correct locations?
dsboyce8624
05-04-2005, 05:53 PM
Thank you very much for pointing out the obvious.
Everything seems fine now.
Thanks for the help, sorry to be such a putz
dsboyce8624
05-04-2005, 06:30 PM
Okay, what did I do here:
Warning: move_uploaded_file(/c:\inetpub\wwwroot\forums\gas\images/1/evbookletl.jpg): failed to open stream: Invalid argument in \includes\functions_geekarticles_images.php on line 104
Warning: move_uploaded_file(): Unable to move 'C:\PHP\uploadtemp\php1A.tmp' to '/c:\inetpub\wwwroot\forums\gas\images/1/evbookletl.jpg' in \includes\functions_geekarticles_images.php on line 104
When uploading an image.
EDIT: I looked around for this, it's similat to others, but mine is on windows and I think my biggest problem is the / versus \ issue. Other than that the path seems correct.
I think I just need to fix that and get rid of the leading / in the path and I'll be okay. Unfortunately I don't know the code so I can't do it myself.
EDIT: Okay, I did this on line 72:
$path='c:\inetpub\wwwroot\forums\gas\images';
And that seems to work for the upload. Anything else do I need to do?
Thanks,
aloha
05-04-2005, 09:35 PM
Thanks guys. Buy me a virtual beer ;)
On that note ->Aloha... try reverting your GAS_forumdisplay template.
Thanks for dropping a note, please explain? Not sure what you mean? I try and donate to all hacks that I use, not to con you into helping me... but as soon as I'm able, I got the first round of virtual beers... Cheers!
Hey Geek, Thanks for all the help :(
I got it finally running thanks to another great coder :D
What I don't understand with this hack is why it Duplicates the already pre-uploaded images, now I just made 8 new postings and I have all these 8 images duplicated in other folders, what if I make 1000 postings, will I end up with 1000 duplicates? Each images is around 25K, 3 of these new postings have the same image, but taken from 3 different locations, this makes things way slower!
Did I do something wrong in the setup? or is this normal that it duplicates these images?
The Geek
05-05-2005, 06:05 PM
Hey Geek, Thanks for all the help :(
I got it finally running thanks to another great coder :D
What I don't understand with this hack is why it Duplicates the already pre-uploaded images, now I just made 8 new postings and I have all these 8 images duplicated in other folders, what if I make 1000 postings, will I end up with 1000 duplicates? Each images is around 25K, 3 of these new postings have the same image, but taken from 3 different locations, this makes things way slower!
Did I do something wrong in the setup? or is this normal that it duplicates these images?
Why would it make things slower?
I chose to make it statically link to prevent 1 image change breaking 1,000.
Next version (when I get around to it) will have the option to make it static or dynamic.
Glad its working - please click install when you get a minute :)
Lionel
05-05-2005, 06:16 PM
where should I put this exactly to display in calendar? I tried calendar.php and functions_calendar.php
$linked_text=process_gal_text($text_wanting_to_be_ linked);
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.