vBulletin Modifications

[How To] Create forum counters

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > General vBulletin Support > vBulletin Modification Tutorials

Reply
 
LinkBack Thread Tools
Old 05-17-2006, 09:03 PM   #31
Coder
Join Date: Apr 2004
lasto is on a distinguished road

Default

Quote:
Originally Posted by Niels
Holy wtf :| What version are you running?

vb 3.5.4 is the version im on

also the text i pasted in my thread is from another post on here showing the hooks and it dont show the one i need to change ??

I defo dont have hook: threadmanage_deletethread in the drop down box

its not even listed on the page on here where the full hooks are listed



The hook you have asked me to add aint even on this list m8

List of default hooks



am i missing something here
Attached Images
File Type: jpg 1.jpg (27.6 KB, 26 views)

Last edited by lasto; 05-18-2006 at 06:50 AM.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 05-18-2006, 02:44 PM   #32
Advanced Coder
Niels's Avatar
Join Date: Jun 2004
Real Name: Niels
Location: NL
Niels is on a distinguished road

Default

Quote:
Originally Posted by Tycoon
Where in AdminCP do you mean exactly? I did enable all the hooks and also enabled it Forum Manager when editing one of my forums. Is there another place because I didn't find anything in the "Vbulletin Options".

Thanks for your support.
If you enabled it @ the forum manager with one of your forums, it should work. Make sure you set it on and not on a category but a forum. That should do the job. And no there is nothing in vbulletin options.

@Lasto
Sorry, look like my head went weird :p I'll take a look at it soon. Sorry to confuse you.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-18-2006, 03:18 PM   #33
Coder
Join Date: Apr 2004
lasto is on a distinguished road

Default

Quote:
Originally Posted by Niels
If you enabled it @ the forum manager with one of your forums, it should work. Make sure you set it on and not on a category but a forum. That should do the job. And no there is nothing in vbulletin options.

@Lasto
Sorry, look like my head went weird :p I'll take a look at it soon. Sorry to confuse you.
no worries m8 -- i appreciate your free time and thank you for even helping in the first place




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-20-2006, 05:57 PM   #34
Coder
Join Date: Apr 2004
lasto is on a distinguished road

Default

no rush Niels but any update to this yet m8 - have now got my board up and running but not open to general public till i sort out my hacks.

cheers m8




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-21-2006, 05:47 PM   #35
Coder
Join Date: Apr 2004
lasto is on a distinguished road

Default

can anyone do an updater for this as really need it.
I need it so if i delete a thread it detracts 1 point from the score
also the section im using it on already had threads in so i need the updater to take these into account as at moment its only counting the new threads u make in that section since the hack was installed.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-22-2006, 08:55 AM   #36
Advanced Coder
Niels's Avatar
Join Date: Jun 2004
Real Name: Niels
Location: NL
Niels is on a distinguished road

Default

Quote:
Originally Posted by lasto
can anyone do an updater for this as really need it.
I need it so if i delete a thread it detracts 1 point from the score
also the section im using it on already had threads in so i need the updater to take these into account as at moment its only counting the new threads u make in that section since the hack was installed.
Sorry to say, but I'm kinda busy, need to finish one vb site. And got my next customer also already in....




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-22-2006, 10:36 AM   #37
Coder
Join Date: Apr 2004
lasto is on a distinguished road

Default

kk nps will see on vb.org if a coder will finish this off as really need it

cheers neils999 for your help though




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-26-2006, 11:37 AM   #38
Coder
Join Date: Apr 2004
lasto is on a distinguished road

Default

anyone able to finish this off - just need some php to update for threads etc which are already made before this hack is installed as it only counts the ones from when the hack is installed.So any existing ones are not counted.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-26-2006, 04:22 PM   #39
Coder
Join Date: Apr 2004
lasto is on a distinguished road

Default

keep getting these emails wondering if its anything to do with this counter - what do u think.


Database error in vBulletin 3.5.4:

Invalid SQL:

UPDATE user AS user
SET user.threads =
(
SELECT COUNT(threadid)
FROM thread AS thread
LEFT JOIN forum AS forum ON forum.forumid = thread.forumid
WHERE visible = 1
AND (forum.options & 4096)
AND user.userid=postuserid
);

MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT COUNT(threadid)
FROM thread AS thread
LEFT JOIN f
Error Number : 1064

Date : Friday, May 26th 2006 @ 02:06:06 PM
Script : ****************/cron.php?&rand=241144


Not got a clue but got this from google :

Why do i get a query syntax error 1064 from MySQL when the syntax seems correct?

You will get a MySQL query syntax error number 1064 when you incorrectly use a reserved word in your query such as "when" or "order".




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-26-2006, 04:23 PM   #40
Advanced Coder
Niels's Avatar
Join Date: Jun 2004
Real Name: Niels
Location: NL
Niels is on a distinguished road

Default

Quote:
Originally Posted by lasto
keep getting these emails wondering if its anything to do with this counter - what do u think.


Database error in vBulletin 3.5.4:

Invalid SQL:

UPDATE user AS user
SET user.threads =
(
SELECT COUNT(threadid)
FROM thread AS thread
LEFT JOIN forum AS forum ON forum.forumid = thread.forumid
WHERE visible = 1
AND (forum.options & 4096)
AND user.userid=postuserid
);

MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT COUNT(threadid)
FROM thread AS thread
LEFT JOIN f
Error Number : 1064

Date : Friday, May 26th 2006 @ 02:06:06 PM
Script : ****************/cron.php?&rand=241144
Nope, this has nothing to do with it.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[How To] Run a Query Ken Iovino vBulletin Modification Tutorials 9 07-30-2008 03:29 AM
[How To] Run vBulletin On your P.C. Ken Iovino vBulletin Modification Tutorials 81 12-15-2007 03:50 AM
[How to] Add navigation groups to your admincp left panel Ken Iovino vBulletin Modification Tutorials 11 07-16-2007 12:59 AM
[How To] Add Options per forum Ken Iovino vBulletin Modification Tutorials 10 03-03-2007 04:25 PM
[How To] Run a vb page outside of the forum directory Junior vBulletin Modification Tutorials 7 01-10-2007 08:05 PM


All times are GMT -3. The time now is 07:47 PM.


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)