The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#5
|
|||
|
|||
![]()
I have taken a hard look at the HTML and the PHP how do i take the HTML you gave me to study let say the html code you gave me I attached to the bottom of my php file which is the test.php you sent me. unstead of your HTML code or with your html script i want to bring up a vBulletin page and have your HTML script come up in the body of the vbulletin page - what does vbulletin expect to see in the html so it can commucate with the php I know how to use post data to send data to the PHP script that is not what i am asking how do i get or find the HTML or is it a couple of function calls in the PHP or is it stuff in the HTML that needs to happen.
I will start by asking how and what do i have to do to bring up a blank vbulletin with the header and footer and of course the nav bar and a blank body so i can add my HTML in the the body of the vbulletin like the HTML you gave me to study. Use that is a example so we are talking on the same page but i reality i need to design my own liittle editor - I need to right now under stand the basic concept in how to get the basic vbulletin formated look and feel page displayed so i can use the vbulletin page to test me PHP scripts and send me data to the server. I hope I have been clear on what i need and thanks for the help you have given me in the past couple days. THANKS i am problely doing this the hard or the wrong way it is called brute force and these are the steps I have taken. Step one I took you the line eval('print_output("' . fetch_template('testpage') . '");'); in the little php file you sent me and commented out the line - not really undrestanding on what it does and how vbulletin uses the eval for please explain how that is used. The reason was the line came up with a blank screen and my debuging text which is a bunch of echo statements would not display with the eval('print_output("' . fetch_template('testpage') . '");'); but the other eval before that one eval('$navbar = "' . fetch_template('navbar') . '";'); I could leave in because it did not interfer with my echo debuging statements. I did this so i could have a clear path of echo telling me the path through the script. Step 2 Add the HTML to the bottom of the test.php file and I got the HTML from the following brng up internet explorer and in the action bar typed this line newreply.php?do=newreply&noquote=1&p=2 this brought up the editor page in vbulletin and I grabed the HTML by copying it in to notepad after viewing the source using the right click on the mouse. Step 3 After adding the HTML to the bottom of the PHP after the closing PHP tag of course and run the test.php on the server. By FTP the file to the server and bring it up in the browser I got the Vbulletin look and feel I wanted. But I know that the PHP in vbulletin do not have HTML attached to the bottom of their PHP files so i can only assume it is functions that i can not find and I am intrested in how and where the HTML is located and how to correctly call the functions in my PHP scripts. I have located some HTML that is what I want to use in the source i grabed and copyed to the bottom of my PHP file and this is the following: <input type="hidden" name="wysiwyg" id="vB_Editor_001_mode" value="0" /> <script type="text/javascript"> <!-- vB_Editor['vB_Editor_001'] = new vB_Text_Editor('vB_Editor_001', 0, '2', '1'); //--> </script> <!-- / message area --> <script type="text/javascript"> <!-- function swap_posticon(imgid) { var out = fetch_object("display_posticon"); var img = fetch_object(imgid); if (img) { out.src = img.src; out.alt = img.alt; } else { out.src = "clear.gif"; out.alt = ""; } } It is the message area that I need to understand How does vbulletin interface with the information that one types in the the text box and how does Vbulletin get the data to the database - ie there are two fields in the database table one is clean and one not clean - what functions do vbulletin use to do this process and the script above were can I find it in the vbulletin source code ie what functions does this code sit in. Also vbulletin uses some ajax code to instantly update data that the user types in and updates and live to the database. Can you help me explain the things above of course my echo statements are not realy need to be done in your little program you sent me but i have been useing echo and print_r and var_dump to debug my PHP maybe you might have some other sujestion since i am new to PHP and some of the tools but not new to programing its self and so far find the tools alittle on the premitive side for debugging and allways looking for new ways to debug my scripts with tools provided in the lanagiage. THANKS I have review many articals and the following 4 articals are the most helpful i would say. THANKS [How-To] vBulletin API Basics: Creating Custom Pages & Misc. [How to] Create pages for the AdminCP Cache System Explanation (datastore) [How-To] vBulletin API Basics: Variables, Functions, Objects But i have a couple more direct questions to ask let me explain by posting a reply having to get around a problem i am having first. THANKS How do I get around this basic problem - I have found that when i do a echo and have in my PHP script a eval(); like below I have to comment the eval out if i what to print my debug messages - why is this the case and how do i get around the problem any ideas. echo 'This is a test message'; echo "<br>"; // eval('print_output("' . fetch_template('testpage') . '");'); I also use not only echo messages but var_dump and print_r as well as echo to debug my script - as you know i am kind of new to this PHP stuff not to mention the vbulletin stuff and the why things are done in vbulletin I do not know if this is just in vbulletin or a standard PHP and useing stardard output problems - if you could explain why and how I should get around the problem - if i was using another language i might use some # defines to get around the problem but i do not see that supported in PHP as of yet. Oh by the way the following was a great artical that you if you are LiveWire the Master Coder did and posted in the totorial section of this forum and if you are not LiveWire it is a great artical you should check it out. THANKS LiveWire for the artical and the time you have given me in my postings and questions. THANKS from Whitejeep. ![]() vB3.5 Modification Tutorials Cache System Explanation (datastore) by LiveWire Master Coder |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|