vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Hack Manual Generator (https://vborg.vbsupport.ru/showthread.php?t=91581)

akanevsky 07-03-2005 09:37 PM

Hack Manual Generator
 
What do yall think about a thingy that would generate a pretty-looking HTML modification manuals (like the ones Logician makes) based on the input you put into the software. Why? Because most people make messy text-based manuals (inluding me), just because it takes too much time to hand-write an HTML-based manual.

Andreas 07-03-2005 09:39 PM

I prefer Textfiles, much easier to handle then HTML IMHO.

Just my 0,02 €

amykhar 07-03-2005 09:46 PM

I hate html install instructions with a passion. I much prefer plain text.

Paul M 07-03-2005 09:49 PM

html ones are fine, as long as you don't need to copy any code from them - that's a nightmare.

akanevsky 07-03-2005 09:55 PM

Quote:

Just my 0,02 €
Ouch! What can I do for 0,02 €??? I can't even buy myself an ice-cream. ://

Quote:

I hate html install instructions with a passion.
Why? Not that I want to prove you wrong (because I don't), I just wanna understand your point of view ;)

Quote:

html ones are fine, as long as you don't need to copy any code from them - that's a nightmare.
How is that a nightmare? AFAIK, it is only a nightmare when you use wordpad. If you use something like a "Professional Notepad" or "Notepad++" or "UltraEdit32", you get no problem with formatted text, if that's what you talking about ;)

amykhar 07-03-2005 10:00 PM

Quote:

Originally Posted by Dark Visor
Ouch! What can I do for 0,02 €??? I can't even buy myself an ice-cream. ://


Why? Not that I want to prove you wrong (because I don't), I just wanna understand your point of view ;)


How is that a nightmare? AFAIK, it is only a nightmare when you use wordpad. If you use something like a "Professional Notepad" or "Notepad++" or "UltraEdit32", you get no problem with formatted text, if that's what you talking about ;)

Working from HTML install files isn't as easy as copying and pasting from text files. Plus, it means opening a bulky browser window instead of another tab in my text editor.

Amy

tamarian 07-03-2005 10:01 PM

I usually prefer that my hack's thread contains the detailed instructions, and some are quite verbose if the hack is intricate. I don't include additional instructions, because I'm lazy with docs, so I'd find your tool quite handy. :up:

Not sure what method you'd use, but maybe it can generate the manual by preference, either text, html, or bbcode (or all), based on the user's settings? Then I'd generate the manual with the tool, cut and paste the bbcode into the hack's thread, and save the html and text to include in the zip file. Just throwing some idea...

akanevsky 07-03-2005 10:02 PM

Hmm.. Ok. I, personally, never have more than two tabs open in my browser ;P

Quote:

Not sure what method you'd use, but maybe it can generate the manual by preference, either text, html, or bbcode (or all), based on the user's settings? Then I'd generate the manual with the tool, cut and paste the bbcode into the hack's thread, and save the html and text to include in the zip file. Just throwing some idea...
That's nice, but boards do not have such bbcodes as "inset div" or "horizontal line" by default. Furthermore, not all boards have a PHP tag. For example - invisionboard or phpbb ://... The idea of TEXT-OR-HTML option is useful, though :)

tamarian 07-03-2005 10:26 PM

Quote:

Originally Posted by Dark Visor
That's nice, but boards do not have such bbcodes as "inset div" or "horizontal line" by default. Furthermore, not all boards have a PHP tag. For example - invisionboard or phpbb ://... The idea of TEXT-OR-HTML option is useful, though :)

bbcode can still be done if you allow config options to define translations of bbcodes.

Is this planned as PC software or as an online tool?

Princeton 07-03-2005 11:20 PM

I say go for it!
  1. text files are fine for the experienced ... but, 'html' instructions are best for the inexperienced ... Presentation is the key factor why 'html' is best for the whole
  2. if done correctly, 'html' instructions can reduce installation problems/questions posted by newbies*
* experienced coders know what to do if they run into a problem - hence, they are less likely to post 'problems' that do not exist

You should inquire with the staff here and see if they can come up with some rules/standards for the community. It will make your job easier. :)

Tony G 07-04-2005 01:56 AM

I much prefer text-based instructions than HTML-based ones. It's just easier to copy/paste from a text file and follow instructions, plus it means not having to open a browser window to view the instructions.

BUT, I still say go for it. Some coders might want to offer text-based and html based so that everyone is happy.

Adrian Schneider 07-04-2005 02:06 AM

Make it generate images instead of text. :)

Text ones are fine for the most part as long as everything is seperated clearly. HTML would be much better though, if you can handle the reduce in speed. The copy pasting would depend on the CSS (i think), so it just depends on how you do it.

Useful, but not everyone would use it, so go for it.

Princeton 07-04-2005 10:31 AM

As long as it doesn't add a tag-line (eg. powered by ??) and allows us to create our own templates - I'd be the first to say that I would use it.

If I had something like this already I'd be releasing more addons. :)

Just starting a list for you...
  1. XHTML/CSS compliant -- the best thing about CSS is that you can turn it OFF and/or alter the layout. For example, someone created html instructions with text too small.
  2. Use textarea for code
  3. Use color to give people a quick overview of what is what eg. original vs. new

akanevsky 07-04-2005 01:47 PM

Quote:

bbcode can still be done if you allow config options to define translations of bbcodes.
Good idea.

Quote:

Is this planned as PC software or as an online tool?
It is planned as a PHP script. Later, a friend of mine MIGHT make a C++ port - e.g. make it work as a win32 application.

Quote:

text files are fine for the experienced ... but, 'html' instructions are best for the inexperienced ... Presentation is the key factor why 'html' is best for the whole
if done correctly, 'html' instructions can reduce installation problems/questions posted by newbies*
I totally agree with you on this part.

Quote:

You should inquire with the staff here and see if they can come up with some rules/standards for the community. It will make your job easier.
Bleh... There are vBulletin coding standards. Does anybody here follow them? Some coders do, but most coders are just people who like to code, so many hacks, as you can see, have a badly formatted code. :( I don't think that everyone will follow manual making standards either.

Quote:

Make it generate images instead of text.
Bad idea. When applying a mod, you need to copy paste. You cannot do that with a text that was converted to an image. -.-

Quote:

As long as it doesn't add a tag-line (eg. powered by ??) and allows us to create our own templates - I'd be the first to say that I would use it.
Why wouldn't you like it if it would add a "generated by" in a footer or a meta tag? It would make the script better known. As far as templates go - maybe, but I suppose the template changes will be CSS-based only. Because you don't need much visual variations except colors and borders in such a simple file as HTML instructions, do you?

Quote:

Just starting a list for you...
1. XHTML / CSS - Do not worry, every small piece of web software I make is XHTML & CSS compliant :)
2. Umm... Textarea does not show code indentations. Or does it? Because if it does not, then it would be a hard to read code.
3. What do you mean? Color where?

Princeton 07-04-2005 02:53 PM

Quote:

Bleh... There are vBulletin coding standards. Does anybody here follow them? Some coders do, but most coders are just people who like to code, so many hacks, as you can see, have a badly formatted code. I don't think that everyone will follow manual making standards either.
I'm not talking about the code--more like the layout/heading/etc ... eg. should we use 'Underneath Add' or 'Below Add' or just 'Replace With' ... following a set of standards can benefit everyone--even if it's just html instructions

Quote:

Why wouldn't you like it if it would add a "generated by" in a footer or a meta tag? It would make the script better known. As far as templates go - maybe, but I suppose the template changes will be CSS-based only. Because you don't need much visual variations except colors and borders in such a simple file as HTML instructions, do you?
I don't mind having the tag available for me to read (ie generator interface) ... I just don't like it when I'm obligated to add it the the finished product (ie. html instructions)

Quote:

2. Umm... Textarea does not show code indentations. Or does it? Because if it does not, then it would be a hard to read code.
It sure does.

Quote:

3. What do you mean? Color where?
this is a personal preference -- this can be set via templates ... eg. original code (gray), modified code (yellow), important (red) etc

akanevsky 07-04-2005 03:38 PM

Quote:

I'm not talking about the code--more like the layout/heading/etc ... eg. should we use 'Underneath Add' or 'Below Add' or just 'Replace With' ... following a set of standards can benefit everyone--even if it's just html instructions
The engine will allow a choice from a set of options - {'Find', 'Underneath Add', 'Above Add', 'Replace With}.

Quote:

I don't mind having the tag available for me to read (ie generator interface) ... I just don't like it when I'm obligated to add it the the finished product (ie. html instructions)
I see. Well, I am going to make an option that will allow you to disable the 'generated by' text. However, since you are a coder, you might understand that it is likely that a coder would like to have a name on his product - so that people who use what is produces could easily open the homepage and download a copy for themselves.

Quote:

It sure does.
Perfect! Thus, a code holder shall be a textarea.
What is even better is the fact that a textarea also supports colored text :)

Princeton 07-04-2005 03:55 PM

Quote:

I see. Well, I am going to make an option that will allow you to disable the 'generated by' text. However, since you are a coder, you might understand that it is likely that a coder would like to have a name on his product - so that people who use what is produces could easily open the homepage and download a copy for themselves.
LOL ... I think we're talking about 2 different things ... I don't mind adding my info on the instructions :) ... what I don't like is adding OTHERS to my products. eg. 'Instructions Generated by HTML Generator'

