Search found 20 matches

by HarbourPilot
Mon Aug 21, 2017 11:15 am
Forum: Custom BBCode Development and Requests
Topic: Custom BBCode auto adds <br> tags
Replies: 1
Views: 674

Re: Custom BBCode auto adds <br> tags

O found out that a <br> tag was added for each line break within the code.

wrong:
[tr][td]xxx[/td][/tr]
[tr][td]xxx[/td][/tr]
[tr][td]xxx[/td][/tr]...

rigth:
[tr][td]xxx[/td][/tr][tr][td]xxx[/td][/tr][tr][td]xxx[/td][/tr]...

Problem solved! :oops:
by HarbourPilot
Mon Aug 21, 2017 10:28 am
Forum: Custom BBCode Development and Requests
Topic: Custom BBCode auto adds <br> tags
Replies: 1
Views: 674

Custom BBCode auto adds <br> tags

Good day,

I've used a custom BBcode to create a table with 70 rows into a post. The table is a success, but it has a huge blank space above. I noticed that for each custom BBcode it has been added a <br> tag above the table code.
Any thoughts guys? :roll:

Tks for the support!

Igo
by HarbourPilot
Sun Dec 04, 2016 9:13 am
Forum: [3.1.x] Support Forum
Topic: Fake registration emails with fake links
Replies: 0
Views: 127

Fake registration emails with fake links

Hello, I have been feeling safe with the admin activation but I have noticed a new approach from spammers/hackers. I am receiving emails for new accounts activation which looks the same as the regular with a slight difference in the links within. The links come in a format forum.xxxregularaddressxxx...
by HarbourPilot
Tue Mar 15, 2016 10:21 am
Forum: [3.1.x] Support Forum
Topic: Admin only on custom page data
Replies: 3
Views: 108

Re: Admin only on custom page data

or, if you are using any html to display the data, you could use the html variables to do it. surround the data display with <!-- IF U_ACP -->your data code here <!-- ENDIF --> that will allow only admins to see whatever is there. robert Works like a charm!!! Many thanks for the other reply also. :D
by HarbourPilot
Tue Mar 15, 2016 12:28 am
Forum: [3.1.x] Support Forum
Topic: Admin only on custom page data
Replies: 3
Views: 108

Admin only on custom page data

Hello,

I have successfuly added a custom page at my phpbb forum where users can answer some quizzes and get ranked like a game.
I would like to see some of the game statistics when I am logged in as admin. How can I (admin) be the only one to see the fetched data at game page?

Thanks guys!
by HarbourPilot
Fri Jan 01, 2016 2:57 pm
Forum: Extension Writers Discussion
Topic: Access user table data
Replies: 19
Views: 903

Re: Access user table data

That tutorials in the first part says the opposition... But try with global $user; Do you mean like this? global $user; $name=$user->data['username']; But shall I place it into the main php or in the included php? I have tryed and it woks. Many thanks for the good help guys! :D And just for the rec...
by HarbourPilot
Fri Jan 01, 2016 2:44 pm
Forum: Extension Writers Discussion
Topic: Access user table data
Replies: 19
Views: 903

Re: Access user table data

Bruninoit wrote:That tutorials in the first part says the opposition... But try with global $user;
Do you mean like this?

Code: Select all

global $user;
$name=$user->data['username'];
But shall I place it into the main php or in the included php?
by HarbourPilot
Fri Jan 01, 2016 12:23 pm
Forum: Extension Writers Discussion
Topic: Access user table data
Replies: 19
Views: 903

Re: Access user table data

Eh I understand... But it's wrong for the phpBB normal scheme... Php stay with php, HTML with HTML in template. I get your point, but it is the right procedure according to this and many other tutorials . And it works for running php but not for accessing the $user object or the assigned variable {...
by HarbourPilot
Fri Jan 01, 2016 12:04 pm
Forum: Extension Writers Discussion
Topic: Access user table data
Replies: 19
Views: 903

Re: Access user table data

Bruninoit wrote:You cannot include the second php file in the main?

The file is included in the template like this:

Code: Select all

<!-- INCLUDEPHP somefile.php -->
not in the main php.
by HarbourPilot
Fri Jan 01, 2016 11:55 am
Forum: Extension Writers Discussion
Topic: Access user table data
Replies: 19
Views: 903

Re: Access user table data

I'm adding two new columns to the PHPBB user table for a project I'm developing in a custom page. If your custom PHP page is including this at the top of it define('IN_PHPBB', true); $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; $phpEx = substr(strrchr(__FILE__, '.'), 1)...
by HarbourPilot
Fri Jan 01, 2016 11:24 am
Forum: Extension Writers Discussion
Topic: Access user table data
Replies: 19
Views: 903

Re: Access user table data

Why do you want to use it in template? Use in php file and so with assign_variable pass the variable to template. Thanks for the help. Using the $template->assign_vars(array( 'S_SOME_VARIABLE' => $some_variable, ) ); I managed to send the value to the template file, but I still need to assign its v...
by HarbourPilot
Fri Jan 01, 2016 10:52 am
Forum: Extension Writers Discussion
Topic: Access user table data
Replies: 19
Views: 903

Re: Access user table data

$username=$user->data['username']; $sql = "SELECT user_id FROM table_users WHERE username='$username' "; $result = $db->sql_query($sql); $row = $db->sql_fetchrow($result); $db->sql_freeresult($result); echo $row['user_id']; Gentleman, The above code is working. The problem is that it only works in ...
by HarbourPilot
Fri Jan 01, 2016 2:55 am
Forum: Extension Writers Discussion
Topic: Access user table data
Replies: 19
Views: 903

Re: Access user table data

Do you mean like this?

$sql = 'SELECT column_name
FROM ' . USERS_TABLE . '
WHERE $this->user->data['username'];
by HarbourPilot
Wed Dec 30, 2015 6:59 pm
Forum: Extension Writers Discussion
Topic: Access user table data
Replies: 19
Views: 903

Access user table data

Hello, I'm adding two new columns to the PHPBB user table for a project I'm developing in a custom page. I'm stook at the sql code. How to access these new columns? $sql = 'SELECT column_name FROM xxx_users WHERE username='???'; How to fill the username? The overall_header file does the appropriate ...
by HarbourPilot
Tue Mar 24, 2015 10:16 am
Forum: [3.0.x] MOD Writers Discussion
Topic: Add php to template
Replies: 4
Views: 832

Re: Add php to template

Oyabun1 wrote:Does /styles/oprp/template/rotator/banner_ads.txt exist and is it readable?
It works fine because I can open it in the browser with the address.

Go to advanced search