Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Hack Help Details »»
Hack Help
Version: , by mntlcase mntlcase is offline
Developer Last Online: Oct 2004 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 03-10-2002 Last Update: Never Installs: 0
 
No support by the author.

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-&gt;query_first(&quot;SELECT COUNT(*) AS threads FROM thread WHERE lastpost &gt; '$bbuserinfo[lastvisit]'&quot<img src="images/newsm/wink.gif" border="0" alt="">;
$getnewpost=$DB_site-&gt;query_first(&quot;SELECT count(*) AS posts FROM post WHERE dateline &gt; '$bbuserinfo[lastvisit]'&quot<img src="images/newsm/wink.gif" border="0" alt="">;

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-11-2002, 12:22 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 03-11-2002, 01:21 AM
mntlcase mntlcase is offline
 
Join Date: Mar 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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 "&gt;" codes with. I get parse errors. &gt; 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...ack&hackid=182
Reply With Quote
  #4  
Old 03-11-2002, 01:50 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
$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.
Reply With Quote
  #5  
Old 03-11-2002, 01:52 AM
mntlcase mntlcase is offline
 
Join Date: Mar 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The code is posted above. In my first message.
Reply With Quote
  #6  
Old 03-11-2002, 02:29 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no need to thank me, btw.

regards,
nakkid.
Reply With Quote
  #7  
Old 03-11-2002, 02:32 AM
mntlcase mntlcase is offline
 
Join Date: Mar 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I didn't see your post edit. I'm sorry.

Thanks for the help!
Reply With Quote
  #8  
Old 03-11-2002, 02:37 AM
mntlcase mntlcase is offline
 
Join Date: Mar 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just installed the code and it works perfectly!

You da man!
Reply With Quote
  #9  
Old 03-11-2002, 03:03 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 11:05 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.03945 seconds
  • Memory Usage 2,279KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete