Questions about reputation links
2 posters
Page 1 of 1
Questions about reputation links
Forum version: AwesomeBB.
Default voting system looks like this:
1. Now, I take this link they have, put it somewhere else, where I am making custome voting system, but once page loads, that links doesn't have any href, while the original one does. How is that possible?
2. How can I get only a number of votes given?
Default voting system looks like this:
- Code:
<!-- BEGIN switch_vote -->
<a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_PLUS}" class="vote-up">
<i class="material-icons">add_circle_outline</i>
</a>
<!-- END switch_vote -->
<!-- BEGIN switch_vote -->
<a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_MINUS}" class="vote-down">
<i class="material-icons">remove_circle_outline</i>
</a>
<!-- END switch_vote -->
1. Now, I take this link they have, put it somewhere else, where I am making custome voting system, but once page loads, that links doesn't have any href, while the original one does. How is that possible?
2. How can I get only a number of votes given?
Last edited by System32 on November 29th 2022, 11:47 am; edited 1 time in total
Guest- Guest
Re: Questions about reputation links
Good afternoon!
If you take this snippet of code and paste it somewhere other than the viewtopic_body template, the variables become inactive.
The only way out is to write your own voting code or search in the internet for ready-made modules
If you take this snippet of code and paste it somewhere other than the viewtopic_body template, the variables become inactive.
The only way out is to write your own voting code or search in the internet for ready-made modules
Razor12345- Support Moderator
- Posts : 1450
Reputation : 262
Language : Ukr, Rus, Eng
Location : Ukraine
Re: Questions about reputation links
I paste it inside the same template. Didn't put it out. That's the reason I find it confusing.
And what about getting the number of votes, without the text? Only number?
And what about getting the number of votes, without the text? Only number?
Guest- Guest
Re: Questions about reputation links
Let's put it another way - display what you want schematically or with screenshots.
Where do you want to see the vote?
I don't understand what you want.
Let you tell us what you want in full, not like the guest sections - start with one, end with another.
Where do you want to see the vote?
And what about getting the number of votes, without the text? Only number?
I don't understand what you want.
Let you tell us what you want in full, not like the guest sections - start with one, end with another.
Razor12345- Support Moderator
- Posts : 1450
Reputation : 262
Language : Ukr, Rus, Eng
Location : Ukraine
Re: Questions about reputation links
Vote system. Simple, working. Placed inside footer, cool. Right click on it shows me a link with actual href value.
I copy excatly the same html, put it inside the post body, align where i want, style and that's all. No addition to code, just use default. What happend? Link doesn't have value for href attribute. Same goes for vote up and vote down.
Number I am looking for?
Without the text, of course.
So, how is it possible that same piece of code, put inside the same template, doesn't work for one?
Guest- Guest
Re: Questions about reputation links
Oh I see what your talking about now it's not a voting system your talking about its the reputation system.
They are not the same thing.
They are not the same thing.
Re: Questions about reputation links
Oh my, well yeah. But the code says vote this, vote that, vote classes.
So, now the truth have been told, anyone care to share some info?
So, now the truth have been told, anyone care to share some info?
Guest- Guest
Re: Questions about reputation links
Just under the
No need to post style. We talk about funcionality. This appears well but link href value, do not.
- Code:
<div class="post-content">
- Code:
<div id="personal-vote">
<a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_PLUS}" class="vote-up"><i class="material-icons">keyboard_arrow_up</i></a>
<h4>0</h4>
<a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_MINUS}" class="vote-down"><i class="material-icons">keyboard_arrow_downp</i></a>
</div>
No need to post style. We talk about funcionality. This appears well but link href value, do not.
Guest- Guest
Re: Questions about reputation links
About the buttons:
Use this code
About the second question, I think about it. There are complications here.
Use this code
- Code:
<!-- BEGIN switch_vote_active -->
<div class="vote">
<!-- BEGIN switch_vote -->
<a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_PLUS}" class="vote-up">
<i class="material-icons">add_circle_outline</i>
</a>
<!-- END switch_vote -->
<!-- BEGIN switch_vote -->
<a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_MINUS}" class="vote-down">
<i class="material-icons">remove_circle_outline</i>
</a>
<!-- END switch_vote -->
</div>
<!-- END switch_vote_active -->
About the second question, I think about it. There are complications here.
Razor12345- Support Moderator
- Posts : 1450
Reputation : 262
Language : Ukr, Rus, Eng
Location : Ukraine
Re: Questions about reputation links
Yes, I am using that code but I added something in it (not touching href). Only thing I didn't use is name of div's class "vote". I put "personal-vote". Can that affect the outcome?
Guest- Guest
Re: Questions about reputation links
I don't know why, but the template doesn't like the ID.
I suggest you use the class:
I suggest you use the class:
- Code:
<div class="personal_vote">
Razor12345- Support Moderator
- Posts : 1450
Reputation : 262
Language : Ukr, Rus, Eng
Location : Ukraine
Re: Questions about reputation links
I changed from ID to class, same result, no value of href.
Guest- Guest
Re: Questions about reputation links
- Code:
<div class="personal_vote">
<!-- BEGIN switch_vote -->
<a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_PLUS}" class="vote-up">
<i class="material-icons">keyboard_arrow_up</i>
</a>
<!-- END switch_vote -->
<h4>0</h4>
<!-- BEGIN switch_vote -->
<a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_MINUS}" class="vote-down">
<i class="material-icons">keyboard_arrow_downp</i>
</a>
<!-- END switch_vote -->
</div>
Razor12345- Support Moderator
- Posts : 1450
Reputation : 262
Language : Ukr, Rus, Eng
Location : Ukraine
Re: Questions about reputation links
Very odd because, when I use your code, links are completely gone. Only h4 is shown
Here is the link (I put my old code): https://testaca.forumotion.me/t2-solvednbeka-nova-tema
I am going to make rep system same as XenForo has. Just no idea why links don't show up..
Here is the link (I put my old code): https://testaca.forumotion.me/t2-solvednbeka-nova-tema
I am going to make rep system same as XenForo has. Just no idea why links don't show up..
Guest- Guest
Similar topics
» [EMERGENCY QUESTIONS] what CSS code to hide the User Links ? (Help me)
» Two Questions; Repositioning Recent Topic Widget and Home Page Links
» Questions Regarding Hitskin theme-is there ANY answer to these questions? It has been posted for some time now.
» members links hidden text links
» Multi forums in one problem: Get links to look like regular forum links
» Two Questions; Repositioning Recent Topic Widget and Home Page Links
» Questions Regarding Hitskin theme-is there ANY answer to these questions? It has been posted for some time now.
» members links hidden text links
» Multi forums in one problem: Get links to look like regular forum links
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum