View Full Version : Hack Help
mntlcase
03-10-2002, 11:53 PM
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.
mntlcase
03-11-2002, 01:21 AM
Originally posted by nakkid
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.
I need to know what to replace the ">" codes with. I get parse errors. > is an HTML code that makes a special character like " or ) or (. Something like that.
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.php?s=&action=showhack&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.
$getnewthread=$DB_site->query_first("SELECT COUNT(*) AS threads FROM thread WHERE dateline > '$bbuserinfo[lastvisit]'");
$getnewpost=$DB_site->query_first("SELECT COUNT(*) AS posts FROM post WHERE dateline > '$bbuserinfo[lastvisit]'");regards,
nakkid.
mntlcase
03-11-2002, 01:52 AM
The code is posted above. In my first message.
no need to thank me, btw.
regards,
nakkid.
mntlcase
03-11-2002, 02:32 AM
I didn't see your post edit. I'm sorry.
Thanks for the help! :)
mntlcase
03-11-2002, 02:37 AM
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.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.