Using variables for other pages on index possible?

Discuss the development of future releases of phpBB (phpBB 3.x minor releases) and MODing/Coding related questions.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
User avatar
Frost
New member
New member
Posts: 39
Joined: 24 Mar 2007, 12:53
Location: root/Italy
Contact:

Using variables for other pages on index possible?

Postby Frost » 17 Jun 2007, 05:33

Using variables on index possible?


I've been playing around with smilies and I am wondering what all would be involved in getting the posting body's smiley box/popup box to show up on another page. In this particular question I am wanting to be able to use it on the index_body

I know I can't use the normal variables, so what would I have to include to be able to pull the info there as well?

As a bonus it would be nice to know how to get the smiley to be input in a text box as well (like it does for posting body) ((when you click the smiley it automatically enters the code))

I figured once I figure out how to let index_body use posting_body's code, it would probably work

Thanks in advance

User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Using variables for other pages on index possible?

Postby igorw » 17 Jun 2007, 12:44

Do you want this to add smilies to handymans shoutbox mod? Just curious...

- we're poor!

User avatar
Frost
New member
New member
Posts: 39
Joined: 24 Mar 2007, 12:53
Location: root/Italy
Contact:

Re: Using variables for other pages on index possible?

Postby Frost » 18 Jun 2007, 12:45

Yes that is part of the reason I originally thought about it, but I figured out a way to do the smilies for the chat already without using the posting body's code.

If it's all the same, now it has me curious on other things I could do with this, like using particular parts of a board on another page. Sort of like having a portal without actually having a portal.

For example I would want to add handy information from all over the board in one place on the index. I think this would have the same issues but I haven't tried it yet.

User avatar
Frost
New member
New member
Posts: 39
Joined: 24 Mar 2007, 12:53
Location: root/Italy
Contact:

Re: Using variables for other pages on index possible?

Postby Frost » 20 Jun 2007, 14:49

I take it I hit some sort of nerve asking this question here? I didn't know it would matter what the question was for as it was a phpbb mod question.

Seems to be a lot of this going around.
Sorry to bother you all with my questions about phpbb modding, I must have miss-interpreted the symbolism of the site's name.

User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Using variables for other pages on index possible?

Postby igorw » 22 Jun 2007, 12:38


- we're poor!

User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Using variables for other pages on index possible?

Postby igorw » 22 Jun 2007, 12:39


- we're poor!

User avatar
Frost
New member
New member
Posts: 39
Joined: 24 Mar 2007, 12:53
Location: root/Italy
Contact:

Re: Using variables for other pages on index possible?

Postby Frost » 22 Jun 2007, 17:23

I do not think you should have given me any help after the post I made. I was irritated at my inability to solve something on my own and after seeing most of my posts get skipped over at startrek, and never even commented on, I assumed that since you are a member there too, that I had done something wrong there and you were ignoring this post because of the relation.

After reading my post above I realize the harsh nature of it now, and I apologize.

I did not need the smiley code anymore because I figured out a hard way around it, but it does help me in the new question I asked here.

I will completely understand if you decide to remove my account here. After the way I've been treated at several support sites for asking questions, I've become rather jumpy, and since have devoted all my energies to giving back with styles and being as friendly and helpful as possible to give people a break from it. I've tainted that with what I've said here, and again I apologize.

Thank you eviL<3

User avatar
Frost
New member
New member
Posts: 39
Joined: 24 Mar 2007, 12:53
Location: root/Italy
Contact:

Re: Using variables for other pages on index possible?

Postby Frost » 22 Jun 2007, 17:52

Out of curiosity I tried the above for the smilies, and the variables aren't defined in posting.php for some of them, they are in includes/functions_posting

I thought the code would be different, so didn't try

Also, the smilies_allowed part wouldn't be required would it, since it's just to make them not show if they smilies have been turned off?

User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Using variables for other pages on index possible?

Postby igorw » 23 Jun 2007, 17:12


- we're poor!


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “phpBB Development discussion”

Who is online

Users browsing this forum: No registered users and 8 guests