phpBB Forum

It is currently Wed 23. May 2012, 20:46

All times are UTC + 1 hour

Forum rules


Hello dearest user and welcome to our EQDKP-Plus support forum.

Please read the following rules and terms before posting anything! Failure in doing so will result in being ignored or being banned. Posting in our boards means you have read, understood and accepted those rules.

English Board Rules – Click here



Post new topic Reply to topic  [ 8 posts ] 
Author Message
Offline
 Post subject: recruitmend module for sw tor
PostPosted: Wed 16. Nov 2011, 09:47 

Joined: Sun 6. Feb 2011, 12:59
Posts: 31
i also posted this in the feedback forums, but maybe some other users would find this interesting and are able to help out.

the recruitment box for swtor. To be honest, at the moment it is not looking very catchy.

maybe the developers could change it to show an image instead of an icon and text. Example below that i found for sw:tor

Image

it would give it a little more eyecandy :)
i would be able to create these kind of images and provide them for you.
when i currently replace these images with the icons, they are resized to the icon size.
perhaps it is just a matter of changing this code but i am not sure as i'm sucky sucky at php.

from portal/recruitment/module.php

Code:
}else // all other games
         {   
            if ($conf_plus['pk_recruitment_class['.$row['class_id'].']'] > 0)
              {
                 $rowcolor = $eqdkp->switch_row_class();
                 $c_color = str_replace(' ','',renameClasstoenglish($row['class_name']));
                 $recruit .= '<tr class="'.$rowcolor.'"><td class="'.$c_color.'">'.get_ClassIcon($row['class_name'],$row['class_id']).' '.$row['class_name'].'</td>
                                                <td>'. $conf_plus['pk_recruitment_class['.$row['class_id'].']']. '</td>
                          </tr>';
                 $show =true ;


to my thinking this line is affecting the icon showing:

Code:
<td class="'.$c_color.'">'.get_ClassIcon($row['class_name'],$row['class_id']).' '.$row['class_name'].'</td>


so if its possible to change that to use an image instead of the icon and no text, i think it will be done. Is it that simple or does it require more work?



Top
 Profile  
 
Offline
 Post subject: Re: recruitmend module for sw tor
PostPosted: Wed 16. Nov 2011, 11:23 
Core-Developer
User avatar

Joined: Wed 10. Dec 2008, 13:06
Posts: 9025
Location: Heilbronn, Germany
it is that simple. simply replace the following line

Code:
<td class="'.$c_color.'">'.get_ClassIcon($row['class_name'],$row['class_id']).' '.$row['class_name'].'</td>


with the new code:
Code:
<td class="'.$c_color.'"><img src="'.$eqdkp_root_path.'portal/recruitment/images/swtor/img_'.$row['class_id'].'.gif" alt="'.$row['class_name'].'" /></td>


now create the folder recruitment/images/swtor/ and add the images, named img_CLASSID
the CLASSID is the ID of the class, see games/swtor/index.php for the ids.

thats all ;) untested, but should work


Support my work:
Image Image
Donate your played PS3 games:
Alternative: Donate your played Playstation3 games (PAL, Region Code 2).



Top
 Profile  
 
Offline
 Post subject: Re: recruitmend module for sw tor
PostPosted: Wed 16. Nov 2011, 11:28 

Joined: Sun 6. Feb 2011, 12:59
Posts: 31
going to give it a try and will post if this works!

thx alot for a fast reply!



Top
 Profile  
 
Offline
 Post subject: Re: recruitmend module for sw tor
PostPosted: Wed 16. Nov 2011, 12:13 

Joined: Sun 6. Feb 2011, 12:59
Posts: 31
ok, ive replaced the line with the one u gave me.
Created the files and uploaded them. (just quick editing for testing purposes, final result will be cleaner)
as u can see here the link is correct
http://www.twitd.co.uk/portal/portal/re ... /img_5.gif wich produces:

Image

but at the moment all i'm getting is a printed message revealing only the name of the class.
ive changed it to left bar but still no avail.



Top
 Profile  
 
Offline
 Post subject: Re: recruitmend module for sw tor
PostPosted: Wed 16. Nov 2011, 13:18 
Core-Developer
User avatar

Joined: Wed 10. Dec 2008, 13:06
Posts: 9025
Location: Heilbronn, Germany
updated the code above, forgot the file ending. sorry.


Support my work:
Image Image
Donate your played PS3 games:
Alternative: Donate your played Playstation3 games (PAL, Region Code 2).



Top
 Profile  
 
Offline
 Post subject: Re: recruitmend module for sw tor
PostPosted: Wed 16. Nov 2011, 14:05 

Joined: Sun 6. Feb 2011, 12:59
Posts: 31
working like a charm!!

files are complete but awaiting approval from the eqdkp team to release them.

example:

republic images:

Image

empire images

Image

Download currently



Last edited by syncro on Wed 16. Nov 2011, 15:54, edited 1 time in total.

Top
 Profile  
 
Offline
 Post subject: Re: recruitmend module for sw tor
PostPosted: Wed 16. Nov 2011, 14:20 
Core-Developer
User avatar

Joined: Wed 10. Dec 2008, 13:06
Posts: 9025
Location: Heilbronn, Germany
ou created these files? if not, there might be copyright issues. are they free to use?


Support my work:
Image Image
Donate your played PS3 games:
Alternative: Donate your played Playstation3 games (PAL, Region Code 2).



Top
 Profile  
 
Offline
 Post subject: Re: recruitmend module for sw tor
PostPosted: Wed 16. Nov 2011, 15:53 

Joined: Sun 6. Feb 2011, 12:59
Posts: 31
pm sent regarding this issue.

for now, i have deleted the download file.



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

(C) The EQdkp-Plus Developer Team
EQdkp Plus Template by Ramon Kaes