Not Solved How to write this?!
#1
Not Solved
I have a question about this plugin. but I don't understand the coding language. Please help

main question:
Quote:if I am not the owner of the post, the link will display the URL (PID) to the donation  ---> newpoints.php?action=donate
if I am the owner of the post, the link will display the URL (PID) to the newpoints ---> newpoints.php

IF NOT my POST url (PID) link will appear here. IF my POST the url (PID) will show

and this, is my code. however, it didn't go as I expected

{$post['username']} Koin: 
<if $post['uid'] then>
<a href="{$mybb->asset_url}/newpoints.php?action=donate&amp;uid={$post['uid']}">{$post['newpoints']}</a>
<else>
<a href="{$mybb->asset_url}/newpoints.php">{$post['newpoints']}</a>
</if>
<br />

NOTE:
Quote:the template i edited, is postbit_author_user


Sorry for my incomprehensible English  Blush


Attached Files Thumbnail(s)
           
MyBB Indonesia | Facebook Page | Twitter
Bangga Menggunakan MyBB sebagai Forum Core Engine Big Grin
Reply
#2
Not Solved
I want to display the following info on the member's profile.
https://community.mybb.com/attachment.php?aid=45085

under the condition:
if I am not the owner of the post, the link will display the URL (PID) to the donation  ---> newpoints.php?action=donate
https://community.mybb.com/attachment.php?aid=45084

if I am the owner of the post, the link will display the URL (PID) to the newpoints ---> newpoints.php
https://community.mybb.com/attachment.php?aid=45083

is there no one who can help?
MyBB Indonesia | Facebook Page | Twitter
Bangga Menggunakan MyBB sebagai Forum Core Engine Big Grin
Reply
#3
Not Solved
somebody, please help me
MyBB Indonesia | Facebook Page | Twitter
Bangga Menggunakan MyBB sebagai Forum Core Engine Big Grin
Reply
#4
Not Solved
BUMP...
MyBB Indonesia | Facebook Page | Twitter
Bangga Menggunakan MyBB sebagai Forum Core Engine Big Grin
Reply
#5
Not Solved
BUMP...
MyBB Indonesia | Facebook Page | Twitter
Bangga Menggunakan MyBB sebagai Forum Core Engine Big Grin
Reply
#6
Not Solved
BUMP...
MyBB Indonesia | Facebook Page | Twitter
Bangga Menggunakan MyBB sebagai Forum Core Engine Big Grin
Reply
#7
Not Solved
I'm pretty sure you'll want to edit the template: Global Template / newpoints_postbit

I've tried a few variations, but I can't quite get the right if/else combination to work. Hopefully this helps in some way, though?

<if $post['uid'] then>
	<a href="{$mybb->settings['bburl']}/newpoints.php">{$points}</a>
	<else>
<a href="{$mybb->asset_url}/newpoints.php?action=donate&amp;uid={$post['uid']}">{$points}</a>
</if>
[Image: BloodTies.png]

[Image: Pern.png]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)