Download my GTP ALLOW GROUP TO READ TITLES/ NOT CONTENT installation file (link in sig) and you will see an example of what I mean by 'color coding'.

Adrian Schneider 07-04-2005 03:58 PM

Quote:

Originally Posted by Well it wasn't me
Bad idea. When applying a mod, you need to copy paste. You cannot do that with a text that was converted to an image. -.-

That's the point. :ninja:

The Geek 07-04-2005 05:54 PM

I say go for it. Readmes are a butt pain to do however a very important butt pain to do.

If you dont mind me saying, the generated header, footer, content block openers, closers and areas should all be templates that the user can customize. Otherwize it becomes as much of a burden to tweak the HTML output as it does to just write your own - all I do is use the exact same shell and change the content accordingly.
I would also suggest a standard 'dont upload' folder that will hold the generated css and associated images.

The generator should only need to accept something like:
1- Project name
2- Version
3- Link & title to release thread
4- Bookmarks to intall, upgrade, uninstall, settings and quick start blocks (actually, each of these could be specified by settings)
5- An infinate number of information blocks

Templates should be something like:
1- Header
2- Navigation
3- Content block
4- Footer

THen each project should be persisted to the db where you can recall, edit and regenerate based on project.

Hope you dont think Im trying to tell you how to do it - Im more or less thinking aloud from my experience writing them (which isnt vast in any sense).

