vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Tutorial Hack (https://vborg.vbsupport.ru/showthread.php?t=58919)

surfhog 12-02-2003 07:36 PM

So Sorry assassingod :)

To have taken up your time with my posts. Maybe I am trying to run before I can walk here, in that I thought that I had understood how the hacks work, but it appears not to be the case :( I have just tried the "Forums Arranged in Columns Addon" with a fresh new reinstall, this has gone wrong also :( So I do not mind admitting to my personal failings and go back to the drawing board as it were.

Down but not out yet, ha ha

Mind in my defense I noticed quite few posts, stating that there are problems with hacks on version 2.3.3 - but then as a newbie, I cannot say.

Anyway, thanks for trying........

:)

Xyphen 12-03-2003 11:34 AM

That is just beautiful! Awesome work, I hope you have a vB3 version ready or in the works :)

assassingod 12-03-2003 01:36 PM

Thanks for the feedback:)
Next update:
Random Tutorials on forumhome

SRozhon 12-03-2003 04:47 PM

This is Great! I love it! Thank you

assassingod 12-03-2003 05:34 PM

Random Tutorial on Forumhome:

Follow instructions in the text file.

corsacrazy 12-03-2003 09:15 PM

installed addon nice one mate

FleaBag 12-04-2003 12:33 AM

Great work as usual mate, looking forward to moderation of user reviews. ;)

assassingod 12-04-2003 06:16 AM

Thanks:)

Allan 12-04-2003 12:17 PM

thank you to you, pretty work has :)

IKer 12-04-2003 01:47 PM

THx ! i hope the next update is : Edit Feature for user who posted tutorial
;)

corsacrazy 12-04-2003 02:29 PM

what about most popular tutorial and how total tutorials on forum home ?

assassingod 12-04-2003 03:00 PM

Quote:

Originally Posted by corsacrazy
what about most popular tutorial and how total tutorials on forum home ?

I'll add those after tutorial moderation and edit feature

assassingod 12-04-2003 04:05 PM

Update:
[IMG] tags and [BB]Code working:

Find (194):
PHP Code:

    $tut[tutpagetext] = bbcodeparse($tut[tutpagetext],0,0,0,0); 

Replace with:
PHP Code:

    $tut[tutpagetext] = bbcodeparse2($tut[tutpagetext],0,1,1,1); 

Updating ZIP in a minute

bandersen 12-04-2003 05:56 PM

Thank you - I have installed and its working! Looking forward to the rest... Thanks again!

corsacrazy 12-04-2003 06:18 PM

bb and img code was working alread wots the fix for mate ?

assassingod 12-04-2003 06:19 PM

Quote:

Originally Posted by corsacrazy
bb and img code was working alread wots the fix for mate ?

Hm, I was told they didn't. Anyway, this code defintly works now:)

Allan 12-05-2003 06:16 AM

hello:)
I have to replace the file "tutorials.php", and following that, I have this like error:

PHP Code:

Database error in vBulletin 2.3.0:

Invalid SQL
        
SELECT tutid,tutname,tutposted,tutposterid,tutmodded,tutpostername,tutvotes,tutviews
        FROM tutorials
        WHERE tutcat 
'1'
        
ORDER BY tutposted ASC
    
mysql error
Champ 'tutmodded' inconnu dans field list 


assassingod 12-05-2003 06:26 AM

Whoops, I accidently had the tutorial moderation feature in there( uncomplete )
Run this query to fix:
[SQL]
ALTER TABLE tutorials ADD tutmodded INT(10)
[/sql]

OR

You can open tutorials.php and find (Line 310):
PHP Code:

tutmodded

remove that and find and remove (line 311):
PHP Code:

'0'


Allan 12-05-2003 07:30 AM

Quote:

Originally Posted by assassingod
Whoops, I accidently had the tutorial moderation feature in there( uncomplete )
Run this query to fix:
[SQL]
ALTER TABLE tutorials ADD tutmodded INT(10)
[/sql]

OR

You can open tutorials.php and find (Line 310):
PHP Code:

tutmodded

remove that and find and remove (line 311):
PHP Code:

'0'


thanks ;)

FleaBag 12-05-2003 05:34 PM

Very happy to see that you've been working on moderation mate - made my day hehe!

About to install in replacement of vBArticles - are the fixes mentioned in this thread included in the first zip?

Aaron1 12-06-2003 02:36 AM

Looking good!

Thanks for your efforts!

Did you know you can keep voting on the article if you want?

It would be even cooler if you could respond to the tutorial aswell. I have no idea if that's a hard thing to do, but could be great.

Thanks Assasin!

assassingod 12-06-2003 03:10 AM

Thanks for letting me know you could repeatedly vote, I will sort this out:)

As for a comment system, I was thinking of that and may implent it in a future version

gmarik 12-06-2003 03:41 AM

Wow

iceman-x 12-06-2003 04:46 PM

wery nice hack :D:D:D

Do this hack work on 2.3.0. havent oppgradet yet ???

assassingod 12-06-2003 04:48 PM

Quote:

Originally Posted by iceman-x
wery nice hack :D:D:D

Do this hack work on 2.3.0. havent oppgradet yet ???

There should be no problems with this working on 2.3.0:)

iceman-x 12-06-2003 05:02 PM

Nice, thanks again for the great hack. i will proberly install it later. :)

FleaBag 12-07-2003 03:29 PM

Got this installed and working properly - cheers.

assassingod 12-07-2003 04:35 PM

If there are any troubles or requests just post them here;):)

corsacrazy 12-07-2003 04:46 PM

request : total tutes for each section on tute_home ?

assassingod 12-07-2003 04:47 PM

Quote:

Originally Posted by corsacrazy
request : total tutes for each section on tute_home ?

Will add to my to-do list.;)

FleaBag 12-07-2003 09:40 PM

Haha there's no stopping you!

iceman-x 12-08-2003 08:19 PM

Then the hack is installed. Thanks again :):)

gldtn 12-08-2003 08:24 PM

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?

assassingod 12-08-2003 08:47 PM

gldtn, as of yet you cannot upload pictures. I'll take this into consideration in future version:)

iceman-x 12-08-2003 09:07 PM

- Is it posible to make it for only registered member.

JulianD 12-09-2003 01:20 AM

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.

assassingod 12-09-2003 05:50 AM

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 12-09-2003 09:38 AM

Quote:

Originally Posted by assassingod
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.

Areku 12-09-2003 10:54 AM

Can we make it so only REGISTERED users can view/access the tutorials zone?

Brad 12-09-2003 11:07 AM

Quote:

Originally Posted by assassingod
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');

// your code here




All times are GMT. The time now is 03:35 PM.

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.03713 seconds
  • Memory Usage 1,806KB
  • 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
  • (9)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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