Current time: 02-10-2012, 07:50 AM Hello There, Guest! (LoginRegister)




MySubscriptions, Donation Bar, MyDownloads, MyAchievements and support for our free and paid plugins. All that for $7!

Advertise Here!
Are you looking to advertise on this forum? Please read this announcement thread.


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Shop Plugins] Show User Items at Signature
08-02-2010, 02:13 PM (This post was last modified: 09-19-2010 02:46 PM by duytuan2002.)
Post: #1
[Shop Plugins] Show User Items at Signature
Test with
NewPoints 1.5
Shop 1.3
1/ Edit your template: ACP -> template, select your template

Edit postbit templates->postbit .
Search row:
Code:
{$post['signature']}

and add after the value:

Code:
{$post['newpoints_shop_items']}



Now: you can see Item show in signature

2/ Edit Global Templates ->newpoints_postbit

Delete value:
Code:
{$post['newpoints_shop_items']}

Save !

3/ Edit root\inc\plugins\newpoints\newpoints_shop.php (with notepab or ect...)

search and replace value
PHP Code:
"$items = array_unique($postbit_items_cache);" 

by
PHP Code:
"$items = array_unique($items); 

Save and up ovewrite newpoints_shop.php to \inc\plugins\newpoints\

Now: Item user buy have show in signature.
OK!

Screet shot:
[Image: showshopintem.jpg]


Attached File(s)
.rar  newpoints_shop_edited.rar (Size: 11.73 KB / Downloads: 32)

Access tips
Visit this user's website Find all posts by this user
Quote this message in a reply

08-03-2010, 03:18 AM
Post: #2
RE: [Shop Plugins] Show User Items at Signature
Awesome man! Big Grin

Heart
Visit this user's website Find all posts by this user
Quote this message in a reply
08-03-2010, 06:50 PM
Post: #3
RE: [Shop Plugins] Show User Items at Signature
thank you, lại mò sang tận đây post bài hả?? =))

myeditor
WYS editor very kool with show custome BBcode into Editor.
myforum http://mibvn.infoBig Grin
"Tạm thời sẽ:" support MyBB in Vietnamese
Find all posts by this user
Quote this message in a reply
08-03-2010, 09:11 PM (This post was last modified: 09-19-2010 02:47 PM by duytuan2002.)
Post: #4
RE: [Shop Plugins] Show User Items at Signature
(08-03-2010 06:50 PM)tut4ever Wrote:  thank you, lại mò sang tận đây post bài hả?? =))

He he, chỉ mong cái plugins nhiều và phát triển để mình còn ké! Wink

Access tips
Visit this user's website Find all posts by this user
Quote this message in a reply

08-09-2010, 12:03 AM (This post was last modified: 08-09-2010 12:30 AM by Iwakabe.)
Post: #5
RE: [Shop Plugins] Show User Items at Signature
Code:
"$items = array_unique($postbit_items_cache);"

How I supposed to find that line?

PS. My mistake, it was all about "" char :]

PPS. Sad I tested this with NewPoints 1.5, Shop 1.3 on 2 different templates but it doesn't seems to work.
Find all posts by this user
Quote this message in a reply
08-09-2010, 01:08 AM (This post was last modified: 09-19-2010 02:47 PM by duytuan2002.)
Post: #6
RE: [Shop Plugins] Show User Items at Signature
(08-09-2010 12:03 AM)Iwakabe Wrote:  
Code:
"$items = array_unique($postbit_items_cache);"

How I supposed to find that line?

PS. My mistake, it was all about "" char :]

PPS. Sad I tested this with NewPoints 1.5, Shop 1.3 on 2 different templates but it doesn't seems to work.

3/ Edit file .\inc\plugins\newpoints\newpoints_shop.php (with notepad++ or ect...) Shy . Find by Ctrl + F

Or down my Attach file, extract and up to your host overwrite your file!
Demo: http://thuthuataccess.co.cc/forum/thread...html#pid19

Access tips
Visit this user's website Find all posts by this user
Quote this message in a reply
08-09-2010, 06:50 AM
Post: #7
RE: [Shop Plugins] Show User Items at Signature
I do not understand the last step, why would you change this line:
"$items = array_unique($postbit_items_cache);"

?

[Image: s.png]
Find all posts by this user
Quote this message in a reply

08-09-2010, 04:09 PM (This post was last modified: 08-09-2010 04:12 PM by duytuan2002.)
Post: #8
RE: [Shop Plugins] Show User Items at Signature
(08-09-2010 06:50 AM)Pirata Nervo Wrote:  I do not understand the last step, why would you change this line:
"$items = array_unique($postbit_items_cache);"

?

I don't understand too, but I compared Shop 1.1 and Shop 1.3, I saw that it's being change row "$items = array_unique($items);" by "$items = array_unique($postbit_items_cache);"
. Result is My Item not show in postbit.

And when I rechange, "$items = array_unique($postbit_items_cache);" by "$items = array_unique($items);" . It's show!

Access tips
Visit this user's website Find all posts by this user
Quote this message in a reply
08-09-2010, 11:19 PM
Post: #9
RE: [Shop Plugins] Show User Items at Signature
Yeap I guess that's a bug. I've fixed it myself in the file so 1.4 will be released shortly

[Image: s.png]
Find all posts by this user
Quote this message in a reply
08-10-2010, 09:49 PM
Post: #10
RE: [Shop Plugins] Show User Items at Signature
Quote:Now: you can see Item show in signature

Not at all in my case. I use Afresh sky template, all new points plugins are updated, signature image limit = 10, char limit = 2000. I tested it to the user who bought an item by writing new post.

My goal is to display items at signature and disallow to change signature manually by users. Could anyone please tell me how I suppose to do that?

/sry if my English is broken
Find all posts by this user
Quote this message in a reply

Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)