Theme Color Change Problem & a Suggestion
Quote from guclu on September 30, 2017, 5:55 pmAdding the font family did not do it unfortunately.
And I couldn’t figure where to add the content for profile.
Adding the font family did not do it unfortunately.
And I couldn’t figure where to add the content for profile.
Quote from guclu on September 30, 2017, 6:44 pmActually I noticed I don’t need a complicated, custom url for every other user. Just this link for EVERY user: https://www.catcryptobot.com/your-profile/
in the place as seen in the picture. How can I add that?
edit: I also noticed that even if a user clicks on his/her own profile, it lands on the public id format of the profile for everyone. Such as: …/?view=profile&id=2
So that would make it a bit of a problem probably, no?
Actually I noticed I don’t need a complicated, custom url for every other user. Just this link for EVERY user: https://www.catcryptobot.com/your-profile/
in the place as seen in the picture. How can I add that?
edit: I also noticed that even if a user clicks on his/her own profile, it lands on the public id format of the profile for everyone. Such as: …/?view=profile&id=2
So that would make it a bit of a problem probably, no?
Uploaded files:Quote from Yworld on September 30, 2017, 6:48 pmTo do this you just have to add this code to your themes functions.php file:
add_action ('asgarosforum_custom_profile_content' , 'my_function_asgaros_profile' , 10 , 1) ; function my_function_asgaros_profile ($ author_id) { echo 'your link here' ; }add a link 🙂
To do this you just have to add this code to your themes functions.php file:
add_action ('asgarosforum_custom_profile_content' , 'my_function_asgaros_profile' , 10 , 1) ; function my_function_asgaros_profile ($ author_id) { echo 'your link here' ; }
add a link 🙂
Quote from guclu on September 30, 2017, 7:03 pmThanks for all the quick replies… I just tried that and adding it breaks my site somehow.
Here’s the full functions.php of my theme with your codes added at the bottom: https://pastebin.com/TpAwMYwT
It just become unaccesible with that. And everything is back to normal once it’s removed.
Am I doing something wrong?
Thanks for all the quick replies… I just tried that and adding it breaks my site somehow.
Here’s the full functions.php of my theme with your codes added at the bottom: https://pastebin.com/TpAwMYwT
It just become unaccesible with that. And everything is back to normal once it’s removed.
Am I doing something wrong?
Quote from Yworld on September 30, 2017, 7:10 pmThis works 🙂
add_action ('asgarosforum_custom_profile_content' , 'my_function_asgaros_profile' , 10 , 1) ; function my_function_asgaros_profile ($author_id) { echo '<a href="https://www.catcryptobot.com/your-profile/" target="_blank">text</a>'; }
This works 🙂
add_action ('asgarosforum_custom_profile_content' , 'my_function_asgaros_profile' , 10 , 1) ; function my_function_asgaros_profile ($author_id) { echo '<a href="https://www.catcryptobot.com/your-profile/" target="_blank">text</a>'; }
Quote from guclu on September 30, 2017, 7:29 pmOh finally… Thank you 🙂
But this brought up the below problem as I’ve mentioned; it appears in everyones profile page :)) but it is not a problem to attend immediately, this’ll do for now…
Quote from guclu on September 30, 2017, 6:44 pmedit: I also noticed that even if a user clicks on his/her own profile, it lands on the public id format of the profile for everyone. Such as: …/?view=profile&id=2
So that would make it a bit of a problem probably, no?
Oh finally… Thank you 🙂
But this brought up the below problem as I’ve mentioned; it appears in everyones profile page :)) but it is not a problem to attend immediately, this’ll do for now…
Quote from guclu on September 30, 2017, 6:44 pmedit: I also noticed that even if a user clicks on his/her own profile, it lands on the public id format of the profile for everyone. Such as: …/?view=profile&id=2
So that would make it a bit of a problem probably, no?
Quote from Ed G. on October 18, 2017, 8:21 pmQuote from Yworld on September 30, 2017, 3:11 pmYou can do your own theme
Hi,
First let me thank you for the most simple, most straightforward, easiest to control forum plugin of them all. I have been reading this thread with interest. Let me tell you what I did.
First I edited style.css until I was happy with it. Then I created the custom theme dir and copied all (4) of the required css files into it, including the style.css that I edited, into a subdir I named skin-mod. I’ll replace the contents of the default skins dir with clean unmodified files after I’ve worked everything out.
The Options page now had a dropdown list containing the skin-mod theme. Great! I selected it then looked at the forum page. Wo! All the color choices I made had been replaced with something pretty ugly. I don’t get it. These are the exact same (4) css files that work well in the skin dir, but now they fail in the skin-mod dir.
Obviously, there is something I do not understand. What am I missing?
Thanks.
Quote from Yworld on September 30, 2017, 3:11 pmYou can do your own theme
Hi,
First let me thank you for the most simple, most straightforward, easiest to control forum plugin of them all. I have been reading this thread with interest. Let me tell you what I did.
First I edited style.css until I was happy with it. Then I created the custom theme dir and copied all (4) of the required css files into it, including the style.css that I edited, into a subdir I named skin-mod. I’ll replace the contents of the default skins dir with clean unmodified files after I’ve worked everything out.
The Options page now had a dropdown list containing the skin-mod theme. Great! I selected it then looked at the forum page. Wo! All the color choices I made had been replaced with something pretty ugly. I don’t get it. These are the exact same (4) css files that work well in the skin dir, but now they fail in the skin-mod dir.
Obviously, there is something I do not understand. What am I missing?
Thanks.
Uploaded files:Quote from Asgaros on October 24, 2017, 6:13 pmHello Ed G.
Can you try to reload your page with CTRL + F5? Maybe the new files are not loaded correctly. Otherwise please provide a link to your website so I can check the CSS files in your source code.
Hello Ed G.
Can you try to reload your page with CTRL + F5? Maybe the new files are not loaded correctly. Otherwise please provide a link to your website so I can check the CSS files in your source code.
Quote from Asgaros on October 24, 2017, 6:15 pmHello guclu
You can try to add some user-ID check first before the link is generated. For example:
add_action ('asgarosforum_custom_profile_content' , 'my_function_asgaros_profile' , 10 , 1) ; function my_function_asgaros_profile ($author_id) { if ($author_id = get_current_user_id()) { echo '<a href="https://www.catcryptobot.com/your-profile/" target="_blank">text</a>'; } }
Hello guclu
You can try to add some user-ID check first before the link is generated. For example:
add_action ('asgarosforum_custom_profile_content' , 'my_function_asgaros_profile' , 10 , 1) ; function my_function_asgaros_profile ($author_id) { if ($author_id = get_current_user_id()) { echo '<a href="https://www.catcryptobot.com/your-profile/" target="_blank">text</a>'; } }