Good art is a taste, good design is an opinion.


Come as guest, stay as family.
Board Index

Come as guest, stay as family.


You are not connected. Please login or register

Foto

[Solved] Help with Forum wigets



View previous topic View next topic Go down Message [Page 1 of 1]

1
Offline

  Abdalah tupe

Abdalah tupe
Punbb Rookie
Punbb Rookie
What is my question?:
Hi,Can keep Forum wigets on Home Page only  Question 

Your Forum Address: http://tizen.forumarabia.com/
Forum Version: Punbb  Idea

Powered by PunBB
Currently 0 users have thanked Abdalah tupe for this post:

2
Offline

  weasel

weasel
Punbb Rookie
Punbb Rookie
Hi , add this code in : ACP -> Modules -> Javascript codes management ->
Create new javascript :
Title* : Show widget only in index
Placement : In all the pages
Javascript code :
Code:
$(function(){
if (location.pathname !== '/') {
$('#right').css({"height": "0px"});
$('#content-container div#left').css({"height": "0px"});
$('#content').css({"margin-right": "0px"});
}
});
or
Code:
$(function(){
if (location.pathname !== '/forum') {
$('#right').css({"height": "0px"});
$('#content-container div#left').css({"height": "0px"});
$('#content').css({"margin-right": "0px"});
}
});
And click submit .

Powered by PunBB
Currently 0 users have thanked weasel for this post:

3
Offline

  Ange Tuteur

Ange Tuteur
Punbb Rookie
Punbb Rookie
There's really no need to use javascript when the same can be achieved with CSS :

Administration panel > display > colors > css stylesheet
Paste the code below and submit :
Code:
#right { display:none; }
#content { margin-left:0 !important; }

Administration panel > display > generalities
Add the code below to the homepage message and save :
Code:
<style>
    #right { display:block !important; }
    #content { margin-left:183px !important; }
</style>

Powered by PunBB
Currently 0 users have thanked Ange Tuteur for this post:

4
Offline

  Ange Tuteur

Ange Tuteur
Punbb Rookie
Punbb Rookie
There's really no need to use javascript when the same can be achieved with CSS :

Administration panel > display > colors > css stylesheet
Paste the code below and submit :
Code:
#right { display:none; }
#content { margin-left:0 !important; }

Administration panel > display > generalities
Add the code below to the homepage message and save :
Code:
<style>
    #right { display:block !important; }
    #content { margin-left:183px !important; }
</style>

For typical forums it should be :

Left widgets :
Spoiler:

Right widgets :
Spoiler:

EDIT :
I don't know why it double posted, but when I clicked advanced from edit It didn't really edit my post. Neutral

Powered by PunBB
Currently 0 users have thanked Ange Tuteur for this post:

5
Offline

  Abdalah tupe

Abdalah tupe
Punbb Rookie
Punbb Rookie
weasel wrote:[link="/t427-help-with-forum-wigets#2520"]Hi , add this code in : ACP -> Modules -> Javascript codes management ->
Create new javascript :
Title* : Show widget only in index
Placement : In all the pages
Javascript code :
Code:
$(function(){
if (location.pathname !== '/') {
$('#right').css({"height": "0px"});
$('#content-container div#left').css({"height": "0px"});
$('#content').css({"margin-right": "0px"});
}
});
or
Code:
$(function(){
if (location.pathname !== '/forum') {
$('#right').css({"height": "0px"});
$('#content-container div#left').css({"height": "0px"});
$('#content').css({"margin-right": "0px"});
}
});
And click submit .

thanks But its not work ?

can you fix ?

or I'm forget thing ?

Powered by PunBB
Currently 0 users have thanked Abdalah tupe for this post:

6
Offline

  Abdalah tupe

Abdalah tupe
Punbb Rookie
Punbb Rookie
Ange Tuteur wrote:[link="/t427-help-with-forum-wigets#2523"]There's really no need to use javascript when the same can be achieved with CSS :

Administration panel > display > colors > css stylesheet
Paste the code below and submit :
Code:
#right { display:none; }
#content { margin-left:0 !important; }

Administration panel > display > generalities
Add the code below to the homepage message and save :
Code:
<style>
    #right { display:block !important; }
    #content { margin-left:183px !important; }
</style>

For typical forums it should be :

Left widgets :
Spoiler:

Right widgets :
Spoiler:

EDIT :
I don't know why it double posted, but when I clicked advanced from edit It didn't really edit my post. Neutral

Thanks ,but there are error ?!!

when me put the code its work but there are error

Its not hide widgets 100% its just make topic width full and keep the widgets behinde the topic and its make forum style suck and some problems ?

can you fix it plz and thanks very much

Powered by PunBB
Currently 0 users have thanked Abdalah tupe for this post:

7
Offline

  Abdalah tupe

Abdalah tupe
Punbb Rookie
Punbb Rookie
Uh come on were are you guysssssssssss

Powered by PunBB
Currently 0 users have thanked Abdalah tupe for this post:

8
Offline

  Guest

Anonymous
Guest
Sorry, but we mostly won't be able to help you because your forum language is too difficult to understand and even to catch the problem.

Powered by PunBB
Currently 0 users have thanked Guest for this post:

9
Offline

  Abdalah tupe

Abdalah tupe
Punbb Rookie
Punbb Rookie
Rapid wrote:[link="/t427-help-with-forum-wigets#2537"]Sorry, but we mostly won't be able to help you because your forum language is too difficult to understand and even to catch the problem.

this not the problem its like english I'm use many codes Its work

plz my frinde give to me code that do what I'm want

also This launguse its : Arabic !

Powered by PunBB
Currently 0 users have thanked Abdalah tupe for this post:

10
Offline

  Guest

Anonymous
Guest
These codes shared by our members are always working and that's how widgets are hidden in most cases, I don't know why it doesn't works with your forums.

Powered by PunBB
Currently 0 users have thanked Guest for this post:

11
Offline

  Abdalah tupe

Abdalah tupe
Punbb Rookie
Punbb Rookie
Rapid wrote:[link="/t427-help-with-forum-wigets#2539"]These codes shared by our members are always working and that's how widgets are hidden in most cases, I don't know why it doesn't works with your forums.

Ok I will try and try with codes and see


Powered by PunBB
Currently 0 users have thanked Abdalah tupe for this post:

12
Offline

  KiNGphx

KiNGphx
Punbb Guru
Punbb Guru
Hi


do you still need help ?


If your widget is on the right side, put this on CSS

Code:
[panda=css]#content-container div#right {
  display: none !important;
}
#content-container div#container div#content {
  margin-right: 0px;
}


If your widget is on the left side


Code:
[panda=css]#content-container div#left {
display: inline !important;
  }


i got this code from mark =D

Powered by PunBB
Currently 0 users have thanked KiNGphx for this post:

13
Offline

  Shadow

Shadow
Administrator
Administrator
Marked as Solved.

Powered by PunBB
Currently 0 users have thanked Shadow for this post:

14
Offline

  Sponsored content



Powered by PunBB
Currently 0 users have thanked Sponsored content for this post:

View previous topic View next topic Back to top Message [Page 1 of 1]


Topic URL's

URL
BBcode
HTML

Permissions in this forum:
You cannot reply to topics in this forum