Go Back   vb.org Archive > Search Forums
FAQ Community Calendar Today's Posts Search

Showing results 1 to 14 of 14
Search took 0.00 seconds.
Search: Posts Made By: Zubaz
Forum: vB3 Programming Discussions 06-25-2006, 05:31 PM
Replies: 2
Views: 762
Posted By Zubaz
oooo, that might work. I'll try that out.

oooo, that might work. I'll try that out.
Forum: vB3 Programming Discussions 06-23-2006, 08:38 PM
Replies: 2
Views: 762
Posted By Zubaz
Really long crons + file_get_contents

I've got a couple daily cron jobs that crunch logs for about 30 mins each.

Originally I had the following:


//blah blah include db connection stuff

insert_log('starting crons', time());
...
Forum: vB3 Programming Discussions 05-24-2006, 11:44 PM
Replies: 0
Views: 671
Posted By Zubaz
Automatic Forum Creation with special Permissions

I've been poking at this for a while and just can't figure it out.

I want to create a private forum, for certain people, with my own php code.

Right now, I'm making a row in `forum`, updating...
Forum: vB3 Programming Discussions 12-27-2005, 11:52 PM
Replies: 3
Views: 954
Posted By Zubaz
Your code needs to detect when the group changes...

Your code needs to detect when the group changes since you're doing a per team call. You could call each of your groups, then call each team associated with it, but that's more queries.
Forum: vB3 Programming Discussions 12-21-2005, 11:57 PM
Replies: 3
Views: 835
Posted By Zubaz
$query = mysql_query("SELECT * FROM...

$query = mysql_query("SELECT * FROM `[vb_prefix]_thread` WHERE `open`='1' ORDER BY `dateline` DESC LIMIT 0,8");
There's your query, and it won't call closed threads.

And since you asked, yes -...
Forum: vB3 Programming Discussions 12-21-2005, 11:46 PM
Replies: 3
Views: 954
Posted By Zubaz
GROUP BY is kind of a misnomer. It'll group your...

GROUP BY is kind of a misnomer. It'll group your results, but not in a fashion that is useful outside of finding sums or average. What you're looking for is a complex ORDER BY I think.

Try...
Forum: vB3 Programming Discussions 12-21-2005, 11:41 PM
Replies: 2
Views: 949
Posted By Zubaz
you would probably enjoy this function: ...

you would probably enjoy this function:
http://us2.php.net/mktime

You'll have to break your datetime's apart using explode() or something, but you can construct your actual timestamps using...
Forum: vB3 Programming Discussions 12-31-2004, 05:05 PM
Replies: 4
Views: 878
Posted By Zubaz
I don't think you can do that in a query, you'd...

I don't think you can do that in a query, you'd have to pull the info out, parse it in php and then update.
Forum: vB3 Programming Discussions 12-30-2004, 02:56 PM
Replies: 8
Views: 1,498
Posted By Zubaz
the title fo the thread also includes "on non-vb...

the title fo the thread also includes "on non-vb page"...
Forum: vB3 Programming Discussions 12-28-2004, 02:24 PM
Replies: 8
Views: 1,498
Posted By Zubaz
I've done this before,...

I've done this before, $user[password]==md5(md5($unencrypted).$user[salt])) should've worked.

I would start echoing variables and seeing what's not matching up.
Forum: vB3 Programming Discussions 12-28-2004, 12:51 PM
Replies: 6
Views: 1,054
Posted By Zubaz
That depends on what you're trying to do. If you...

That depends on what you're trying to do. If you just want to make a static html file with your current top 30, then you'd put that query (line 1) in phpMyAdmin and copy the results, if you want to...
Forum: vB3 Programming Discussions 12-28-2004, 12:44 PM
Replies: 5
Views: 841
Posted By Zubaz
check out...

check out http://us2.php.net/manual/en/ref.image.php with reference to these functions. You're going to have to read the source image's size with something like getimagesize() and then use the ratio...
Forum: vB3 Programming Discussions 12-28-2004, 12:36 PM
Replies: 6
Views: 1,054
Posted By Zubaz
$query = mysql_query("SELECT * FROM `users` WHERE...

$query = mysql_query("SELECT * FROM `users` WHERE 1 ORDER BY `money` DESC LIMIT 0, 30 ");
while($user = mysql_fetch_array($query)) {
echo "$user[username] has $user[money] money.<br>";
}


or...
Forum: vB3 Programming Discussions 12-28-2004, 12:25 PM
Replies: 2
Views: 962
Posted By Zubaz
I use readfile to stream huge video files to...

I use readfile to stream huge video files to users specifically because it doesn't parse it :D
Showing results 1 to 14 of 14

 
Forum Jump

All times are GMT. The time now is 07:43 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
  • Page Generation 0.01429 seconds
  • Memory Usage 1,956KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)forumjump
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (2)navbar_link
  • (120)option
  • (1)post_thanks_navbar_search
  • (1)search_results
  • (14)search_results_postbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • inlinemod
  • prefix
  • search
Included Files:
  • ./search.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_search.php
  • ./includes/functions_databuild.php
  • ./includes/functions_forumlist.php
  • ./includes/functions_misc.php
  • ./includes/functions_forumdisplay.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • search_before_process
  • search_start
  • search_results_start
  • search_results_query_posts
  • search_results_prebits
  • threadbit_process
  • search_results_postbit
  • forumjump
  • search_complete
  • navbits
  • navbits_complete