Skip to content
View in the app

A better way to browse. Learn more.

Froxlor Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Custom Links

Featured Replies

Hi,

for my own Froxlor Template I want to add some Custom Links to my Header (just single Links, not an Menu like with function.buildNavigation.php).

 

Is this possible? I need the Username Output, Logout Link with Session ID and Home Button (Overview) with Session Link.

 

Thank you

it's possible. Just check out the existing templates how they integrate dynamic value and how they are called from the php-scripts. It's pretty simple

  • Author

Ok, I just found $userinfo[loginname] for Username and $userinfo[hash] for the Hashtag/Session-ID.

 

But I could not figure out how to create a Link which links in Customer Backend to customer_index.php and in Admin Backend to admin_index.php. Could you please explain me this?

<a href="customer_index.php?s={$s}">Customer Index</a>

 

Then you have to call it using

eval()

(see other templates/files for examples) and $s will be replaced by the session-id

  • Author

Thank you for the Info with $s, its shorter then $userinfo[hash].

 

But I don't understand the Thing with eval(). Could you please give me an example for an Link to admin_index.php/customer_index.php from Admin/Customer Backend? Sorry, but I don't have many PHP Knowledges.

you Need to Call your template somewhere, if its somethings in the Header you Night Want to check out Index.php and Look for the getTemplate Function for the header, there you can See how the eval() Call is made

  • Author

Sorry, but I can't figure it out, I think my PHP Knowledges are too low for this. But I've found out that $userinfo['adminsession'] contains an 1 for Admin or 0 for Customer. With the Help of this Variable I've written the following Code:

 

<if $userinfo['adminsession'] == 1>
 <a href="admin_index.php?s={$s}"></a>
<else>
 <a href="customer_index.php?s={$s}"></a>
</if>

 

Short Version:

 

<a href="<if $userinfo['adminsession'] == 1>admin<else>customer</if>_index.php?s={$s}"></a>

 

It's not your Solution, but it works. All roads lead to Rome. ;)

looks okay to me, as long as it works :)

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.