Support Forum
Hello,
I'm looking for someone who can....
- get one of the "formatting" plugins to work on my simple-press forum
- fix the stats (forum/member stats dont seem to be changing)
- make my forum magic! (open to any suggestions you have!)
The site is Buddypress/Wordpress & I would need to get the work done on a test-site & if successful, make the changes.
Relevant posts:
https://simple-press.com/suppo.....ld/page-4/
https://simple-press.com/suppo.....ce-editor/
https://simple-press.com/suppo.....s-problem/
Would like to get issue 1 sorted asap; drop me a message!
Thanks 🙂
What do you mean by 'formatting' plugins? Do you mean editors?
Why don't you zip up your WP theme and email it to me and I can try and find the problem area. support at simple-press dot com.
But I think we need to talk to you about the stats. Can you open a brand new topic on that as a separate issue?
YELLOW
SWORDFISH
|
Well the first piece of bad news is that I can not try this theme out on my development system because it makes calls to other plugins that I do not have and they make no checks for the existence of those plugins which would be the right thing to do.
The next bad news is that there are badly written calls to javascript routines all over the place and very few of them where they actually should be. Having seen ClassiPress themes before I can only assume this is an old one or a very heavily customised one.
So - any edits I suggest here may still not be totally correct as it is really hard to analyse. But let's at least try.
There are 4 separate header php files. I do not know which one is actually used or if all of them are but as they all essentially have the same calls in them. There is a block of directly loaded script statements that includes these 4:
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/jquery-ui-1.8.16.custom.min.js"></script> <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/jquery.ui.core.js"></script> <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/jquery.ui.datepicker.js"></script> <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/jquery.ui.widget.js"></script>
These appear to be the ones that are causing the current problems. Please note that word 'appear'! I can not 100% confirm this. Now my suggestion for correcting this is not ideal but it should be safe and I see it is a method that the header php file uses already so I assume it should work. These 4 lines need replacing with:
<?php wp_enqueue_script('jquery-ui-core'); wp_enqueue_script('jquery-ui-widget'); wp_enqueue_script('jquery-ui-datepicker'); ?>
However, the custom.min,.js file that is currently being loaded does contain some other libraries so we may need to add to this but we wont know what with until these lines are replaced. As I say - this is not the ideal way to do it but it is the best I can do without pulling the theme apart and re-writing most of it!
YELLOW
SWORDFISH
|
If I am putting the code you have suggested, that is
<?php | |
2 | wp_enqueue_script('jquery-ui-core'); |
3 | wp_enqueue_script('jquery-ui-widget'); |
4 | wp_enqueue_script('jquery-ui-datepicker'); |
5 | ?> |
then it is not adding the js files and my functionality id getting break.
Was it not loading the 'datepicker' js file? Or do you mean it was missing something else? If the latter I did say above that there may be something else missing but we wouldn't know what until the current scripts were cleaned up properly.
So the key to this is to determine whether the datepicker script is being loaded. If so then the next step if to find out what else is missing so we can add it back in.
If the datepicker script is NOT being loaded then, as I said, I was not totally comfortable with the method but accepted it because the theme was already doing things that way.
The best thing to do woud be for you to tell me when you make those changes - or better still pre-arrange a time - so that I can dive straight in and take a look at the outcome.
YELLOW
SWORDFISH
|