Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Using S:P with Ajax theme
Avatar
zioncg
Member
Free Members
sp_UserOfflineSmall Offline
Oct 15, 2013 - 7:12 am

Hi,

Please see this link: http://www.urlgone.com/fa8996/

Try clicking 'Forum' in the navigation, and you'll see forum loads without styles, etc....

But, if you then refresh/reload on that forum URL, the forum comes up fine.

Theme author says this... "This is happening, because that plugin only loads the styles and scripts when that page is fully loaded. Because the theme is loading pages using AJAX callwhen you click on the menu, the plugin does not detect that it's needed to load those elements. To avoid this you need to turn off the Ajax Calls feature under Samba Options>General tab>Use Ajax calls to load content and set it to no."

However, we'd like to keep the Ajax.

Is there a setting in S:P that will allow it to work correctly?

Thanks again guys for the great work,

M

 

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 15, 2013 - 10:44 am

to be honest, not sure what the developer is saying...  styles are loaded in the head tags... scripts can be either in header or footer.. by default its header.. looks like you did change it to footer...  you can try switching it back to header on forum - integration - page and permalink...

also, you are using a php theme for sp... that is, the css file is a php file and requires php parsing... that may not be occurring when loading via ajax...  try switching to the css only sp theme and seeing if that helps...

on forum - integration - page and permalink you could also try enabling the strict wp api option and seeing if that helps...

 

 

Avatar
zioncg
Member
Free Members
sp_UserOfflineSmall Offline
Oct 15, 2013 - 11:35 am

Tried all the suggestions to no avail.

1. header/footer switch

2. css only theme

3. wp api force

Will have my guys check it and maybe find a solution.

Any other ideas are appreciated.

Thanks

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 15, 2013 - 3:18 pm

will continue thinking on it...

more than likely going to be problematic...  simple press uses standard wp hooks to load stuff and accomplish tasks...  if just the page content section of a wp page is loaded, then those standard wp hooks (ie wp_head and wp_foot) wont be called and the forum wont know to do its thing...

I think thats what the developer was trying to allude to...  the standard wp hooks were already fired once for whatever page was loaded... if you load another page via ajax and dont fire the standard hooks, then the plugin is never even notified that a page was loaded...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625