![]() |
OK, I got it fixed.
|
OK, I went to edit an article and got this error message:
Quote:
if ($action=="editarticle") { $sql = "SELECT * FROM vbArticles_content WHERE artid=$artid"; $result = mysql_query($sql); $myrow = mysql_fetch_array($result); $artid=$myrow["artid"]; $title=$myrow["title"]; $byline=$myrow["byline"]; ----> this is line 234 $author=$myrow["author"]; $date=$myrow["date"]; $content=$myrow["content"]; |
Does anyone know how to fix the above error?
|
I really like the idea behind this hack, but I cannot edit or delete anything.
Also, I would like to make this area of my forums accessible to paid members only, how would that be accomplished? Is this hack still being worked on? If so, could a link be added in the vew article area, there is no way to get back to the Article home page as it is right now. |
cindy, i visited your site and can access the articles section alright.
You have no link in view article to get back to the Main Articles Home page is because you editted your templates to take it out. Please check the viewarticle template again. It should have navi at the top just below your vb header. Also do you mean in your admincp , you are unable to delete and edit articles ? This shouldnt be the case if you installed correctly. Finally, for your paid members, did you place them in a special usergroup? If so, you can allow viewing access only to them by simple change of code in articles.php ( pretty much similiar to the code changes highlighted previously in this thread ) |
Quote:
Quote:
Quote:
So all I need is to get the editing and deleting fixed and I'll be very happy! Here is the error from when I try to edit or delete: OK, I went to edit an article and got this error message: Quote:
|
Quote:
Any others facing the same problem ? Jus went thru the code, seems in order ( then again, i might be missing something , pretty new to this too ) |
Cinq: I have gone over the installation again and that error remains. When I delete an article, I am told in the CP that it has been successful, but it really doesn't delete anything.
When I try to edit I get that error message and all the input boxes are blank. |
First off, thank you for making this wonderful hack cinq... i was wondering though... is there a way to setup permissions for posting articles? so that I could have some categories for users to post in and others for staff...
|
Solice, that's currently not planned and may not be too.
Do not have much free time on my hands right now :( |
After years of coming to this site I finally enter the Beta forum... To find this baby waiting for me!
Nice work. :D |
cinq: I would test this for you, but I would have to do it on a live board.
|
if this is used for tutorials it wood be a gr8 addition to allow adding of images :D
|
Quote:
It should not affect whatever articles you currently have in place. But do a db backup anyways ( not neccessarily the whole db, just the vbArticles tables - cat and content ). Do feedback to me if it works. Btw has your old problem been nicked yet ? |
Quote:
So at least you can control the layout of the article view. The feature i am currently working on is allowing for vbcode for article input ( which i am getting someone to test above ), so a simple vb [img ] will allow linking of images which can either be stored in a directory on your server to your liking or from somewhere on the internet :) |
Quote:
Thanks for the kind comments, FleaBag. :D Do click the install button to be informed of any new updates to this hack. Right now i am just taking things slow to add up on the features I had hoped to include, once done i will make it a Full release, of cos first ensuring no more known bugs are experienced. Once again, thanks so much to all who have already installed and tried this hack and feedback your findings/bugreports and provided fixes , i really appreciate it :D |
Quote:
I still cannot get past those errors I reported earlier. I will do this either tonight or tomorrow for sure. |
cinq - I just installed this hacka nd ofcourse clicked on the installed button...!
However, i have a very minor problem...that when i load the page mydomain.com/articles.php , the main page has this list of categories and the next table with Recently Added Articles. The Recently Added Articles section ( entire table ) is not aligned to the center of the actual width..rather its aligned to the left. Which template do i edit to align the same to center. Thank you |
Where's your site ?
|
cinq - I have just PM-ed you the link to my forums under development.
Thanks |
cinq: I uploaded the files to test out the code and received this error:
Warning: main(vbCode.php): failed to open stream: No such file or directory in /home/glassmav/public_html/forum/articles.php on line 3 PHP Code:
|
cindy, try this:
PHP Code:
|
OK, I changed it and now this comes up:
Parse error: parse error in /home/glassmav/public_html/forum/articles.php on line 147 On line 147 is this: ?> |
UPDATES
version 0.4 is out - Now allows for basic VBCODE input in article submission and addition. - Fixed all reported bugs up to post 183 Re-download the attached zip package and read the upgrade_readme.txt file carefully when upgrading from v0.3. For fresh installation , pls read the install_readme.txt file contained in the zip package Sorry for the slow updates, been extremely busy lately and having no access to my own comp doesnt help. Thanks for being patient :) |
FYI list of VBCodes allowed :
PHP Code:
|
Just installed v0.4 Will let you know how it goes as far as people using it!
Thanks a lot! |
Hi Cinq: I upgraded to the new version and tried to edit/remove some duplicate articles and got this error:
Quote:
PHP Code:
**Update: I have everything working now! Super! |
Quote:
|
Getting better and better ...
|
I have a request for the Admin CP, could you make the
"content" box area larger? Being an old curmudgeon, I need a bigger area to see better. While I am making requests, I would like to have some on the Forum Home Display template that would show recently added articles. The Article section on my board is by paid membership and I want to "tease" the members...... Thanks |
one more request can you make it so that certain mods can access this and add faq and articles to the system? because so far its only restricted to admins.. and I don't want to give my mods access to it.
|
Quote:
Thanks again! :chinese: |
Other than the fixes for the bugs reported previously, no other changes.
Check the changelog, main changes are inclusion of the bug fixes and VBcode integration. I just found a HTML editor thats free , may try to integrate that at a later date too ! :D |
1st page 200 / 2003 is the best free html editor, it's great for editing templates with ultra edit ;)
http://www.ultraedit.com http://www.evrsoft.com |
Yep , i use those 2 utilities myself actually.
However i was refering to a WYSIWYG tool for inputting of articles. :) anyways the next version will not be too soon, totally bogged down by work ... argh |
awesome hack, cinq. i installed v0.4 with minimal trouble (except for the html issue in the content field which i fixed by reading the fixes in this thread).
my suggestions for the next release are a ratings system for each article (as well as a 'sort by top ratings' routine).. also get rid of the 'date' option when submitting articles and just autofill it in with php's date() routine (or whatever its called). |
Could you point out which html bits you faced errors with ?
I had assumed i had included all fixes prior to that 0.4 release into the download. Yes, a ratings system is planned but not so soon. kars10 is working on that, have yet to hear from him. As for the date function, yes, i intend to make it a timestamp instead of having to manually fill in the date. Should make sorting easier too. |
cinq, this is simply awesome. It installed flawlessly.
Some suggestions I would have are already on your todo list (like sub-categories). Other suggestions I have are as follows. 1. Don't ask for the date, just take it from the system date. 2. Make the "Content" field look more like the posting field in vBulletin. 3.In addition to allowing for vbCode, also have the vbcode buttons above the "Content" box (like on vBulletin.org). 4. An option in the ACP to allow/disallow vbCode and HTML and have the suggestion #3 above show or don't show based on this setting. 5. Have a "Posted By" field show up when displaying an article and have it put in the username of the person who posted it. Even show the "Posted By" when listing articles. This is useful for when the article author is not the same as the person of posted it. 6. An ACP option to choose who is allowed to post/edit/view articles in each category. This is good if you want users to just post articles to a particular category and then you move them to the appropriate spot later. It is also good if you have a series of articles that you want to be available only to your moderators or admins. 7. An option in the ACP to change the Display Order when viewing the list of articles/categories without having to edit each individual article/category. The same way that the forum listing allows you to change the display order without having to edit each individual forum. 8. And lastly (probably not), Add a "Search" feature or tie the articles into the existing vBulletin search routine. I want to replace my existing FAQ section (which is currently housed in a forum so it can be searched) with this one because it has so much potential. Overall, good work tho. |
I just noticed that when an article is posted, the font is very small. If anybody else is having this problem, just do the following.
Edit the "vbArticles_articleview" template. Look for: PHP Code:
PHP Code:
PHP Code:
|
For those of you who cannot leave well enuf alone, here is something I changed. I wanted the "Recently Added Articles" section to be listed at the top. Here is how you do that.
Edit the "vbArticles_main" template and look for PHP Code:
PHP Code:
PHP Code:
|
All times are GMT. The time now is 12:56 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|