Jump to content

Recommended Posts

Posted

Hello every one! I m proud to say that the first version of Staff members list is here ! This version is not editable table from the admin center but is editable direct to the . tpl file.

1)Download the files (staff.zip)

2)edit the staff.tpl file and insert your own data (staff members, jobs, mails, images)

3)Upload staff folder to your modules folder

4)Upload staff.tpl to your templates folder

5)Make a link to your website: yourwebsite.com/index.php/staff

Remember is not editable from the admin center! only manual direct to .tpl

Regards Dimitris446

EDIT: File removed.

  • Like 4
  • Moderators
Posted

Looks very nice!

You need database to manage staff instead editing the tpl files. I hope you come out with this! :D

Posted

Looks very nice!

You need database to manage staff instead editing the tpl files. I hope you come out with this! :D

I wonder if that could be done, based on pilot awards, limiting the selection to those considered "staff".

Posted

One thing to remember when it comes to putting emails on the net as a link, spam bots will harvest every single email on your site and that email will become essentially a junk box. I have had that problem many times before. If you use a robots text doc, that problem can be resolved.....normally.

I'm not saying, I'm just saying. ;) That is why you see so many people put their email on the net with [] around the @ symbol example me[@]thunderva.com that will make the link dead and un trackable to spam bots.

Another option is spam poison I do not work for nor am I affiliated with this place in any way shape or form. I just use it on every site I have or have had.

  • 1 month later...
  • 4 weeks later...
Posted

Heya! I've installed your staff list, however i'm new to phpVMS and i'm not exactly sure how to make a link to it? Can you please help me out! Thanks a billion :D

Posted

And where do I put that please? haha

Well mine is in my footer. You can put it in your main site navigation or side navigation too.

What template are you using for phpvms? I guess it is all personal preference really where you put it. Feel free to click my sig to see mine in action in my footer.

If you let me know where you would like it and what template you are using, I may be able to help. Please keep in mind though that the only templates I probably can help with is Obsessblue and default Crystal template.

**EDIT** sorry my sig dont click. my url is http://thunderva.com

Posted

Hey! Thanks very much for the quick reply. I'd like the link in the Nav bar, please, and I'm using the default 'crystal' template.

Thanks very much for your help :D, I'll get my head around this soon haha!

Posted

ok first off, take a copy of core_navigation.tpl and place it in your crystal folder. This file can be found in core/templates

If you add links to the core template files, they will get over written when you update your site. For that very reason, you would drop that file in your template folder as well. This is common practice here.

to add that link in the core_nav.tpl file that you just dropped in your skin folder, look for

<li><a href="<?php echo url('/pilots'); ?>">Pilots</a></li>

or similar

and add on the next line down

<li><a href="<?php echo url('/staff'); ?>">STAFF</a></li>

and save the file.

This should do the trick for you.

Now that being said, notice how I said that the core_nav.tpl file in the core/templates folder will be over written on update? Well so will your crystal skin since it is default. THe core_nav.tpl file that you add to the crystal folder will NOT be over written, BUT if you do any other editing to that template, it will be over written.

The best way around this problem is to download a copy of the crystal folder and simply rename it to something like crystal2 then go in to the style sheet file in your newly named crystal folder and find the code

<link rel="stylesheet" media="all" type="text/css" href="<?php echo SITE_URL?>/lib/skins/crystal/styles.css" />

and change it to

<link rel="stylesheet" media="all" type="text/css" href="<?php echo SITE_URL?>/lib/skins/crystal2/styles.css" />

that will give you your own custom template that you can add files to and edit them all til you are perfectly content and it will NEVER be over written.

I hope this helps some and I did not confuse you too much. ;)

  • 9 months later...
  • Moderators
Posted

Hello everyone, me and dimitris are about to release a new one staff module for phpvms but unfortunately we have got a little problem:

	 public function edit_staff_1() {
	 $id = $this->get->id;
	if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN)) {
    $sql = "UPDATE ".TABLE_PREFIX."staff SET posit='".$this->get->posit."' WHERE id=$id";
    $sql1 = "UPDATE ".TABLE_PREFIX."staff SET name='".$this->get->name."' WHERE id=$id";
	$sql2 = "UPDATE ".TABLE_PREFIX."staff SET desc='".$this->get->descr."' WHERE id=$id";
	$sql3 = "UPDATE ".TABLE_PREFIX."staff SET email='".$this->get->email."' WHERE id=$id";
	$sql4 = "UPDATE ".TABLE_PREFIX."staff SET img='".$this->get->img."' WHERE id=$id";
	$sql5 = "UPDATE ".TABLE_PREFIX."staff SET note='".$this->get->note."' WHERE id=$id";
	//echo $sql;
	//echo "<br />";
	//echo $sql1;
	//echo "<br />";
	//echo $sql2;
	//echo "<br />";
	//echo $sql3;
	//echo "<br />";
	//echo $sql4;
	//echo "<br />";
	//echo $sql5;
	DB::query($sql);
	DB::query($sql1);
	DB::query($sql2);
	DB::query($sql3);
	DB::query($sql4);
	DB::query($sql5);
	echo "Updated!<br />Staff position for {$this->get->posit} have been updated."; 
	Template::Show('staff/staff_menu.tpl');
	//echo "{$this->get->desc}";
	//echo "{$this->get->id}";
			 }
 }

When i am trying to insert data on desc column it is not added but all the other fields are added correctly. I tried to echo the sql statement and it is passing the data correct to function but function is not adding the data at MYSQL database. If anyone can take a lot on the code and find any mistake please reply this theard as soon as possible because we are one step before before release!

  • Like 1
  • 1 month later...
Posted

Can you please upload, the files are gone and can't download them.

God Bless!

they are reworking it to have database connection and how far I have understood the version that was attached is outdated (removed) and will be replaced with a new one!!

Best Regards

Thomas

  • 1 month later...
  • 1 month later...
  • Moderators
Posted

I already made a similar one. With bio, photo, title, order, descpiction.. I was going to release it but I'll think about it and see if anyone is still insterested in the staff module. If the project died yet.

Posted

I already made a similar one. With bio, photo, title, order, descpiction.. I was going to release it but I'll think about it and see if anyone is still insterested in the staff module. If the project died yet.

I would be interested in it! I have been looking for one for a while now.

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...