Hello There, Guest! › Register

MySubscriptions 2.2 released.
Looking for a custom plugin for your site? Ask here for a quote.

[Shop Plugins] Show User Items at Signature
#1

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 Files
.rar   newpoints_shop_edited.rar (Size: 11.73 KB / Downloads: 50)
Reply
#2

Awesome man! Big Grin
Heart
Reply
#3

thank you, lại mò sang tận đây post bài hả?? =))
mybb's vietnamese
mybb's vietnamese
Reply
#4

(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
Reply
#5

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.
Reply
#6

(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
Reply
#7

I do not understand the last step, why would you change this line:
"$items = array_unique($postbit_items_cache);"

?
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
Reply
#8

(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!
Reply
#9

Yeap I guess that's a bug. I've fixed it myself in the file so 1.4 will be released shortly
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
Reply
#10

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
Reply




Users browsing this thread: 1 Guest(s)