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

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 11-04-2000 Last Update: Never Installs: 0
 
No support by the author.

Not much of a release, but should be 1.1.4 compliant.

Please discuss here: http://www.vbulletin.org/hacks/hacks...=gethack&id=36

Show Your Support

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

Comments
  #42  
Old 12-17-2000, 09:17 AM
Guest
 
Posts: n/a
Default

Code:
if ($table=="privatercvd") {
    $messages = $DB_site->query("SELECT msgid,toid,fromid,title,UNIX_TIMESTAMP(datetime) AS datetime,iconid,repliedto FROM $table WH
  } elseif ($table=="privatesent") {
   $messages = $DB_site->query("SELECT msgid,toid,fromid,title,UNIX_TIMESTAMP(datetime) AS datetime,iconid FROM $table WHERE fromid
  }
  if ($messages) {
  //parse each message
  while ($message=$DB_site->fetch_array($messages)) {
    $fromid = trim($message[fromid]);
    if ($ignore[$fromid]) {
      continue;
    }
    $fromuser = $DB_site->query_first("SELECT username FROM user WHERE userid=$fromid");
    $from = stripslashes(trim($fromuser[username]));
    $toid = trim($message[toid]);
    $touser = $DB_site->query_first("SELECT username FROM user WHERE userid=$toid");
    if ($table=="privatesent") {
      $from = trim($touser[username]);
I have just read through the code briefly... and have a few suggestions:
1) The part where we want to get the name of $fromuser is a new query, so the number of queries fired will be proportional to the number of PM a person gets, why not do a join ?
2) the second part, to find the $touser, afaik, this field is useful if we are at the SentItems folder? So if we are else where, those queries fired are just wasting CPU cycles?

just my 2 cents..
Reply With Quote
  #43  
Old 12-24-2000, 11:36 AM
Guest
 
Posts: n/a
Default

Hey,
cool hack
i'm using vb v1.1.3

annybody has the instructions for v1.1.3 ?

becuz...
i can't find in the showthread.php:
Code:
$posts=$DB_site->query("SELECT post.dateline as dateline,post.postid as postid,post.pagetext as pagetext,
                               post.allowsmilie as allowsmilie,post.signature AS showsignature,post.title as title,
                               post.ipaddress as ipaddress,post.iconid as iconid,post.username as fakename,
                               post.userid as userid, 
                               user.userid as userid,user.email as email,user.username as username,
                               user.usertitle as usertitle,user.signature as signature,user.showemail as showemail,
                               user.homepage as homepage,user.icq as icq,user.aim as aim,user.yahoo as yahoo,
                               user.joindate as joindate,user.posts as posts
only this looks like it
Code:
$posts=$DB_site->query("SELECT dateline,postid,pagetext,allowsmilie,signature AS showsignature,title,ipaddress,iconid,username,userid FROM post WHERE threadid=$threadid AND visible=1 ORDER BY dateline $postorder LIMIT $limitlower,$perpage");
please annybody help me.. thnx
Reply With Quote
  #44  
Old 12-24-2000, 11:38 AM
Guest
 
Posts: n/a
Default

i also cant find $userinfo=$post; in showthread.php
Reply With Quote
  #45  
Old 12-24-2000, 01:01 PM
Guest
 
Posts: n/a
Default

Why not upgrade?
Reply With Quote
  #46  
Old 12-24-2000, 01:04 PM
Guest
 
Posts: n/a
Default

because i installed allready a lot of hacks
Reply With Quote
  #47  
Old 12-26-2000, 01:57 AM
Guest
 
Posts: n/a
Default

Hi everyone,,

Pleas help me 24 hours only from installing PM . And now my forums not work .

It is gaive me this messag :


There seems to have been a slight problem with the database. Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.







So PLEAS Any body can help .
Reply With Quote
  #48  
Old 12-26-2000, 02:12 AM
Guest
 
Posts: n/a
Default

Error message is... I dunno, usually... REQUIRED!
Reply With Quote
  #49  
Old 12-26-2000, 02:29 AM
Guest
 
Posts: n/a
Default

Ed Sullivan

Quote:
Error message is... I dunno, usually... REQUIRED!

Ed, Pleas I cant understand , Now 4 hours not work .

what can i do now to solve this ?
Reply With Quote
  #50  
Old 12-26-2000, 02:06 PM
Guest
 
Posts: n/a
Default

You need to tell me the actual error message you're getting. Not just that cover. Paste the email here or view the page source and you'll see it.
Reply With Quote
  #51  
Old 12-26-2000, 02:17 PM
Guest
 
Posts: n/a
Default

Ed , there is no email sent to me .

Because (Technical Staff,) Not linkting to any email .

if you know where i have to but my email .

Thank you Ed ,
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 02:10 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04425 seconds
  • Memory Usage 2,280KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_code
  • (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
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete