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

[Archived] Banning not on the Profile theme.



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

1
Offline

  Nickname1

avatar
Punbb Rookie
Punbb Rookie
  • Description:
Hello, you know the new theme that there is for your profile, well this one I am talking about


http://www.punbb.biz/t316-javascript-ipb-profile-v220022014-jq191


It doesn't have banning on so now nobody can ban users!

Please tell me a code to fix this.

  • Information:
Forum:super4.forums.fmVersion:PUNBB
Type:Request a codeTags:Banning,Profile,theme.

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

2
Offline

  Virus

avatar
★Moderator★
★Moderator★
Hello,

The ban part should be at the bottom of the page. Please send us a picture of a profile you can ban to check it or please provide us with a test account information in the [ic][hide][/ic] tags so we can view the problem.

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

3
Offline

  Nickname1

avatar
Punbb Rookie
Punbb Rookie
Okay, well it isn't on anyone's profile because even I can't ban with out going to the admin panel.



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

4
Offline

  Nickname1

avatar
Punbb Rookie
Punbb Rookie
Here is the image link: http://prntscr.com/5ds8eq

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

5
Offline

  Virus

avatar
★Moderator★
★Moderator★
Well there must be somewhere there otherwise you must do it through the AP. but it should be a link to the bottom where you can go to the AP and to ban a user. If there is not we must wait for @Rapid to check it out and tell us what you can do.

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

6
Offline

  Nickname1

avatar
Punbb Rookie
Punbb Rookie
Thank you.

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

7
Offline

  Shadow

avatar
Administrator
Administrator
In your javascript,

Find:
[ic]<a id="search-i"href="/spa/'+usernameipb+'">Search Posts</a>[/ic]

Below that add:
[ic]<a id="men1"href="/modcp?mode=ban&user_id='+mid+'">Banning</a>[/ic]

Now, open your CSS and put:
Code:
[panda=css].pun .profi-add-ipb a#men1 {
    background: #E6E6E6 url("http://i.imgur.com/HpmZxWv.png") no-repeat 5px;
    }

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

8
Offline

  Nickname1

avatar
Punbb Rookie
Punbb Rookie
I can;t find it, may you edit my java code and make it right, here it is.

Code:
if(/\/?u(\d+)wall$/.test(location.pathname)) {
    jQuery(document).ready(function(){if(jQuery('#profile-advanced-layout #tabs li a').length){
    var nevoskin=jQuery('#profile-advanced-layout #tabs li:eq(1) a').attr('href');
    window.location.href=nevoskin;
    }})};
    if(/\/?u(\d+)stats$/.test(location.pathname)) {
    jQuery(document).ready(function(){if(jQuery('#profile-advanced-layout #tabs li a').length){
    var nevoskin=jQuery('#profile-advanced-layout #tabs li:eq(1) a').attr('href');
    window.location.href=nevoskin;
    }})};
    if(/\/?u(\d+)friends$/.test(location.pathname)) {
    jQuery(document).ready(function(){if(jQuery('#profile-advanced-layout #tabs li a').length){
    var nevoskin=jQuery('#profile-advanced-layout #tabs li:eq(1) a').attr('href');
    window.location.href=nevoskin;
    }})};
    if(/\/?u(\d+)contact$/.test(location.pathname)) {
    jQuery(document).ready(function(){if(jQuery('#profile-advanced-layout #tabs li a').length){
    var nevoskin=jQuery('#profile-advanced-layout #tabs li:eq(1) a').attr('href');
    window.location.href=nevoskin;
    }})};
    $("meta[http-equiv='refresh'][content]:first").each(function(){window.location.href=$(this).attr("content").replace(/^.*;url=/,"")});

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

9
Offline

  Tu Vil Amigo™

avatar
V.I.P. Member
V.I.P. Member
Lol. Do you even read a tutorial or just copy paste when you are adding it??

You have a 2 javascripts and this one is just for refresh matter.

Powered by PunBB
Currently 0 users have thanked Tu Vil Amigo™ for this post:

10
Offline

  Nickname1

avatar
Punbb Rookie
Punbb Rookie
I did read it lol, I just forgot about the 2 pages the one I was on was Profile instead of the IPB one lol.

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

11
Offline

  Virus

avatar
★Moderator★
★Moderator★
@Nickname1 wrote:Here is the image link: http://prntscr.com/5ds8eq

[aviso="Double Post"]Please don't double post. Your post needs to be separated by at least 24 hours before bumping. Please use the edit button instead![/aviso]

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

12
OfflineOnline

  Van-Helsing

avatar
★Moderator★
★Moderator★
[aviso="Thread Archived"]Original poster seems to be inactive and did not respond within 7 days in this thread. Because of this, the topic has been Archived.

If you have further questions, please open a new topic.[/aviso]

Powered by PunBB
Currently 0 users have thanked Van-Helsing for this post:

13
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