[SOLVED] Skinning t...
 
Notifications
Clear all

[SOLVED] Skinning the 'reviews by' page.

9 Posts
3 Users
0 Reactions
2,363 Views
 Elle
(@jenny)
Posts: 594
Honorable Member
Topic starter
 

viewuser.php?action=reviewsby

Is it possible to skin that page? I want to style it differently from any of the other pages via CSS so I checked the source but there isn't any ID to that page other than 'viewuser' but then that will clash with my CSS for the #viewuser.

I checked the default_tpls folder but couldn't find anything specific (except for the reviews.tpl and reviewblock.tpl but they're not what I'm looking for).

Will I have to add a div around it manually or is there something more straight forward?

Thanks.


archive: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 26/06/2007 7:12 pm
(@tammy)
Posts: 2577
Member Moderator
 

What part of that do you want to appear different?  You want the reviews on that page to appear different from the reviews elsewhere on the site?  Give the reviewblock.tpl a class separate from the stories/series blocks then access it for this page via #viewuser.

The reviewblock.tpl:


<!-- START BLOCK : reviewsblock -->
<div class="reviewbox">
<div class="content{oddeven}">
<span class="label">Reviewer: </span>{reviewer} <span class="label">{member}</span> {rating} {reportthis}<br />
<span class="label">Date: </span>{reviewdate}
<span class="label">Title: </span>{chapter}
<p>{review}</p>
{adminoptions}
</div>
</div>
<!-- END BLOCK : reviewsblock -->

Your CSS:


#viewuser .reviewbox { border: 1px solid black; }

 
Posted : 27/06/2007 7:04 pm
Jan_AQ
(@jan_aq)
Posts: 1300
Noble Member
 

Why is this post in the "throw away" forum?


Whoever said nothing is impossible never tried slamming a revolving door.

url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word

 
Posted : 27/06/2007 11:46 pm
(@tammy)
Posts: 2577
Member Moderator
 

Jenny must have deleted it.  Moving it back to skinning support so others can benefit from the answer.


 
Posted : 28/06/2007 9:31 am
 Elle
(@jenny)
Posts: 594
Honorable Member
Topic starter
 

Thanks Tammy. πŸ™‚

My problem at the moment is this:

#viewuser .listbox { display: none; }

I want the 'reviews by' .listbox to not display so the reviews will display without the story information, but I do want the .listbox in the other tabs to show up.. how would I go about doing that? :s


archive: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 28/06/2007 2:00 pm
(@tammy)
Posts: 2577
Member Moderator
 

You want this for just one skin or is that what you want for the entire site?  If it's the entire site, I'd MOD the reivewsby.php file in the users/ to stop it from printing out that information.  Try commenting out lines 50 to 86.


 
Posted : 28/06/2007 4:08 pm
 Elle
(@jenny)
Posts: 594
Honorable Member
Topic starter
 

Just for one skin.

And I tried the commenting out thing too but then it doesn't display any of the variables (incase anyone wants to try that out).


archive: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 29/06/2007 3:50 pm
(@tammy)
Posts: 2577
Member Moderator
 

Then I'd probably MOD includes/pagesetup.php.  Go down to line 90 and add the following:


$tpl->assignGlobal("action", (!empty($action) ? $action : ""));

Then you can include {action} in your .tpl files to differentiate your css.  The action you'd want would be "reviewsby". 


 
Posted : 29/06/2007 5:51 pm
 Elle
(@jenny)
Posts: 594
Honorable Member
Topic starter
 

I'm somewhat confused, sorry.

Edit: Got it!

Thanks very much!


archive: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 30/06/2007 12:00 pm
Share: