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:
site:
Available for skin/mod commission! π
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; }
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
Jenny must have deleted it. Moving it back to skinning support so others can benefit from the answer.
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:
site:
Available for skin/mod commission! π
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.
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:
site:
Available for skin/mod commission! π
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".
I'm somewhat confused, sorry.
Edit: Got it!
Thanks very much!
archive:
site:
Available for skin/mod commission! π
