Browsing this Thread:   1 Anonymous Users




(1) 2 3 4 5 »


Re: Jobs 3.0 RC2 part 2
#47
Webmaster
Webmaster


See User information
James,

That would be the addlisting.php page around line 171 or right after the notifications part. look for this line:

redirect_header("index.php",3,_JOBS_JOBADDED);

change index.php to whatever you want.

**edited**
Just to let you know the 3 in that line means how many seconds before redirect.
And the _JOBS_JOBADDED is the language constant for the redirect message, defined in language/english/main.php
**

John

Posted on: 2008/4/1 16:46
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Jobs 3.0 RC2 part 2
#46
Zoner
Zoner


See User information
that worked great.

What file do I edit if I want to direct a person to a different page after they hit the submit button.

Example.. Fill out job form and when they hit submit the job is posted but then they are taken to another page. Let's say a page I create.

Posted on: 2008/4/1 16:34
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Jobs 3.0 RC2 part 2
#45
Webmaster
Webmaster


See User information
O.K. I think this is what you want. It is just not working, here is how to fix it.

Go to index.php around lines 215 - 217 look for these lines:

$xoopsTpl->assign('last_head_photo', _JOBS_PHOTO);

$rank = 1;

Right in between those 2 lines add this:

if ($xoopsModuleConfig['jobs_show_company'] == '1') {
$show_company = true;
$xoopsTpl->assign('show_company', true);
}else{
$show_company = false;
}


Then go down the page to around lines 337 - 349 look for these lines:

$i=0;


$result = $xoopsDB->query("select cid, pid, title from ".$xoopsDB->prefix("jobs_categories")." where cid=".mysql_real_escape_string($cid)."");


Right in between those 2 lines add the same code as above:


if ($xoopsModuleConfig['jobs_show_company'] == '1') {
$show_company = true;
$xoopsTpl->assign('show_company', true);
}else{
$show_company = false;
}


Then go up to about lines 297 - 301 look for these lines and delete them:

if ($xoopsModuleConfig['jobs_show_company'] == '1') {
$show_company = true;
}else{
$show_company = false;
}


That should fix it, let me know how it works for you.


John

Posted on: 2008/3/31 21:22
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Jobs 3.0 RC2 part 2
#44
Zoner
Zoner


See User information
Worked Great again john,

Heres another question! My members are requesting that the Company that posted the job be shown again in the list when looking at the jobs in a catagory. what do i need to do this.

I feel like im a big bother. thell me if i am..

Posted on: 2008/3/31 19:23
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Jobs 3.0 RC2 part 2
#43
Webmaster
Webmaster


See User information
James,

To remove the type (full time, part time), go to the file templates/blocks/jobs_block_new.html find and remove this part:

<{$item.type}>:

Then save and update the module.


To change the length of the title of the listing, go to the file blocks/jobs.php around lines 47 - 51 look for these lines:

if ( !XOOPS_USE_MULTIBYTES ) {
if (strlen($title) >= 20) {
$title = substr($title,0,18)."...";
}
}

What this code is doing is if the title is longer than 20 characters it cuts it off at 18 and adds the ... after it.

So change the 20 and the 18 to whatever you want, keep the first number higher than the second

Any questions just ask.

John

Posted on: 2008/3/30 11:43
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Jobs 3.0 RC2 part 2
#42
Zoner
Zoner


See User information
YOU ROCK!!!!

It worked.. Now just point me in teh right direction so i can delete the "part time, full time, contract ," from the block and lengethen the titel of the ad.. for the block that is..

Posted on: 2008/3/29 17:57
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Jobs 3.0 RC2 part 2
#41
Webmaster
Webmaster


See User information
James,

For the blocks, try this.
Go to the file blocks/jobs.php around line 35 look for this line:

$rs = $xoopsDB->query( "SELECT conf_value FROM ".$xoopsDB->prefix('config')." WHERE conf_name='newclassifieds" ) ;

change it to:

$rs = $xoopsDB->query( "SELECT conf_value FROM ".$xoopsDB->prefix('config')." WHERE conf_name='jobs_new_jobs_count'" ) ;

I think that will get them working.

John

Posted on: 2008/3/29 17:14
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Jobs 3.0 RC2 part 2
#40
Webmaster
Webmaster


See User information
I have to change the files for the blocks, maybe I will get it done by the end of the weekend.

John

Posted on: 2008/3/29 11:22
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Jobs 3.0 RC2 part 2
#39
Zoner
Zoner


See User information
Yep that worked.

Sorry i must of missed that one.

Did you address the Block

Posted on: 2008/3/29 11:12
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Jobs 3.0 RC2 part 2
#38
Webmaster
Webmaster


See User information
The html thing was addressed 3 posts back, you must have missed it.

John

Posted on: 2008/3/29 11:04
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top




(1) 2 3 4 5 »



You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create pdf.
You cannot get print page.

[Advanced Search]


Login
Username:

Password:

Remember me



Lost Password?

Register now!
 
Main Menu
 
Who's Online
8 user(s) are online (6 user(s) are browsing Forum)

Members: 0
Guests: 8

more...
 
Donat-O-Meter
Make donations with PayPal!
Stats
Goal: $25.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $25.00