We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
  • Pages:
  • 1
[ C ] Inventory Code; *read*
Topic Started: Jul 16 2011, 12:08 PM (2,184 Views)
harleighblake
Member
[ * ]
Board Address: Private
Board Software: ZB
Description: I just want a simple inventory code that an admin can add items to. I just want it to be like a link in the topics to their inventory and then yea.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
So basically each member will be allowed to have an inventory page and they can edit and add items to their page as they wish?
Offline Profile Goto Top
 
harleighblake
Member
[ * ]
no, only the admin will be able to add items :)
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
If you don't mind creating webpages for each member, this is pretty easy, if you want to create one webpage that will dynamically change for each member, that will require some advance JavaScript.
Offline Profile Goto Top
 
harleighblake
Member
[ * ]
hm..how would that work?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Basically you would create a webpage for each member you want to have an inventory file and you can add any items and style it as you like, then a code can be created to link to their file in every one of their posts.
Offline Profile Goto Top
 
harleighblake
Member
[ * ]
oh..i dont know how to make the code but I wouldnt have a problem creating the webpage.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Board Customization Posted Image Website Maker Posted Image Create New Webpage

Page ID: The users profile ID.
Page Title: [username] Inventory
Link to this page in the board menu?: No
Page Content:
Code:
 
<table>
<tr style="text-align: center">
<td>Item 1</td>
<td>Item 2</td>
<td>Item 3</td>
<td>Item 4</td>
<td>Item 5</td>
</tr>
</table>
Repeat the following code before the ending </table> tag for more rows.
Code:
 
<tr style="text-align: center">
<td>Item 1</td>
<td>Item 2</td>
<td>Item 3</td>
<td>Item 4</td>
<td>Item 5</td>
</tr>
Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
//By Nicolas of HNZ
$('.c_username').each(function() {
var uid = $(this).find('a.member').attr('href').split('/profile/')[1].split('/')[0];
$(this).closest('tr').find('.c_postinfo span.left').append('<a href="'+main_url+'pages/'+uid+'">My Inventory</a>');
});
</script>
Offline Profile Goto Top
 
harleighblake
Member
[ * ]
Let me check it out to make sure it works :)
I appreciate all that you do :)
Offline Profile Goto Top
 
Nicolas-ZNR
Member Avatar
Member
[ *  *  *  *  *  *  * ]
It definitely works.
However, it doesn't add it in the place that it's added on the board you're getting the idea(s) from. ;)
Regardless, the script wasn't a problem to write for Cory - so you're welcome. xD (Cory didn't tell me it was for a ZNR request when he asked me to "help" )
Offline Profile Goto Top
 
harleighblake
Member
[ * ]
haha :)
hey nick
--
also, how do you put the item pic in there?
/is a noob xD
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code:
 
<img src="IMAGE_URL" alt="ITEM_NAME" />
Offline Profile Goto Top
 
harleighblake
Member
[ * ]
alright great :)
now, where is it suppose to show up :3
(inventory link)
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Above posts in the bar, it will show to the right of the time text.
Offline Profile Goto Top
 
harleighblake
Member
[ * ]
oh i see it now :)
thanks thats what I needed!
Appreciate it,
Nick and Cory xD
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Closed Requests · Next Topic »
Locked Topic
  • Pages:
  • 1