![]() |
Thanks for the update!
I get this tho.... Invalid SQL: SELECT COUNT(*) as total FROM tutorials WHERE tutcat ='7' and tutmodded = '1' mysql error: Unknown column 'tutmodded' in 'where clause' |
Run this query:
[sql] ALTER TABLE tutorials ADD tutmodded INT(6) [/SQL] |
Yes, now it works!
But I lost all the tutorials already in there..... |
Really? How odd. Did you do anything else?
|
No...
They just got zero'd out sort of... If I look in the admin panel I can still see the stats, like there should be something there, but if I click the link for most viewed tutorial.... it takes me to view a tutorial that is not there. |
They might be unmoderated. Go to the moderation page in the AdminCP, see if they are there.
|
No unmoderated tuts.
10 tutorials (0 unmoderated) edit: and if I click edit tutorial in the ADminCP... I can read the actual tut |
Run this query:
[SQL] SELECT * FROM tutorials [/SQL] See if there is a result. Hopefully they are still in the database. |
That did not help...
If I enter tut manager - modify - I can see them listed. If I click a link - I do see the actual tutorial text... so I guess they are there... Everything looks OK in the adminCP. |
But did you get any results from the query?
|
in phpMyAdmin.... all the tutorials were listed.... when running SELECT *
FROM tutorials |
Ok, try running this:
PHP Code:
|
BINGO!!!!
They all show! Thank you for the support!! |
No problem:)
|
Ops... search doesn't work.. but it works for the word "frank" :-) a bit random...
http://www.virtusphysica.com/forums/.../tutorials.php Does it search tutorial name and text or just text.... |
It only searches the tutorial name. Version 1.4 will have a better search engine this is just a simple one.
|
OK - thank you for your work!
|
One question: I am about to enter some 30 tutorials and some of them have tables and links in them. Can I turn on html somewhere while doing these initial entries and then turn it off again and the links etc will still be there?
thanks |
Hi again... sorry to bother you again. I have just entered the code for getting a random tutorial on the index page. That worked, but when I click the link, I am taken to a tutorial that do not show. Much like my initial problem. Could you help me "refresh it" from the database ?
EDIT: oh OK... the random tut on index page include those not mod. yet.... |
How come all new tutorials show with a "bad tutorial" icon? How do I change that....
|
Quote:
thanks again for your contribution :) |
bandersen;
1. There's a fix somewhere in this thread. 2. I'll fix this tomorrow:) 3. Thats the mini-rating system. When a tutorial gets a certain amount of votes, it'll be classified as a good tutorial. I'll make a better one soon. |
I tried the below... but code didn't match for 1.3:
I changed the numbers in the following string with no html success (line 267 in tutorial.php): $tut['text'] = bbcodeparse2($tut['tutpagetext'],1,1,1,1); [QUOTE=assassingod]iceman-x, Areku; Areku; 1. https://vborg.vbsupport.ru/showpost....3&postcount=53 But use this as the replacement: PHP Code:
|
[QUOTE=bandersen]I tried the below... but code didn't match for 1.3:
I changed the numbers in the following string with no html success (line 267 in tutorial.php): $tut['text'] = bbcodeparse2($tut['tutpagetext'],1,1,1,1); Quote:
|
Is it me or we get just the THUMBS DOWN icon on every tutorial?
Also, where do I allow HTML posting? Thanks! |
Until it gets a certain ammount of votes, it'll stay with thumbs down. 1.4 will have a better system that the current one.
|
I don't think this is a nice way to display it... I mean, there may be old well known and good tutorials ported to your system which require thumbs up ;)
What about the HTML? ;) |
Err... something weird has happened...
I upgraded from old hack version to 1.3 and now all the tutorials miss the NEW LINE codes, ie instead of reading: This is line1 This is line2 This is line3 I get This is line1This is line2This is line3 Ideas? UPDATE: Well, actually no VB code is being converted at all! |
Edit:
I don't understand what you did. Did you upgrade? |
I:
1) Downloaded "// Tutorial Hack // Coded By: assassingod // Version: 1.3 " from the first thread. 2) Ran the queries missing in the version I installed earlier 3) Added the new templates, updated the old ones with the new codes 4) Made the required changes on the files 5) Moderated old tutorials to appear on the new v1.3 Now, no BB code is parsed, although is stored correctly in the DB. Ideas? |
Odd. I'll have to get back to you on that. But, try inserting <br /> for a new break and see what happens.
|
Am I expected to have HTML enabled without knowing?
Also, any of the VB code works at all... nor B, nor FONT, nothing.... Thanks assassingod! |
Hmmm... it seems it supports HTML anyway, so that may be the explanation on why it's allowing HTML but disallowing BB code?!
|
Also, it seems $tutvoteno at tuts_tutvote template is not parsed...
|
Yes, it's possible the code for parsing the tutorial content has been messed up. I'll cook up a fix ASAP.
|
Quote:
|
Well, may be u can add some switches like: ALLOW BBCODE yes/no? ALLOW HTML yes/no? ;)
Thanks for the fixes. Right now I NEED BOTH Html and BB codes, for example. |
And for tutno....
I guess you condition it to a YES until someone votes it YES? Until then, NO does not appear? |
Yes, this way it prevents users from being able to give a vote a minus number.
|
They still could do it by calling the URL intentionally I guess ;)
About the search feature... which field(s) does it search the text into? I didn't manage to get any results using keywords found on title nor in content itself... |
All times are GMT. The time now is 08:32 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|