Anyhooo - hope any of these suggestions can help. I would use it for sure if it did.

O yea, on a side note, I second the dislike of copyright notices visible to the end user. Sure we all want our names up in lights - however I generally avoid installing or using anything with copyright notices. For 1, they make it easy to identify easy targets if security holes are ever discovered (though I know that isnt really the case here) for another - why bother? I dont need the hundreds that have installed my stuff to have to parade my name. If users want it - they know where they can get it... here ;)

Again, just my 2 yen (which doesnt add up to much with the exchange rate)... I hope it helps.

nJoy

akanevsky 07-04-2005 08:05 PM

Ok, then, I will not put it in footer, but instead in a 'generator' meta-tag where it is invisible :)

I do not intend to make an 'edit' feature in the first version, but maybe later I will if I come up with an easy way to store data in a text file in a way that a program can easily parse into blocks and display.

The Geek 07-04-2005 08:23 PM

Just out of curiosity... why store it in a text file? You could get the benefits of version/edit abilities if was stored in a table.

akanevsky 07-04-2005 09:11 PM

Yes. But that would be an additional system requirement... Ok, then I will store the results in a table :)

akanevsky 07-07-2005 04:03 PM

OK, here is my list of what is there could possibly be to a hack. If anyone has anything to add, post here.

INTRO / INSTRUCTIONS
SQL QUERIES
FILE UPLOADS
FILE MODIFICATIONS
TEMPLATE UPLOADS
TEMPLATE MODIFICATIONS
PHRASE UPLOADS
PHRASE MODIFICATIONS

