• Forums

    This way to the forums
Current User: Guest Login Register
Please consider registering

Search 
Search Forums:


 




Hot to group GeoContacts with templates?

UserPost

6:11 pm
June 11, 2008


jackstin

New Member

Costa Mesa, CA

posts 2

1

Hello Gluten Fourm!

Great plugin and this is what we have been looking for.

We just installed this plugin and we are trying to separate the contacts into different templates.

We really want to separate by  {$state} and have a template page named newjersey.htm and only pull the contacts from New jersey. Then repeat the process for any Geo that we see fit. Can this be done?

Can you put <$php> inside the .htm document? can you have a php template file?


If this can be done we would tremendously appreciate the know-how, please share; if not we would love to dontate to get this task completed.

6:22 pm
June 11, 2008


jackstin

New Member

Costa Mesa, CA

posts 2

2

jackstin said:

There are a few different ways to include php into an html document.

1. If you have available to you cpanel or the windows equivalent then you can simply turn on SSI, add .htm and .html to your list and begin to include SSI's within your html pages.
<!–#include virtual=”myfile.php” –>

2. You can reference a small javascript
<script language=”javaScript” src=”myfile.php“></script>
Do note that the “type” has been left out on purpose.
Using the method you will also have to modify your echo statments as well. Sometimes they have a funny effect if you don't break them up. If you don't have any problems then don't fix it… if you start to have problems then look at your echo statements

3. This is just the opposite….
If you want to send information to a php file such as the title of the webpage
You can utilize the following method

<script language=”JavaScript”>
var image = “../pixel.gif”;
var title = escape(document.title);
var link = “<img src='../myphpfile.php?title=” + title + “&img=” + image + “' align='middle' style='display:none' alt='&copy;0'>”;
document.write(link); //This will write out to the page
</script>

Now on your php page you include the following:
$title = $_GET['title']

That will transfer the information from JavaScripting via the URL to the php page and now you can do what you want with it via php.




Reply to Topic: Hot to group GeoContacts with templates?

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 3 + 8        (Required)

Topic Reply:


 

About the Gluten Envy forum

Currently Online:

3 Guests

Maximum Online: 15

Forums:

Groups: 4

Forums: 6

Topics: 8

Posts: 12

Members:

There are 11 members

There are 2 guests


Ben has made 4 posts

Top Posters:

jamiers - 2

jackstin - 2

catusf - 2

DeepLook - 1

Ben - 0

Administrator: Ben | Moderators: Ben, Yvette, Ben


© Simple:Press Forum - Version 3.1.3 (Build 356)  

GeoContacts provided by GlutenEnvy.com