Please or Register to create posts and topics.

Theme Color Change Problem & a Suggestion

PreviousPage 2 of 2

Adding the font family did not do it unfortunately.

 

And I couldn’t figure where to add the content for profile.

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:
  • edit.jpg

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 🙂

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?

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>';
}

 

 

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 pm

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?

 

Quote from Yworld on September 30, 2017, 3:11 pm

You 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:
  • ss1.jpg
  • ss2.jpg

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.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

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>';
  }
}

 

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!
PreviousPage 2 of 2