Is this it?

Andreas 07-07-2005 04:10 PM

If you do, please make it a class/functions so I could interface it from APM :)

akanevsky 07-07-2005 06:57 PM

KirbyDE, could you please elaborate a little more on that? I cannot understand what you said.

Andreas 07-07-2005 07:01 PM

If you are going to create such a "Hack Manual Generator", it would be nice if you could make its core functionality a class or functions, so it could be interfaced from other Scripts :)

Revan 07-07-2005 08:43 PM

Quote:

Originally Posted by Dark Visor
OK, here is my list of what is there could possibly be to a hack. If anyone has anything to add, post here.

INTRO / INSTRUCTIONS
SQL QUERIES
FILE UPLOADS
FILE MODIFICATIONS
TEMPLATE UPLOADS
TEMPLATE MODIFICATIONS
PHRASE UPLOADS
PHRASE MODIFICATIONS

Is this it?

Hooks ;)
Even tho I will create my own installer for templates/phrases/hooks, others might not bother.
And I will definetely be using this, I applaud the creation of this mod :)

akanevsky 07-07-2005 08:53 PM

Quote:

Hooks
How do you install hooks / plugins? I have not made any 3.5 hacks yet, so I do not know.

Quote:

I applaud the creation of this mod
Thanks, but you are missing one: It is not a mod, but rather a stand alone application :)

Princeton 07-08-2005 12:22 PM

Quote:

Originally Posted by Dark Visor
OK, here is my list of what is there could possibly be to a hack. If anyone has anything to add, post here.

INTRO / INSTRUCTIONS
SQL QUERIES
FILE UPLOADS
FILE MODIFICATIONS
TEMPLATE UPLOADS
TEMPLATE MODIFICATIONS
PHRASE UPLOADS
PHRASE MODIFICATIONS

Is this it?

it looks good thus far ... you should make it so that you can add a new field if needed

Quote:

I have not made any 3.5 hacks yet, so I do not know.
LOL, don't feel bad ... I have not even installed 3.5 yet. :)
I think I'll wait until it goes GOLD.

Revan 07-08-2005 01:25 PM

Quote:

Originally Posted by Dark Visor
How do you install hooks / plugins? I have not made any 3.5 hacks yet, so I do not know.

Check out admincp/plugin.php for the code they use to import plugins.

akanevsky 07-08-2005 04:13 PM

No, I mean, does anyone ever need to install hooks/plugins manually or does vBulletin have an integrated installer, which means a file upload?

Revan 07-08-2005 05:13 PM

vBulletin has the same Plugin installation interface as Phrases and Templates, so it would make no sense to create functions for those and not Plugins :P

akanevsky 07-08-2005 06:15 PM

Ok, whatever you say...

Should it also generate a text version along side of the html and bbcode ones?

P.S> Shame on you, there is a much easier way to store an array in a file than making a mysql structure for it...

akanevsky 07-10-2005 07:09 PM

I am done, please read here now:
https://vborg.vbsupport.ru/showthread.php?t=91941

tamarian 07-10-2005 07:31 PM

LOL, you should've said from the start this will require licensing fee and a license key. :down:

