Jump to content
MakeWebGames

[mccode v2] Simple Job Specials


Richard
 Share

Recommended Posts

This is a pretty long modification, but a nice simple add-on to jobs.

Run SQL:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

In job.php (add below job table):

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Create specials.php:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Add into staff_jobs.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Add into global_func.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Find in cron_hour.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Replace with:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Run SQL:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

In staff_jobs.php

Replace:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

with:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

In smenu.php

add:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Finally, in job.php

find:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

replace with:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

That should be all :)

Last Tested:

21st June 2008

13:26pm

Link to comment
Share on other sites

  • Replies 63
  • Created
  • Last Reply

Top Posters In This Topic

Re: Simple Job Specials [V2]

Hey there, tried installing and when i try and input this into the sql i get an error..

Requested SQL to run:

case 'newjobspec': newjobspec(); break;

case 'jobspecedit': jobspecedit(); break;

case 'jobspecdele': jobspecdele(); break;

Error given Back:

SQL query:

CASE 'newjobspec' : newjobspec(

)break;

MySQL said: Documentation

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'case 'newjobspec': newjobspec() break' at line 1

Please Help? Everything else installed just perfectly except for this, and obviously it wont work without it, lol.

Any help would be much appreciated. Thanks! :wink:

Link to comment
Share on other sites

  • 3 weeks later...

Re: Simple Job Specials [V2]

Fatal error: Cannot redeclare jobrankedit() (previously declared in /home/liam/public_html/staff_jobs.php:117) in /home/***********/public_html/staff_jobs.php on line 236

 

k umm i added juyst like u said and yeah i got that error when i click on jobrank edit to give it some points

Link to comment
Share on other sites

Re: Simple Job Specials [V2]

coudl someone fix that up for me

^^ replys

case 'newjob': newjob(); break;

case 'jobedit': jobedit(); break;

case 'newjobrank': newjobrank(); break;

case 'jobrankedit': jobrankedit(); break;

case 'jobdele': jobdele(); break;

case 'jobrankdele': jobrankdele(); break;

case 'newjobspec': newjobspec(); break;

case 'jobspecedit': jobspecedit(); break;

case 'jobspecdele': jobspecdele(); break;

default: print "Error: This script requires an action."; break;

 

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Link to comment
Share on other sites

Re: Simple Job Specials [V2]

i get this when i ry to edit a job or job speical or even make one

Fatal error: Cannot redeclare jobrankdele() (previously declared in /home/******/public_html/staff_jobs.php:162) in /home/liam/public_html/staff_jobs.php on line 225

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.   Paste as plain text instead

  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.

 Share


×
×
  • Create New...