![]() |
Hack Help
I am trying the "New Threads and New Posts" hack. However, the codes are all messed up. Can someone take the HTML stuff out and replace it with the proper PHP?
$getnewthread=$DB_site->query_first("SELECT COUNT(*) AS threads FROM thread WHERE lastpost > '$bbuserinfo[lastvisit]'"<img src="images/newsm/wink.gif" border="0" alt="">; $getnewpost=$DB_site->query_first("SELECT count(*) AS posts FROM post WHERE dateline > '$bbuserinfo[lastvisit]'"<img src="images/newsm/wink.gif" border="0" alt="">; |
here it is a good tip. go back to the author's thread and read again all the info there. it will help you learn and understand better all.
once you got the right code, post it here with an explanation how you would want to have it modified. regards, nakkid. |
Quote:
I can't seem to find a listing of what those special HTML codes translate to in normal text. Here is a link to the hack... http://www.vbulletin.org/hacks/index...ack&hackid=182 |
remember what i asked you? place the code here if you want help. explain what is confusing you. i just want to give you a good method of posting that's all.
if you place just a link and say: make it work, i guarantee you nobody will answer. hmm you are lucky there is no zip or txt file in there. i will post for you the code here, the way is should be. PHP Code:
nakkid. |
The code is posted above. In my first message.
|
no need to thank me, btw.
regards, nakkid. |
I didn't see your post edit. I'm sorry.
Thanks for the help! :) |
I just installed the code and it works perfectly!
You da man! |
i'm glad i could help. welcome to the vB.org familly. ;)
all the best for your website. a little tip, when you post. use [code] and [php] bbCodes to display your code. it will look alot better and easier to edit. regards, nakkid. |
All times are GMT. The time now is 07:20 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|