URL to your eFiction: http://www.quillsandink.com/fiction/
Version of eFiction: 3.4.3
Have you bridged eFiction, if so with what?:Nopes
Version of PHP: 5.2.2
Version of MySQL: 4.1.21-standard
Have you searched for your problem: yes
If so, what terms did you try: Adding favorite, favorite (and variations)
State the nature of your problem: You can't add an author as your favorite when you are visting his or her profile (/viewuser.php?uid=), but you can when you go to their storylist (/viewuser.php?action=storiesby&uid=)and click on the link there. I made screencaps, but will describe more below.
Do you have a test account for us? I do, please pm or e-mail me.
I tested this in various skins, but all yield the same result to me. When I am at the profile of an author and click on Add Author to Favorites, nothing happens, but it leads me directly to the list of my favourite authors. When hoovering over the link, this is what it displays:
However when I click on the list of stories from the author, I do get a page where I can fill in the comment, click on submit and the author gets added. This is what the url displays when I hoover over it:
It looks to me that the second action is defined differently and it does work within this new release. A member of mine reported this when we were still working with the 3.4.2 version. So where can I change what so that my members can add their fav's from the profile page? Any help is immensely appreciated!
I had this problem with my archive as well. I have fixed the problem by manually editting the code.
Open users/profile.php
On Line 36 REPLACE
<a href=""user.php?uid=".USERUID."&action=favau&author=".$userinfo['uid'"]."">
With
<a href="""._BASEDIR."user.php?action=favau&add=1&author=".$stories['uid'"].($stories['coauthors'] ? ",".$stories['coauthors'] : "")."">
this has fixed things on my archive. Also there is an issue with the Favorite Authors showing up. I have found the solution to that as well, and I will post my solution on the correct thread https://efiction.org/forums/index.php?topic=6210.0
Hope this helps!
~Shadowess
It isn't work to me 😥
My page is:
Efiction Test English
When I do the change and I try to add an author to favorites show:
Parse error: syntax error, unexpected $end in /home/drumy/public_html/fanscreativos/user/favau.php on line 102
It's a page to test.
Same problem at http://www.immaginifico.com/field/
But it doesn't work from anywhere.
The "strange" link is: http://www.immaginifico.com/field/user.php?uid=USERUID&action=favau&author=43
Look at the "USERUID"... normally wouldn't be there a number?
Joining in with http://www.naiceanilme.com
Trying it from the profile page gives me
Favorite Authors
No results found.
When I try it from a story, it gives a MySQL error.
A fatal MySQL error was encountered.
Query: INSERT INTO ***_favorites(uid, item, type, comments) VALUES ('1', '168', 'AU', '') ON DUPLICATE KEY UPDATE comments = ''
Error: (1064) You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ON DUPLICATE KEY UPDATE comments = ''' at line 1
Joining in also with: http://www.nocturnealley.org/index.php
its all the same from my account I'm not able to add a fav author from anywhere, but some members got another problem, when adding the author... and then they check it it added the member with the ID 1 (me)
URL to your eFiction: http://kawaii-hito.org/fic/index.php and http://www.silverblood.net/MS
Your version of eFiction: 3.5
Latest patch: YES
Mods: only Challenges and translated to Italian
Version of PHP: 4.3.11
Version of MySQL: 4
Hi. I tried a few solutions for this problem and I found something that seems to be working for our site.
1) to fix the non working "ADD AUTHOR TO FAVORITES" link on the author profile page:
Open User/profile.php
On row 36 replace
[<a href=""user.php?uid=".USERUID."&action=favau&author=".$userinfo['uid'"]."">"._ADDAUTHOR2FAVES."</a>]";
with
[<a href=""user.php?action=favau&uid=USERUID&add=$uid">"._ADDAUTHOR2FAVES."</a>"]
_____________________________________________________________
2) to fix the non working "ADD AUTHOR TO FAVORITES" link on the viewuser-seriesby page:
Open includes/seriesblock.php
On row 78 replace
$addtofaves .= " [<a href=""viewuser.php?action=favau&uid=".USERUID."&author=".$stories['uid'"]."">"._ADDAUTHOR2FAVES."</a>]";
with
$addtofaves .= " [<a href=""user.php?action=favau&uid=USERUID&add=".$stories['uid'"]."">"._ADDAUTHOR2FAVES."</a>]"
_____________________________________________________________
3) to fix the non working "ADD AUTHOR TO FAVORITES" link on the viewseries page:
Open viewseries.php
On rows 88/89 replace
$addtofaves .= " [<a href=""user.php?action=favse&uid=USERUID&author=".$series['uid'"]."">"._ADDAUTHOR2FAVES."</a>]";
$jumpmenu .= "<option value="user.php?action=favse&uid=USERUID&author=".$series['uid']."">"._ADDAUTHOR2FAVES."</option>";
with
$addtofaves .= " [<a href=""user.php?action=favau&uid=USERUID&add=".$series['uid'"]."">"._ADDAUTHOR2FAVES."</a>]";
$jumpmenu .= "<option value="user.php?action=favau&uid=USERUID&add=".$series['uid']."">"._ADDAUTHOR2FAVES."</option>";
I hope that'll be useful!
Don't do that. It will then only add the first author of the story, not the coauthors.
Right, that's true: I didn't consider the fact that adding to favorites a coauthored story means that every coauthor is added on the favorite list.
So what can I do? The original code doesn't work even or the first author, and in 3.5 there's he same problem...
Thanks all the same!
I just checked, and I was able to Favorite an author from their profile using 3.5.1. Moving to solved, thank you Tammy!
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