Jump to content
Magictallguy

Updated Newspaper - more than one page

Recommended Posts

Last updated: 30/06/20


Note: This is untested and was (re)written on no sleep. Please post any bugs below and I will repair.


I'm sure this has been made before, and may have even been posted (unsure as to where) but I thought I'd post my version

For this, you will need to overwrite your newspaper.php, edit staff_special.php, and run an SQL command.

 SQL Command

Use the same naming scheme to add more pages: page#_content (where # is a unique page number)

You're unable to view this code.

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

 

newspaper.php

You're unable to view this code.

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

  

Administrative update

Open: staff_special.php

Find this

You're unable to view this code.

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

And replace with

You're unable to view this code.

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

 

Share this post


Link to post
Share on other sites

Re: Updated Newspaper - more than one page

Staff Functions!!

SQL's

Add more for more pages :)

You're unable to view this code.

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

 

Open: staff_special.php

Add these cases

You're unable to view this code.

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

Find this

You're unable to view this code.

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

 

And replace with

 

You're unable to view this code.

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

Remove the current newspaper link from your smenu.php and add these ones

 

You're unable to view this code.

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

 

You'll also have to update the newspaper - which I'll add in to my original post :)

Share this post


Link to post
Share on other sites

Re: Updated Newspaper - more than one page

This mod is nice and nice change but i used this once and it came up with errors :? so i just changed it back....nice mod tho mate keep it up :mrgreen:

Share this post


Link to post
Share on other sites

Re: Updated Newspaper - more than one page

it works learn to add it right work for me 1st try

Share this post


Link to post
Share on other sites

Re: Updated Newspaper - more than one page

mine worked just need to make it so i can edit page 1 ill try now ill eddit the paper a bit aswell i want player to be able to add apps so ill have a play now k

Share this post


Link to post
Share on other sites

Re: Updated Newspaper - more than one page

thanks mtg ive got it working fine i new what i did rong i deleted the cases that were already there so i deleted staff_specail then started again and now all working fine thanks but now im attempting to add the app bit were you pay for an advertisement if any 1 has that bit save me failing to make it can u post it below plz thanks

Share this post


Link to post
Share on other sites

Re: Updated Newspaper - more than one page

dude just make it ur self its better so if u turn around give it to someone else they want bitc* about you doding it so sorry i would but no i dont want peoeple being girls about it so sorry its not hard to make one just throw some code onto a page and play wid it or look at another thing and code it from that - simpleest way it could be done..... :-)

Share this post


Link to post
Share on other sites

Re: [mccode v2] Updated Newspaper - more than one page

magictallguy he created several multis on y game and spammed loads of my users

Share this post


Link to post
Share on other sites

Re: [mccode v2] Updated Newspaper - more than one page

then change it so its harder to spam

Share this post


Link to post
Share on other sites

Re: [mccode v2] Updated Newspaper - more than one page

 

magictallguy he created several multis on y game and spammed loads of my users

I can promise you, I haven't done that.

As I'm a game owner myself, I know how annoying multis can get so, I simply don't bother making them

What is your site? I'd like to know who's posing as me

Share this post


Link to post
Share on other sites

Re: Updated Newspaper - more than one page

 

I tryed to add it to my game and I got

QUERY ERROR: Table 'mygun4_database.npaper' doesn't exist

Query was SELECT * FROM npaper

WHY?

useually means you didnt run the sql into phpmyadmin or done it wrong so maybe ya might want to recheck that

Share this post


Link to post
Share on other sites

Re: [mccode v2] Updated Newspaper - more than one page

Warning: include(globals.php) [function.include]: failed to open stream: No such file or directory in /home/cc/public_html/newspaper.php on line 2

Warning: include(globals.php) [function.include]: failed to open stream: No such file or directory in /home/cc/public_html/newspaper.php on line 2

Warning: include() [function.include]: Failed opening 'globals.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/cc/public_html/newspaper.php on line 2

 

Fatal error: Call to a member function query() on a non-object in /home/cc/public_html/newspaper.php on line 35

 

 

:-( :? this is what im getting, can someone help me out.... i would like to use this for a game....

Share this post


Link to post
Share on other sites

Re: [mccode v2] Updated Newspaper - more than one page

 

Warning: include(globals.php) [function.include]: failed to open stream: No such file or directory in /home/cc/public_html/newspaper.php on line 2

Warning: include(globals.php) [function.include]: failed to open stream: No such file or directory in /home/cc/public_html/newspaper.php on line 2

Warning: include() [function.include]: Failed opening 'globals.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/cc/public_html/newspaper.php on line 2

 

Fatal error: Call to a member function query() on a non-object in /home/cc/public_html/newspaper.php on line 35

 

 

:-( :? this is what im getting, can someone help me out.... i would like to use this for a game....

Chances are you're using v1, this paper is for v2

Share this post


Link to post
Share on other sites

Re: [mccode v2] Updated Newspaper - more than one page

 

Warning: include(globals.php) [function.include]: failed to open stream: No such file or directory in /home/cc/public_html/newspaper.php on line 2

Warning: include(globals.php) [function.include]: failed to open stream: No such file or directory in /home/cc/public_html/newspaper.php on line 2

Warning: include() [function.include]: Failed opening 'globals.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/cc/public_html/newspaper.php on line 2

 

Fatal error: Call to a member function query() on a non-object in /home/cc/public_html/newspaper.php on line 35

 

 

:-( :? this is what im getting, can someone help me out.... i would like to use this for a game....

Chances are you're using v1, this paper is for v2

no, im using v2.

Share this post


Link to post
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.


×
×
  • Create New...