The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Coding for Phpbb2

View previous topic View next topic Go down

Solved Coding for Phpbb2

Post by Sir Chivas™ on January 2nd 2012, 11:50 pm

Is the coding different for phpbb2 to phpbb3


i try this code for phpbb2 but doesn't work.

Code:
a { text-decoration: none; }       
a[href="/g1-project-toruk-administrators"] {
            background: url("http://illiweb.com/fa/pbucket.gif") no-repeat;
            padding-left: 19px;
            padding-top: 2px;
      }
     p a[href="/u1"], .forabg a[href="/u1"],  .forumbg a[href="/u1"], .postprofile strong a[href="/u1"], .page-bottom a[href="/u1"], #chatbox_members a[href="/u1"], .module a[href="/u1"] {
            background: url("http://illiweb.com/fa/pbucket.gif") no-repeat;
            padding-left: 16px;
            padding-top: 2px;
               }
      a[href="/g1-project-toruk-administrators"] {
            background: url("http://illiweb.com/fa/pbucket.gif") no-repeat;
            padding-left: 19px;
            padding-top: 2px;
      }
     p a[href="/u2"], .forabg a[href="/u2"],  .forumbg a[href="/u2"], .postprofile strong a[href="/u2"], .page-bottom a[href="/u2"], #chatbox_members a[href="/u1"], .module a[href="/u1"] {
            background: url("http://illiweb.com/fa/pbucket.gif") no-repeat;
            padding-left: 16px;
            padding-top: 2px;
               }
[href="/g5-in-game-admins"] {
            background: url("http://illiweb.com/fa/pbucket.gif") no-repeat;
            padding-left: 19px;
            padding-top: 2px;
      }
     p a[href="/u#"], .forabg a[href="/u#"],  .forumbg a[href="/u#"], .postprofile strong a[href="/u#"], .page-bottom a[href="/u#"], #chatbox_members a[href="/u1"], .module a[href="/u1"] {
            background: url("http://illiweb.com/fa/pbucket.gif") no-repeat;
            padding-left: 16px;
            padding-top: 2px;
               }
[href="/g7-in-game-moderators"] {
            background: url("http://illiweb.com/fa/pbucket.gif") no-repeat;
            padding-left: 19px;
            padding-top: 2px;
      }
     p a[href="/u6"], .forabg a[href="/u6"],  .forumbg a[href="/u6"], .postprofile strong a[href="/u6"], .page-bottom a[href="/u6"], #chatbox_members a[href="/u1"], .module a[href="/u1"] {
            background: url("http://illiweb.com/fa/pbucket.gif") no-repeat;
            padding-left: 16px;
            padding-top: 2px;
               }
[href="/g7-in-game-moderators"] {
            background: url("http://illiweb.com/fa/pbucket.gif") no-repeat;
            padding-left: 19px;
            padding-top: 2px;
      }
     p a[href="/u7"], .forabg a[href="/u7"],  .forumbg a[href="/u7"], .postprofile strong a[href="/u7"], .page-bottom a[href="/u7"], #chatbox_members a[href="/u1"], .module a[href="/u1"] {
            background: url("http://illiweb.com/fa/pbucket.gif") no-repeat;
            padding-left: 16px;
            padding-top: 2px;
               }

But doesn't appear like this in this forum >>> http://reviewforums.webmasterforos.com/
What im trying to do is add crowns infront of the Legend groups and as well to each member and posts and etc.


Last edited by Sir Chivas on January 3rd 2012, 4:05 am; edited 1 time in total
avatar
Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6801
Reputation : 433
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Solved Re: Coding for Phpbb2

Post by Guest on January 2nd 2012, 11:55 pm

Have you replaced href's values from CSS, I meant:
/g7-in-game-moderator
/u7
/g5-in-game-admins

Guest
Guest


Back to top Go down

Solved Re: Coding for Phpbb2

Post by Sir Chivas™ on January 3rd 2012, 12:21 am

Yes I have, isn't there a tutorial that shows the different coding for each version?



Attention!
- Please provide your forum URL at all times.
- When the issue is solved, please mark it as solved.


avatar
Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6801
Reputation : 433
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Solved Re: Coding for Phpbb2

Post by Guest on January 3rd 2012, 12:24 am

Tried to add !important after values? Smile

Guest
Guest


Back to top Go down

Solved Re: Coding for Phpbb2

Post by Nera. on January 3rd 2012, 1:09 am

Hi,

Do you want it for groups? If so follow this tut:

http://help.forumotion.com/t96136-group-s-style-on-legend-glitter-icon-glow

If you want it assigned to users use this script. Change the U1 to your users ID, if it's the founder it will be U1.

Code:
/* Kruna ispred nicka administratora. By BubbleDreams 2011 -
AdminCentar.net . Nemoj uklanjati copyright! Don't remove copyright! */

$(function() {
if($('a[href="/u1"] span strong')){
            $('a[href="/u1"] span strong').before('<img src="http://cdn2.iconfinder.com/data/icons/ledicons/crown.png" border="0" />');
    }
});

It's all the same for all versions.
avatar
Nera.
Energetic

Female Posts : 7078
Reputation : 2014
Language : English
Location : -

http://webartzforum.com

Back to top Go down

Solved Re: Coding for Phpbb2

Post by LGforum on January 3rd 2012, 1:22 am

Why is that script copyrighted?

Its like 2 simple lines basically.

Not only that, due to FMs automatic compression the copyright will automatically be taken out of the JS file.

Not to be rude but the author needs to see sense.


Last edited by LGforum on January 3rd 2012, 3:48 am; edited 1 time in total
avatar
LGforum
Hyperactive

Male Posts : 2262
Reputation : 260
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: Coding for Phpbb2

Post by Nera. on January 3rd 2012, 1:24 am

Ask the author please http://help.forumotion.com/u31238 Wink
Not me. I would not know.
avatar
Nera.
Energetic

Female Posts : 7078
Reputation : 2014
Language : English
Location : -

http://webartzforum.com

Back to top Go down

Solved Re: Coding for Phpbb2

Post by Sir Chivas™ on January 3rd 2012, 3:33 am

Code:
p a[href="/u7"], .forabg a[href="/u7"],  .forumbg a[href="/u7"], .postprofile strong a[href="/u7"], .page-bottom a[href="/u7"], #chatbox_members a[href="/u1"], .module a[href="/u1"] {
            background: url("http://illiweb.com/fa/pbucket.gif") no-repeat;
            padding-left: 16px;
            padding-top: 2px;
              }

Thats for the user then? so basically every version is the same?

Edit: i found the thread. It is different for each version. Razz

http://help.forumotion.com/t90311-how-to-add-an-icon-before-username

avatar
Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6801
Reputation : 433
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Solved Re: Coding for Phpbb2

Post by Sanket on January 3rd 2012, 5:18 am

Solved?
avatar
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2822
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: Coding for Phpbb2

Post by Nera. on January 3rd 2012, 10:14 am

Sir Chivas no need to add so much CSS for something simple and you wont aviod it having a bug on phpBB2 when you add it with CSS.

Those two JS line's will do all the work for every forum version = the same script.

My ligue lapses rarely Razz
avatar
Nera.
Energetic

Female Posts : 7078
Reputation : 2014
Language : English
Location : -

http://webartzforum.com

Back to top Go down

Solved Re: Coding for Phpbb2

Post by Jophy on January 3rd 2012, 11:25 am

Since this is marked as solved, I'll move this now Wink
avatar
Jophy
ForumGuru

Male Posts : 17924
Reputation : 835
Language : English
Location : Somewhere

Back to top Go down

View previous topic View next topic Back to top


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