![]() |
lol... ive never done that before...?
i'm a noob - is there anywhere to learn this? |
Quote:
The best way for THIS hack, I think, is as I kind of went into above: Have ONE text area on the submit page. Instead of one submit button, have two - one that says submit, one "Next Page" or "Continue" or whatever. If the user hits submit, that means they are done adding pages, and the article is submitted exactly as it is done now. If they hit "Next Page", then you have a subroutine that: Submits the textarea data in the form to it's space in the db table. Brings up a new window, textarea field called p2 like you have it now. And so on. OR Have it be all one page for submitting the form/textarea data, and have the user insert a custom tag like <pagebreak> or something where they want new pages to start. Adding a button to do that automatically in HTMLArea - so the user just puts the cursor where they want the new page to start and clicks "New Page" - is so simple it's not even funny. Now, I know you are worried about load, and that is a valid concern of course. However, you are missing something here. The <pagebreak> tag I talk about above isn't something that gets processed every time someone views an article. It's post-processing done when you submit the article. In fact, your article.php and the rest of your code won't need to be modified at all. Just the add article file. What you do is add a routine for the pagebreak tag, and have each section submit to your table/pages. Something like this: PHP Code:
If you want, when you get your latest changes uploaded (you really need something to handle categories, but you already know that) I'd be happy to work on part of this for you. Just let me know. |
Quote:
Scroll down to where you see "Import and Maintenance" Click it. Click "execute a SQL query". Paste in the text from the articles.sql file. Done. BACK UP your database first. |
Quote:
please help - i would like to get this articles program up and running! |
No, phpadmin would have nothing to do with it. But if you have phpadmin why aren't you using that? Use the SQL option on the vbulletin db and paste the text in there.
I think, now that I think about it (pun!) that vb's sql query feature restricts you to one query at a time. That's probably the issue there. |
Hi everyone -
A small problem which may also need correcting in a future release ... Like many people I choose to adopt a prefix when setting up database tables to identify which script they belong to - this is an option for VBulletin, of course. However, this causes a problem with articles.php in at least one SQL statement (c line 35) where hard reference is made to 'thread', one of the (unprefixed) VB table names. (The prefix setting config.php in /includes doesn't figure in the proceedings ...) There may well be other instances Thanks K and everyone else helping this project through! Jon |
when I call up the forum/articles.php all I get is a white page. I've looked over the install instructions and everything looks correct... but seeing that I'm an extreme noobie to this stuff, I don't know. Any thing I need to look at specifically?
Thanks |
Did the template files you created go into the right style?
|
Yes, I only have one available to the members.
|
Quote:
when i try to set THIS up i get THIS error lol... Quote:
|
nevermind... got phpmyadmin now... gotta figure out the rest!
|
Quote:
|
Thanks for everybodies help on this! I'm learning alot as I go along... I never knew about the spliti function at processing time. I'm also getting a bit of help on the categories system. If would be great to get this thing to be able to handle an unlimited number of pages. Currently I have a number of hardcoded number related things that I'm going to need some help overcoming.
My next release will have some options in the admin panel to easily turn a number of things on/off. It's been alot of work getting this thing working just right in VB Yesterday I spent most of my development time making as many queries as possible optional. I still have to do some more with things like $unset and clean alot of things up. The next time I upload anything will be a while. I'm going to hold out for most of the features to be completed. The table prefix issues will happen anywhere it calls for a VB table. I don't use a special prefix on any of my DBs so this was something that I overlooked. I'll make sure that I add that extra case in for that. Currently the only thing it's grabbing from the forum DB is the latest topics. not too far down in articles.php you'll see a line called $rec look inside the query and put in your table prefix if you want this to work right. |
Quote:
|
Quote:
Guys, that's a leftover bit from his previous version. Just open Articles.php with an editor, go to line 7 where the call to config.php is made, and comment it out by putting // in front of the line. I am sure he will correct this in his next version. |
Quote:
I don't get the errors but I get a plain white screen. I'm pretty familiar with some things. For instance I have vbadvanced and have done several other mods to my forum. Not sure were to go from here... perhaps I should wait until the next version, but if this one works (and it seem to for everyone else - which points the problem to me :rolleyes:) it is something I actually need pretty badly. Anyway, if anyone knows where I need to look or what I need to do please let me know, if not - no problem. Thanks in advance. n8 |
alright! works now... just gotta figure out how to take these ad's off of here now lol...
also - how can i change the RECENT topics from showing? ehhh ill try to figure it out... i'd like some tips for the ad's tho :) thanks IXIAN! and krohnathlonman for a great hack! well - more than a hack lol... |
So I have run into a problem. If your article has a single quote in it ' you can add it with no problems but when you go back to edit it you get an error. Any suggestions on how to fix this?
-Jenn |
Quote:
Quote:
Post the error. Sounds like your standard PHP not seeing escape character issue, but you need to post the error message so we know what line it's happening on. |
Quote:
thanks |
I just noticed my problem with editing when I went to edit some articles on my site. I did recently rewrite pretty the whole admin side of things. I'll have to take a look at the two versions and figure out what I did so differently.
|
Looks like your doing a great job on a great hack. Im anxiously awaiting a version a newbie like me can install ----
|
Would you possibly consider in your re-write allowing article posting by usergroups in addition to admin?
Thank you for your work on this! |
Yeah, I'm considering going about it through usergroups, but that would make me write something like a /articlecp and making a somewhat seperate admin panel. It's not that hard to do. Basically just a usergroup check at the TOP of the admin panels.
I have something like this in my printer file. PHP Code:
|
ah good you listened to me :D
|
Basically, which usergroups can post articles, view articles and post comments.
A master list of contributors, alphabetized & paginated, with links to their articles (paginated). And could the admin retain control of the types (categories) of articles that are allowed to be submitted? You're doing great work and it is very appreciated by all! |
IXIAN... i don't see any difference in any of the files i recently downloaded again... everything looks the same to me?
Anyways - i've been installing so much stuff lately i'm getting kind of lost here. this may be the dumbest question in the thread... but HOW do i write the articles??? or ADD new articles...? |
Quote:
|
haha... im dumb. i see it now in the admicp... wow ive been staying awake too long. :)
|
Acido, look at the NAME of this forum... This forum is designated for beta hacks. If you don't want anything to do with beta hacks then don't browse this forum!
You must put the URL to Feedback in the Designated Feedback field when posting an article. I've given Ixian all the latest updates. I'm not doing anymore work on this this week. I've got too many things to do. |
Hmmm... curious now. (yeah i know i ask alot of questions) How do you figure out how big each page is?
I need to transfer some of my old HTML files to this and i need to know how to deal with the page size? Does it go to a certain amount of characters or what? |
MySQL limits you for to 65,000 characters since it's using "text" whereas mediumtext is 16 million
Didn't really plan on really large pages since it's built for multiple pages. |
okay that's cool - i just wasn't sure if it might be something like 1,000 like VB or something.
Sounds even better! Thanks for the great "hack"! Now my vBadvanced is almost a true portal lol... |
lol how do we delete the pages? :( i tried a test and now i can't seem to figure out how to delete it - also - it shows TWO articles on the test part... meaning: i neamed the test page "test" and it shows up twice????
|
I am working on this while krohnathlonman takes care of some stuff. Right now I am fixing a couple things, then I am tackling the pagnation issues and HTMLArea. It's gonna be a few days, so be patient.
|
After the ordeal of waiting for Jelsoft to perfect vB3 anyone who has not learned patience by now "just can't get with the program!" ;)
|
LOL i know you guys probably hate me... but...
[QUOTE=krohnathlonman] You must put the URL to Feedback in the Designated Feedback field when posting an article.QUOTE] What does that mean? was there a feedback thing with this? or do you mean a URL for the forums or something? :ermm: confused... sorry guys... :rolleyes: |
In the add article system.... there should be a field that is called FEEDBACK. That is where you put your feedback URL.
The VB "portals" are really nothing more than news pages. After the code on this is stabilized I plan on building a completely integrated solution that will approach vbportal in features. This will only happen if I still have the free time ;) The query to grab the news is actually very simple. I've got the latest topics already. a WOL is going to come pretty soon. Next time I get a chance to work on this it'll be to start making it more portal like and building in even more user configurable options than the current build. |
Quote:
Thanks for working on this, I look forward to the end result. Pro: do you mind if I PM you? TD |
A HTL version would be absolutly fantastic!!!! Would this article hack also be able to double as a reviews/cheats hack as well with some mods?
|
All times are GMT. The time now is 11:47 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:
|