put the link in my forum header of the bank points

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Post Reply
User avatar
craperos
Registered User
Posts: 10
Joined: Wed Jan 04, 2012 12:00 am

put the link in my forum header of the bank points

Post by craperos »

Hello, sorry for my bad English language.

I am trying to put the link in my forum header of the bank points. Just as is the option of points in hand, or uplist that is also.

ext/dmzx/ultimatepoints

I was trying to edit the file "overall_header_navigation_append.html"

I inserted these lines of code but it is only seen in this web page and not in all the forum pages:
{% if S_POINTS_ENABLE and S_USE_POINTS%} <li data-last-responsive = "true"> <a href="{{ U_POINTS }}" title="{{ POINTS_LINK }}" role="menuitem"> <i class = "icon fa {{POINTS_ICON_MAINICON}}" aria-hidden = "true"> </i> <span> {{POINTS_LINK}} </span> [{{USER_POINTS}}] </a> </li> {% endif%}

{% if S_POINTS_ENABLE and S_UPLIST_ENABLE and S_USE_POINTS%} <li data-last-responsive = "true"> <a href="{{ U_POINTS_LIST }}" title="{{ POINTS_LIST_TOTAL }}" role="menuitem"> <i class = "icon fa {{POINTS_ICON_UPLIST}}" aria-hidden = "true"> </i> <span> {{POINTS_LIST_TOTAL}} </span> </a> </li> {% endif%}
(here would be the code line of the bank detail icon :)
{% if S_POINTS_ENABLE and S_USE_POINTS%} <li data-last-responsive = "true"> <a href="{{ U_BANK }}" title="{{ BANK_NAME }}" role="menuitem"> <i class = "icon fa {{POINTS_ICON_BANKICON}}" aria-hidden = "true"> </i> <span> {{BANK_NAME}} </span> [{{USER_BALANCE}} {{POINTS_NAME}}] </a> < / li> {% endif%}
Then I try to edit the listener.php but I don't know how to edit it:

Code: Select all

// Adds the Points link in the header
public function page_header ($ event)
{
if (isset ($ this-> config ['points_name']))
{
$ points_config = $ this-> cache-> get ('points_config');

$ this-> template-> assign_vars (array (
'U_POINTS' => $ this-> helper-> route ('dmzx_ultimatepoints_controller'),
'U_POINTS_LIST' => $ this-> helper-> route ('dmzx_ultimatepoints_list_controller'),
'POINTS_LINK' => $ this-> config ['points_name'],
'USER_POINTS' => sprintf ($ this-> functions_points-> number_format_points ($ this-> user-> data ['user_points'])),
'S_POINTS_ENABLE' => $ this-> config ['points_enable'],
'S_UPLIST_ENABLE' => $ points_config ['uplist_enable'],
'S_USE_POINTS' => $ this-> auth-> acl_get ('u_use_points'),
'POINTS_ICON_MAINICON' => $ this-> config ['points_icon_mainicon'],
'POINTS_ICON_UPLIST' => $ this-> config ['points_icon_uplist'],
'POINTS_LIST_TOTAL' => $ this-> config ['points_name_uplist'],
'POINTS_ICON_BANKICON' => $ this-> config ['points_icon_bankicon'],
'POINTS_ICON_LOTTERYICON' => $ this-> config ['points_icon_lotteryicon'],
'S_BANK_ENABLE' => $ points_config ['bank_enable'],
'USE_BANK' => $ this-> auth-> acl_get ('u_use_bank'),
'S_LOTTERY_ENABLE' => $ points_config ['lottery_enable'],
'USE_LOTTERY' => $ this-> auth-> acl_get ('u_use_lottery'),
'PHPBB_IS_32' => ($ this-> files_factory! == null)? true: false,
));
}
}
User avatar
Lumpy Burgertushie
Registered User
Posts: 67926
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: put the link in my forum header of the bank points

Post by Lumpy Burgertushie »

no idea what you are talking about since I have never used that extension.

your best bet is to contact the creator of that extension either here in its topic or at his site.

however, if your goal is to put a link to something in your header you need to edit the overall_header.html file and put it wherever you wish.

luck,
robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

If nobody is in the forest, does a tree really fall?
User avatar
craperos
Registered User
Posts: 10
Joined: Wed Jan 04, 2012 12:00 am

Re: put the link in my forum header of the bank points

Post by craperos »

Lumpy Burgertushie wrote:
Mon Jul 22, 2019 8:55 pm
no idea what you are talking about since I have never used that extension.

your best bet is to contact the creator of that extension either here in its topic or at his site.

however, if your goal is to put a link to something in your header you need to edit the overall_header.html file and put it wherever you wish.

luck,
robert
Robert, the problem is that it has events and makes user value calls and how many points that unique user has, since he has to look for the amount of points that the user has specifically logged in and be able to view it in the link menu and throughout the forum and its leaves ...

Regarding contact with the developer, I tried through their forum, but they never approved the subject yet. Unfortunately, you may not have time for my consultation. That's why I opened a thread here on phpbb to know if any programmer can help me.
URL:
Plantilla(s) usuada(s): (Prosilver)
Ext: (Portal board3)(ultimatepoints_v122)
Versión de phpBB: (3.2.7)
PHP version: 7.1.26
User avatar
Mick
Support Team Member
Support Team Member
Posts: 22560
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: put the link in my forum header of the bank points

Post by Mick »

That extension is marked [ABD] in the CDB so there is no support for it here by the author and it shouldn’t be used in a live environment. I’ll move this to custom coding.
"The more connected we get the more alone we become" - Kyle Broflovski©
Post Reply

Return to “phpBB Custom Coding”