Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Content Management System (http://www.go4expert.com/articles/cms/)
-   -   Alternating Colored Rows in vBulletin 4 [No Plugin] (http://www.go4expert.com/articles/alternating-colored-rows-vbulletin-4-t25160/)

shabbir 3May2011 10:15

Re: Alternating Colored Rows in vBulletin 4 [No Plugin]
 
Quote:

Originally Posted by Adam H (Post 82602)
Unfortunately not, The forum is being worked on a local machine , not on a server which is online. Its all on vb 4.1.3 on the default fresh install of vbulletin. No edits or mods installed.

Probably I cannot help because the same changes done to my fresh vB 4.1.3 worked fine. Also I did the threadbit modification and gave you the instructions. I also don't use vB 4.1.3 online.

Adam H 3May2011 11:29

Re: Alternating Colored Rows in vBulletin 4 [No Plugin]
 
Quote:

Originally Posted by shabbir (Post 82608)
Probably I cannot help because the same changes done to my fresh vB 4.1.3 worked fine. Also I did the threadbit modification and gave you the instructions. I also don't use vB 4.1.3 online.


Weird, Ill try it on another live install when i get time, for now i have just added a background colour to the element in the forumdisplay template so its the same colour as one of the alternatives. It will look ok until i work out whats wrong.

Thanks for the help though. Much appreciated.

shabbir 3May2011 12:10

Re: Alternating Colored Rows in vBulletin 4 [No Plugin]
 
Quote:

Originally Posted by Adam H (Post 82609)
Weird, Ill try it on another live install when i get time, for now i have just added a background colour to the element in the forumdisplay template so its the same colour as one of the alternatives. It will look ok until i work out whats wrong.

Thanks for the help though. Much appreciated.

Do let me know if you have issues on the live site and I will be more than happy to have a look.

wolepua 21May2013 17:06

Re: Alternating Colored Rows in vBulletin 4 [No Plugin]
 
2 Attachment(s)
Quote:

VB Version: 4.xx

1. Edit template forumhome_forumbit_level2_post

Now change the first line (first line before inserting the above code) from

Code:

<li id="forum{vb:raw forum.forumid}" class="forumbit_post L2">
to

Code:

<li id="forum{vb:raw forum.forumid}" class="forumbit_post L2 {vb:raw $rowClass}">

hello,i didnt found this code :
Code:

<li id="forum{vb:raw forum.forumid}" class="forumbit_post L2">
original source code :
Code:

<li id="forum{vb:raw forum.forumid}" class="forumbit_post {vb:raw forum.statusicon} L2">
but im still replace the code... and its working only at forumhome.
for forum display.its not working....
and i have a little problem with forumdisplay..
before delete : rgb(255, 255, 255) at Forum Row Background.
attachment number1

after delete : rgb(255, 255, 255) at Forum Row Background. make it transparent.
attachment number 2


how to make it work in forumdisplay?

shabbir 21May2013 17:53

Re: Alternating Colored Rows in vBulletin 4 [No Plugin]
 
Did you follow both the steps because it works for me even in the latest vB 4.x

wolepua 21May2013 17:58

Re: Alternating Colored Rows in vBulletin 4 [No Plugin]
 
yes i follow all steps..but only working in forumhome..forum display.its not working..
but ,i didnt found this code :
Code:

<li id="forum{vb:raw forum.forumid}" class="forumbit_post L2">
original source code :
Code:

<li id="forum{vb:raw forum.forumid}" class="forumbit_post {vb:raw forum.statusicon} L2">
im still replace the code :
Code:

<li id="forum{vb:raw forum.forumid}" class="forumbit_post L2 {vb:raw $rowClass}">

wolepua 21May2013 18:16

Re: Alternating Colored Rows in vBulletin 4 [No Plugin]
 
here copy from : forumhome_forumbit_level2_post

Code:

<vb:if condition="$altrow =& $GLOBALS['altrow']"></vb:if>
<vb:if condition="!isset($altrow)">
    <vb:if condition="$altrow = 0"></vb:if>
</vb:if>
<vb:if condition="++$altrow % 2 == 0">
    <vb:if condition="$rowClass = 'alteven'"></vb:if>
<vb:else />
    <vb:if condition="$rowClass = 'altodd'"></vb:if>
</vb:if>
<li id="forum{vb:raw forum.forumid}" class="forumbit_post L2 {vb:raw $rowClass}">
        <div class="forumrow table">


shabbir 21May2013 19:37

Re: Alternating Colored Rows in vBulletin 4 [No Plugin]
 
PM Me your forum URL and I will be more than happy to look into it.

wolepua 21May2013 19:44

Re: Alternating Colored Rows in vBulletin 4 [No Plugin]
 
okay.sent

shabbir 21May2013 19:51

Re: Alternating Colored Rows in vBulletin 4 [No Plugin]
 
Quote:

Originally Posted by wolepua (Post 99616)
okay.sent

I don't have your PM.


All times are GMT +5.5. The time now is 04:29.