Jump to content

Credits/Partners Page Builder


simpilot

Recommended Posts

  • Administrators

Credits 1.0

phpVMS module to create a credits and partners page for your phpVMS based virtual airline.

Released under the following license:

Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License

Developed by:

simpilot - David Clark

www.simpilotgroup.com

www.david-clark.net

Developed on:

phpVMS v2.1.934-158

php 5.3.4

mysql 5.0.7

apache 2.2.17

Install Using Simpilotgroup Plugin Manager

-Download the package

-Upload the package to your site using the plugin manager

-Use the auto-install from the plugin manager

Install Manually:

-Download the package.

-Unzip the package and place the files as structured in your root phpVMS install.

-Use the credits.sql file to create the tables needed in your sql database using phpmyadmin or similar.

-Create a link on your site to access the credits page.

<a href="<?php echo url('/credits'); ?>">Credits</a>

You can add anyone you would like to credit for helping or being part of your site in the admin panel under Addons->Credits and also add partners suchs as VATSIM and IVAO. The listings will be in alphabetical order on your credits page on your site.

Code hosted on github - link in signature.

post-198-0-91814800-1338821043_thumb.png

Link to comment
Share on other sites

great just what I am looking for :)

here another module request:

a module for creating a seperate VA rule page

something like that in output

Policy Name field Description field

PIREP Policy Each pilot is required to fly at least x flight per month

best regards,

Thomas

Link to comment
Share on other sites

  • 2 weeks later...

another idea for an update

what I miss is the possibility to create categories

for example a Sceneries where all credits regarding sceneries can be listed in

otherwise it is great :)

PS:

small tip for other users

if you add this at this scripts at the top of admin/templates/credits/credit_create.tpl and credit_edit.tpl

<script type="text/javascript" src="<?php echo SITE_URL.'/lib/js/jqModal.js'; ?>"></script>
<script type="text/javascript" src="<?php echo SITE_URL.'/lib/js/ckeditor/ckeditor.js'; ?>"></script>
<script type="text/javascript" src="<?php echo SITE_URL?>/admin/lib/phpvmsadmin.js"></script>

and replace the code for the description with that from below for credit_create.tpl

<tr>
			<td>Description</td>
			<td><textarea id="editor" name="description" rows="4" cols="42" class="tinymce"><?php
							if(isset($credit))
							{echo $credit['description'];}
					   ?></textarea></td>
		</tr>

and following for credit_edit.tpl

<tr>
		    <td>Description</td>
		    <td><textarea id="editor" name="description" rows="4" cols="42" class="tinymce" ><?php
						    echo $credit->description;
					   ?></textarea></td>
	    </tr>

this way you can easily integrate tinymce editor which makes it easier to edit texts

but always make a backup of the original file!

best regards,

Thomas

Link to comment
Share on other sites

  • 2 years later...

I have uploaded all the files but still keep getting

Notice: The template file "/home/deltaair/public_html//core/templates/credits/index.tpl" doesn't exist in /home/deltaair/public_html/core/classes/TemplateSet.class.php on line 248

I have looked and and re-uploaded but still same thing over and over even admin center same thing saying can't find tpl files.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...