[Standard in 3.1] O...
 
Notifications
Clear all

[Standard in 3.1] Options: add Report This

5 Posts
2 Users
0 Reactions
4,030 Views
Jan_AQ
(@jan_aq)
Posts: 1300
Noble Member
Topic starter
 

I am currently on a quest trying to make a skin as minimal as possible.

There is a second jump menu on the viewstory page that includes "Add Fic to Favs" "Add author to Favs" and "Submit a review".

<div class="jumpmenu2">{jumpmenu2}</div>

It does not however, include "Report This" and it probbaly won't include any module extras such as "Track this fic".

How do I mod the script to include those on the jump menu?

Edit: I think I found it in Viewstory.php

line 311

$tpl->assign("reportthis", "[<a href="""._BASEDIR."contact.php?action=report&amp;url=viewstory.php?chapid=$chapid">"._REPORTTHIS."</a>"]");

line 302

$jumpmenu2 = "<option value="user.php?action=favst&amp;add=1&amp;sid=$sid">"._ADDSTORY2FAVES."</option><option value="user.php?action=favau&amp;add=1&amp;author=".$stories['uid']."">"._ADDAUTHOR2FAVES."</option>";

I'm going to try adding this in: (are you horrified yet?)

$jumpmenu2 = "<option value=""._BASEDIR."contact.php?action=report&amp;url=viewstory.php?chapid=$chapid">"._REPORTTHIS."</option><option value="contact.php?action=report&amp;url=viewstory.php?chapid=$chapid">"._REPORTTHIS."</option>";

Edit 2: Okay that just replaced the Add to Fav and whatever else to "report this" on the jump menu... The option worked though so I know i'm doing something right...


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 : 19/01/2007 5:41 pm
(@tammy)
Posts: 2577
Member Moderator
 

Add:

<option value=""._BASEDIR."contact.php?action=report&amp;url=viewstory.php?chapid=$chapid">"._REPORTTHIS."</option>

to that line instead of replacing the first option.


 
Posted : 19/01/2007 6:02 pm
(@tammy)
Posts: 2577
Member Moderator
 

And yes, I need to rework that a bit so new options can be added to that drop list. It's on the "To Do" list.


 
Posted : 19/01/2007 6:02 pm
Jan_AQ
(@jan_aq)
Posts: 1300
Noble Member
Topic starter
 

Now my line 302 on viewstory.php reads:

		$jumpmenu2 = "<option value="user.php?action=favst&amp;add=1&amp;sid=$sid">"._ADDSTORY2FAVES."</option><option value="user.php?action=favau&amp;add=1&amp;author=".$stories['uid']."">"._ADDAUTHOR2FAVES."</option><option value=""._BASEDIR."contact.php?action=report&amp;url=viewstory.php?chapid=$chapid">"._REPORTTHIS."</option>";

And it works perfectly! Thank you Tammy! πŸ˜€

Now to get the review to open in a new window....


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 : 19/01/2007 6:17 pm
(@tammy)
Posts: 2577
Member Moderator
 

This is now standard in 3.1


 
Posted : 27/01/2007 10:44 pm
Share: