Oprano Front Page


Go Back   Oprano Adult Industry Forums > The Business Of Porn - Closed For Posting > Legacy Archived Main Board

Notices

Legacy Archived Main Board Business chat and general industry chat. All participation is welcome. Dont post your fucking spam here.





Check Out YnotMail

The Original Oprano Flat Board (Thanks To Sarettah!)---
Oprano Swag Shop
"History Of Porn Timeline
Reply
 
Thread Tools Display Modes
Old 08-09-2005   #1
Jace
....
$100 for every ImLive sign-up
 
Join Date: Mar 2004
Posts: 4,392
Blog Entries: 1
Default Some php help if you wouldn't mind...pretty easy

I am using cnstats for tracking, and need to put the code into my b2evolution blog, and for some reason when I put it in the _main.php like this:

include "/usr/home/tabitha/public_html/jonstern/cnstats/cnt.php";
?>

it brings up some mysql errors, and won't let certain things access the database correctly

here is the page I am trying to put it in...any ideas on how to do this without getting those errors? i know I probably have to tell it to grab that file another way, but I am not sure how

Code:






<?php 
$Blog->disp('name', 'htmlhead');
arcdir_title( ' - ', 'htmlhead' );
last_comments_title( ' - ', 'htmlhead' );
profile_title( ' - ', 'htmlhead' );
single_cat_title( ' - ', 'htmlhead' );
single_month_title( ' - ', 'htmlhead' );
single_post_title( ' - ', 'htmlhead' );
stats_title( ' - ', 'htmlhead' );
?>






'."\n";
	break;
	case 'arcdir':
	echo ''."\n";
	break;
	}
?>
 









!!!!!!!!!!!I AM TRYING TO PUT THE CNSTATS CODE RIGHT HERE!!!!!!!!

display_if_empty(); // Display message if no post if( isset($MainList) ) while( $Item = $MainList->get_item() ) { locale_temp_switch( $Item->locale ); // Temporarily switch to post locale $MainList->date_if_changed(); // display post date if it changed $Item->anchor(); // Anchor for permalinks to refer to ?>

title(); ?>

<?php echo T_('Permalink') ?> issue_time(); echo ', ', T_('Categories'), ': '; $Item->categories(); echo ', '; the_wordcount(); echo ' ', T_('words'); ?>
content(); link_pages("Pages: ","","number"); ?>
<?php echo T_('Permalink') ?> feedback_link( 'comments' ) // Link to comments ?> feedback_link( 'trackbacks', ' • ' ) // Link to trackbacks ?> feedback_link( 'pingbacks', ' • ' ) // Link to trackbacks ?> trackback_rdf() // trackback autodiscovery information ?>
Jace is offline   Reply With Quote
Old 08-09-2005   #2
Jace
....
$100 for every ImLive sign-up
 
Join Date: Mar 2004
Posts: 4,392
Blog Entries: 1
Default Re: Some php help if you wouldn't mind...pretty easy

oh, and as you can see, i have it trying to call the stats on the top of the page, in the first php part

include('./usr/home/tabitha/public_html/jonstern/cnstats/cnt.php');

but that is not working
Jace is offline   Reply With Quote
Old 08-09-2005   #3
Trev
Cunty
Want to see your own Advertising Here!
 
Trev's Avatar
 
Join Date: Jan 2003
Posts: 10,150
Default Re: Some php help if you wouldn't mind...pretty easy

Quote:
Originally Posted by JaceXXX
I am using cnstats for tracking, and need to put the code into my b2evolution blog, and for some reason when I put it in the _main.php like this:

include "/usr/home/tabitha/public_html/jonstern/cnstats/cnt.php";
?>

it brings up some mysql errors, and won't let certain things access the database correctly

here is the page I am trying to put it in...any ideas on how to do this without getting those errors? i know I probably have to tell it to grab that file another way, but I am not sure how

Code:






<?php 
$Blog->disp('name', 'htmlhead');
arcdir_title( ' - ', 'htmlhead' );
last_comments_title( ' - ', 'htmlhead' );
profile_title( ' - ', 'htmlhead' );
single_cat_title( ' - ', 'htmlhead' );
single_month_title( ' - ', 'htmlhead' );
single_post_title( ' - ', 'htmlhead' );
stats_title( ' - ', 'htmlhead' );
?>






'."\n";
	break;
	case 'arcdir':
	echo ''."\n";
	break;
	}
?>
 









!!!!!!!!!!!I AM TRYING TO PUT THE CNSTATS CODE RIGHT HERE!!!!!!!!

