Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-28-2002, 10:10 PM
imported_CyberMaxx imported_CyberMaxx is offline
 
Join Date: Dec 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Dumb question?

I tried several mods with success but when I need to add something to phpinclude the mod does not work!

This is the content of my phpinclude:
// This code is PHP4 only:
// ob_start();
// require("yourheader.html");
// $header = ob_get_contents();
// ob_end_clean();


No matter what I add it does not work!

Someone please help me?
I'm using version 2.2.9 (original template)

Maxx
Reply With Quote
  #2  
Old 12-28-2002, 11:15 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's just the default phpinclude. You'll have to be a lot more specific as to what mods you're trying to install and what the problems are.
Reply With Quote
  #3  
Old 12-29-2002, 07:06 AM
imported_CyberMaxx imported_CyberMaxx is offline
 
Join Date: Dec 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK let's try this one:
This looked like an easy one to me (a beginner)
Your PM storage warning!

phpinclude:

if (strpos($_SERVER['PHP_SELF'], 'index.php') != false)
{
$pmwarning = '';
$result = mysql_query("SELECT COUNT(*) FROM privatemessage WHERE userid=$bbuserinfo[userid]");
if ($result)
{
$s = mysql_fetch_row($result);
if (intval($s[0]) / $pmquota > 0.8)
{
$pmwarning = '<br><font color="#FF0000">You are running out of space in your private message storage.</font>';
}
}
}

forumhome_pmloggedin:

$pmwarning

Now it's set at 80% but I changed the settings to 10% to test the script (0.1)...
Without result!
No matter what I do nothing shows up

This is just one example, like I said it's just like my phpinclude does not work

Please help?

Maxx
Reply With Quote
  #4  
Old 12-29-2002, 07:39 AM
imported_CyberMaxx imported_CyberMaxx is offline
 
Join Date: Dec 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just to be sure I installed this one also:
Total Thread Views

phpinclude:

if (strpos($_SERVER['PHP_SELF'], "index.php") != false)
{
$result = $DB_site->query("SELECT SUM(views) AS totalviews FROM thread");
$totalviews = $DB_site->fetch_array($result);
$totalviews = number_format($totalviews['totalviews']);
}

forumhome

Members: $numbermembers, Threads: $totalthreads ($totalviews views), Posts: $totalposts

I attached a screenshot that shows the result

ThanX again, Maxx (I'm sorry for my bad English)
Attached Images
File Type: gif screeshot.gif (762 Bytes, 0 views)
Reply With Quote
  #5  
Old 12-29-2002, 02:49 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you using at least PHP 4.2.0? I think that the $_SERVER superglobal was only introduced then.
Reply With Quote
  #6  
Old 12-29-2002, 03:03 PM
imported_CyberMaxx imported_CyberMaxx is offline
 
Join Date: Dec 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Version 4.0.6
Reply With Quote
  #7  
Old 12-29-2002, 03:05 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You sould upgrade. Yell at your server admin
Reply With Quote
  #8  
Old 12-29-2002, 03:06 PM
imported_CyberMaxx imported_CyberMaxx is offline
 
Join Date: Dec 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ThanX for your help anyway!

Maxx
Reply With Quote
  #9  
Old 12-29-2002, 03:26 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Most definitely yell because PHP 4.3.0 is out and they're way behind and clearly don't care about security and such.
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 07:47 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.04317 seconds
  • Memory Usage 2,251KB
  • Queries Executed 14 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)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
  • (9)postbit
  • (1)postbit_attachment
  • (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_postinfo_query
  • fetch_postinfo
  • 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
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete