-
PHP-form doesn't work anymore?
I think your right it is overkill for a contact form, but because he posted the whole code, i think that in the long term of his site and making improvement it just easier to learn wordpress. I mean unless his in the process of learning , html, css and php. My guess is that wasn't yet if he is then maybe he doesnt need too with something with WP
-
Is it inlcuded
I not using classes, i told you i wasn't and I don't remember saying it wasn't better. This is just a solution until we can redesign the site. But we had to launch, so that's, that. The solution that we are using, seems to working just fine for now. But please remember I was asking a question that was relating to the server workings, not design conventions...or your assumptions if i am or am not using OOP
-
PHP-form doesn't work anymore?
No ones is going to help with this code, because it seems like you dont understand anything about it you cant cut, paste the entire view source of the page.... and expect people to figure it out Dude i recommend wordpress... you install and you get good looking site, works fine. Plus you get add ons , like maps, blogs, contact pages all in a click of a button it takes half a day to learn how to use if you focus https://www.youtube.com/watch?v=0lS6mwsIlVM&index=1&list=PL2FD7E334ADDBD96E
-
Is it inlcuded
A bit harsh? lol I am aware of these things, but my answer to that. Is that the project is way too dependent on word-press and so the design was flawed from the first line (since there wasnt much planning), its too late to do anything now, so we are just trying to manage it until we can migrate to OOD.. But the method of separating the legacy coding style in includes files, seems to be working just fine for the project...if anything its been quite efficient and manageable and we are launching tomorrow. I get that "everyone" is doing autoloading, yet thinking outside the box is not always a bad thing.
-
Is it inlcuded
Dude thanks that good stuff
-
Is it inlcuded
I was a new developer on a project, and convention were not followed after 3 months i got them round to my way of thinking which is OOD. I get that classes are the way forward but as you rightly observed its two 5000 line files, The code is so hard to follow and any changes seems to error the whole site... Rebuilding is not option, as my boss doesn't want this... so i planned out stages to the process. First the includes way im asking about now, then slowing moving towards OOD, OOP and MVC, with time.. So ..to make this 5000 file more manageable, then to comment and understand each line, install conventions, design the new program and implement OOD, But think this needs to done, while the site is live and features are being added.. this include way is my only option as i can see
-
Is it inlcuded
And the reason why? and whats the alternative you recommend?
-
Is it inlcuded
<?php function sergio (){ return 'something'; } function sergio2 (){ echo 'Something'; } sergio2(); sergio(); depends if you use return or echo In the above example you will not get an echo from sergio(); I done research and try to conduct a tests. And yes it would appear that it doesnt.. but i wanted to make triple sure, before i undertook a project with two 5000 line function files. Maybe there is a better way of then the includes within a function
-
Is it inlcuded
Have a simple question If a file is included within a function but the function is not called will the file be included in this example below will test.php be complied by the server since it is not called.. function sergio (){ include ('index.php'); } function sergio2 (){ include ('test.php'); } echo sergio();
- Javascript Url Self
-
Javascript Url Self
Heres the code first var options = { pageUrl: function(type, page, current){ return "portuguesegoods.com/theaquaponicist/gallery/index.php?type=blog&page="+page; } } What i need is for the is to get the url dynamically on each page where the code would be place But i only need portuguesegoods.com/theaquaponicist/gallery/index.php?type=blog; and not portuguesegoods.com/theaquaponicist/gallery/index.php?type=blog&page="+page; notes** The landing page or the page one will not have $_get variable so there will be no "+page on it but other pages will Note also the front link changes so it can be portuguesegoods.com/theaquaponicist/NEWS(***)/index.php?type=news&page="+page; or a who different domain how is this done? Thanks for your time
-
How to display record from database in modal bootstrap
I was working on this like three days ago!! lol Heres my code This works on bootstrap v2.3 make sure to include add the correct bootstrap files ///////////////////////////// The code /////////////////////////////// ** where is says event add the link to the file where your php/json/etc.. is i this example its event.php <script type="text/javascript"> $(function(){ $(document).on('click', '.edit-record', function(e){ e.preventDefault(); $(".modal-div").html(''); $(".modal-div").addClass('loader'); $("#dialog-example").modal('show'); $.post('event.php', {id: $(this).attr('data-id') }, function(html){ $(".modal-div").removeClass('loader'); $(".modal-div").html(html); } ); }); }); </script> //////the link that sets off the event $id = add your variable here <a href="#" class="edit-record" data-id="'.$id.'">Placeholder text</a>.' ///event.php **this where you add your dynamic logic, from the post variable posted above <?php echo ' <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title">Modal title</h4> </div> <div class="modal-body"><div class="te">'.$_POST['id'].'Excitavit hic ardor milites per municipia plurima, quae isdem conterminant, dispositos et castella, sed quisque serpentes latius pro viribus repellere moliens, nunc globis confertos, aliquotiens et dispersos multitudine superabatur ingenti, quae nata et educata inter editos recurvosque ambitus montium eos ut loca plana persultat et mollia, missilibus obvios eminus lacessens et ululatu truci perterrens.</div></div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> <button type="button" class="btn btn-primary">Book event</button> </div> </div>'; ?>
-
-
-
google maps advice
The project Im going to be starting a google maps project. It basically going be a list of a specific businesses, whose location is then placed into Google maps and who business is listed on the side of the map itself for further reference and navigation (much like the current/recently previous version of google maps ) The question I have worked with the Google API before, but i would still say im an novice, and would appreciate any tips and advice from anyone at any level of experience who has worked with Google maps before. answer to question like j.son vs mysql is kinda what im asking for, but i wanted to it be vague and open ended in the hopes to learn something new and unexpected that could help.. thank you
-
Inserting Google Analytics via PHP.
maybe php file isnt in the right directory i.e it could be include "../bah.php" or from what you said from the quote, you might of added an extra " or ' where there shouldn't be one before the php include but without any of the code, how can we debug?
-
-
changing page url without refreshing page
Ok thanks alot for pointing me in the right direction!! But you guessed it! how would i take the url in real time back from the url?