Welcome, Guest
Please Login or Register.    Lost Password?

To post Top and Thumbs according to the page in
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: To post Top and Thumbs according to the page in
#1994
To post Top and Thumbs according to the page in 3 Years, 3 Months ago Karma: 0
Hello

I wish not to post the images of choice of the background of “transparent.bliss 1.5” when a user leaves the banner page.

I saw thus besides that it was possible to modify the parameter of posting in the management of the template (Show frontend image selector) that the image by defect (Image Options). One can also modify these parameters in the file params.ini. But these operations are manual and can be made only while entering the management of Joomla, unless I very did not include/understand.

I would like to thus modify these parameters by code to add in the file index.php template. It would simply be necessary to add a test to define the posted page and according to whether it is the banner page or not, to modify the value of the variable showselector, while preserving the value indicating the image in progress.

Can you direct me with this intention? Thank you.

PS: excuse my language, but it is a machine translation. Thank you to answer me if possible in French.
Kyos
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1995
Re:To post Top and Thumbs according to the page in 3 Years, 3 Months ago Karma: 41
Hi Kyos,
I do not fully understand your question and it is late at night here - I will try to understand this better tomorrow.
Thanks
Big Bear
Administrator
Posts: 1004
graph
User Offline Click here to see the profile of this user
Joomla Templates
Last Edit: 2009/02/08 21:06 By Big Bear.
The administrator has disabled public write access.
 
#1996
Re:To post Top and Thumbs according to the page in 3 Years, 3 Months ago Karma: 0
Thank you for your answer. I will try to better explain me. My banner page is presented as follows:


It is the same for all the pages for my site. However, for the pages other than the banner page, I wish not to post the thumbails, as follows for example:


I would like naturally to preserve in all these pages the image of the background which would have been chosen by the user in the banner page.

I hope that thus, my request is more Claire, of the images being better than any explanation.

I thank you.
Kyos
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#2002
Re:To post Top and Thumbs according to the page in 3 Years, 3 Months ago Karma: 0
Hello

Hello I thought of having found the solution with the code following in the file index.php:
Code:

if (JRequest::getVar('Itemid') == 1 ) {
JRequest::setVar ('showselector', 'show');

else {
JRequest::setVar ('showselector', 'hide');
}



The value of the variable “showselector” then is well modified during the change of page, but the thumbails remain posted. I do not include/understand, because if I change the value of this variable directly in the file params.ini of the template, the thumbails are not posted any more.

Thank you.
Kyos
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#2005
Re:To post Top and Thumbs according to the page in 3 Years, 3 Months ago Karma: 0
In the final analysis, I found what allows a correct operation compared to my last post. I added a test on the value of “showselector” (see line 63 of the file index.zip Ci joint), test “framing” lines 64 to 84. Thus, these lines are carried out only for one value “show” of the variable. And that seems well to function (not to forget lines 12 to 17 which modify the value of the variable according to the id of the page in progress).

I join the zip file index.php thus modified.

I thank you.
File Attachment:
File Name: Index.zip
File Size: 1541
Kyos
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: Support
 
JOOMLA TEMPLATES Joomla Templates By JoomlaBear