display_if_empty(); // Display message if no post if( isset($MainList) ) while( $Item = $MainList->get_item() ) { locale_temp_switch( $Item->locale ); // Temporarily switch to post locale $MainList->date_if_changed(); // display post date if it changed $Item->anchor(); // Anchor for permalinks to refer to ?>

title(); ?>

<?php echo T_('Permalink') ?> issue_time(); echo ', ', T_('Categories'), ': '; $Item->categories(); echo ', '; the_wordcount(); echo ' ', T_('words'); ?>
content(); link_pages("Pages: ","","number"); ?>
<?php echo T_('Permalink') ?> feedback_link( 'comments' ) // Link to comments ?> feedback_link( 'trackbacks', ' • ' ) // Link to trackbacks ?> feedback_link( 'pingbacks', ' • ' ) // Link to trackbacks ?> trackback_rdf() // trackback autodiscovery information ?>
This is more Sarettah's area but I need to point out that you've left a
* @package evoskins
* @subpackage helsinki
*



It might not be the answer but it's a start.
__________________
Sucks to be you.
Trev is offline   Reply With Quote
Old 08-09-2005   #4
Jace
....
$100 for every ImLive sign-up
 
Join Date: Mar 2004
Posts: 4,392
Blog Entries: 1
Default Re: Some php help if you wouldn't mind...pretty easy

Quote:
Originally Posted by Trev
This is more Sarettah's area but I need to point out that you've left a
* @package evoskins
* @subpackage helsinki
*



It might not be the answer but it's a start.
i didn't write that, it is what b2evolution has in there

and isn't this the
* @package evoskins
* @subpackage helsinki
*
if( !defined('DB_USER') ) die( 'Please, do not access this page directly.' );
include('./usr/home/tabitha/public_html/jonstern/cnstats/cnt.php');
?>
Jace is offline   Reply With Quote
Old 08-09-2005   #5
Trev
Cunty
Want to see your own Advertising Here!
 
Trev's Avatar
 
Join Date: Jan 2003
Posts: 10,150
Default Re: Some php help if you wouldn't mind...pretty easy

Quote:
Originally Posted by JaceXXX
i didn't write that, it is what b2evolution has in there

and isn't this the
* @package evoskins
* @subpackage helsinki
*
if( !defined('DB_USER') ) die( 'Please, do not access this page directly.' );
include('./usr/home/tabitha/public_html/jonstern/cnstats/cnt.php');
?>
there's no opening

We need sarettah.
__________________
Sucks to be you.
Trev is offline   Reply With Quote
Old 08-09-2005   #6
sarettah
Stay Out Of The Box
Want to see your own Advertising Here!
 
sarettah's Avatar
 
Join Date: Oct 2002
Location: Lost in the ozone
Posts: 10,318
Default Re: Some php help if you wouldn't mind...pretty easy

I looked. I don't see anything wrong there (or at least anything that souldn't work from a quick glance)

But, you said that "it brings up some mysql errors, and won't let certain things access the database correctly" when you place it where you want it.

That sounds to me like something in the cnt.php is conflicting somewehere.

Is the cnt.php using calls to the same MYSql connection as the main script, or is it creating a new connection to pull from ?

Does the cnt.php script possibly close the existing MYSql connection ?

Have you tried placing the cnt.php into the same folder as the main script and calling it from there (without the full pathing) ?

Another way to debug stuff like this is to make a copy of the main, cut and paste all of the cnt.php into the copy exactly where you want it and see if it works, if nothing else it might pop a more accurate error for you.

If you want to zap a copy of cnt.php to me I will take a look and see if I can see anything glaring out at me
__________________


Free Adult Webcams
sarettah is offline   Reply With Quote
Old 08-09-2005   #7
Trev
Cunty
Want to see your own Advertising Here!
 
Trev's Avatar
 
Join Date: Jan 2003
Posts: 10,150
Default Re: Some php help if you wouldn't mind...pretty easy

Quote:
Originally Posted by Trev
there's no opening

We need sarettah.
__________________
Sucks to be you.
Trev is offline   Reply With Quote
Old 08-09-2005   #8
Nickatilynx
Banned
Want to see your own Advertising Here!
 
Nickatilynx's Avatar
 
Join Date: Oct 2002
Location: Vancouver Canada
Posts: 15,115
Default Re: Some php help if you wouldn't mind...pretty easy

Quote:
Originally Posted by sarettah
I looked. I don't see anything wrong there (or at least anything that souldn't work from a quick glance)

