dimitris Posted July 8, 2010 Report Posted July 8, 2010 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. 4 Quote
Jason Posted July 9, 2010 Report Posted July 9, 2010 thanks, looks very nice, i will be adding this to my site Quote
Jeff Posted July 9, 2010 Report Posted July 9, 2010 Yep, thanks dimitris. It doesn't look too difficult to edit for use with add-on skins. I'll give it a shot as well. Quote
AUZ Posted July 9, 2010 Report Posted July 9, 2010 Thanks, Will also give it a go Cheers Adam AUZ Quote
Moderators Kyle Posted July 9, 2010 Moderators Report Posted July 9, 2010 Looks very nice! You need database to manage staff instead editing the tpl files. I hope you come out with this! Quote
CrashGordon Posted July 10, 2010 Report Posted July 10, 2010 Looks very nice! You need database to manage staff instead editing the tpl files. I hope you come out with this! I wonder if that could be done, based on pilot awards, limiting the selection to those considered "staff". Quote
selwynorren Posted July 10, 2010 Report Posted July 10, 2010 I wonder if that could be done, based on pilot awards, limiting the selection to those considered "staff". Or maybe even Pilot Groups? I have set all my staff positions as different groups Quote
TAV1702 Posted July 15, 2010 Report Posted July 15, 2010 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. Quote
Txmmy83 Posted September 4, 2010 Report Posted September 4, 2010 interesting I may also have to add a Staff page to my VA Best Regards Thomas Quote
dimitris Posted September 28, 2010 Author Report Posted September 28, 2010 thank you all ! now working on a system with admin panel so no need to mess with files it is an early version but is going well 1 Quote
Guest nedra Posted October 5, 2010 Report Posted October 5, 2010 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 Quote
TAV1702 Posted October 6, 2010 Report Posted October 6, 2010 Here you go do this: <a href="<?php echo url('/staff'); ?>">STAFF</a> And that should do the trick. Quote
Guest nedra Posted October 6, 2010 Report Posted October 6, 2010 And where do I put that please? haha Quote
TAV1702 Posted October 6, 2010 Report Posted October 6, 2010 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 Quote
Guest nedra Posted October 6, 2010 Report Posted October 6, 2010 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 , I'll get my head around this soon haha! Quote
TAV1702 Posted October 6, 2010 Report Posted October 6, 2010 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. Quote
Guest nedra Posted October 6, 2010 Report Posted October 6, 2010 Perfect! Thank you very much for your help, TAV! Works a charm Quote
TAV1702 Posted October 7, 2010 Report Posted October 7, 2010 Glad you got it all sorted out and working. Quote
Moderators servetas Posted July 20, 2011 Moderators Report Posted July 20, 2011 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! 1 Quote
hongkong_shu Posted September 20, 2011 Report Posted September 20, 2011 Can you please upload, the files are gone and can't download them. God Bless! Quote
Txmmy83 Posted September 20, 2011 Report Posted September 20, 2011 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 Quote
dimitris Posted September 20, 2011 Author Report Posted September 20, 2011 That is correct Thomas Will be available soon! Quote
Moderators Kyle Posted December 13, 2011 Moderators Report Posted December 13, 2011 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. Quote
Jeff Posted December 13, 2011 Report Posted December 13, 2011 It would save me from making a custom page for it if you would. You could PM me if interested in sharing Kyle Quote
disconett Posted December 13, 2011 Report Posted December 13, 2011 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.