Jump to content
MakeWebGames

Recommended Posts

Posted

I did not make this, I found it on the forums somewhere a while ago, and then I edited it to fit my needs, and added a little extra, as the pages function and such. Use it however you want, just don't sell it or anything like that. If you want to change how many displayed items there are per page, just edit the $rowsPerPage variable. Default is 30. Here is the code.

Save as encyclopedia.php

 

You're unable to view this code.

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

 

Enjoy!

Might also add what it does: It creates a list of all the items you have on your game, with name, description, buy and sell price, and how many users own it.

Posted

nice add..

I added fancybox to this here's the code to enable

rel link to call

You're unable to view this code.

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

 

add in header.php

 

You're unable to view this code.

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

 

4448223915_8777a2d68c_o.gif

 

 

wrx

Posted
Correct me if I'm wrong, but from looking at it, it seems it would work fine with just the regular iteminfo.php...

Correct it would....the iteminfo.min.php i used is simply the iteminfo.php minus the header,mainmenu and footer.

Posted

@ CJ and gurpreet, you need jquery, and a link to the jquery file right above the bit wrx posted to be placed on header...

<script type="text/javascript" src="path/to/jquery.js"></script>

Posted

add in header.php

 

You're unable to view this code.

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

 

Also, you're making the positioning incorrect...

<head>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>

<script type="text/javascript">

$("[rel=item_info]").fancybox({

'width' : '50%',

'height' : '70%',

'autoScale' : false,

'transitionIn' : 'none',

'transitionOut' : 'none',

'type' : 'iframe'

});

</script>

</head>

Posted

@wrx

It seems that somehow, there's something missing on the whole you placed... as it simply opens the min file as it was the regular one! If you could point out on the right direction that would be great. my knowledge on jquery is way far limited to help out on this!

Posted

Here is a quote from my first post in this thread

 

I added fancybox to this here's the code to enable

I guess this need to be explained .. my post simply adds fancybox fuctionality to the origional script posted by the thread starter.

As you can see in the above quote this enables fancybox.

 

--------------------------------

 

WRX don't we need something to download xxD

Again it was asked and answered

 

fancybox if you dont all ready use itor need the jquery

 

--------------------------------

 

@wrx

It seems that somehow, there's something missing on the whole you placed... as it simply opens the min file as it was the regular one! If you could point out on the right direction that would be great. my knowledge on jquery is way far limited to help out on this!

do you have fancybox ?

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...