Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
coding-topic
Where can I locate the code that embeds the SP site in the Wordpress Page
Avatar
Kenneth Wright
Member
Free Members
sp_UserOfflineSmall Offline
Nov 22, 2013 - 3:39 am

Team,

Please can you tell me where I can find this code. I suspect that the site is embedded as an iFrame, but the "embed" code does not appear on the Wordpress Page where the site is fired from.

Thanks

kenjw

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 22, 2013 - 3:56 am

There is no code. Simple:Press utilises a single WordPress page and displays itself dynamically upon that using the WP rewrite rules protocols. Can you tell me the problem or what ot is you need to do?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Kenneth Wright
Member
Free Members
sp_UserOfflineSmall Offline
Nov 22, 2013 - 5:28 am

Thanks for the fast response.

When the WP Page where SP is installed is called there is a very very short delay and a "flicker" which looked to me like an iFrame being refreshed. 

As you know I am looking for a PHP programmer who knows how SP works so I can develop a way to input JSON data into the database.

A question one of the candidates had was "is there a hook in the WP page where SP is being called. This led me to take a look at the WP Page and I did not see a [shortcode] of any kind either on either the Visual or Text tabs on the Page.

As you know I cannot directly call the code snippet you sent and we were looking for a "point of entry". Sorry if this seems naive of me to you, but I am not a highly skilled PHP guy. Java has been my bag!

Best Regards

kenjw

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 22, 2013 - 6:48 am

I understand. No - no short codes, no iframes. Just the WordPress rewrite rule magic and anyone tackling your coding should not need to be bothered with this.

The first thing to consider is where you are going to locate the code file(s) you guys write. The ideal would be as an SP plugin - and we could provide a base framework for this to happen but alas no documentation at this stage. But the location and method of calling your code is important as it has, of course, to include certain SP php files. The way to do this within the front-end scope is to call the function:

sp_forum_api_support()

which will ensure what you need gets loaded. If it doesn't it will at least load enough to enable easy inclusion of any other files. If you will instead be calling your code from the admin side of WP then you will need to call:

spa_admin_ahah_support()

instead.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Kenneth Wright
Member
Free Members
sp_UserOfflineSmall Offline
Nov 23, 2013 - 6:05 am

The "View Raw Code" button did not show any code. Where can I locate these 2 files please.

Also can I take you up on the offer in the phrase "The first thing to consider is where you are going to locate the code file(s) you guys write. The ideal would be as an SP plugin – and we could provide a base framework for this to happen". I appreciate its undocumented, but having this "base framework" may help me to find the right PHP developer.

Thanks

kenjw

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 23, 2013 - 6:30 am

The 'raw code' just shows the code in an easy to copy fashion. That was it. These are just two functions that can be called. As it says, one of these is always available from either the front or back end. Juyst call the function from whatever code you are running. If bundled in an SP plugin then it depends a little on where and how you will call your own code.

I will talk to Steve (Mr Papa) about the framework as he 'owns' that and keeps it up to date.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 23, 2013 - 10:22 am

I have no issue sharing my framework... but its fairly barebones - just contains the base files and functions that go into every plugin I have written...  the names will all have to be changed for any new plugin and then the specific plugin stuff added... but no issue sharing...

Avatar
Kenneth Wright
Member
Free Members
sp_UserOfflineSmall Offline
Nov 24, 2013 - 4:36 am

Thanks very much for that. I understand it is down to me to get this task done.

How do you go about sharing this? I believe you have my email address … 

Best Regards

kenjw

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 24, 2013 - 4:50 am

We will get it to you...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 24, 2013 - 1:25 pm

its been emailed...

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: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626