Eruondo Posted March 20, 2010 Posted March 20, 2010 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. Quote
Eruondo Posted March 20, 2010 Author Posted March 20, 2010 Can be seen working on http://www.thedarkestfate.com/encyclopedia.php Username: Demo1 Password: demo Quote
CJ - Twitch Posted March 20, 2010 Posted March 20, 2010 Thank you and may I just say great game! :) But its raven... :P Quote
wrx Posted March 20, 2010 Posted March 20, 2010 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.    wrx Quote
CJ - Twitch Posted March 20, 2010 Posted March 20, 2010 WRX don't we need something to download xxD Quote
wrx Posted March 20, 2010 Posted March 20, 2010 fancybox if you dont all ready use it or need the jquery Quote
CJ - Twitch Posted March 20, 2010 Posted March 20, 2010 Don't we need the file. iteminfo.min.php Quote
Eruondo Posted March 21, 2010 Author Posted March 21, 2010 Correct me if I'm wrong, but from looking at it, it seems it would work fine with just the regular iteminfo.php... Quote
wrx Posted March 21, 2010 Posted March 21, 2010 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. Quote
gurpreet Posted March 24, 2010 Posted March 24, 2010 Neither can I. The actual encyclopedia 5/5, however I cannot get the popup thing to work. Quote
CJ - Twitch Posted March 24, 2010 Posted March 24, 2010 Yeah and thats coming from a Professional. :P Please help. Quote
Lithium Posted March 24, 2010 Posted March 24, 2010 @ 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> Quote
Djkanna Posted March 24, 2010 Posted March 24, 2010 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> Quote
gurpreet Posted March 25, 2010 Posted March 25, 2010 Sorry if this sounds stupid, but I can't get it to work Djkanna. Here's the part in my header: <body> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> ..... In the encyclopedia.php i have: {$p['itmname']} I'm not good with the JS stuff, so how would I interlink them? Quote
Lithium Posted March 25, 2010 Posted March 25, 2010 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> Quote
gurpreet Posted March 25, 2010 Posted March 25, 2010 Ok lithium, I added the above to the header.php. What do I add in to the encyclopedia.php? Quote
Lithium Posted March 25, 2010 Posted March 25, 2010 On the encyclopedia.php to link to the iteminfo.min.php {$p['itmname']} then create the iteminfo.min.php as wrx stated he has done Quote
Lithium Posted March 25, 2010 Posted March 25, 2010 @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! Quote
Djkanna Posted March 25, 2010 Posted March 25, 2010 Try: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
wrx Posted March 25, 2010 Posted March 25, 2010 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 ? Quote
Djkanna Posted March 25, 2010 Posted March 25, 2010 Ah I was under the assumption that the code did not work lol http://fancybox.net/ Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.