But, you said that "it brings up some mysql errors, and won't let certain things access the database correctly" when you place it where you want it.

That sounds to me like something in the cnt.php is conflicting somewehere.

Is the cnt.php using calls to the same MYSql connection as the main script, or is it creating a new connection to pull from ?

Does the cnt.php script possibly close the existing MYSql connection ?

Have you tried placing the cnt.php into the same folder as the main script and calling it from there (without the full pathing) ?

Another way to debug stuff like this is to make a copy of the main, cut and paste all of the cnt.php into the copy exactly where you want it and see if it works, if nothing else it might pop a more accurate error for you.

If you want to zap a copy of cnt.php to me I will take a look and see if I can see anything glaring out at me
See they let you out of the "Home for the Elderly or Generally Bewildered" early today...

;-)))
Nickatilynx is offline   Reply With Quote
Old 08-09-2005   #9
Dravyk
Easy Like Sunday Morning
Want to see your own Advertising Here!
 
Dravyk's Avatar
 
Join Date: Oct 2002
Location: Behind a couch, somewhere in Philly
Posts: 7,628
Default Re: Some php help if you wouldn't mind...pretty easy

It might also help (those who know, not me) if you report the actual errors that are getting.
Dravyk is offline   Reply With Quote
Old 08-09-2005   #10
Jace
....
$100 for every ImLive sign-up
 
Join Date: Mar 2004
Posts: 4,392
Blog Entries: 1
Default Re: Some php help if you wouldn't mind...pretty easy

Quote:
Originally Posted by sarettah
If you want to zap a copy of cnt.php to me I will take a look and see if I can see anything glaring out at me
done...thank you so much

i will hook you up with some nice text links and some traffic for your time if you want
Jace is offline   Reply With Quote
Old 08-09-2005   #11
Jace
....
$100 for every ImLive sign-up
 
Join Date: Mar 2004
Posts: 4,392
Blog Entries: 1
Default Re: Some php help if you wouldn't mind...pretty easy

Quote:
Originally Posted by Dravyk
It might also help (those who know, not me) if you report the actual errors that are getting.
i have to add that code back in and pull shit up, give me a minute
Jace is offline   Reply With Quote
Old 08-09-2005   #12
Jace
....
$100 for every ImLive sign-up
 
Join Date: Mar 2004
Posts: 4,392
Blog Entries: 1
Default Re: Some php help if you wouldn't mind...pretty easy

wtf??? now it is working

a week of trying to figure this out, i finally deducted what was causing the problem...i remove it, and shit work...now I put it back in there and all the sudden it works?

fucking wierd
Jace is offline   Reply With Quote
Old 08-09-2005   #13
Dravyk
Easy Like Sunday Morning
Want to see your own Advertising Here!
 
Dravyk's Avatar
 
Join Date: Oct 2002
Location: Behind a couch, somewhere in Philly
Posts: 7,628
Default Re: Some php help if you wouldn't mind...pretty easy

Quote:
Originally Posted by JaceXXX
wtf??? now it is working

a week of trying to figure this out, i finally deducted what was causing the problem...i remove it, and shit work...now I put it back in there and all the sudden it works?

fucking wierd
I'll send you my bill!
Dravyk is offline   Reply With Quote
Old 08-09-2005   #14
Jace
....
$100 for every ImLive sign-up
 
Join Date: Mar 2004
Posts: 4,392
Blog Entries: 1
Default Re: Some php help if you wouldn't mind...pretty easy

i am comletely lost as to what happened...and my inquisiting mind needs to know why it is working, but I guess I will leave well enough alone
Jace is offline   Reply With Quote
Old 08-09-2005   #15
sarettah
Stay Out Of The Box
Want to see your own Advertising Here!
 
sarettah's Avatar
 
Join Date: Oct 2002
Location: Lost in the ozone
Posts: 10,318
Default Re: Some php help if you wouldn't mind...pretty easy

Quote:
Originally Posted by Dravyk
I'll send you my bill!
Fuck you Harry.

I'm the one who fixed it.

I took a look and voila, it all works.

So, I will send my bill.... dammit


(lololol...the last email I sent before I came back here was "Do you have this set up somewhere so I can see the errors you're getting"...lolololol....
__________________


Free Adult Webcams
sarettah is offline   Reply With Quote
Reply

Bookmarks


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 On
Forum Jump


All times are GMT -4. The time now is 11:18 AM..


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright Evil Empire Inc. 2006-2022