akanevsky 07-10-2005 07:35 PM

Don't show me the down thumbs because it is not going to change anything. If you want to know, the actual fee will be very low ($14.99). -.- And the license key is only going to serve to receive free upgrades :)

And if you are still not interested, I can even provide you with a manual that was generated using this generator ;)

Added Later: By the way. If you think $14.99 is a big fee for this... Check out any of my hack manuals, and note the way they are formatted. Easy to read, isn't it? ;) Now, if my text-based manuals are easy to read, imagine what I made using XHTML + CSS, making use of all the special effects and formatting available. You cannot imagine? Your loss ;)

Quote:

I hate html install instructions with a passion. I much prefer plain text.
Ha! That depends solely on the layout. You def won't hate mine, plus it also generates a text version. xD

Revan 07-11-2005 05:32 PM

Quote:

Originally Posted by tamarian
LOL, you should've said from the start this will require licensing fee and a license key. :down:

I agree.
Quote:

Originally Posted by Dark Visor
Don't show me the down thumbs because it is not going to change anything. If you want to know, the actual fee will be very low ($14.99). -.-

That's pretty anal. $14.99 is not a very low fee. $5 is a very low fee. $14.99 is more than most semi-old PS2 games cost, unused, in the correct games stores (at least here in Norway. Currency roughly translated).
It is going to change everything. Before, me along with most others in this thread that do not know you personally voted and thought it would be released free, like so many other hacks that are much more extensive than this. And before you start saying "but this is not a hack like that, it's a hackers tool", then I say "exactly".
Quote:

Originally Posted by Dark Visor
And the license key is only going to serve to receive free upgrades :)

And for the script to call home to make sure no-one is creating manuals they shouldn't be creating.
Quote:

Originally Posted by Dark Visor
And if you are still not interested, I can even provide you with a manual that was generated using this generator ;)

I would be interested in seeing such a preview.
Quote:

Originally Posted by Dark Visor
Added Later: By the way. If you think $14.99 is a big fee for this... Check out any of my hack manuals, and note the way they are formatted. Easy to read, isn't it? ;) Now, if my text-based manuals are easy to read, imagine what I made using XHTML + CSS, making use of all the special effects and formatting available. You cannot imagine? Your loss ;)

GeekyDesigns have a HTML based manual which is easy to read and has checkboxes that hides a block of code when it's done (IIRC, I know at least someone does have this). I highly doubt they would start a lawsuit if you took one of their manuals, redid the coding to suit your needs, and used it. I have a feeling this would piss you off to no ends if it was done to any of YOUR manuals.
So yeah, do show me an XHTML+CSS manual whos editing interface would make spending $15 worth the "hassle" of creating a blank "template" manual and fill this in manually at each hack release.

tamarian 07-11-2005 06:06 PM

Quote:

Originally Posted by Dark Visor
Added Later: By the way. If you think $14.99 is a big fee for this... Check out any of my hack manuals, and note the way they are formatted. Easy to read, isn't it? ;) Now, if my text-based manuals are easy to read, imagine what I made using XHTML + CSS, making use of all the special effects and formatting available. You cannot imagine? Your loss ;)

I'll recover from this loss in due time :)

Even $0.0 is too much with this licensing key scheme. There's a lot of coders here sharing their work without such restrictions, so it does look odd to charge for a simple script to format a post or a page as HTML or XHTML and require licensing keys for it.

Nothing against making money, and if anyone pays for it, more power to you. ;)

akanevsky 07-11-2005 06:07 PM

Quote:

I agree.
I can understand, nobody likes to pay. Including me. However, as a coder, you should understand that time costs money. And it was not a 5 minute job.

Quote:

