Version: 1.00, by assassingod
Developer Last Online: Jan 2023
Version: 2.3.x
Rating:
Released: 11-29-2003
Last Update: Never
Installs: 16
No support by the author.
// Tutorial Hack - [high]1.3[/high]
// Coded By: assassingod
// Credits:
Slynderdale - Catagory Dropdown help
NTLDR/LeeCHeSS - LEFT JOIN help
Me - Working from 8PM til 4AM
a-drive - Original Hack idea
// Description: The Tutorial hack 1.3 has much more features that you can possibly imagine!
User permissions, allow or disallow users (and usergroups!) to use the tutorial
section. Tutorial Moderation, want to give approval to tutorials before they appear live on the site? With this feature you can, you can either allow or delete tutorials!
Search feature, now you and your users can search for tutorials easily without the hassle of looking for them!
Add, Delete, Modify catagories to your liking! You have an easy-to-use catagory manager so you dont have to go through any trouble adding catagories.
Allow your users to vote on their favourite tutorials. Good tutorials will be regconized by others! Move, Hide, Edit and Delete - these are some of the tutorial features you as an administrator can do for tutorials. Move a tutorial to another catagory, Hide it temporarily, Edit it and even Delete!
Quick Stats! See which tutorials are hot, and which are not.
Add a whole new level to your site with the Tutorial Hack!
// Upcoming features: - Favourite Tutorials, users can add tutorials to their favourites page and find
the tutorial quickly!
- Page Numbers
- Users tutorials in profile (Add-on only)
// Notices:
- Sorry for the delay of 1.3
- A vB3 port is being considered, work will only be done on RC2 though, no earlier version will be tested on
- 1.4 will contain the formentioned upcoming features
- As I mention in the instructions, there are 27 templates to add.
Haven't try this out yet, but am I able to upload pictures to my tutorials? if not, maybe this could be a feature on the next version. Maybe allow a person to upload as many picture they need to upload and than sort it out in the tutorial using the tag?
Can I ask why do you always set $templatesused after require global.php? I think it's pointless because the templates are not being cached, and there will be one query for every template the script reads.
iceman-x, Only registered users should be able to post tutorials
JuliadD, i've always used $templatesused in my scripts wether it's needed or not. But when I re-code tutorials.php, I'll be sure to see what's not needed
iceman-x, Only registered users should be able to post tutorials
JuliadD, i've always used $templatesused in my scripts wether it's needed or not. But when I re-code tutorials.php, I'll be sure to see what's not needed
Thanks. But i was woundering if only registerd people can view the tutorials.
iceman-x, Only registered users should be able to post tutorials
JuliadD, i've always used $templatesused in my scripts wether it's needed or not. But when I re-code tutorials.php, I'll be sure to see what's not needed
That is not the issue here, the error is calling global.php before you define $templatesused. This means everytime you call get_template(); in the script it runs a query.
So instead of:
PHP Code:
require_once('./global.php');
if ($do = 'moo')
{
$templatesused = 'blah,blah3,blah999';
}
Use:
PHP Code:
if ($do = 'bahh')
{
$templatesused = 'sheep,sheepy';
require_once('./global.php');