That's pretty anal. $14.99 is not a very low fee. $5 is a very low fee. $14.99 is more than most semi-old PS2 games cost, unused, in the correct games stores (at least here in Norway. Currency roughly translated).
It is going to change everything. Before, me along with most others in this thread that do not know you personally voted and thought it would be released free, like so many other hacks that are much more extensive than this. And before you start saying "but this is not a hack like that, it's a hackers tool", then I say "exactly".
Suit yourself. Let's start with the fact that I don't think have to tell anything to anybody. Unless I signed a contract or unless I am in partnership with someone. Never said it was going to be free either. You assumed it.

Quote:

And for the script to call home to make sure no-one is creating manuals they shouldn't be creating.
I could do a call home. Thanks for the idea. Didn't think about it b4 you said it tho :)

Quote:

I would be interested in seeing such a preview.
https://vborg.vbsupport.ru/showthrea...threadid=91998
Text version is not included in that archive.

Quote:

and has checkboxes that hides a block of code
Wow! Really! How did they do it???
To speak seriously, thanks for the idea. I am going to implement that as well.
Now, speaking of large hacks... Are you going to write out all those IDs and checkboxes manually? Bleh. Even if you will, you won't ever have the patience to finish it as much as valid XHTML goes.

Quote:

I have a feeling this would piss you off to no ends if it was done to any of YOUR manuals.
Wrong, son. You could use the HTML from any of my manuals. You could adapt it.... manually.... I have no problem with that xD.
At the same time, I will use the generator for my hacks which will save me a lot of time xD

Quote:

I'll recover from this loss in due time
Good for you. Congratulations.

Cheers!

Revan 07-11-2005 06:41 PM

Quote:

Originally Posted by Dark Visor
I can understand, nobody likes to pay. Including me. However, as a coder, you should understand that time costs money. And it was not a 5 minute job.

Yet that didn't stop me from releasing the RPG for free, and keep doing so. I have spent close to a full year on the RPG by now. Granted, I haven't spent 24/7 on it, but still a fair amount of my time.
Quote:

Originally Posted by Dark Visor
Suit yourself. Let's start with the fact that I don't think have to tell anything to anybody. Unless I signed a contract or unless I am in partnership with someone. Never said it was going to be free either. You assumed it.

Common courtesy to give people all the info before you get them excited though ;)
Quote:

Originally Posted by Dark Visor
I could do a call home. Thanks for the idea. Didn't think about it b4 you said it tho :)

No problem ;) I should warn you though, most people will hack that out, so you should either Zend or IonCube some of the core functions of the hack along with the call home function. Granted, you will sell less because either will require either Zend installed or Safe Mode disabled, but at least no-one will be using the script without you knowing it :)
Quote:

Originally Posted by Dark Visor
https://vborg.vbsupport.ru/showthrea...threadid=91998
Text version is not included in that archive.

Thanks, Ill check that out after submitting this post.


Quote:

Originally Posted by Dark Visor
To speak seriously, thanks for the idea. I am going to implement that as well.
Now, speaking of large hacks... Are you going to write out all those IDs and checkboxes manually? Bleh. Even if you will, you won't ever have the patience to finish it as much as valid XHTML goes.

Care to make a small wager on that, mate? ;) You probably don't know it, but you are talking to a perfectionist. I rarely ever publish anything without it being XHTML. Current RPG templates are ++++ because I didn't have time or skills to redo them and still make the v3 release in a timely manner. I do now.
So you see, I have patience coming out various holes in my body ;)
Quote:

Originally Posted by Dark Visor
Wrong, son. You could use the HTML from any of my manuals. You could adapt it.... manually.... I have no problem with that xD.
At the same time, I will use the generator for my hacks which will save me a lot of time xD

Thanks, I'll take that offer. Means I'll have the vB3.5 compliant version of my hack with a shiny HTML manual as well as a .txt manual :) Provided I don't succeed in making it into a full-fledged Extension, that is ;)


All times are GMT. The time now is 03:38 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
  • Page Generation 0.01365 seconds
  • Memory Usage 1,899KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (48)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete